Forum

> > CS2D > Scripts > Unlimited explosive weapons/nades
Forums overviewCS2D overview Scripts overviewLog in to reply

English Unlimited explosive weapons/nades

5 replies
To the start Previous 1 Next To the start

old Unlimited explosive weapons/nades

EpicCrisis
User Off Offline

Quote
Does anyone know how to make an infinite mine/lasermine script? I gotta use it for my script and I don't know how to do it. Can anyone give me a sample? Any help will be appreciated.

old Re: Unlimited explosive weapons/nades

Aura
User Off Offline

Quote
If you can figure out how some modes or whatever make it so PRG-7 rounds are unlimited, you could just change it to the lazer mines. I don't know how do do this since my computer is too crappy to run CS2D for long longer then a few minuts.

old Re: Unlimited explosive weapons/nades

Starkkz
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("build","onBuild")
function onBuild(id,type,x,y,mode,oid)
	if type == 20 then -- Mine
		parse("equip "..id.." 77")
	elseif type == 21 then -- Laser Mine
		parse("equip "..id.." 87")
	end
end

This may work...

old Re: Unlimited explosive weapons/nades

Yasday
User Off Offline

Quote
1
2
3
4
addhook([[projectile]], [[projectile_hook]])
projectile_hook = function(id, wpn, x, y)
	parse([[equip ]] .. id .. [[ ]] .. wpn)
end
will do the rest.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview