Dateien

> > CS2D > Lua Scripts > [For Mapper]Weapon Stripper Gate(Vid&Pic updated)
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

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

28 Kommentare445 b, 678 Downloads

alt [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 <
13× editiert, zuletzt 21.08.11 12:19:19
Zugelassen von GeoB99

Download Download

445 b, 678 Downloads

Kommentare

28 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Infinite Rain
Reviewer Off Offline

@tom
NP
too short comment
Ich mag es!

alt

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.
Ich mag es!

alt

tom282f3
User Off Offline

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

alt

KiRa_3
User Off Offline

LOL nice CODE reduce KB
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

lol strip gate must strip all weapons expect knive
mine script is better and shortter
Ich mag es!

alt

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´)?
Ich mag es!

alt

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
Ich mag es!

alt

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
Ich mag es!

alt

Peacewalker
User Off Offline

Great, man! Can you tell me where d'you get those tiles ant the special HUD?
Ich mag es!

alt

Deatherr
User Off Offline

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

alt

taha
User Off Offline

God job man this lua very nice congratulations awesome
Ich mag es!

alt

paladin1
User Off Offline

very good script very perfect
Ich mag es!

alt 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*
Ich mag es!

alt

Picias
BANNED Off Offline

WoW That is Very Perfect
And Really You Take 5/5
nice Lua Script
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

Easy, but usefull
Good work ****
Ich mag es!

alt

Occasus
User Off Offline

Good job for making this script and I'm really appreciate it
Ich mag es!

alt

Axes_creepz
User Off Offline

cool script. Very useful script. Using it on my map.
Ich mag es!

alt

paladin1
User Off Offline

good job man i very like this good idea
Ich mag es!

alt

rapidblade
User Off Offline

Wow Very good script 5 if i take laser script strip this
Ich mag es!

alt

Yasday
User Off Offline

Really easy but a little bit useful.. it's good.
Ich mag es!
Zum Anfang Vorherige 1 2 Nächste Zum Anfang