English [For Mapper]Weapon Stripper Gate(Vid&Pic updated) icon

28 comments
21.03.11 02:51:58 pm
like 20 like it!
445 b, 467 Downloads
tom282f3
User
Offline Off
Why do I create this script? See Spoiler
Spoiler >

> Weapon Stripper Gate <

> Function> Remove every weapon when you go through the designated gate.

> > > > > > > > > > > > > > > How to use it?< < < < < < < < < < < < < < <

∗ 1.Let your server assigned to this script, or rename it as your map's name, or add it into your script.

∗ 2.Open your map, set up Trigger_Move and name it "strip" (without quotes), ofcourse you can set multiple entitys.

∗ 3.Done!!! You can open your map and see what happens!

> Yeah you can watch the great video(click here) made by Kel9290, thanks! <

Image 1:I got a laser yay! Now I'm ready to kill those b**ches!
Image 2:WTF I feel so bad... Now I have nothing. Mom! The gate takes all my weapons!

Some little advertisment for my clan:)


> > > > > > > > > > > > > > > Shortcuts< < < < < < < < < < < < < < <

Goto CS2D console command page>> cs2d cmd cmd <
Goto CS2D Lua command page>> cs2d lua cmd cmd <
Goto CS2D Lua hook command page>> cs2d lua hook hook <
imageimage
edited 13×, last 21.08.11 12:19:19 pm
ok This file has been reviewed and approved by GeoB99 (29.04.17 03:03:32 pm)

Comments

28 comments
Goto Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in
19.08.11 06:55:57 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@tom
NP
too short comment
19.08.11 06:52:26 pm
like I like it!
Up
Apache uwu
User
Offline Off
hah I like it, nice idea! Potentially you could add "except" weapon selection.

In the trigger box adding weapons separated by commas that will not be striped.
31.07.11 03:28:28 pm
Up
tom282f3
User
Offline Off
@factis699:
Sorry about the --[[]]. It's the function i need to use when i debugging.
31.07.11 01:19:41 pm
like I like it!
Up
KiRa_3
User
Offline Off
LOL nice CODE reduce KB
31.07.11 11:33:37 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
lol strip gate must strip all weapons expect knive
mine script is better and shortter
31.07.11 11:03:45 am
like I like it!
Up
Alistaire
User
Offline Off
Factis, do you know how to make it strip only 1 weapon instead of all weapons? Change to parse(´strip ´..id..´ weapon´)?
31.07.11 11:01:15 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
LOL
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
c=string.char(169)

function Array(a,b)
     local array = {}
     for i = 1, a do
          array[i]=b
     end
     return array
end
addhook("movetile","strip_all_weapons")
function strip_all_weapons(id,x,y)
     --[[msg(tostring(entity(x,y,"typename")))
     msg(tostring(entity(x,y,"type")))
     msg(tostring(entity(x,y,"name")))
     msg(tostring(entity(x,y,"trigger")))
     msg("--")]]
     if entity(x,y,"typename")=="Trigger_Move" and entity(x,y,"name")=="strip" then
          for _,iid in ipairs(playerweapons(id)) do
               parse("strip "..id.." "..iid)
          end
          msg2(id,c.."128255000Your weapons are all striped out automatically.")
     end
end


TOO WROONG
look better one

Code:
1
2
3
4
5
6
7
addhook("movetile","strip_all_weapons")
function strip_all_weapons(id,x,y)
     if entity(x,y,"typename")=="Trigger_Move" and entity(x,y,"name")=="strip" then
          parse('strip '.. id ..' 0')
          msg2(id,string.char(169).."128255000Your weapons are all striped out automatically.")
     end
end
31.07.11 09:41:06 am
like I like it!
Up
KiRa_3
User
Offline Off
Aw i like if the all weapons are stripped the knife and wrench should be stripped =( but you got 5/5
28.05.11 07:31:19 pm
like I like it!
Up
Peacewalker
User
Offline Off
Great, man! Can you tell me where d'you get those tiles ant the special HUD?
28.05.11 05:22:55 pm
like I like it!
Up
Deatherr
User
Offline Off
Great script, I was hoping that DC added a function like this in the map editor, but he didn't .
28.05.11 09:41:41 am
like I like it!
Up
taha
User
Offline Off
God job man this lua very nice congratulations awesome
28.05.11 08:24:57 am
like I like it!
Up
paladin1
User
Offline Off
very good script very perfect
23.04.11 12:29:09 pm
like I like it!
Up
Alistaire
User
Offline Off
Can you tell how to edit the script so it only strips one kind of weapon? (RPG Launcher)

I need it for a map I'm making atm and I *cough* pretty much suck at Lua *cough*
03.04.11 01:04:51 pm
like I like it!
Up
Picias
BANNED
Offline Off
WoW That is Very Perfect
And Really You Take 5/5
nice Lua Script
03.04.11 12:35:10 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Easy, but usefull
Good work ****
03.04.11 12:19:20 pm
like I like it!
Up
Occasus
User
Offline Off
Good job for making this script and I'm really appreciate it
03.04.11 08:21:17 am
like I like it!
Up
Axes_creepz
User
Offline Off
cool script. Very useful script. Using it on my map.
02.04.11 12:01:54 pm
like I like it!
Up
paladin1
User
Offline Off
good job man i very like this good idea
22.03.11 05:40:43 pm
like I like it!
Up
rapidblade
User
Offline Off
Wow Very good script 5 if i take laser script strip this
22.03.11 05:22:32 pm
like I like it!
Up
Yasday
User
Offline Off
Really easy but a little bit useful.. it's good.
To the start Previous 1 2 Next To the start