Forum

> > CS2D > Scripts > How To Change Helth And Speed for ZB
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How To Change Helth And Speed for ZB

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: How To Change Helth And Speed for ZB

Yates
Reviewer Off Offline

Zitieren
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.
1× editiert, zuletzt 28.06.11 19:20:14

alt Re: How To Change Helth And Speed for ZB

EngiN33R
Moderator Off Offline

Zitieren
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.

alt Re: How To Change Helth And Speed for ZB

DC
Admin Off Offline

Zitieren
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"
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht