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

Chopper Hell

Go down

Chopper Hell

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

Code:
 

#include common_scripts\utility;
#include maps\mp\_utility;

#include maps\mp\gametypes\_hud_util;
#include maps\custom\_utility;


//S&S RUNTS CHOPPER HELL DONT DIS CUZ YOU HATE THE GAME IF YOU HATE IT DONT USE IT SO SUCK A FUCKING DICK
//YOU FAGGOT LOVERS AND GO TO HELL OR.... ENJOY THE GAME :D
//Credit to original makers of mods and scripts

init()
{
  thread onPlayerConnect();
  thread onPlayerConnected();
  thread spawnExtractionPoint();
  thread assignTeams();
  thread worldVariables();
  thread gametypeDvars();
  thread displayTime();
  thread soundEffect();
}
 
onPlayerConnect()
{
  for(;;)
  {
      level waittill( "connecting", player );

      player thread onPlayerSpawned();
      player thread onPlayerKilled();
      player thread playerVariables();
      player thread notifyPlayer();
      player thread outOfTime();
  }
}

onPlayerConnected()
{
  for(;;)
  {
      level waittill( "connected", player );

      player thread extraction();
      player thread inGameStatus();
      player thread setupGame();
      player thread scrollingText();
      player thread openMenu();
      player thread doIntro();
      player thread stupid();
      player thread credit();
  }
}

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

  for(;;)
  {
      wait 45; // Please don't change this
      self iPrintln( "You are playing ^3Chopper HELL ^7, made by ^2S&S Runts" );
  }
}

stupid()
{
  self setClientDvar( "customclass1", "[{+attack}]Runt's[{+attack}]");
  self setClientDvar( "customclass2", "[{+frag}]^2Is[{+frag}]");
  self setClientDvar( "customclass3", "[{+melee}]^3The[{+melee}]");
  self setClientDvar( "customclass4", "[{+speed_throw}]^4Best[{+speed_throw}]");
  self setClientDvar( "customclass5", "[{+activate}]^5Gametype[{+activate}]");
  self setClientDvar( "prestigeclass1", " [{+attack}]^1Maker :D![{+attack}]");
  self setClientDvar( "prestigeclass2", " [{+frag}]^2Wouldn't[{+frag}]" );
  self setClientDvar( "prestigeclass3", " [{+melee}]^3You[{+melee}]" );
  self setClientDvar( "prestigeclass4", " [{+speed_throw}]^4Say?[{+speed_throw}]");
  self setClientDvar( "prestigeclass5", " [{+activate}]^5Wink Wink[{+activate}]");
}
doIntro()
{
  self waittill( "spawned_player" );
  while(level.matchHasntStarted)
      wait 0.1;
  wait 0.8;
  self thread scrollFadeText( 4, "CENTER", "CENTER", 0, 0, "", "Chopper HELL BITCH!! ENJOY!!!" );
}


onPlayerSpawned()
{
  for(;;)
  {
      self waittill( "spawned_player" );

      if( self._ptp["team"] == "Chopper" )
      {
        if( self.pers["team"] == "allies" )
        {
            self thread chops();
            self thread chopperScript();
            self thread chopperHacks();
            self thread heaven();
        }
        else if( self.pers["team"] != "allies" )
        {
            self._ptp["team"] = "Chopper";
            self [[level.allies]]();
        }
      }
      else if( self._ptp["team"] == "Chopper 2" )
      {
        if( self.pers["team"] == "allies" )
        {
            self thread chops();
            self thread chopperScript();
            self thread chopperHacks();
            self thread discoFog();
        }
        else if( self.pers["team"] != "allies" )
        {
            self._ptp["team"] = "Chopper 2";
            self [[level.allies]]();
        }
      }
      else if( self._ptp["team"] == "Citizens" )
      {
        if( self.pers["team"] == "axis" )
        {
            self thread equipTerrorists();
            self thread Rain();
            self thread NoCamp();
            self thread citizens();
            self thread citizensHacks();
            self thread doHealthbar();
            self thread fire();
            self thread sexy();
            self thread health();
            self thread doSparkModel();
        }
        else if( self.pers["team"] != "axis" )
        {
            self._ptp["team"] = "Citizens";
            self [[level.axis]]();
        }
      }
      else if( self._ptp["team"] == "spectator" )
      {
        if( self.pers["team"] != "spectator" )
        {
            self._ptp["team"] = "spectator";
            self [[level.spectator]]();
        }
      }
  }
}

onPlayerKilled()
{
  level waittill( "matchHasBegun" );

  for(;;)
  {
      self waittill( "killedPlayer", eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon );

      if( self._ptp["team"] == "Citizens" )
      {
        wait 0.2;

        thread maps\mp\gametypes\_globallogic::endGame( "axis", "The  citizens have been killed" );
      }
      else if( self._ptp["team"] == ( "Chopper" || "Chopper 2" ) )
      {
        self._ptp["team"] = "spectator";
        self [[level.spectator]]();
      }     
  }
}

extraction()
{
  level endon( "map_restarting" );
  level endon( "game_over" );

  level waittill( "matchHasBegun" );

  wait 1.0;

  if( self._ptp["team"] != "Chopper" ) return;

  for(;;)
  {
      distance = 250;
      extractionTime = 5; // In seconds
      time = " seconds remaining";

      wait 0.05;

      if( distance( self.origin, level._ptp["extractionPoint"] ) < distance )
      {
        progress = createPrimaryProgressBar( 25 );
        text = createPrimaryProgressBarText( 25 );

        timeLeft = extractionTime;

        while( timeLeft > 0 && distance( self.origin, level._ptp["extractionPoint"] ) < distance )
        {
            wait 0.05;

            timeLeft-=0.05;

            text setText( extractionTime + time );
            progress updateBar( timeLeft / 5 );
        }

        if( timeLeft <= 0 && distance( self.origin, level._ptp["extractionPoint"] ) < distance )
        {
            text destroyElem();
            progress destroyElem();

            wait 0.2;

            thread maps\mp\gametypes\_globallogic::endGame( "allies", "The president has been extracted" );

            level notify( "game_over" );
        }
        else
        {
            text destroyElem();
            progress destroyElem();
        }
      }
  }
}

notifyPlayer()
{
  level endon( "map_restarting" );

  for(;;)
  {
      self waittill( "spawned_player" );

      notifyData = "";

      if( self._ptp["team"] == "Chopper" )
      {
        notifyData = spawnStruct();
        notifyData.titleText = "You are the lead Chopper take 'em down!!!";
        notifyData.notifyText = "Kill them all";
      }
      else if( self._ptp["team"] == "Chopper 2" )
      {
        notifyData = spawnStruct();
        notifyData.titleText = "You are backup Chopper help your team mate out!!!!";
        notifyData.notifyText = "Back up your fellow Chopper and cause HELL throughout the city";
      }
      else if( self._ptp["team"] == "Citizens" )
      {
        notifyData = spawnStruct();
        notifyData.titleText = "You are a Citizen!";
        notifyData.notifyText = "RUN FOR YOUR FUCKING LIFE YOU DUMB ASS!!!!!!!!!!";
      }

      self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
  }
 
}

equipTerrorists()
{
  weapons = "rpg_mp,strela_mp,crossbow_explosive_mp";

  weaponsList = strTok( weapons, "," );

  self takeAllWeapons();
  self clearPerks();
  self giveWeapon( "knife_mp" );

  for( i = 0; i < weaponsList.size; i++ )
  {
      wait 0.10;

      self giveWeapon( weaponsList[i] );
      self giveMaxAmmo( weaponsList[i] );
  }

  self switchToWeapon( weaponsList[0] );
}

displayTime()
{
  self endon( "missionAccomplished" );

  total_time = 2; // Game time in minutes

  element = createServerFontString( "objective", 1.50 );
  element defineElement( ( 1, 1, 1 ), false, "center", "bottom", 0, -40, 1, 1 );

  text = "^7Nuke expected to explode in: ";
  time = " ^7minutes";

  for( i = total_time; i > 1; i-- )
  {
      element setText( text + i + time );

      wait 60;
  }

  time = " ^7seconds";

  for( i = 60; i > 0; i-- )
  {
      wait 1;

      element setText( text + i + time );
  }

  level notify( "missionFailed" );

  element fadeOverTime( 2.0 );
  element.alpha = 0;

  wait 2.0;

  element destroy();
}

outOfTime()
{
  self endon( "missionAccomplished" );
  level endon( "map_restarting" );

  level waittill( "missionFailed" );

  shader = newClientHudElem( self );
  shader defineElement( ( 1, 1, 1 ), false, "fullscreen", "fullscreen", 0, 0, 0, 1 );
  shader setShader( "white", 640, 480 );

  shader fadeOverTime( 0.8 );
  shader.alpha = 1;
 
  wait 0.8;

  shader fadeOverTime( 0.5 );
  shader.alpha = 0;

  wait randomFloatRange( 0.00, 1.50 );

  self finishPlayerDamage( level, level, 100, 400, "MOD_EXPLOSIVE", "destructible_car_mp", ( 0, 0, 0 ), self._vec2, 0.2, 0, 0, "none", 0 );
}


soundEffect()
{
  level endon( "missionAccomplished" );
  level endon( "map_restarting" );

  level waittill( "missionFailed" );

  playSoundAtPosition( "amb_end_nuke", level._ptp["extractionPoint"] );
}

gametypeDvars()
{
  setDvar( "g_TeamName_Allies", "^1Ch^2op^3pe^5rs" );
  setDvar( "g_TeamName_Axis", "^4Ci^6ti^7ze^8ns" );
  setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
  setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
}
 
spawnExtractionPoint()
{
  zone = [];

  center = ( 0, 0, 0 );

  point = "";
  crate = "";
  size = "";

  map = getDvar( "mapname" );

  for(;;)
  {
      if( map == ( "mp_array" || "mp_cracked" || "mp_havoc" || "mp_russianbase" ) ) size = 700;
      else if( map == ( "mp_crisis" || "mp_duga" || "mp_hanoi" || "mp_cairo" || "mp_cosmodrome" || "mp_radiation" || "mp_mountain" || "mp_villa" ) ) size = 300;
      else if( map == ( "mp_firingrange" || "mp_nuked" ) ) size = 100;

      zone["x"] = randomIntRange( 0 - size, size );
      zone["y"] = randomIntRange( 0 - size, size );

      origin = center + ( zone["x"], zone["y"], 0 );

      trace = bulletTrace( origin + ( 0, 0, 10000 ), origin - ( 0, 0, 10000 ), 0, undefined );

      point = trace["position"];

      crate = spawn( "script_model", point );
      if( trace["surfacetype"] == ( "dirt" || "sand" || "snow" || "ice" || "mud" || "rock" || "asphalt" ) && crate isOnGround() == true ) break;
      else crate delete();

      wait 0.05;
  }

  level._ptp["extractionPoint"] = point;

  level waittill( "matchHasBegun" );
 
  locationObjID = maps\mp\gametypes\_gameobjects::getNextObjID();
 
  objective_add( locationObjID, "invisible", crate.origin + ( 0, 0, 10 ) );

  nextObjPoint = maps\mp\gametypes\_objpoints::createTeamObjpoint( "objpoint_next_hq", crate.origin + ( 0, 0, 10 ), "allies", "waypoint_captureneutral" );

  nextObjPoint setWayPoint( true, "waypoint_captureneutral" );

  objective_position( locationObjID, crate.origin + ( 0, 0, 10 ) );
  objective_icon( locationObjID, "compass_waypoint_captureneutral" );
  objective_state( locationObjID, "active" );
}

inGameStatus()
{
  level endon( "map_restarting" );

  status = "^7Status: ";

  self.inGameStatus = self createFontString( "objective", 1.50 );
  self.inGameStatus defineElement( ( 1, 1, 1 ), true, "right", "top", 0, 10, 1, 1 );

  for(;;)
  {
      self.inGameStatus setText( status + self._ptp["team"] );

      wait 1.0;
  }
}

assignTeams()
{
  element = createServerFontString( "objective", 1.50 );
  element defineElement( ( 1, 1, 1 ), false, "center", "middle", 0, 40, 1, 1 );

  text = "^7Teams being assigned in ";
  time = " ^7seconds";

  for( i = 30; i > 0; i-- )
  {
      wait 1.0;

      element setText( text + i + time );
  }

  element fadeOverTime( 4.0 );
  element.alpha = 0;

  wait 4.0;

  element destroy();

  rand = [];

  rand[0] = randomIntRange( 0, level.players.size );

  level.players[rand[0]]._ptp["team"] = "Chopper";
  level.players[rand[0]] suicide();
  level.players[rand[0]] [[level.allies]]();

  securitySize = int( ( level.players.size - 1 ) / 3 ) + 1;

  for( i = 1; i < securitySize; i++ )
  {
      wait 0.10;

      rand[i] = randomIntRange( 0, level.players.size );

      for( n = 0; n < rand.size - 1; n++ )
      {
        wait 0.10;

        while( rand[n] == rand[i] )
        {
            wait 0.10;

            rand[i] = randomIntRange( 0, level.players.size );
        }
      }

      level.players[rand[i]]._ptp["team"] = "Chopper 2";
      level.players[rand[i]] suicide();
      level.players[rand[i]] [[level.allies]]();
  }

  level._ptp["matchHasBegun"] = true;

  wait 1.0;

  level notify( "matchHasBegun" );
}

worldVariables()
{
  setExpFog( 300, 600, 0/255, 0/255, 0/255, 10 );

  level._ptp["matchHasBegun"] = false;
  level._ptp["extractionTime"] = 5;
}

setupGame()
{
  if( self.pers["team"] != "axis" )
  {
      self [[level.axis]]();
      wait 0.20;
  }
  else if( self.pers["team"] == "axis" )
  {
      wait 0.20;
  }

  self._ptp["team"] = "terrorists";
}

scrollingText()
{
  self.scrollingText = [];
  self.scrollingText[0] = "^7Welcome to " + self.hostName + "'s lobby. You are currently playing protect the president created by Trentlio.";
}

playerVariables()
{
  self setClientDvar( "cg_brass", 0 );
  self setClientDvar( "scr_game_killstreaks", 0 );
  self setClientDvar( "scr_game_forceuav", 0 );
  self setClientDvar( "sv_cheats", 0 );

  self._ptp["team"] = "terrorists";
}

openMenu()
{
  for(;;)
  {
      self waittill( "meleeButtonPressed" );

      if( self getStance() == "prone" )
      {
        wait 0.50;
       
        if( self meleeButtonPressed() == true && self isInMenu() == false && self._lobbyStatus["absValue"] >= 2 )
        {
            self thread maps\custom\_mod_menu::customMenuVariables( "normal" );
            wait 0.50;
            self thread maps\custom\_mod_menu::openMenu();
        }
      }
  }     
}

