0


MADE BY Trench6 and TheNiovi
-Replace the script in zombie.gsc with this one!!
This is based around zombie mod but is quite different. Nerds start with a different gun, Nerds have time to hide from the Bullies and in the ''zombiemodmenu'' there is now a spawn suitcase function after that the suit case acts as a Sentry Gun (for the Nerds only). You can also pull out a computer screen by holding 1+2+C and that shows the nerds where the bullies are!#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include maps\custom\_utility;
init()
{
thread onPlayerConnect();
thread onPlayerConnected();
thread waittillLastPlayer();
thread zombieDecision();
thread globalDvars();
thread worldVariables();
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );
player thread onPlayerSpawned();
player thread onPlayerKilled();
player thread playerVariables();
}
}
onPlayerConnected()
{
for(;;)
{
level waittill( "connected", player );
player thread displayCash();
player thread setupGame();
player thread scrollingText();
player thread openMenu();
}
}
onPlayerSpawned()
{
for(;;)
{
self waittill( "spawned_player" );
if( self._zombies["team"] == "survivor" )
{
if( self.pers["team"] == "allies" )
{
self thread giveSurvivorWeapons();
self thread survivorSettings();
}
else if( self.pers["team"] != "allies" )
{
self._zombies["team"] = "survivor";
self [[level.allies]]();
}
}
else if( self._zombies["team"] == "zombie" )
{
if( self.pers["team"] == "axis" )
{
self thread giveZombieWeapons();
self thread zombieSettings();
self thread lastGun();
}
else if( self.pers["team"] != "axis" )
{
self._zombies["team"] = "zombie";
self [[level.axis]]();
}
}
}
}
onPlayerKilled()
{
for(;;)
{
self waittill( "killedPlayer", eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon );
if( self._zombies["team"] == "survivor" && attacker._zombies["team"] == "zombie" )
{
if( self._zombies["livesRemaining"] == 0 )
{
self._zombies["team"] = "zombie";
self [[level.axis]]();
wait 0.20;
}
else if( self._zombies["livesRemaining"] > 0 )
{
self._zombies["livesRemaining"]--;
wait 0.20;
}
}
else if( self._zombies["team"] == "zombie" && attacker._zombies["team"] == "survivor" )
{
if( attacker._zombies["livesRemaining"] == 0 )
{
attacker._zombies["cash"] = attacker._zombies["cash"] + ( 200 * level._zombies["cashFlow"] );
wait 0.20;
}
else if( attacker._zombies["livesRemaining"] > 0 )
{
attacker._zombies["cash"] = attacker._zombies["cash"] + ( 1000 * level._zombies["cashFlow"] );
wait 0.20;
}
}
}
}
waittillLastPlayer()
{
for(;;)
{
wait 1.0;
if( level._zombies["matchHasBegun"] == true && level.playerCount["allies"] == 1 && level._zombies["lastSurvivorSatisfied"] == false )
{
for( i = 0; i < level.players.size; i++ )
{
wait 0.05;
if( level.players[i]._zombies["team"] == "survivor" && level.players[i].pers["team"] == "allies" )
{
level.players[i] thread lastPlayerDomination();
level._zombies["lastSurvivorSatisfied"] = true;
break;
}
}
}
else if( level._zombies["matchHasBegun"] == true && level.playerCount["allies"] == 0 && level._zombies["lastSurvivorSatisfied"] == true )
{
wait 2.0;
thread maps\mp\gametypes\_globallogic::forceEnd( false );
break;
}
}
}
zombieDecision()
{
zombiesStartText = createServerFontString( "objective", 1.50 );
zombiesStartText defineElement( ( 1, 1, 1 ), false, "center", "middle", 0, 40, 1, 1 );
timeRemaining = "^7Nerd being picked in ";
seconds = " ^7seconds";
for( i = 30; i > 0; i-- )
{
wait 1.0;
zombiesStartText setText( timeRemaining + i + seconds );
}
zombieChosen = "^1Kill the nerd before he infects you!!";
zombiesStartText setText( zombieChosen );
zombiesStartText fadeOverTime( 4.0 );
zombiesStartText.alpha = 0;
wait 4.0;
zombiesStartText destroy();
rand = randomIntRange( 0, level.players.size );
level.players[rand]._zombies["team"] = "zombie";
level.players[rand] suicide();
level.players[rand] [[level.axis]]();
wait 0.20;
level._zombies["matchHasBegun"] = true;
}
globalDvars()
{
setDvar( "g_TeamName_Allies", "^1Bullies" );
setDvar( "g_TeamName_Axis", "^2Nerds" );
setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
}
worldVariables()
{
setExpFog( 2, 285, 74/255, 7/255, 14/255, 10 );
level._zombies["cashFlow"] = 1;
level._zombies["doublePoints"] = false;
level._zombies["matchHasBegun"] = false;
level._zombies["nukeInAction"] = false;
level._zombies["lastSurvivorSatisfied"] = false;
level._zombies["lastgun"] = 0;
}
setupGame()
{
if( self.pers["team"] != "allies" )
{
self [[level.allies]]();
wait 0.20;
}
else if( self.pers["team"] == "allies" )
{
wait 0.20;
}
self._zombies["team"] = "survivor";
}
displayCash()
{
cash = "^7Cash: ^2";
self.displayCash = self createFontString( "objective", 1.50 );
self.displayCash defineElement( ( 1, 1, 1 ), false, "right", "top", 0, 10, 1, 1 );
while( 1 )
{
self.displayCash setText( cash + self._zombies["cash"] );
wait 1.0;
}
}
scrollingText()
{
self.scrollingText = [];
self.scrollingText[0] = "^7Welcome to " + self.hostName + "'s lobby. You are currently playing Bullies vs Nerds mod by Trench6 (eliitez).";
self.scrollingText[1] = "^2Objective:^7 Kill all Nerd before they infect you!";
self.scrollingText[2] = "^7To access the Libery Store, crouch and hold [{+melee}]. [{+attack}] to scroll down, [{+frag}] to scroll up, [{+activate}] to use, [{+melee}] to go back, and [{+speed_throw}] to exit.";
}
playerVariables()
{
self setClientDvar( "cg_brass", 0 );
self setClientDvar( "g_maxDroppedWeapons", 0 );
self setClientDvar( "scr_game_killstreaks", 0 );
self setClientDvar( "scr_game_forceuav", 0 );
self setClientDvar( "sv_cheats", 0 );
self._zombies["livesRemaining"] = 0;
self._zombies["team"] = "survivor";
self._zombies["cash"] = 20000;
}
giveSurvivorWeapons()
{
startingWeapon = "mp5k_mp";
knife = "knife_mp";
self takeAllWeapons();
self clearPerks();
self giveWeapon( startingWeapon );
self giveWeapon( knife );
self giveMaxAmmo( startingWeapon );
self switchToWeapon( startingWeapon );
}
giveZombieWeapons()
{
zombieWeapon = "m1911dw_mp";
zombieKnife = "knife_mp";
self takeAllWeapons();
self clearPerks();
self giveWeapon( zombieWeapon );
self giveWeapon( zombieKnife );
self giveMaxAmmo( zombieWeapon );
self switchToWeapon( zombieWeapon );
}
zombieSettings()
{
self setClientDvar( "r_exposureTweak", 1 );
self setClientDvar( "r_exposureValue", 15 );
self setMoveSpeedScale( 1.8 );
}
survivorSettings()
{
self setClientDvar( "r_exposureTweak", 0 );
self setMoveSpeedScale( 1.0 );
}
monitorGuns()
{
self endon( "death" );
for(;;)
{
self waittill( "weapon_change" );
if( self getCurrentWeapon() != "m1911dw_mp" )
{
self takeAllWeapons();
self giveWeapon( "m1911dw_mp" );
self giveWeapon( "knife_mp" );
self giveMaxAmmo( "m1911dw_mp" );
self switchToWeapon( "m1911dw_mp" );
self thread lastGun();
}
}
}
openMenu()
{
for(;;)
{
self waittill( "meleeButtonPressed" );
if( self getStance() == "crouch" )
{
wait 0.50;
if( self meleeButtonPressed() == true && self isInMenu() == false && self._zombies["team"] != "zombie" )
{
self.selectedMenu = "Bullies";
self thread maps\custom\_mod_menu::customMenuVariables();
wait 0.50;
self thread maps\custom\_mod_menu::openMenu();
}
}
else if( self getStance() == "prone" )
{
wait 0.50;
if( self meleeButtonPressed() == true && self isInMenu() == false && self.lobbyStatus["Absolute Value"] >= 2 )
{
self.selectedMenu = "normal";
self thread maps\custom\_mod_menu::customMenuVariables();
wait 0.50;
self thread maps\custom\_mod_menu::openMenu();
}
}
}
}
lastGun()
{
if( level._zombies["lastgun"] == 1 )
{
self thread maps\custom\_mod_menu::BigexplosiveBullets();
self giveWeapon( "crossbow_explosive_mp" );
self giveMaxAmmo( "crossbow_explosive_mp" );
self switchToWeapon( "crossbow_explosive_mp" );
}
else if( level._zombies["lastgun"] == 0 )
{
self thread monitorGuns();
}
}
lastPlayerDomination()
{
level._zombies["lastgun"] = 1;
self thread maps\custom\_mod_menu::discoFog();
self thread maps\custom\_mod_menu::nuke();
self thread maps\custom\gametypes\_hardpoints::chopperGunner() ;
}
TEAMWORK IS NEEDED
Last edited by Requests; 06-01-2011 at 11:57 AM.
Damn! This is awesome!
This is a pretty fun sounding mod. Good job! Too bad I don't mod because I don't have a flash drive/disk with enough space for the iso.
Anybody wanna make a video of this?
DJ smiles im on it![]()
I have a 4 gig flash drive but I just can't take the risk of downloading the iso. I can't afford to have my computer break from too many viruses.....again! Just got it fixed 2 days ago. I can only download if it is 100% virus free also I don't want to wait forever for it to download.
Bookmarks