Files

> > CS2D > Lua Scripts > [For Mapper]Weapon Stripper Gate(Vid&Pic updated)
Files overviewCS2D overviewLua Scripts overview

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

28 comments445 b, 716 Downloads

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

tom282f3
User Off Offline

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 <
edited 13×, last 21.08.11 12:19:19 pm
Approved by GeoB99

Download Download

445 b, 716 Downloads

Comments

28 comments
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

old

Infinite Rain
Reviewer Off Offline

@tom
NP
too short comment
I like it!

old

Apache uwu
User Off Offline

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.
I like it!

old

tom282f3
User Off Offline

@factis699:
Sorry about the --[[]]. It's the function i need to use when i debugging.

old

KiRa_3
User Off Offline

LOL nice CODE reduce KB
I like it!

old

Infinite Rain
Reviewer Off Offline

lol strip gate must strip all weapons expect knive
mine script is better and shortter
I like it!

old

Alistaire
User Off Offline

Factis, do you know how to make it strip only 1 weapon instead of all weapons? Change to parse(´strip ´..id..´ weapon´)?
I like it!

old

Infinite Rain
Reviewer Off Offline

LOL
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

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
I like it!

old

KiRa_3
User Off Offline

Aw i like if the all weapons are stripped the knife and wrench should be stripped =( but you got 5/5
I like it!

old

Peacewalker
User Off Offline

Great, man! Can you tell me where d'you get those tiles ant the special HUD?
I like it!

old

Deatherr
User Off Offline

Great script, I was hoping that DC added a function like this in the map editor, but he didn't .
I like it!

old

taha
User Off Offline

God job man this lua very nice congratulations awesome
I like it!

old

paladin1
User Off Offline

very good script very perfect
I like it!

old How to?

Alistaire
User Off Offline

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*
I like it!

old

Picias
BANNED Off Offline

WoW That is Very Perfect
And Really You Take 5/5
nice Lua Script
I like it!

old

Infinite Rain
Reviewer Off Offline

Easy, but usefull
Good work ****
I like it!

old

Occasus
User Off Offline

Good job for making this script and I'm really appreciate it
I like it!

old

Axes_creepz
User Off Offline

cool script. Very useful script. Using it on my map.
I like it!

old

paladin1
User Off Offline

good job man i very like this good idea
I like it!

old

rapidblade
User Off Offline

Wow Very good script 5 if i take laser script strip this
I like it!

old

Yasday
User Off Offline

Really easy but a little bit useful.. it's good.
I like it!
To the start Previous 1 2 Next To the start