-
Back in 2006 I did an "infected" gametype called Hitman for COD2. Basically, the gametype starts with 1 hitman, 1 commander, and the rest are guards who are supposed to protect the commander. As the hitman kills the guards, they turn into hitmen. Change the name "Hitman" to "infected" and you have the same thing: as the "infected" (= hitman) kills the guards, they become infected themselves. So, the gametype uses a method to increase the size of hitmen/infected exponentially. Which is what you were looking for.
Download Hitman gametype for COD2 here:
http://callofduty.filefront.com/file...Gametype;68302
-
PHP Code:
******* script runtime error *******
pair 'undefined' and 'undefined' has unmatching types 'undefined' and 'undefined': (file 'files/zom.gsc', line 2107)
if (a.lastTimeOfDeathAsHunter > b.lastTimeOfDeathAsHunter)
*
I have error.. idk why... ;/
-
Instead of player.lastDeath write now:
PHP Code:
if (player.pers["team"] == "allies")
player.lastTimeOfDeathAsHunter = getTime();
BTW dont forget to set player.lastTimeOfDeathAsHunter = 0 in callback_playerconnect(), otherwise it will crash with undefined-int-unmatching-type-error.
-
Add to Callback_PlayerConnect:
PHP Code:
if (player.pers["team"] == "allies")
player.lastTimeOfDeathAsHunter = getTime();
??
-
No, that goes to Callback_PlayerKilled().
Callback_PlayerConnect: player.lastTimeOfDeathAsHunter = 0;
-
I kill the last hunter, do i not turn into the hunter ;/
The last hunter is killed, the team moved ,, axis'', then after a while ,,allies''.
How to repair ?
-
Did you commented your old hunter-becomes-zombie-logic out?
-
How do I comment on this?
-
Its different for every zombie-mod, most ppl put the logic directly in Callback_PlayerKilled (who wrote that part for your mod?).
-
I hate to rain on anyone's parade, but if you can't script, or are very new to it, you should not be attempting to write a whole zombie gametype script. You should learn to walk before you try to run. Gametypes are for the very advanced only.