Forum

> > CS2D > General > Is anyway to equip only 1 melee weapon ?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Is anyway to equip only 1 melee weapon ?

3 replies
To the start Previous 1 Next To the start

old Is anyway to equip only 1 melee weapon ?

phihung940
User Off Offline

Quote
Hi, I'm working with the "Classes.lua" (Basic script) and I want my class (Gunner) use Chainsaw only. Basicly... I want all class are equip with 1 MELEE weapon only, it can be Knife, Machete, Chainsaw, Claw, Wrench, but canot both of all of it! Can someone help me ? Thank first

P/S: and can someone tell me, is anyway to set the speed when carry other weapons to one value only ? like normal speed of character are 5 then he change weapon to knife then his speed is faster (6) kind of... I dont know.
edited 1×, last 11.08.11 06:22:19 am

old Re: Is anyway to equip only 1 melee weapon ?

Bowlinghead
User Off Offline

Quote
1. You can Strip your Knife, ist easy.
1
2
3
4
5
addhook("spawn","unlimetunlimetunlimetxd")
function unlimetunlimetunlimetxd(id)
	parse("strip "..id.." 50")
	return "x";
end

This Code is stupid because your knife get striped and you get it back

2. How do you mean "to set the speed when carry other weapons to one value only ?"? Do you mean that you have at everytime the same speedmode no matter what weapons the player is warrying?
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview