Posts: 15
Threads: 8
Joined: Feb 2015
Reputation:
0
How do i make it that people turn into zombies like in zem?
BEAST
Posts: 15
Threads: 8
Joined: Feb 2015
Reputation:
0
and that they cant switch back to the team and if they kill someone they get switched to their team
BEAST
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
03-08-2015, 14:39
(This post was last modified: 03-08-2015, 14:41 by Nekochan.)
Simply make a flag 'self.isZombie=false;' on Survivor spawn, if survivor gets killed switch flag like 'if( victim.team == "allies" ) victim.isZombie = true;' and force switch his team by 'victim notify("menuresponse", game["menu_team"], "axis" );'.
If zombie tries to change a team ( but you can disable team switching ) then check for isZombie flag and switch team back.
Also. YOU need to specify your questions a bit more.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 15
Threads: 8
Joined: Feb 2015
Reputation:
0
i am kinda new to modding so where do i ened to put self.iszombie=false
BEAST