Forum

> > CS2D > Scripts > How To Change Helth And Speed for ZB
Forums overviewCS2D overview Scripts overviewLog in to reply

English How To Change Helth And Speed for ZB

7 replies
To the start Previous 1 Next To the start

old Re: How To Change Helth And Speed for ZB

Yates
Reviewer Off Offline

Quote
1
2
3
4
5
6
addhook("spawn","speednshit")
function speednshit(id,team)
	if (team==1) then
		parse("speedmod "..id.." "..YOURSPEEDHERE)
	end
end
Wrote it in 20sec. Might work, might not work.
edited 1×, last 28.06.11 07:20:14 pm

old Re: How To Change Helth And Speed for ZB

EngiN33R
Moderator Off Offline

Quote
1
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)
but
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.

old Re: How To Change Helth And Speed for ZB

DC
Admin Off Offline

Quote
wait!

you don't even need speedmod or Lua stuff for this! there are extra zombie settings! AWESOMENESS!

check out:
cs2d cmd mp_zombiespeedmod - changes the zombie speed
cs2d cmd 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"
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview