1 [SC7E52] Army Vs Ghetto By eXtr3m3 and Russ 31/8/2012, 1:13 am
Skittles
- Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
// Ghetto Vs Army
//
// Made BY eXtr3m3 idea by S&S Runts
//
init()
{
thread onPlayerConnect();
thread onPlayerConnected();
level.prematchPeriod = 5;
setDvar("scr_disable_cac", 1);
setDvar("g_teamchange_keepbalance", 1);
setDvar("scr_teambalance", 1);
setDvar("g_allow_teamchange", 0);
level.killstreaksenabled = 0;
setDvar( "scr_game_killstreaks", 0 );
setDvar( "scr_disable_weapondrop", 1 );
self setClientDvar( "scr_game_forceuav", "0" );
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );
player thread onPlayerSpawned();
player thread onJoinedSpectators();
}
}
onPlayerConnected()
{
for(;;)
{
level waittill( "connected", player );
player thread credit();
wait level.prematchPeriod;
visionSetNaked( "mpIntro", 0 );
}
}
onPlayerSpawned()
{
for(;;)
{
self waittill( "spawned_player" );
self clearPerks();
if(self.pers["team"] == game["defenders"])
{
self thread Ghetto();
}
if(self.pers["team"] == game["attackers"])
{
self thread Army();
}
wait 10.1;
visionSetNaked( "mpIntro", 0 );
}
}
onJoinedSpectators()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "joined_spectators" );
}
}
Ghetto()
{
self endon("death");
self endon("disconnect");
// = INSTRUCTIONS =
self iPrintlnBold("^7You are a ^2Ghetto^7. Use caution to eliminate the ^5Army^7." );
// = PERKS =
self setPerk("specialty_bulletpenetration");
self setPerk("specialty_bulletdamage");
self setPerk("specialty_bulletflinch");
self setPerk("specialty_shellshock");
self setPerk("specialty_unlimitedsprint");
self setPerk("specialty_movefaster");
self setPerk("specialty_fallheight");
// = WEAPONS =
self Weapons("Ghetto");
// = VISION =
self Vision("Ghetto");
// speed
self setMoveSpeedScale( 1.0 );
}
Army()
{
self endon("death");
self endon("disconnect");
// = INSTRUCTIONS =
self iPrintlnBold( "^7You are an ^5Army^7. take out the ^2Ghetto's^7." );
// = PERKS =
self setPerk("specialty_flakjacket");
self setPerk("specialty_explosivedamage");
self setPerk("specialty_grenadepulldeath");
self setPerk("specialty_fireproof");
self setPerk("specialty_bulletaccuracy");
self setPerk("specialty_sprintrecovery");
self setPerk("specialty_fastmeleerecovery");
self setPerk("specialty_showenemyequipment");
self setPerk("specialty_nomotionsensor");
self setPerk("specialty_disarmexplosive");
self setPerk("specialty_detectexplosive");
self setPerk("specialty_delayexplosive");
// = WEAPONS =
self Weapons("Army");
// = VISION =
self Vision("Army");
// speed
self setMoveSpeedScale( 1.0 );
}
// Give the teams their weapons.
Weapons(team)
{
self takeAllWeapons();
if(team == "Ghetto")
{
a = "m1911dw_mp";
b = "knife_ballistic_mp";
self GiveWeapon(a);
self switchtoweapon(a);
self GiveWeapon(b);
self giveMaxAmmo(a);
self giveMaxAmmo(b);
}
if(team == "Army")
{
c = "ak47_elbit_mp";
d = "g11_vzoom_mp";
self GiveWeapon(c);
self switchtoweapon(c);
self GiveWeapon(d);
self giveMaxAmmo(c);
self giveMaxAmmo(d);
}
}
// Give the teams their visions.
Vision(team)
{
if(team == "Ghetto")
{
self setClientDvar("r_specularcolorscale", 0);
self setClientDvar("r_enablePlayerShadow", 0 );
self setClientDvar("r_fog", 0 );
self setClientDvar("r_flashLightShadows", 0 );
self setClientDvar("r_specular", "1" );
self setClientDvar("r_contrast", "1" );
self setClientDvar("r_dlightLimit", 0);
self setClientDvar("r_desaturation", 0);
self setClientDvar("r_zfeather", 0);
self setClientDvar("r_smc_enable", 0);
self setClientDvar("r_distortion", 0);
self setClientDvar("sm_enable", 0);
self setClientDvar("cg_brass", 0 );
self setClientDvar("r_lighttweaksunlight", "1.57" );
self setClientDvar("r_dlightLimit", "0" );
self setClientDvar("snaps", 30 );
self setClientDvar("r_filmusetweaks", "1" );
self setClientdvar("r_brightness", "0" );
self setClientDvar("r_dlightLimit", "0" );
self setClientDvar("r_heroLighting ", "0" );
}
if(team == "Army")
{
self setClientDvar("r_specularcolorscale", 0);
self setClientDvar("r_enablePlayerShadow", 0 );
self setClientDvar("r_fog", 0 );
self setClientDvar("r_flashLightShadows", 0 );
self setClientDvar("r_specular", "1" );
self setClientDvar("r_contrast", "1" );
self setClientDvar("r_dlightLimit", 0);
self setClientDvar("r_desaturation", 0);
self setClientDvar("r_zfeather", 0);
self setClientDvar("r_smc_enable", 0);
self setClientDvar("r_distortion", 0);
self setClientDvar("sm_enable", 0);
self setClientDvar("cg_brass", 0 );
self setClientDvar("r_lighttweaksunlight", "1.57" );
self setClientDvar("r_dlightLimit", "0" );
self setClientDvar("snaps", 30 );
self setClientDvar("r_filmusetweaks", "1" );
self setClientdvar("r_brightness", "0" );
self setClientDvar("r_dlightLimit", "0" );
self setClientDvar("r_heroLighting ", "0" );
}
}
credit()
{
self endon("disconnect");
for(;;)
{
wait 30;
self iPrintln( "You are playing ^2Army ^1vs ^3Ghettos^7, modded by and idea ^5S&S Runts ^7And ^2eXtr3m3." ); //Yeah I get no creds in svs 4 wtf?
}
}