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)
Last edited by BlazingDope ; 02-14-2012 at 12:41 PM.

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-13-2012, 07:06 PM #2
IVI40A3Fusionz
Former Gaming Squad Member
Credits to moi for fixing a bug for you :p?
02-13-2012, 07:06 PM #3
xRaW
xI2aW-
Originally posted by KillaMaJic View Post
Just coded it now took me about ten minutes. I haven't tested, but should work fine already checked for errors. Enjoy!
If there's any bugs just report them to me and I'll fix them.
Note: Works best for TDM

Code:
    
StartInfected()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Starting Infected..");
self setClientDvar("ui_allow_teamchange", "0");
//Thread your exit/close 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;
players iPrintlnBold("^3"+self.Infected+" ^1Has been infected!");
}
self thread InfectionTime();
}

InfectedWeapons()
{
switch(RandomInt(3))
{
case 0:
self giveWeapon("mp40_bigammo");
self switchtoweapon("mp40_bigammo");
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", 3.8 );
self.countdown setPoint("CENTERLEFT", "CENTERLEFT", 20, 0);
for(i=8; i>0; i--)
{
self.countdown setText("Infection 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("stickygrenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "stickygrenade_mp", 2 );
wait 3;
self MonitorIDeath();
}

MonitorIDeath()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill( "spawned_player" );
self takeallweapons();
self giveweapon("colt_mp");
self giveweapon("stickygrenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "stickygrenade_mp", 2 );
}
}


instead of having stuff like

    
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;
players iPrintlnBold("^3"+self.Infected+" ^1Has been infected!");
}
so it loads straight away make it so you can use dvars to make it load when restarting. I could do it in a min but until then ill test what its like without it
02-13-2012, 07:12 PM #4
LightModz
League Champion
Originally posted by KillaMaJic View Post
Just coded it now took me about ten minutes. I haven't tested, but should work fine already checked for errors. Enjoy!
If there's any bugs just report them to me and I'll fix them.
Note: Works best for TDM

Code:
    
StartInfected()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Starting Infected..");
self setClientDvar("ui_allow_teamchange", "0");
//Thread your exit/close 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;
players iPrintlnBold("^3"+self.Infected+" ^1Has been infected!");
}
self thread InfectionTime();
}

InfectedWeapons()
{
switch(RandomInt(3))
{
case 0:
self giveWeapon("mp40_bigammo");
self switchtoweapon("mp40_bigammo");
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", 3.8 );
self.countdown setPoint("CENTERLEFT", "CENTERLEFT", 20, 0);
for(i=8; i>0; i--)
{
self.countdown setText("Infection 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("stickygrenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "stickygrenade_mp", 2 );
wait 3;
self MonitorIDeath();
}

MonitorIDeath()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill( "spawned_player" );
self takeallweapons();
self giveweapon("colt_mp");
self giveweapon("stickygrenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "stickygrenade_mp", 2 );
}
}


Credits:
Me - Making the gamemode in 10mins lols
IVI40A3Fusionz - pointing out the first bug stare


what is the objective of this game mode? what do you have to do?
02-13-2012, 07:14 PM #5
BlazingDope
Can’t trickshot me!
Originally posted by xRaW View Post
instead of having stuff like

    
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;
players iPrintlnBold("^3"+self.Infected+" ^1Has been infected!");
}
so it loads straight away make it so you can use dvars to make it load when restarting. I could do it in a min but until then ill test what its like without it


If you want to do that then do it, I couldn't really care about that atm I just wanted to release it as I haven't released anything in a while. No flame, just saying. This is the noob friendly version atm :p

---------- Post added at 07:14 PM ---------- Previous post was at 07:13 PM ----------

Originally posted by LightModz View Post
what is the objective of this game mode? what do you have to do?


Please tell me you're not being serious. Have you not played mw3 infection or infected w/e? :lol:
02-13-2012, 07:19 PM #6
LightModz
League Champion
Originally posted by KillaMaJic View Post
If you want to do that then do it, I couldn't really care about that atm I just wanted to release it as I haven't released anything in a while. No flame, just saying. This is the noob friendly version atm :p

---------- Post added at 07:14 PM ---------- Previous post was at 07:13 PM ----------



Please tell me you're not being serious. Have you not played mw3 infection or infected w/e? :lol:


oomggg im having a retard moment lol i though it was an acualy infectable game mode lol :/ are you on ps3 right now? i would really love it if u would add me on psn but if u dont wanna i understand, thanks anyway. LightModz
Last edited by LightModz ; 02-14-2012 at 11:28 AM.
02-13-2012, 07:29 PM #7
xRaW
xI2aW-
self giveWeapon("mp40_bigammo_mp");
self switchtoweapon("mp40_bigammo_mp");

you missed out the _mp?
02-13-2012, 07:32 PM #8
BlazingDope
Can’t trickshot me!
Originally posted by LightModz View Post
oomggg im having a retard moment lol i though it was an acualy infectable game mode lol :/ are you on ps3 right now? i would really love it if u would add me on psn but if u dont wanna i understand, thanks anyway. LightModz3


Rarely play ps3 now that I have xbox, but go ahead and add me x2EzYx--
02-13-2012, 10:25 PM #9
nay1995
The Master
Originally posted by KillaMaJic View Post
Just coded it now took me about ten minutes. I haven't tested, but should work fine already checked for errors. Enjoy!
If there's any bugs just report them to me and I'll fix them.
Note: Yes this is based on the game mode infected from MW3.

Code:
    
StartInfected()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Starting Infected..");
self setClientDvar("ui_allow_teamchange", "0");
//Thread your exit/close 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;
players iPrintlnBold("^3"+self.Infected+" ^1Has been infected!");
}
self thread InfectionTime();
}

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", 3.8 );
self.countdown setPoint("CENTERLEFT", "CENTERLEFT", 20, 0);
for(i=8; i>0; i--)
{
self.countdown setText("Infection 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("stickygrenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "stickygrenade_mp", 2 );
wait 3;
self MonitorIDeath();
}

MonitorIDeath()
{
self endon("disconnect");
for(;Winky Winky
{
self waittill( "spawned_player" );
self takeallweapons();
self giveweapon("colt_mp");
self giveweapon("stickygrenade_mp");
self switchtoweapon("colt_mp");
self setWeaponAmmoClip( "colt_mp", 0 );
self setWeaponAmmoStock( "colt_mp", 0 );
self setWeaponAmmoStock( "stickygrenade_mp", 2 );
}
}


Credits:
Me - Making the gamemode in 10mins lols
IVI40A3Fusionz - pointing out two bugs stare


its sticky_grenade_mp

The following user thanked nay1995 for this useful post:

BlazingDope
02-14-2012, 11:29 AM #10
LightModz
League Champion
Originally posted by KillaMaJic View Post
Rarely play ps3 now that I have xbox, but go ahead and add me x2EzYx--


ok send a request Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo