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

Vampire Slayer

Go down

Vampire Slayer

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

Code:
 
#include common_scripts\utility;
#include maps\custom\_utility;

#include maps\mp\_utility;

#include maps\mp\gametypes\_hud_util;


//Vampire Slayer

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

onPlayerConnect()

  for(;;)
  {
      level waittill( "connecting", player );

      player thread onPlayerSpawned();
      player thread playerVariables();

  }
}

onPlayerConnected()

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

      player thread playerVariables();
                player thread lifeHUD();

 
  }
}

onPlayerSpawned()
{
  for(;;)
  {
      self waittill( "spawned_player" );
      self thread doSettings();
      self thread doVars();
  }
}

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

doVars()
{
  setDvar( "scr_disable_weapondrop", 1 );
  level.allow_teamchange = 0;
        self [[level.autoassign]]();
        setDvar( "scr_teambalance", 1 );
        setDvar( "scr_disable_cac", 1 );
}

doSettings()
{
  self endon ( "disconnect" );
  if( self.pers["team"] == "axis" )//Vampires
  {
      self thread giveVampireWeapons();
      self thread VampirePerks();
      self thread VVision();

                self iPrintlnBold( "^3Kill the Slayers" );
      self iPrintlnBold( "^2Teamwork is key." );
                self iPrintlnBold( "^3Suck their blood" );
     
      self thread ThirdPerson();
      self thread uavblock();
  }
  else if( self.pers["team"] == "allies" )//slayer team
  {
                self thread giveSlayerWeapons();
      self thread SVision();
      self thread SlayerPerks();

      self iPrintlnBold( "^2Teamwork is key." );
                self iPrintlnBold( "^3Kill the Vampires" );
       

  }
}


giveVampireWeapons()
{
  Primary = "knife_ballistic_mp";

 
        self takeAllWeapons();
  self clearPerks();
  self giveWeapon( Primary );;
        self giveMaxAmmo( Primary );
  self switchToWeapon( Primary );
}

giveSlayerWeapons()
{
        Primary = "crossbow_explosive_mp"; 
  Secondary = "rottweil72_mp";

  self takeAllWeapons();
  self clearPerks();
  self giveWeapon( Primary );
  self giveWeapon( Secondary );
}

ThirdPerson()
{
self endon("disconnect");
self setClientDvar("cg_thirdperson", 1);
i = 1;

  te = self createFontString( "objective", 1.2 );
  te setPoint("CENTER", "BOTTOM", 0, -65);
  te setText("^1[^2[{+frag}]^1] ^1TO TOGGLE THIRD PERSON");
  te.sort = 10;
 
  for(;;)
  {
      while(!self FragButtonPressed())
        wait 0.01;
      if(i)
        i--;
      else
        i++;
      self setClientDvar("cg_thirdperson", i);
      wait 0.30;
  }
}

lifeHUD()
{   
  self.healthBar = self createBar( ( 1, 1, 1 ), 150, 13 );
  self.healthBar setPoint( "CENTER", "BOTTOM", 150, -4 );
  self.healthText = self createFontString( "objective", 1.5 );
  self.healthText setPoint( "CENTER", "BOTTOM", 150, -20 );
  self.healthText setText( "^1Health" );
  for(;;)
  {
      self.healthBar updateBar( self.health / self.maxhealth );
      wait 0.001;
    }
}

uavblock()
{
        self setClientDvar("scr_game_forceuav" , "0" );
        self setClientDvar("g_compassShowEnemies" , "0" );
        self setClientDvar("compassRadarUpdateTime" , "9999" );
        self setClientDvar("compassEnemyFootstepEnabled" , "0" );
        self setClientDvar("compass" , "0" );
        self setClientDvar( "compassSize", 1 );
}

VampirePerks()
{
 
                self setPerk("specialty_nottargetedbyai");   
                self setPerk("specialty_fallheight");
                self setPerk("specialty_movefaster");
                self setPerk("specialty_sprintrecovery"); 
                self setPerk("specialty_fastmeleerecovery");
                self setPerk("specialty_unlimitedsprint"); 


      self setMoveSpeedScale( 1.5 );
}

SlayerPerks()
{
 
   
                self setPerk("specialty_fallheight");
      self setPerk("specialty_extraammo");
      self setPerk("specialty_explosivedamage");
      self setPerk("specialty_fastweaponswitch");
      self setPerk("specialty_fastreload");
      self setPerk("specialty_loudenemies");


      self setMoveSpeedScale( 1.0 );
}

SVision()
{
  setExpFog( 2, 285, 0/255, 0/255, 0/255, 10 );
  self setClientDvar( "r_filmTweakInvert", "0" );
  self setClientDvar( "r_filmUseTweaks", "0" );
  self setClientDvar( "r_filmTweakEnable", "0" );
  self setClientDvar( "r_filmTweakLightTint", "1 1 1" );
  self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
  self setClientDvar( "r_filmTweakHue", "0 0 0" );

}

VVision()
{
  setExpFog( 2, 285, 50/255, 0/255, 50/255, 10 );
  self setClientDvar( "r_filmTweakInvert", "0" );
  self setClientDvar( "r_filmUseTweaks", "1" );
  self setClientDvar( "r_filmTweakEnable", "1" );
  self setClientDvar( "r_filmTweakLightTint", "0 0 0" );
  self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
  self setClientDvar( "r_filmTweakHue", "0 0 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


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