• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP]Zombie mod
#1
Im trying to make a zombie mod but im having problems with the teams.
I want to make it so when everyone spawn they'll get moved to one team, and then a timer will count down from 60 seconds and pick a random zombie and move him to the other team.

The problem im having is that when you suicide or get killed by a zombie, the code that makes everyone spawn on one team when the game starts, is messing up the other code that should make you move teams when you die.

Heres my mod now: http://pastebin.com/9kcEZURV

Looking at the When_died() code there is a for(;;), and without that, it wont move teams when you die.. With the for(;;) the game will either crash with server command overflow, message or it will lag for 5 - 10 seconds.

Help would be appreciated.
[-] The following 1 user says Thank You to isokasi for this post:
  • AZUMIKKEL
  Reply
#2
i dont read all , but i think that what you need:
Code:
self maps\mp\gametypes\_teams::changeTeam("axis");

or just do like that:
Code:
    for(;;)
    {        
        self waittill("death");
        self maps\mp\gametypes\_teams::changeTeam("axis"); // or "allies" .
    }
  Reply
#3
(02-02-2011, 17:43)wezljkz Wrote: i dont read all , but i think that what you need:
Code:
self maps\mp\gametypes\_teams::changeTeam("axis");

or just do like that:
Code:
    for(;;)
    {        
        self waittill("death");
        self maps\mp\gametypes\_teams::changeTeam("axis"); // or "allies" .
    }

i had that before, it didnt work either
[-] The following 1 user says Thank You to isokasi for this post:
  • AZUMIKKEL
  Reply
#4
(02-02-2011, 19:52)isokasi Wrote:
(02-02-2011, 17:43)wezljkz Wrote: i dont read all , but i think that what you need:
Code:
self maps\mp\gametypes\_teams::changeTeam("axis");

or just do like that:
Code:
    for(;;)
    {        
        self waittill("death");
        self maps\mp\gametypes\_teams::changeTeam("axis"); // or "allies" .
    }

i had that before, it didnt work either
Ok let me tell u, u should do join team stuff onplayerconnected, and the other in init

[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  BF4 zombie 'mod' JariZ 4 2,347 08-17-2014, 14:23
Last Post: Yamato
  [Request] Modder/s for R2K Zombie MOD mr.apple 4 1,640 10-25-2013, 12:45
Last Post: mr.apple
Tongue Zombie CE Table xtreme2010 5 2,077 08-01-2013, 18:15
Last Post: barata
  Zombie model imchasinyou 7 2,184 07-31-2013, 01:11
Last Post: rotceh_dnih
Star [Release] 8 new Zombie maps for ItsZombieMod mahafy00 31 21,975 07-20-2013, 07:28
Last Post: benm4a
  Help Modding Zombie Mode DarthKiller 3 1,692 07-09-2013, 21:08
Last Post: Nekochan
Information Preview 'KillMe' zombie mod Nekochan 115 18,055 07-03-2013, 14:56
Last Post: X-Track
  [Release] Black Ops Single Player/Zombie Trainer V3.6 Craig87 52 38,223 07-01-2013, 15:12
Last Post: explosivebanana55
  [Release] MW3 Mod: Zombie Juggernauts NChecker 8 9,560 06-27-2013, 05:38
Last Post: xX_ANTZ_Xx
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 2,144 06-24-2013, 16:37
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread: 1 Guest(s)