Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Help with Mike myers mod
#1
hey just im heading up a mike myers mod for blackops but i've run into a wall.
im trying to get to the first person that mike kills to swap team's getting them over is easy
Code:
self maps\mp\gametypes\_teams::changeTeam("allies");
but im not sure how to do it so its only the first person killed that change's ,the only way i could do it was make everyone killed change team so im asking for idea's
i thought maybe i'd do something like

onwaittillspawned
Code:
self.done2 = 0;
then
Code:
watchfirst kill()
{
self waittill( "death" );
self maps\mp\gametypes\_teams::changeTeam("allies");
wait 0.5;
self.done1++;
}
would that work?
Reply

#2
Code:
init()
{
      level.playerkilled = 0;
}

onplayerspawned()
{
      self thread watchfirstkill();
}

watchfirstkill()
{
self endon("disconnect");
level endon("player_was_killed");

      if(level.playerkilled)
           return;

      self waittill( "death" );
      self maps\mp\gametypes\_teams::changeTeam("allies");

      level notify("player_was_killed");
      level.playerkilled = 1;
}

my browser fucked up the first time i typed this -.-
[Image: b_560_95_1.png]
Reply

#3
thanks man i'll have a look after work , i had a go but it didnt work Confused however my code did xD so im not sure whats goign on i need some tester's will get to it later
Reply

#4
hmm found my issue lol im picking the random player at joined team and that is forceing 1 player for that team so no matter what i was trying it wouldnt have worked ,it works fine the other way around so i need a new way of picking the player for team

edit i've got the feeling i should be looking in to some of the zombie mods to do what i want

Edit 2 : yep IZM's SelectZombie() is just what im lookin for Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Mike Myers V2.9 IAmTicTac456 9 5,753 03-15-2013, 01:56
Last Post: pflaurie
  Mike Myers Mod pflaurie 4 3,604 03-01-2013, 19:03
Last Post: pflaurie
  mike myers v3 nickdiesel10 5 8,471 02-06-2013, 15:41
Last Post: Imsarxy
  Preview Michael Myers Mod math_eeu 2 2,939 01-18-2013, 11:48
Last Post: alvarogt95
  [Release] Michael Myers Ich1994 7 4,867 06-25-2012, 09:35
Last Post: d0h!
  [Request] Mike Myers pollarpart 17 8,043 06-18-2012, 16:16
Last Post: pollarpart
  [Release] Mike Myers V0.1 rotceh_dnih 12 8,912 11-03-2011, 22:53
Last Post: rotceh_dnih
Heart [Release] Michael Myers Mod iGhost 13 18,076 10-25-2011, 18:24
Last Post: _Smile_Man_
  Preview Mike Myer's rotceh_dnih 23 11,462 08-21-2011, 05:54
Last Post: rotceh_dnih
  Mike Myers iBanana 1 2,224 08-01-2011, 18:02
Last Post: Pyroh

Forum Jump:


Users browsing this thread:
1 Guest(s)

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