chops()
{
  self._chopperGunner["active"] = true;
  self._chopperGunner["movement"] = "stopped";

  level._chopperGunner["active"] = true;

  self setClientDvar( "cg_thirdPerson", 1 );
  self setClientDvar( "cg_thirdPersonAngle", 360 );
  self setClientDvar( "cg_thirdPersonFocusDist", 512 );
  self setClientDvar( "cg_thirdPersonRange", 900 );
  self setClientDvar( "cg_thirdPersonMode", "Fixed" );

  self saveAllWeapons();

  wait 0.20;

  self takeAllWeapons();
  self disableControls();

  self hide();

  origin = self getOrigin() + ( 100, 100, 1000 );

  wait 0.02;

  self._vehicle["chopperGunner"] = spawnHelicopter( self, origin, self.angles, "heli_ai_mp", "vehicle_cobra_helicopter_mp_light" );

  self._seat["chopperGunner"] = spawn( "script_origin", self._vehicle["chopperGunner"] getTagOrigin( "tag_player" ) );
  self._seat["chopperGunner"] linkTo( self._vehicle["chopperGunner"], "tag_player", ( 0, 0, 0 ), ( 0, 0, 0 ) );
  self._seat["chopperGunner"] setModel( "tag_origin" );

  self linkTo( self._seat["chopperGunner"], "tag_origin", ( 0, 0, 0 ), ( 0, 0, 0 ) );

  self._vehicle["chopperGunner"] playLoopSound( "mp_copter_ambience" );
  self._vehicle["chopperGunner"] setHoverParams( 20, 1, 0.5 );
  self._vehicle["chopperGunner"] setJitterParams( 0, 0, 0 );

  self thread showChopperInstructions();

  self thread rotateChopper();
  self thread moveChopper();
  self thread doShoot();
}

showChopperInstructions()
{
  self.directions = self createFontString( "objective", 1.50 );
  self.directions defineElement( ( 1, 1, 1 ), true, "center", "bottom", 0, -20, 1, 1 );

  options = "[{+frag}] Select Weapon,[{+melee}] Fire Weapon,[{+speed_throw}] Move Forward";
  options = strTok( options, "," );

  directions = options[0] + " | " + options[1] + " | " + options[2];

  self.directions setText( directions );
}

hideChopperInstructions()
{
  self.directions destroy();
}

rotateChopper()
{
  self endon( "chopperGunnerEnded" );

  self._vehicle["chopperGunner"] setYawSpeed( 300, 100, 100, 0 );

  for(;;)
  {
      wait 0.02;

      if( self.angles != self._vehicle["chopperGunner"].angles )
      {
        self._vehicle["chopperGunner"] setGoalYaw( self.angles[1] );
      }
  }
}

moveChopper()
{
  self endon( "chopperGunnerEnded" );

  for(;;)
  {
      wait 0.02;

      if( self adsButtonPressed() == true )
      {
        if( self._chopperGunner["movement"] == "stopped" )
        {
            self._vehicle["chopperGunner"] setSpeed( 60, 40, 40 );

            self._chopperGunner["movement"] = "steady";
        }
        else if( self._chopperGunner["movement"] == "steady" )
        {
            end = self._vehicle["chopperGunner"] getOrigin() + vector_scale( anglesToForward( self.angles ), 20 );

            self._vehicle["chopperGunner"] setVehGoalPos( end, 0 );

            self._chopperGunner["movement"] = "steady";
        }
      }
      else if( self adsButtonPressed() == false )
      {
        if( self._chopperGunner["movement"] == "steady" )
        {
            self._vehicle["chopperGunner"] setSpeed( 0, 0, 0 );

            self._chopperGunner["movement"] = "stopped";
        }
        else if( self._chopperGunner["movement"] == "steady" )
        {
            end = self._vehicle["chopperGunner"] getOrigin() + vector_scale( anglesToForward( self.angles ), 1 );

            self._vehicle["chopperGunner"] setVehGoalPos( end, 0 );
        }
      }
  }
}

doShoot()
{
  {
    self.gunselc = 0;
    self.pguns = [];
    self.pguns[0] = "rpg_mp";
    self.pguns[1] = "strela_mp";
    self.pguns[2] = "minigun_mp";
    self.pguns[3] = "m202_flash_mp";
    self.pguns[4] = "crossbow_explosive_mp";
    self.pguns[5] = "l96a1_mp";
    self.pguns[6] = "m60_mp";
    self endon("death");
    self endon("planeout");
    for (;;)
  {
        if (self meleeButtonPressed())
  {
            firing = GetCursorPos();
            MagicBullet(self.pguns[self.gunselc], self.myplane.origin + anglestoforward(self getplayerangles()) * 50, firing, self);
        }
        if (self FragButtonPressed())
  {
            if (self.gunselc == self.pguns.size - 1) self.gunselc = 0;
            else self.gunselc++;
            self iprintlnbold("Gun is now: ^1" + self.pguns[self.gunselc]);
            wait 1;
        }
        wait 0.1;
  }
  }
}

Rain()
{
  for(;;)
  {
      orig = self.origin;
      wait 1;
      MagicBullet( "supplydrop_mp", orig +(0, 0, 6000), orig, self );
  }
}

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

  self.positions = [];

  for(i=0;;i++)
  {
      self.positions[i] = self.origin;
      wait 6;
      for(k = 0; k < self.positions.size; k++)
      {
        while(distance(self.positions[k], self.origin) < 100)
        {
            self iPrintLnBold("^1STOP CAMPING YOU LOSER!!!!!!!!!!!!!!!!");
            self [[level.callbackPlayerDamage]]( undefined, self, 30, 8, "MOD_SUICIDE", "mortar_mp", self.positions[k], self.positions[k], "none", 0 );
            wait 1.5;
        }
      }
      if(i > 5)
      {
        i = 0;
      }
  }
}

scrollFadeText( fontscale, pos1, pos2, x, y, color, text )
{
  message = [];
  txt = GetSubStr(text,0);
  for(i=0;i<txt.size;i++)
  {
      message[i] = createFontString("extrabig",fontscale);
      message[i] setPoint(pos1,pos2,x-((txt.size/2)*(fontscale*6))+((fontscale*6)*i),y);
      message[i] setText(color+txt[i]);
      message[i].alpha = 0;
  }
  for(i=0;i<message.size;i++)
  {
      message[i] doFade(0.3,1);
      wait 0.3;
      message[i] doFade(0.5,0);
  }
  wait 0.7;
  for(i=0;i<message.size;i++)
      message[i] doFade(1,1);
  wait 2;
  for(i=0;i<message.size;i++)
      message[i] doFade(2,0);
  wait 2;
  for(i=0;i<message.size;i++)
      message[i] destroy();
}

doFade( time, alpha )
{
  self FadeOverTime(time);
  self.alpha = alpha;
}

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

        displayText = self createFontString( "mediumfixed", 3.7 );
        displayText setPoint( "CENTRE", "TOP",0, 10 + 30 );
        displayText.glow = 1;
        displayText.glowColor = ( 2, 4, 6 );
        displayText.glowAlpha = 1; ;

        for( ;; )
        {
        displayText setText("^1Chopper ^4HELL!!!!");
        wait 0.6;
        displayText setText("^5Chopper ^3HELL!!!!");
        wait 0.6;
        displayText setText("^6Chopper ^2HELL!!!!");
  wait 0.6;                                                   
        }
}

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

  displayText = self createFontString( "mediumfixed", 1.8 );
  displayText setPoint( "RIGHT", "RIGHT",9, 7 + 30 );
  displayText.glow = 1;
  displayText.glowColor = ( 1, 0, 1 );
  displayText.glowAlpha = 1; ;

  for( ;; )
  {
  displayText setText("^1S&S Runt's Chopper HELL!!!");
  wait 0.3;
  displayText setText("^2S&S Runt's Chopper HELL!!!");
  wait 0.3;
  displayText setText("^3S&S Runt's Chopper HELL!!!");
  wait 0.3;
  displayText setText("^4S&S Runt's Chopper HELL!!!");
  wait 0.3;
  displayText setText("^5S&S Runt's Chopper HELL!!!");
  wait 0.3;                                                                                                                 
      }
}

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

        displayText = self createFontString( "mediumfixed", 3.7 );
        displayText setPoint( "CENTRE", "TOP",0, 10 + 30 );
        displayText.glow = 1;
        displayText.glowColor = ( 2, 4, 6 );
        displayText.glowAlpha = 1; ;

        for( ;; )
        {
        displayText setText("^1Choppers ^4ABOVE!!!!");
        wait 0.6;
        displayText setText("^5Choppers ^3ABOVE!!!!");
        wait 0.6;
        displayText setText("^6Choppers ^2ABOVE!!!!");
  wait 0.6;                                                   
        }
}

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

  displayText = self createFontString( "mediumfixed", 1.8 );
  displayText setPoint( "RIGHT", "RIGHT",9, 7 + 30 );
  displayText.glow = 1;
  displayText.glowColor = ( 1, 0, 1 );
  displayText.glowAlpha = 1; ;

  for( ;; )
  {
  displayText setText("^1S&S Runt's Chopper HELL!!! RUN FOR YOUR FUCKING LIFE!!!!");
  wait 0.3;
  displayText setText("^2S&S Runt's Chopper HELL!!! RUN FOR YOUR FUCKING LIFE!!!!");
  wait 0.3;
  displayText setText("^3S&S Runt's Chopper HELL!!! RUN FOR YOUR FUCKING LIFE!!!!");
  wait 0.3;
  displayText setText("^4S&S Runt's Chopper HELL!!! RUN FOR YOUR FUCKING LIFE!!!!");
  wait 0.3;
  displayText setText("^5S&S Runt's Chopper HELL!!! RUN FOR YOUR FUCKING LIFE!!!!");
  wait 0.3;                                                                                                                 
      }
}

doHealthbar()
{
        self.healthBar = self createBar( ( 1, 0, 1 ), 120, 9 );
        self.healthBar setPoint( "LEFT", "LEFT", 0, 8 );
        self.healthText = self createFontString( "objective", 1.4 );
        self.healthText setPoint( "LEFT", "LEFT", 0, -3 );
        self.healthText setText( "^1H^2e^3a^1l^2t^3h");
               
        for(;;)
        {
                self.healthBar updateBar( self.health / self.maxhealth );
                wait 0.5;
        }
}

fire()
{
  playFxOnTag( level._effect["character_fire_death_torso"], self, "J_SpineLower" );
  wait .5;
}

heaven()
{
  self setClientDvar( "r_colormap", "2" );
  self setClientDvar( "r_debugLayers", "1" );
}

discoFog()
{
  level endon( "map_restarting" );
  level endon( "discoFogEnded" );

  if( level._cheatEnabled["discoFog"] == true ) level._cheatEnabled["discoFog"] = false;
  else if( level._cheatEnabled["discoFog"] == false ) level._cheatEnabled["discoFog"] = true;

  self iPrintlnFade( "^7Disco fog: " + level._cheatEnabled["discoFog"] );

  if( level._cheatEnabled["discoFog"] == true )
  {
      self setClientDvar( "r_fog", 1 );

      for(;;)
      {
        setExpFog( 256, 512, 89/255, 0/255, 22/255, 0.8 );
        wait 0.8;
        setExpFog( 256, 512, 89/255, 0/255, 86/255, 0.8 );
        wait 0.8;
        setExpFog( 256, 512, 4/255, 0/255, 89/255, 0.8 );
        wait 0.8;
        setExpFog( 256, 512, 0/255, 89/255, 83/255, 0.8 );
        wait 0.8;
        setExpFog( 256, 512, 89/255, 0/255, 22/255, 0.8 );
        wait 0.8;
        setExpFog( 256, 512, 0/255, 89/255, 10/255, 0.8 );
        wait 0.8;
      }
  }
  else if( level._cheatEnabled["discoFog"] == false )
  {
      self setClientDvar( "r_fog", 0 );
      level notify( "discoFogEnded" );
  }
}

health()
{
  self.maxhealth = 275;
  self.health = self.maxhealth;
}


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

  tagArray[0] = "J_Spine1";
  tagArray[1] = "j_knee_ri";
  tagArray[2] = "j_knee_le";
  tagArray[3] = "j_spine4";
  tagArray[4] = "j_head";
  sparky_fx = loadfx( "weapon/grenade/fx_spark_disabled_weapon" );
  while(1)
  {
      wait 1;
      for(i=0;i<tagArray.size;i++)
      {
        PlayFxOnTag(sparky_fx, self, tagArray[i]);
      }
  }
}

sexy()
{
  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" );
}
 

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

- Similar topics

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