Forum
Scripts
How To Change Helth And Speed for ZB
How To Change Helth And Speed for ZB
7 replies
1

1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","speednshit")
function speednshit(id,team)
	if (team==1) then
		parse("speedmod "..id.." "..YOURSPEEDHERE)
	end
end
edited 1×, last 28.06.11 05:20:14 pm
will give error, cause you didnt init it
1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","speednshit")
function speednshit(id,team)
if (team==1) then
parse("speedmod "..id.." --writeinspeedmodhere--")
end
end
@Yates
not
1
parse("speedmod "..id.." "..YOURSPEED)
1
parse("speedmod "..id.." YOURSPEED")
You don't have to insert the speed as a concatenated (.. <concatenation) variable, you can as well just write it in the quotes.
you don't even need speedmod or Lua stuff for this! there are extra zombie settings! AWESOMENESS!
check out:
mp_zombiespeedmod - changes the zombie speed
mp_zombiedmg - percentage of original damage that zombies will TAKE (NOT CAUSE!) - this has the same effect as giving the zombies more health. a value of 0.5 (default) means that they will suffer half damage only. this equals a doubled health value (200 hp) and 0.25 would be like 400 hp for example.there are also some more zombie settings. take a look at
http://www.cs2d.com/help.php?cat=settings
or at the "More Settings" tab after clicking at "New Game"
1

Offline