Post: [RELEASE] Infection Game Mode by x2EzYx--
02-13-2012, 06:59 PM #1
BlazingDope
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); Before you start yes this Is exactly like the gamemode 'Infeted' from MW3. All Players get given a different weapon load out each time and picks someone to be infected at random. It's fun with a lot of people, so enjoy! any bugs feel free to quote them and I will fix when I can.

Note: I done this to release for the public so there's something new for waw, because this section is dead! Yet I get 1 like and no thanks? sort it out boys!

Code:
    
StartInfected()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Starting Infected..");
self setClientDvar("ui_allow_teamchange", "0");
//thread you're exit menu function here
wait 2;
for ( t=0;t <= level.players.size;t++ )
{
players = level.players[t];
players suicide();
if(players.team == "axis" || players.team == "spectator"){players notify("menuresponse", game["menu_team"], "allies");}
players waittill("spawned_player");
players takeallweapons();
players thread InfectedWeapons();
players iPrintlnBold("^6Welcome "+self.name+" To Infected V1");
wait 5;
players thread InfectedTimer();
players thread MonitorInfected();
wait 8;
self thread InfectionTime();
players iPrintlnBold("^3"+self.Infected+" ^1Has been infected!");
}
}

InfectedWeapons()
{
switch(RandomInt(3))
{
case 0:
self giveWeapon("mp40_bigammo_mp");
self switchtoweapon("mp40_bigammo_mp");
break;
case 1:
self giveWeapon("m1carbine_mp");
self switchtoweapon("m1carbine_mp");
break;
case 2:
self giveWeapon("shotgun_mp");
self switchtoweapon("shotgun_mp");
break;
case 3:
self giveWeapon("ptrs41_mp");
self giveWeapon("colt_mp");
self switchtoweapon("ptrs41_mp");
break;
}
}

InfectedTimer()
{
self.countdown = self createFontString( "objective", 1.5 );
self.countdown setPoint("CENTERLEFT", "CENTERLEFT", 20, 0);
for(i=8; i>=0; i--)
{
self.countdown setText("^1Infection in "+i+"");
self playSound("ui_mp_timer_countdown");
wait 1;
}
self.countdown destroy();
}

MonitorInfected()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill( "death" );
self notify("menuresponse", game["menu_team"], "axis");
self thread InfectedFunctions();
}
}

InfectionTime()
{
self.Infected = level.players[ randomInt( level.players.size ) ];
self.Infected suicide();
}

InfectedFunctions()
{
self iPrintlnBold("^1You have been infected!");
self takeallweapons();
self giveweapon("colt_mp");
self giveweapon("sticky_grenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "sticky_grenade_mp", 2 );
wait 3;
}


Credits:
Me - Creating/Releasing this
IVI40A3Fusionz - pointing out two bugs stare (you noob)
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to BlazingDope for this useful post:

CodingNation, I Need $, iPROFamily, Kearney158, Niall-Griffiths, Jango, scarfaceinhd, thatbrat, xRaW
02-15-2012, 02:26 PM #29
BlazingDope
Can’t trickshot me!
Originally posted by IVI40A3Fusionz View Post
You love me really hence all the Valentines Cards you sent me :p.

I only bought you those because I felt sorry for you that you didn't get any Valentines Cards from the girls :love:
02-15-2012, 02:45 PM #30
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by KillaMaJic View Post
I only bought you those because I felt sorry for you that you didn't get any Valentines Cards from the girls :love:


touché stare.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo