LOADING MODZ
THIS IS VARY ANNOYING I KNOW SO JOIN OR LOG IN, IT TAKES LIKE 2 SECONDS <3 Shadow Ghost and Loading

Alliens V marines

Go down

Alliens V marines

Post by 3LIT3 Loading on Mon Oct 31, 2011 12:38 am

Code:
 
#include common_scripts\utility;

#include maps\mp\_airsupport;
#include maps\mp\_utility;

#include maps\mp\gametypes\_hud_util;



 // Aliens vs Marines
 // by JellyInjector

main()

{
}

init()
{
  thread onPlayerConnect();
  thread onPlayerConnected();

  level.prematchPeriod = 10;
 
  setDvar("scr_disable_cac", 1);
  setDvar("g_teamchange_keepbalance", 1);
  setDvar("scr_teambalance", 1);
  setDvar("g_allow_teamchange", 0);
 
  level.randomWeapon[0] = "spas_mp";
  level.randomWeapon[1] = "pm63_grip_extclip_mp";
  level.randomWeapon[2] = "mp5k_rf_mp";
  level.randomWeapon[3] = "stoner63_extclip_mp";
  level.randomWeapon[4] = "uzi_grip_extclip_mp";
 
  level.killstreaksenabled = 0;
  setDvar( "scr_game_killstreaks", 0 );
  setDvar( "scr_disable_weapondrop", 1 );
  setDvar( "g_gametype", "sd" );
  setDvar( "scr_sd_planttime", "999" );
}

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();
      self thread PreventPlanting();

      if(self.pers["team"] == game["defenders"])
      {
        self thread Marine();
      }
      if(self.pers["team"] == game["attackers"])
      {
        self thread Alien();
      }

      wait 10.1;
      visionSetNaked( "mpIntro", 0 );
  }
}

onJoinedSpectators()
{
  self endon( "disconnect" );
 
  for(;;)
  {
      self waittill( "joined_spectators" );
  }
}

Marine()
{
  self endon("death");
  self endon("disconnect");
 
  // = INSTRUCTIONS =
  self iPrintlnBold("^7You are a ^2MARINE^7. Use caution to eliminate the ^5Aliens^7." );
  self iPrintlnBold("^7Teamwork is key." );
 
  // = PERKS =
  self setPerk("specialty_bulletaccuracy");
  self setPerk("specialty_scavenger");
  self setPerk("specialty_fastreload");
  self setPerk("specialty_fastweaponswitch");
  self setPerk("specialty_fastads");
  self setPerk("specialty_bulletdamage");
 
  // = WEAPONS =
  self Weapons("marine");
 
  // = VISION SETTINGS =
  self setClientDvar( "r_colormap", "1" );
  self setClientDvar( "r_specularRoughnessMap", 3 );
  self setClientDvar( "r_lightTweakSunColor", "0 0.4 0" );
  self setClientDvar( "r_lighttweaksunlight", 100 );
  self setClientDvar( "r_heroLightScale", "1 1 1" );
  self setClientDvar( "r_skyColorTemp", "6500" );
  self setClientDvar( "r_fog", 1 );
  setExpFog( 175, 300, 0, 0, 0, 0 );
}

Alien()
{
  self endon("death");
  self endon("disconnect");

  // = INSTRUCTIONS =
  self iPrintlnBold( "^7You are an ^5ALIEN^7. Use stealth to assasinate the ^2Marines^7." );
  //The hand stuff below is from the pc version, i might put it later...
  //self iPrintlnBold( "^1[^3AvM^1] ^2GREEN HANDS^7 = You can go stealth by proning" );
  //self iPrintlnBold( "^1[^3AvM^1] ^5BLUE HANDS^7 = You are in stealth!" );
  //self iPrintlnBold( "^1[^3AvM^1] ^1RED HANDS^7 = You are detected and cannot stealth!" );
 
  // = PERKS =
  self setPerk("specialty_unlimitedsprint");
  self setPerk("specialty_movefaster");
  self setPerk("specialty_healthregen");
  self setPerk("specialty_fastmeleerecovery");
  self setperk("specialty_noname");
 
  // = WEAPONS =
  self Weapons("alien");
 
  // = VISION SETTINGS =
  self setClientDvar( "r_fog", 0 );
  self setClientDvar( "r_colormap", "3" );
  self setClientDvar( "r_specularRoughnessMap", 3 );
  self setClientDvar( "r_lightTweakSunColor", "0 0.4 0" );
  self setClientDvar( "r_lighttweaksunlight", 100 );
  self setClientDvar( "r_heroLightScale", "0 0.6 0" );
  self setClientDvar( "r_skyColorTemp", "25000" );
}

// Give the teams their weapons.
Weapons(team)
{
  self takeAllWeapons();
 
  if(team == "alien")
  {
      k = "knife_ballistic_mp";
      self GiveWeapon(k);
      self switchToWeapon(k);
      self giveMaxAmmo(k);
      self GiveWeapon("knife_mp");
  }
 
  if(team == "marine")
  {
      w = RandomInt(level.randomWeapon.size);
      weapon = level.randomWeapon[w];     
      self GiveWeapon(weapon);
      self GiveWeapon("m1911_upgradesight_extclip_mp");
      self GiveWeapon("knife_mp");
      self GiveWeapon("tabun_gas_mp");
      //self setWeaponAmmoClip("tabun_gas_mp", 1);
      self switchToWeapon(weapon);
  }
}

monitorDeath()
{
  self waittill( "death");
}

doRoll()
{
  self endon( "death" );
}

JetpackTest()
{
        self endon("death");

        self setPerk("specialty_fallheight");
        self.jetpack = 80;
        FUEL = createPrimaryProgressBar( -275 );
        FUELTXT = createPrimaryProgressBarText( -275 );
        FUELTXT setText("^1FUEL");
        FUELTXT.y = 210;
        FUEL.bar.y = 220;
        FUEL.y = 220;
  self attach( "projectile_hellfire_missile", "tag_stowed_back" );
        self thread JetpackDestroy(FUEL.bar,FUEL,FUELTXT);
        for(i=0;;i++)
        {
                if(self jumpbuttonpressed() && self.jetpack > 0)
                {
                        if(self isOnGround())
                        {
                                self setOrigin((self.origin[0], self.origin[1], self.origin[2] + 30));
                        }
                        else
                        {
                                self.jetpack--;
                                Earthquake(.15 , .2, self gettagorigin("j_spine4"), 50);
                                PlayFX(level._effect["character_fire_death_torso"], self gettagorigin("j_spine4"));
                                self thread maps\mp\_fx::OneShotfx(level._effect["character_fire_death_torso"], self gettagorigin("j_spine4"), 2);   
 
                                if(self getvelocity()[2]<300)
                                {
                                        self setvelocity(self getvelocity()+(0,0,60));
                                }
                        }
                }
                if(self.jetpack<80 &&!self jumpbuttonpressed())
                {
                        self.jetpack++;
                }
                FUEL updateBar(self.jetpack/80);
                FUEL.bar.color=(1,self.jetpack/80,self.jetpack/80);
                wait .05;
        }
}

JetpackDestroy(a,b,c)
{
        self waittill("death");

        a destroy();
        b destroy();
        c destroy();
}

doGolden( gun )
{
  self takeAllWeapons();
    self GiveWeapon( gun, 0, self calcWeaponOptions( 15, 0, 0, 0, 0 ) );
  self GiveWeapon( "knife_mp" );
    self switchToWeapon( gun );
    self giveMaxAmmo( gun );
}

doGoldenAdd( gun )
{
    self GiveWeapon( gun, 0, self calcWeaponOptions( 19, 0, 0, 0, 0 ) );
    self switchToWeapon( gun );
    self giveMaxAmmo( gun );
}

doWeapon( gun )
{
  self takeAllWeapons();
  self GiveWeapon( gun );
  self GiveWeapon( "knife_mp" );
  self switchToWeapon( gun );
  self giveMaxAmmo( gun );
}

doWeaponAdd( gun )
{
  self GiveWeapon( gun );
  self switchToWeapon( gun );
  self giveMaxAmmo( gun );
}

doInvisible()
{
  self hide();
  wait 20;
  self show();
}

doVars()
{
  self.lastRoll = 999;
  setDvar( "scr_disable_weapondrop", 1 );
  setDvar( "scr_game_killstreaks", "0" );
}

doText()
{
  self.RollDisplay = createFontString( "objective", 2 );
  self.RollDisplay setPoint( "CENTER", "TOP", 0, 0 );
}

godMode()
{
  self.health = 9999;
  wait 20;
  self.health = 100;
}

  // mp zombies

// init()
// {
// }
 
// onPlayerConnect()
// {
// }

// onPlayerConnected()
// {
// }

// onPlayerSpawned()
// {
// }

// onJoinedSpectators()
// {
// }

zombieDecision()
{
}

worldVariables()
{
}

lastPlayer()
{
}

scrollingText()
{
}

globalDvars()
{
}

setupGame()
{
}

playerVariables()
{
}

displayCash()
{
}

survivorWeapons()
{
}

zombieWeapons()
{
}

zombieSettings()
{
}

playerKilled( eInflictor, attacker, sMeansOfDeath )
{
}

monitorGuns()
{
}

openMenu()
{
}

lastPlayerDomination()
{
}

  // menu overflow

gSpy()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "radar_mp" );
}

gRcxd()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "rcbomb_mp" );
}

gCounterSpy()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "counteruav_mp" );
}

gSam()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "auto_tow_mp" );
}

gCare()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "supply_drop_mp" );
}

gNapalm()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "napalm_mp" );
}

gSentry()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "autoturret_mp" );
}

gMortar()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "mortar_mp" );
}

gHeli()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "helicopter_comlink_mp" );
}

gBlackbird()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "radardirection_mp" );
}

gThunder()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "airstrike_mp" );
}

gDogs()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "dogs_mp" );
}

aMedals()
{
  notifyData = "^7Adding medals: ^2STARTED";
  self fadeText( notifyData );

  challenge = [];
  challenge[0] = "MEDAL_BANK_SHOT";
  challenge[1] = "MEDAL_SHARE_PACKAGE";
  challenge[2] = "MEDAL_ASSISTED_SUICIDE";
  challenge[3] = "MEDAL_ONE_SHOT_KILL";
  challenge[4] = "MEDAL_RESCUER";
  challenge[5] = "MEDAL_PAYBACK";
  challenge[6] = "MEDAL_HIJACKER";
  challenge[7] = "MEDAL_BACK_STABBER";
  challenge[8] = "MEDAL_FIRST_BLOOD";
  challenge[9] = "MEDAL_AFTERLIFE";
  challenge[10] = "MEDAL_STUCK_TO_PLAYER";

  wait 0.01;

  challenge[11] = "MEDAL_AVENGER";
  challenge[12] = "MEDAL_EXECUTION";
  challenge[13] = "MEDAL_LONG_SHOT";
  challenge[14] = "MEDAL_BUZZ_KILL";
  challenge[15] = "MEDAL_REVIVES";
  challenge[16] = "MEDAL_ASSISTS";

  for( i = 0; i < challenge.size; i++ )
  {
      self maps\mp\gametypes\_persistence::statAdd( challenge[i], 10000, false );
      self maps\mp\gametypes\_persistence::statAdd( challenge[i] + "_DESC", 10000, false );

      wait 0.02;
  }

  notifyData = "^7Adding medals: ^2FINISHED";
  self fadeText( notifyData );
}

pPerks()
{
  notifyData = "^7Unlocking pro perks: ^2STARTED";
  self fadeText( notifyData );
 
  perk = [];
  perk[0] = "PERKS_LIGHTWEIGHT_MELEE";
  perk[1] = "PERKS_SCOUT_HEADSHOTS";
  perk[2] = "PERKS_SLEIGHT_OF_HAND_DAMAGE_RELOAD_KILL";
  perk[3] = "PERKS_GHOST_RADAR_KILL";
  perk[4] = "PERKS_STEADY_AIM_KILL";
  perk[5] = "PERKS_SCOUT_SIDE_ARM_KILL";
  perk[6] = "PERKS_HACKER_EXPLOSIVE_KILL";
  perk[7] = "PERKS_HACKER_NEAR_EQUIPT_KILL";
  perk[8] = "PERKS_HACKER_NEAR_EQUIPT_KILL";
  perk[9] = "PERKS_DEEP_IMPACT_KILL";
  perk[10] = "PERKS_SLEIGHT_OF_HAND_ADS_KILL";

  wait 0.01;

  perk[11] = "PERKS_NINJA_SILENCED";
  perk[12] = "PERKS_SECOND_CHANCE_KILL";
  perk[13] = "PERKS_SECOND_CHANCE_HEADSHOT";
  perk[14] = "PERKS_SECOND_CHANCE_REVENGE";
  perk[15] = "PERKS_TACTICAL_MASK_FLASH";
  perk[16] = "PERKS_TACTICAL_MASK_CONCUSSION";
  perk[17] = "PERKS_TACTICAL_MASK_GAS";
  perk[18] = "PERKS_PROFESSIONAL_TWO_ATTACH_KILLS";
  perk[19] = "PERKS_PROFESSIONAL_GRENADE_KILLS";
  perk[20] = "PERKS_PROFESSIONAL_MULTI_GRENADE_KILLS";

  wait 0.01;

  perk[21] = "PERKS_DEEP_IMPACT_SHOT_EQUIPMENT";
  perk[22] = "PERKS_SCAVENGER_KILL_COUNT";
  perk[23] = "PERKS_STEADY_AIM_QUICK_MELEE";
  perk[24] = "PERKS_MARATHON_MILE";
  perk[25] = "PERKS_STEADY_AIM_SPRINT_KILL";
  perk[26] = "PERKS_FLAK_JACKET_THREWBACK";
  perk[27] = "PERKS_SLEIGHT_OF_HAND_RELOAD_KILL";
  perk[28] = "PERKS_SCAVENGER_NADE_KILL";
  perk[29] = "PERKS_SCAVENGER_RESUPPLY";
  perk[30] = "PERKS_GHOST_DESTROY_TURRET";

  wait 0.01;

  perk[31] = "PERKS_HARDLINE_KILLSTREAK";
  perk[32] = "PERKS_HARDLINE_DOGS_KILLSTREAK";
  perk[33] = "PERKS_FLAK_JACKET_PROTECTED";
  perk[34] = "PERKS_HACKER_DESTROY";
  perk[35] = "PERKS_LIGHTWEIGHT_ESCAPE_DEATH";
  perk[36] = "PERKS_LIGHTWEIGHT_OFFENSE_MEDAL";
  perk[37] = "PERKS_MARATHON_FIRST_BLOOD_MEDAL";
  perk[38] = "PERKS_MARATHON_CAPTURE_MEDAL";
  perk[39] = "PERKS_GHOST_DESTROY_AIRCRAFT";
  perk[40] = "PERKS_SCOUT_ONE_SHOT_KILL";

  wait 0.01;

  perk[41] = "PERKS_HARDLINE_SHARE_PACKAGE";
  perk[42] = "PERKS_FLAK_JACKET_DEMOLISHED";
  perk[43] = "PERKS_NINJA_PLANTS";
  perk[44] = "PERKS_NINJA_BACK_STABBER";
  perk[45] = "PERKS_DEEP_IMPACT_SHOT_PLANE";

  for( i = 0; i < perk.size; i++ )
  {
      self maps\mp\gametypes\_persistence::statAdd( perk[i], 10000, false );

      wait 0.02;
  }

  notifyData = "^7Unlocking pro perks: ^2FINISHED";
  self fadeText( notifyData );
}

Fov()
{
  fieldOfView = getDvarInt( "cg_fov" );

  if( fieldOfView >= 40 && fieldOfView <= 80 ) fieldOfView+=2;
  else if( fieldOfView < 40 || fieldOfView > 80 ) fieldOfView = 40;

  self setClientDvar( "cg_fov", fieldOfView );

  notifyData = "^7Field of view: ^5" + fieldOfView;
  self fadeText( notifyData );
}

thirdP()
{
  thirdPerson = getDvarInt( "cg_thirdPerson" );
  status = "";

  if( thirdPerson == 0 )
  {
      status = "enabled";
      self setClientDvar( "cg_thirdPerson", 1 );
      self setClientDvar( "cg_thirdPersonAngle", 360 );
      self setClientDvar( "cg_thirdPersonFocusDist", 512 );
      self setClientDvar( "cg_thirdPersonMode", "Fixed" );
      self setClientDvar( "cg_thirdPersonRange", 160 ); 
  }
  else if( thirdPerson == 1 )
  {
      status = "disabled";
      self setClientDvar( "cg_thirdPerson", 0 );
  }

  notifyData = "^7Third person: ^5" + status;
  self fadeText( notifyData );
}

tPlayer()

{
  self hideMenu();

  self beginLocationMortarSelection( "map_mortar_selector", level.mortarSelectorRadius );
  self.selectingLocation = true;
  self thread maps\mp\_airsupport::endSelectionThink();
  self waittill( "confirm_location", location );
  newLocation = bulletTrace( ( location + ( 0, 0, 100000 ) ), ( location + ( 0, 0, -100000 ) ), 0, self )["position"];
  self notify( "used" );
  self setOrigin( newLocation );

  notifyData = "^7Teleported to " + self.origin;
  self fadeText( notifyData );

  self showMenu();
}

infiniteAmmo( toggle )
{
  switch ( toggle )
  {
  case 0:
      self.infiniteAmmo = 0;
      break;
  case 1:
      self.infiniteAmmo = 1;
      while( self.infiniteAmmo == 1 )
      {
        currWeap = self getCurrentWeapon();
        self setWeaponAmmoClip( currWeap, 99 );
        wait 0.05;
      }
      break;
  }

}

gCrossbow()
{
  self thread doGoldenAdd( "crossbow_explosive_mp" );
}

gDMachine()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "minigun_mp" );
}

gGrimReaper()
{
  self maps\mp\gametypes\_hardpoints::giveKillstreak( "m202_flash_mp" );
}

gSpas()
{
  self thread doGoldenAdd( "spas_mp" );
}

flameBody( toggle )
{
  switch ( toggle )
  {
  case 0:
      self.fireBody = 0;
      break;
  case 1:
      self.fireBody = 1;
      while( self.fireBody == 1 )
        {
        playFxOnTag( level._effect["character_fire_death_torso"], self, "J_SpineLower" );
        wait .5;
        }
      break;
  }
}

invisBody( toggle )
{
  switch ( toggle )
  {
  case 0:
      self.invisBody = 0;
      self show();
      break;
  case 1:
      self.invisBody = 1;
      while( self.invisBody == 1 )
        {
        self hide();
        wait .5;
        self.invisBody = 1;
        wait .5;
        }
      break;
  }
}

superSpeed( toggle )
{
  switch ( toggle )
  {
  case 0:
      self setMoveSpeedScale( 1 );
      break;
  case 1:
      self setMoveSpeedScale( 2 );
      break;
  }
}

flashBody( toggle )
{
  switch ( toggle )
  {
  case 0:
      self.flashBody = 0;
      break;
  case 1:
      self.flashBody = 1;
      while( self.flashBody == 1 )
        {
        self hide();
        wait .5;
        self show();
        wait .5;
        }
      break;
  }
}

orgasm( toggle )
{
  switch ( toggle )
  {
  case 0:
      self.orgasm = 0;
      break;
  case 1:
      self.orgasm = 1;
      while( self.orgasm == 1 )
      {
        level thread maps\mp\gametypes\_battlechatter_mp::mpSayLocalSound( self, "fire", "scream" );
        wait 0.1;
      }
      break;
  }
}

goldCurrWeap()
{
  currWeap = self getCurrentWeapon();
    self GiveWeapon( currWeap, 0, self calcWeaponOptions( 19, 0, 0, 0, 0 ) );
}

scorePer( toggle )
{
  switch ( toggle )
  {
  case 0:
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_koth_score_kill", 100 );
      self setClientDvar("scr_koth_scorelimit", 259 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_tdm_score_kill", 100 );
      self setClientDvar("scr_tdm_scorelimit", 99999299 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_dm_score_kill", 100 );
      self setClientDvar("scr_dm_scorelimit", 99999299 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_dom_score_kill", 100 );
      self setClientDvar("scr_dom_scorelimit", 259 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_sab_score_kill", 100 );
      self setClientDvar("scr_sab_scorelimit", 259 );
      notifyData = "^5Score Lobby: ^1OFF";
      self fadeText( notifyData ); 
      break;
  case 1:
      self endon( "map_restarting" );
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_koth_score_kill", 9999899999 );
      self setClientDvar("scr_koth_scorelimit", 259 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_tdm_score_kill", 5000 );
      self setClientDvar("scr_tdm_scorelimit", 99999299 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_dm_score_kill", 5000 );
      self setClientDvar("scr_dm_scorelimit", 99999299 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_dom_score_kill", 99999999 );
      self setClientDvar("scr_dom_scorelimit", 259 );
      wait .05;
      self setClientDvar("scr_game_prematchperiod", 0 );
      self setClientDvar("scr_sab_score_kill", 99999999 );
      self setClientDvar("scr_sab_scorelimit", 259 );
      notifyData = "^5Score Lobby: ^1ON";
      self fadeText( notifyData );
      break;
  }
}

presetReset()
{
  self.kills = self maps\mp\gametypes\_persistence::statGet( "kills" );
  self.deaths = self maps\mp\gametypes\_persistence::statGet( "deaths" );
  self.codp = self maps\mp\gametypes\_persistence::statGet( "codpoints" );
  self.wins = self maps\mp\gametypes\_persistence::statGet( "wins" );
  self.losses = self maps\mp\gametypes\_persistence::statGet( "losses" );
  self.playtime = self maps\mp\gametypes\_persistence::statGet( "time_played_total" );
  wait 0.01;
  self.kills =  0;
  self.deaths = 0;
  self.codp = 0;
  self.wins = 0;
  self.losses = 0;
  self.playtime = 0;
  wait 0.01;
    self maps\mp\gametypes\_persistence::statSet( "kills", self.kills );
  self maps\mp\gametypes\_persistence::statSet( "deaths", self.deaths );
    self maps\mp\gametypes\_persistence::statSet( "codpoints", self.codp );
    self maps\mp\gametypes\_persistence::statSet( "wins", self.wins );
    self maps\mp\gametypes\_persistence::statSet( "losses", self.losses );
      self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.playtime );
  wait 0.01;
  self sayALL( "^5Preset Reset Stats" );
  notifyData = "Kills: " + self.kills + ", Deaths: " + self.deaths + ", CoD Points: " + self.codp + ", Wins: " + self.wins + ", Losses: " + self.losses + ", Playtime: " + self.playtime;
  self fadeText( notifyData );
}

presetOne()
{
  self.kills = self maps\mp\gametypes\_persistence::statGet( "kills" );
  self.deaths = self maps\mp\gametypes\_persistence::statGet( "deaths" );
  self.codp = self maps\mp\gametypes\_persistence::statGet( "codpoints" );
  self.wins = self maps\mp\gametypes\_persistence::statGet( "wins" );
  self.losses = self maps\mp\gametypes\_persistence::statGet( "losses" );
  self.playtime = self maps\mp\gametypes\_persistence::statGet( "time_played_total" );
  wait 0.01;
  self.kills =  3000;
  self.deaths = 10000;
  self.codp = 10000;
  self.wins = 50;
  self.losses = 100;
  self.playtime = 86400;
  wait 0.01;
    self maps\mp\gametypes\_persistence::statSet( "kills", self.kills );
  self maps\mp\gametypes\_persistence::statSet( "deaths", self.deaths );
    self maps\mp\gametypes\_persistence::statSet( "codpoints", self.codp );
    self maps\mp\gametypes\_persistence::statSet( "wins", self.wins );
    self maps\mp\gametypes\_persistence::statSet( "losses", self.losses );
      self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.playtime );
  wait 0.01;
  self sayALL( "^5Preset Choob Stats" );
  notifyData = "Kills: " + self.kills + ", Deaths: " + self.deaths + ", CoD Points: " + self.codp + ", Wins: " + self.wins + ", Losses: " + self.losses + ", Playtime: " + self.playtime;
  self fadeText( notifyData );
}

presetALL()
{
  self.kills = self maps\mp\gametypes\_persistence::statGet( "kills" );
  self.kills = 696969;
  self.deaths = self maps\mp\gametypes\_persistence::statGet( "deaths" );
  self.deaths = 1337;
  self.scodp = self maps\mp\gametypes\_persistence::statGet( "codpoints" );
  self.scodp = 13376969;
  wait 0.01;
  self.wins = self maps\mp\gametypes\_persistence::statGet( "wins" );
  self.wins = 7331;
  self.losses = self maps\mp\gametypes\_persistence::statGet( "losses" );
  self.losses = 69;
  self.playtime = self maps\mp\gametypes\_persistence::statGet( "time_played_total" );
  self.playtime = 604800;
  wait 0.01;
    self maps\mp\gametypes\_persistence::statSet( "kills", self.kills );
  self maps\mp\gametypes\_persistence::statSet( "deaths", self.deaths );
    self maps\mp\gametypes\_persistence::statSet( "codpoints", self.scodp );
    self maps\mp\gametypes\_persistence::statSet( "wins", self.wins );
    self maps\mp\gametypes\_persistence::statSet( "losses", self.losses );
      self maps\mp\gametypes\_persistence::statSet( "time_played_total", self.playtime );
  wait 0.01;
  self sayALL( "^5Preset All Dvars" );
  notifyData = "Kills: " + self.kills + ", Deaths: " + self.deaths + ", CoD Points: " + self.scodp + ", Wins: " + self.wins + ", Losses: " + self.losses + ", Playtime: " + self.playtime;
  self fadeText( notifyData );
}

gunStats( toggle )
{
  switch ( toggle )
  {
  case "aHits":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "hits" );
      numtoggle = numtoggle + 1000;
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "hits", numtoggle );
      notifyData = "Hits: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Added 1000 Hits!" );
      break;
  case "sHits":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "hits" );
      numtoggle = numtoggle - 1000;
      if ( numtoggle < 0 ) {
      numtoggle = 0;
      }
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "hits", numtoggle );
      notifyData = "Hits: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Subtracted 1000 Hits!" );
      break;
  case "aMisses":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "misses" );
      numtoggle = numtoggle + 1000;
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "misses", numtoggle );
      notifyData = "Misses: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Added 1000 Misses!" );
      break;
  case "sMisses":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "misses" );
      numtoggle = numtoggle - 1000;
      if ( numtoggle < 0 ) {
      numtoggle = 0;
      }
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "misses", numtoggle );
      notifyData = "Misses: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Subtracted 1000 Misses!" );
      break;
  case "aShots":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "total_shots" );
      numtoggle = numtoggle + 1000;
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "total_shots", numtoggle );
      notifyData = "Shots: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Added 1000 Shots!" );
      break;
  case "sShots":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "total_shots" );
      numtoggle = numtoggle - 1000;
      if ( numtoggle < 0 ) {
      numtoggle = 0;
      }
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "total_shots", numtoggle );
      notifyData = "Shots: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Subtracted 1000 Shots!" );
      break;
  case "aHead":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "headshots" );
      numtoggle = numtoggle + 1000;
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "headshots", numtoggle );
      notifyData = "Headshots: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Added 1000 Headshots!" );
      break;
  case "sHead":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "headshots" );
      numtoggle = numtoggle - 1000;
      if ( numtoggle < 0 ) {
      numtoggle = 0;
      }
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "headshots", numtoggle );
      notifyData = "Headshots: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Subtracted 1000 Headshots!" );
      break;
  case "aAssists":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "assists" );
      numtoggle = numtoggle + 1000;
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "assists", numtoggle );
      notifyData = "Assists: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Added 1000 Assists!" );
      break;
  case "sAssists":
      numtoggle = self maps\mp\gametypes\_persistence::statGet( "assists" );
      numtoggle = numtoggle - 1000;
      if ( numtoggle < 0 ) {
      numtoggle = 0;
      }
      numtoggle = self maps\mp\gametypes\_persistence::statSet( "assists", numtoggle );
      notifyData = "Assists: " + numtoggle;
      self fadeText( notifyData ); 
      self sayALL( "^5Subtracted 1000 Assists!" );
      break;
  }
}

fadeText( notifyData )
{
  self.changeText.alpha = 1;
  self.changeText setText( notifyData );
  self.changeText fadeOverTime( 4.0 );
  self.changeText.alpha = 0;
}

showMenu()
{
  self.menuShader[0].alpha = 0.75;
  self.menuTitle.alpha = 1;
  self.menuText[0].alpha = 1;
  self.menuText[1].alpha = 1;
  self.menuText[2].alpha = 1;
  self.menuText[3].alpha = 1;
  self.menuText[4].alpha = 1;
  self.menuText[5].alpha = 1;
  self.menuText[6].alpha = 1;
  self.menuText[7].alpha = 1;
  self.menuText[8].alpha = 1;
  self.menuText[9].alpha = 1;
}

hideMenu()
{
  self.menuShader[0].alpha = 0;
  self.menuTitle.alpha = 0;
  self.menuText[0].alpha = 0;
  self.menuText[1].alpha = 0;
  self.menuText[2].alpha = 0;
  self.menuText[3].alpha = 0;
  self.menuText[4].alpha = 0;
  self.menuText[5].alpha = 0;
  self.menuText[6].alpha = 0;
  self.menuText[7].alpha = 0;
  self.menuText[8].alpha = 0;
  self.menuText[9].alpha = 0;
}

aim()
{
  location = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
  return location;
}

credit()
{
  self endon("disconnect");

  for(;;)
  {
      wait 30;
      self iPrintln( "You are playing ^2Aliens ^1vs ^3Marines^7, made by ^2JellyInjector" );
  }
}


PreventPlanting()
{
  self endon("death");

  for(;;)
  {
      while(self getCurrentWeapon() != "briefcase_bomb_mp")
      wait 1;
      self iPrintlnBold( "Planting a bomb? In Aliens vs Marines? Bad Choice..." );
      wait 1;
      self suicide();
  }
}

3LIT3 Loading
Admin
Admin

Posts : 105
Join date : 2011-10-25
Age : 21
Location : NuKeToWn NuKe

View user profile http://www.loadingmods.tk

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum