Forum

> > CS2D > Scripts > How to strip knife and wrench?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to strip knife and wrench?

26 replies
Page
To the start Previous 1 2 Next To the start

old How to strip knife and wrench?

tom282f3
User Off Offline

Quote
Well, title has written
How do I remove knife when SD/DM/TDM/ZM,
and remove wrench when Cons.?


Please help me ASAP!!! Thanks for your help!!

Enjoy your CS2D
[TW2D]Razgriz

old Re: How to strip knife and wrench?

Surplus
User Off Offline

Quote
Y0u allways have t0 hav atleast 1 meele wep00n.
Use teh search functi0n beforr p0stin!

Admin/mod comment

no 1337 crap please. read the rules.

old Re: How to strip knife and wrench?

Yates
Reviewer Off Offline

Quote
PartyPooPer has written
Y0u allways have t0 hav atleast 1 meele wep00n.
Use teh search functi0n beforr p0stin!

I lol'd Y0u da m4sta
But you can't..

Admin/mod comment

no 1337 crap please. read the rules.

old Re: How to strip knife and wrench?

halfire120
User Off Offline

Quote
Five has written
1
buy a stripper holding a Knife or wrench
LOL

What i found is if you have a machete in your inventory aswell as a knife you can strip the knife, BUT as soon as you drop/strip the machete The knife "Re-Equips" itself.

old Re: How to strip knife and wrench?

TimeQuesT
User Off Offline

Quote
as i think it is impossible to strip all weapons from a player. In an older version of the game was a bug with "spawnplayer" that spawned the player without any weapons.. But that was ugly.

old Re: How to strip knife and wrench?

RAVENOUS
BANNED Off Offline

Quote
TimeQuesT has written
as i think it is impossible to strip all weapons from a player. In an older version of the game was a bug with "spawnplayer" that spawned the player without any weapons.. But that was ugly.


Still possible. Requires some tricks.

old Re: How to strip knife and wrench?

Phenixtri
User Off Offline

Quote
Making the fists as a weapon would be great for mods & what not but you can still have the knife as the default weapon for all standard CS2D game mods. That way every ones happy.

This would also make CS2D more flexible mod wise. There would also be no need for any new player sprites just use the knife pose but with a blank skin & some sounds. The knife could also have a drop model too just rename the player held model "knife" to "knife_d" for example.

It would be very simple to make & its not like its one of the retarded ideas out there that would be a pain in the ass to code.

Also the knife can be stripped in a way ... just search for HaRes drop knife lua in the scripts section. The only problem with it is that there is no drop knife model so you can pick it back up again until you re spawn.

old Re: How to strip knife and wrench?

Dovahkin
User Off Offline

Quote
What about saying and equiping?


1
2
3
4
5
6
7
8
9
addhook("say","hole")
function hole(id,txt)
	if(txt=="!knife") then
		parse("equip "..id.." 50")
	
	elseif(txt=="!wrench") then
		parse("equip "..id.." 74")
	end
end

∗hope you like it ::)

old Re: How to strip knife and wrench?

KiRa_3
User Off Offline

Quote
i saw in some citylife that when the admin arrest player, the arrested player will be fully stripped, the knife and wrench will be gone, but i don't know what code was that, i try to find the codes
edited 1×, last 09.08.11 12:27:42 pm

old Re: How to strip knife and wrench?

DC
Admin Off Offline

Quote
it's a bad idea. it's an invalid game state to have no weapon at all. it will lead to bugs and strange game behavior. don't do it. the game might explode!
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview