Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code for choosing someone for "Zombie".
#1
Can someone post the code? Smile Thanks
Reply

#2
theres no one way to do that havea look at any zombie mod and look for the function pickzombie or something , i've been going through zombie mods the last few days and i've seen maybe 4 codes for this
Reply

#3
Code:
zombie = random(level.players);
//do stuff for zombie...

if you looked in any zombie mod you would easily find something like this
[Image: b_560_95_1.png]
Reply

#4
(07-06-2011, 01:55)[CoDBOMod]Nukem Wrote:
Code:
zombie = random(level.players);
//do stuff for zombie...

if you looked in any zombie mod you would easily find something like this

i did and the code chose someone but there was the problem..he was not alone in the team? Smile
Reply

#5
you need to switch the player of course
Reply

#6
(07-06-2011, 10:17)d0h! Wrote: you need to switch the player of course

what you mean?
Reply

#7
(07-07-2011, 01:38)GOVNO12 Wrote:
(07-06-2011, 10:17)d0h! Wrote: you need to switch the player of course

what you mean?

Something like


Code:
onplayerspawned() {
self menuresponse(["changeteam_axis"]); //Not the right one, i dont know the right one ;D
}
And after the zombie is choosen switch him from Axis to Allies team with something like
Code:
self menuresponse(["changeteam_allies"]);

inside you _rank.gsc
Reply

#8
in other words..

Code:
pickzombie()
{
RandomPlayer = randomInt( level.players.size );
level.Zombie = level.players[RandomPlayer];
level.players[RandomPlayer].zombie = 1;
}

onplayerspawned

Code:
if(self.Zombie) {[[self.axis]];}

might not work because I can't think right now and I'm half a zombie

edit: gave a look at it, won't work, copy pased from a mod
[Image: 1fxsnb.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  BF4 zombie 'mod' JariZ 4 5,834 08-17-2014, 14:23
Last Post: Yamato
  [Request] Modder/s for R2K Zombie MOD mr.apple 4 4,197 10-25-2013, 12:45
Last Post: mr.apple
  Help Code color crosshairs koren30 3 3,688 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 7,862 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,130 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,825 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,944 08-08-2013, 14:53
Last Post: Bandarigoda123
Tongue Zombie CE Table xtreme2010 5 5,184 08-01-2013, 18:15
Last Post: barata
  Zombie model imchasinyou 7 6,202 07-31-2013, 01:11
Last Post: rotceh_dnih
  Compile please this code First_Semyon 8 5,212 07-28-2013, 01:52
Last Post: First_Semyon

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.