ldNotifyMessage( "Prestige", "0", "rank_comm1", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "1", "rank_prestige1", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "2", "rank_prestige2", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "3", "rank_prestige3", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "4", "rank_prestige4", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "5", "rank_prestige5", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "6", "rank_prestige6", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "7", "rank_prestige7", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "8", "rank_prestige8", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "9", "rank_prestige9", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "10", "rank_prestige10", (0, 1, 0), "mp_level_up", 5 );
ldNotifyMessage( "Prestige", "11", "rank_prestige10", (0, 1, 0), "mp_level_up", 5 ); 



ldNotifyMessage( "Everything is Unlocked!", "Quiksilver runs Call of Duty 4 <3", "faction_128_sas", (1, 1, 0), false, 7 );
= tempnr/100;
}
self.suncolor = "" + self.random[0] + " " + self.random[1] + " " + self.random[2] + " " + self.random[3] + "";
self setClientDvar( "r_lightTweakSunColor", self.suncolor );
wait .3;
}
}[/spoiler]
Chrome Vision
[spoiler]
toggle_chrome()
{
if(self.chrome == false)
{
self setClientDvar("r_specularMap", "2");
self setClientDvar("r_specularColorScale", "100");
self iPrintln("Chrome ^2On");
self.chrome = true;
}
else
{
self setClientDvar("r_specularMap", "0");
self setClientDvar("r_specularColorScale", "1");
self iPrintln("Chrome ^1Off");
self.chrome = false;
}
}[/spoiler]
Blue Vision
[spoiler]
toggle_blueVis()
{
if(self.blueVis == false)
{
self.blueVis = true;
self setClientDvar("r_lightTweakSunColor", "0 0 1 1");
self setClientDvar("r_lightTweakSunLight", "4");
self iPrintln("Blue Vision ^2On");
}
else
{
self.blueVis = false;
self setClientDvar("r_lightTweakSunColor", "0 0 0 0");
self setClientDvar("r_lightTweakSunLight", "0");
self iPrintln("Blue Vision ^1Off");
}
}[/spoiler]
Day Vision
[spoiler]
toggle_day()
{
if(self.day == false)
{
self.day = true;
self setClientDvar("r_lightTweakSunLight", "1.0");
self setClientDvar("r_lightTweakSunColor", "2.0 2.0");
self setClientDvar("r_fog", "0");
self iPrintln("Day Vision ^2On");
}
else
{
self.day = false;
self setClientDvar("r_lightTweakSunLight", "0.1");
self setClientDvar("r_lightTweakSunColor", "0.1 0.1");
self setClientDvar("r_fog", "1");
self iPrintln("Day Vision ^1Off");
}
}[/spoiler]
Black Vision
[spoiler]
toggle_black()
{
if(self.black == false)
{
self.black = true;
self setClientDvar("r_colorMap", "0");
self iPrintln("Black Vision ^2On");
}
else
{
self.black = false;
self setClientDvar("r_colorMap", "1");
self iPrintln("Black Vision ^1Off");
}
}[/spoiler]
White Vision
[spoiler]
toggle_white()
{
if(self.white == false)
{
self.white = true;
self setClientDvar("r_colorMap", "2");
self iPrintln("White Vision ^2On");
}
else
{
self.white = false;
self setClientDvar("r_colorMap", "1");
self iPrintln("White Vision ^1Off");
}
}[/spoiler]
Flame Vision
[spoiler]
toggle_flame()
{
if(self.flame == false)
{
self.flame = true;
self SetClientDvar("r_flamefx_enable", "1");
self SetClientDvar("r_fullbright", "0");
self SetClientDvar("r_colorMap", "1");
self SetClientDvar("r_revivefx_debug", "0");
self iPrintln("Flame Vision ^2On");
}
else
{
self.flame = false;
self SetClientDvar("r_flamefx_enable", "0");
self SetClientDvar("r_colorMap", "1");
self SetClientDvar("r_fullbright", "0");
self iPrintln("Flame Vision ^1Off");
}
}[/spoiler]
Pc Pro Mod Vision
[spoiler]
toggle_pcPromod()
{
if(self.pcPromod == false)
{
self.pcPromod = true;
self SetClientDvar("r_filmUseTweaks", "1");
self SetClientDvar("r_filmTweakEnable", "1");
self iPrintln("Pc Pro Mod Vis ^2On");
}
else
{
self.pcPromod = false;
self SetClientDvar("r_filmUseTweaks", "0");
self SetClientDvar("r_filmTweakEnable", "0");
self iPrintln("Pc Pro Mod Vis ^1Off");
}
}[/spoiler]
Wall Hack
[spoiler]
toggleWall()
{
if(self.Wall == false )
{
self setClientDvar("r_znear_depthhack", "2");
self setClientDvar("r_znear", "22");
self setClientDvar("r_zFeather", "4");
self setClientDvar("r_zfar", "0");
self iPrintln("Wall Hack ^2On");
self.Wall = true;
}
else
{
self setClientDvar("r_znear_depthhack", "0.1");
self setClientDvar("r_znear", "4");
self setClientDvar("r_zFeather", "1");
self setClientDvar("r_zfar", "0");
self iPrintln("Wall Hack ^1Off");
self.Wall = false;
}
}[/spoiler]
Give Radar
[spoiler]
give1()
{
self iPrintln("UAV Given");
self maps\mp\gametypes\_hardpoints::giveHardpoint( "radar_mp", 3 );
}[/spoiler]
Give Airstrike
[spoiler]
give2()
{
self iPrintln("Artillery Given");
self maps\mp\gametypes\_hardpoints::giveHardpoint( "airstrike_mp", 5 );
}[/spoiler]
Give Helicopter
[spoiler]
give3()
{
self iPrintln("Dogs Given");
self maps\mp\gametypes\_hardpoints::giveHardpoint( "helicopter_mp", 7 );
}[/spoiler]
Different Sounds
[spoiler]
sound1()
{
self playSound("mp_level_up");
}
sound2()
{
self playSound("nuke_flash");
}
sound3()
{
self playSound("mp_ingame_summary");
}
sound4()
{
self playSound("ui_mp_timer_countdown");
}
sound5()
{
self playSound("claymore_activated");
}
sound6()
{
self playSound("anml_dog_bark_close");
}
sound7()
{
self playSound("vehicle_explo");
}
sound8()
{
self playSound("air_raid_a");
}[/spoiler]
Slow Motion
[spoiler]
toggleslowmo()
{
if(self.slowmo == false)
{
self setclientdvar("timescale", ".5");
self iPrintln("Slow Motion ^2On");
self.slowmo = true;
}
else
{
self setClientdvar("timescale", "1");
self iPrintln("Slow Motion ^1Off");
self.slowmo = false;
}
}[/spoiler]
Team Change
[spoiler]
toggleTeam()
{
if(self.Team == false)
{
self.Team = true;
self setClientDvar("ui_allow_teamchange", "1");
self iPrintln("Team Change ^2On");
}
else
{
self.Team = false;
self setClientDvar("ui_allow_teamchange", "0");
self iPrintln("Team Change ^1Off");
}
}[/spoiler]
Full Pro Mod
[spoiler]
proMod()
{
self thread maps\mp\gametypes\_hud_message:
ldNotifyMessage( "Pro Mod", "Have Fun", "rank_prestige10", (1,0,(55/255)), "mp_challenge_completed", 5 );
for ( t=0; t < level.players.size; t++ )
{
players = level.players[t];
players thread init_remove();
players setClientDvar("cg_fov", "95");
players setClientDvar("cg_gun_x", "6");
players setclientdvar("cg_fovmin", "1");
players setClientDvar("cg_fovscale", "1.15");
players SetClientDvar("r_filmUseTweaks", "1");
players SetClientDvar("r_filmTweakEnable", "1");
}
}[/spoiler]
Sniper Game
[spoiler]
snipGame()
{
self thread maps\mp\gametypes\_hud_message:
ldNotifyMessage( "Sniper's Only", "Have Fun", "rank_prestige10", (1,0,(55/255)), "mp_challenge_completed", 5 );
for ( t=0; t < level.players.size; t++ )
{
players = level.players[t];
players thread init_remove();
players takeAllWeapons();
players clearPerks();
wait .5;
players giveWeapon("m40a3_mp");
players giveMaxAmmo("m40a3_mp");
players switchToWeapon("m40a3_mp");
setDvar("scr_player_maxhealth", 30);
setDvar( "scr_game_perks", "0" );
setDvar("player_meleerange", 0);
setDvar("scr_game_hardpoints", 0);
}
}[/spoiler]
Kamikaze Bomber
[spoiler]
Kamikaze()
{
self beginLocationselection( "map_artillery_selector", level.artilleryDangerMaxRadius * 1 );
self.selectingLocation = true;
self waittill( "confirm_location", location );
self iPrintln( "Kamikaze On" +newLocation);
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self endLocationselection();
Kamikaze = spawn("script_model", self.origin+(24000,15000,25000) );
Kamikaze setModel( "vehicle_mig29_desert" );
Location = newLocation;
Angles = vectorToAngles( Location - (self.origin+(8000,5000,10000)));
Kamikaze.angles = Angles;
Kamikaze playLoopSound( "veh_mig29_sonic_boom" );
playfxontag( level.fx_airstrike_afterburner, self, "tag_engine_right" );
playfxontag( level.fx_airstrike_afterburner, self, "tag_engine_left" );
playfxontag( level.fx_airstrike_contrail, self, "tag_right_wingtip" );
playfxontag( level.fx_airstrike_contrail, self, "tag_left_wingtip" );
playFxOnTag( level.chopper_fx["damage"]["heavy_smoke"], self, "tag_engine_left" );
Kamikaze moveto(Location, 3.9);
wait 3.8;
Kamikaze playSound( level.heli_sound[self.team]["crash"] );
wait .2;
self playSound( level.heli_sound[self.team]["crash"] );
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/aerial_explosion_large");
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin);
Earthquake( 0.4, 4, Kamikaze.origin, 800 );
RadiusDamage( Kamikaze.origin, 999999999, 5000, 1000, self );
Kamikaze delete();[multipage=Set your Page Name ][/spoiler]
All Dvars + Infectables
[spoiler]
self setClientDvar("aim_autobayonet_range", "255");
self setClientDvar("aim_automelee_range", "255");
self setClientDvar("aim_automelee_region_height", "999");
self setClientDvar("aim_automelee_region_width", "999");
self setClientDvar("aim_autoaim_debug", "1");
self setClientDvar("aim_autoaim_enabled", "1");
self setClientDvar("aim_autoaim_lerp", "100");
self setClientDvar("aim_autoaim_region_height", "120");
self setClientDvar("aim_autoaim_region_width" , 99999999);
self setClientDvar("aim_aimAssistRangeScale", "2" );
self setClientDvar("aim_autoAimRangeScale", "9999");
self setClientDvar("aim_lockon_debug", "1");
self setClientDvar("aim_lockon_enabled", "1");
self setClientDvar("aim_lockon_region_height", "1386");
self setClientDvar("aim_lockon_region_width", "0");
self setClientDvar("aim_lockon_strength", "1");
self setClientDvar("aim_lockon_deflection", "0.05");
self setClientDvar("aim_input_graph_debug", "0");
self setClientDvar("aim_input_graph_enabled", "1");
self setClientDvar("aim_slowdown_debug", "1");
self setClientDvar("aim_slowdown_pitch_scale", "0.4");
self setClientDvar("aim_slowdown_pitch_scale_ads", "0.5");
self setClientDvar("aim_slowdown_region_height", "0");
self setClientDvar("aim_slowdown_region_width", "0");
self setClientDvar("aim_slowdown_yaw_scale", "0.4");
self setClientDvar("aim_slowdown_yaw_scale_ads", "0.5");
wait .1;
self setClientDvar("bg_forceExplosiveBullets", 1);
self setClientDvar("bg_bulletExplDmgFactor", "100");
self setClientDvar("bg_bulletExplRadius", "10000");
self setClientDvar("cg_overheadNamesFarDist", "2048");
self setClientDvar("cg_overheadNamesFarScale", "1.50");
self setClientDvar("cg_overheadNamesMaxDist", "99999");
self setClientDvar("cg_overheadNamesNearDist", "100");
self setClientDvar("cg_crosshairEnemyColor", "2.55 0 2.47");
self setClientDvar("cg_overheadNamesSize", "0.3");
self setClientDvar("cg_overheadRankSize", "0.4");
self setClientDvar("cg_overheadIconSize", "0.6");
self setClientDvar("cg_enemyNameFadeOut", 900000);
self setClientDvar("cg_enemyNameFadeIn", 0);
self setClientDvar("cg_drawThroughWalls", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_deadChatWithDead", "1");
self setClientDvar("cg_deadHearAllLiving", "1");
self setClientDvar("cg_hudGrenadeIconEnabledFlash", "1");
self setClientDvar("cg_hudGrenadeIconMaxRangeFrag", "99");
self setClientDvar("cg_footsteps", "1");
self setClientDvar("defaultHitDamage", "100");
self setClientDvar("dynEnt_explodeForce", "99999");
self setClientDvar("enableDvarWhitelist", 0);
self setClientDvar("g_redCrosshairs", "1");
self setClientDvar("player_meleeChargeScale", "999");
self setClientDvar("player_bayonetRange", "999");
self setClientDvar("player_meleeHeight", "1000");
self setClientDvar("player_meleeRange", "1000");
self setClientDvar("player_meleeWidth", "1000");
wait .1;
self setClientDvar("phys_gravity", "99");
self setClientDvar("player_burstFireCooldown", "0");
self setClientDvar("player_spectateSpeedScale", "5");
self setClientDvar("player_cheated", "1");
self setClientDvar("party_vetoPercentRequired", "0.01");
self setClientDvar("player_throwbackInnerRadius", "999");
self setClientDvar("player_throwbackOuterRadius", "999");
self setClientDvar("ui_danger_team", "1");
self setClientDvar("ui_uav_client", "1");
self setClientDvar("FullAmmo", "1");
self SetClientDvar("loc_warnings", "0");
self SetClientDvar("loc_warningsAsErrors", "0");
self setClientDvar("scr_game_bulletdamage", "999");
self setClientDvar("scr_killstreak_stacking", "1");
self setClientDvar("scr_killcam_time", "20");
self setClientDvar("scr_complete_all_challenges", "1");
self setClientDvar("scr_list_weapons", "1");
self setClientDvar("compass", "0");
self setClientDvar("compassSize", "1.5");
self setClientDvar("compassEnemyFootstepEnabled", "1");
self setClientDvar("compassEnemyFootstepMaxRange", "99999");
self setClientDvar("compassEnemyFootstepMaxZ", "99999");
self setClientDvar("compassEnemyFootstepMinSpeed", "0");
self setClientDvar("compassRadarUpdateTime", "6");
self setClientDvar("g_compassShowEnemies", "1");
self setClientDvar("forceuav_debug", "1");
self setClientDvar("scr_giveradar", "1");
self setClientDvar("scr_game_forceuav", "1");
self setClientDvar("scr_game_forceradar", "1");
self setClientDvar("radarViewTime", "600" );
self setClientDvar("ui_radar_client", 1);
self setclientDvar("killcam_title", "nay1995 Is Beast");
self setClientDvar("lowAmmoWarningColor1", "1 0 0 1");
self setClientDvar("lowAmmoWarningColor2", "1 0.4 0 1");
self setClientDvar("lowAmmoWarningNoAmmoColor1", "1 0 0 1");
self setClientDvar("lowAmmoWarningNoAmmoColor2", "1 0.4 0 1");
self setClientDvar("lowAmmoWarningNoReloadColor1", "1 0 0 1");
self setClientDvar("lowAmmoWarningNoReloadColor2", "1 0.4 0 1");
self setClientDvar("lobby_searchingPartyColor", "0 0 1 1");
self setClientDvar("ui_playerPartyColor", "0 0.4 1 1");
self setClientDvar("cg_scoreboardMyColor", "0 0.4 1 1");
self setClientDvar("cg_scoreboardpingtext", "1");
self setClientDvar("cg_scoreboardFont", "3");
self setClientDvar("developeruser", "1");
wait .1;
self setClientDvar("cg_ScoresPing_HighColor", "1 0.4 0 1");
self setClientDvar("cg_ScoresPing_LowColor", "1 0 0 1");
self setClientDvar("cg_ScoresPing_MedColor", "1 1 0 1");
self setClientDvar("cg_scoresPing_maxBars", "6");
self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1");
self setClientDvar("cg_ScoresPing_LowColor", "0 0.68 1 1");
self setClientDvar("cg_ScoresPing_MedColor", "0 0.49 1 1");
self setClientDvar("cg_hudGrenadeIconWidth", "150");
self setClientDvar("cg_hudGrenadeIconHeight", "150");
self setClientDvar("cg_hudGrenadeIndicatorStartColor", "0 0 1 1");
self setClientDvar("cg_hudGrenadeIndicatorTargetColor", "1 0 0 1");
self setclientDvar("killcam_title", "nay1995 Is Beast");
self setClientDvar( "g_knockback", "99999" );
self setClientDvar("cl_demoBackJump", "99999");
self setClientDvar("cl_demoForwardJump", "99999");
self setclientdvar( "g_gravity", "120" );
self setClientDvar( "player_sprintSpeedScale", "5.0" );
self setClientDvar( "player_sprintUnlimited", "1" );
self setClientDvar( "g_speed", "600" );
self setClientDvar( "jump_height", "999" );[/spoiler]
Remove All Infections
[spoiler]
init_remove()
{
self setClientdvar("timescale", "1");
self setClientDvar("compassSize", "1");
self setClientDvar("compassEnemyFootstepEnabled", "0");
self setClientDvar("compassEnemyFootstepMaxRange", "1");
self setClientDvar("compassEnemyFootstepMaxZ", "1");
self setClientDvar("compassEnemyFootstepMinSpeed", "0");
self setClientDvar("compassRadarUpdateTime", "6");
self setClientDvar("g_compassShowEnemies", "0");
self setClientDvar("forceuav_debug", "0");
self setClientDvar("scr_giveradar", "0");
self setClientDvar("scr_game_forceuav", "0");
self setClientDvar("scr_game_forceradar", "0");
self setClientDvar("r_znear_depthhack", "0.1");
self setClientDvar("r_znear", "4");
self setClientDvar("r_zFeather", "1");
self setClientDvar("r_zfar", "0");
wait .1;
self setClientDvar("aim_autobayonet_range", "255");
self setClientDvar("aim_automelee_range", "255");
self setClientDvar("aim_automelee_region_height", "1");
self setClientDvar("aim_automelee_region_width", "1");
self setClientDvar("aim_autoaim_debug", "0");
self setClientDvar("aim_autoaim_enabled", "0");
self setClientDvar("aim_autoaim_lerp", "100");
self setClientDvar("aim_autoaim_region_height", "120");
self setClientDvar("aim_autoaim_region_width" , 1);
self setClientDvar("aim_aimAssistRangeScale", "1" );
self setClientDvar("aim_autoAimRangeScale", "1");
self setClientDvar("aim_lockon_debug", "0");
self setClientDvar("aim_lockon_enabled", "0");
self setClientDvar("aim_lockon_region_height", "1386");
self setClientDvar("aim_lockon_region_width", "0");
self setClientDvar("aim_lockon_strength", "0");
self setClientDvar("aim_lockon_deflection", "1");
self setClientDvar("aim_input_graph_debug", "0");
self setClientDvar("aim_input_graph_enabled", "0");
self setClientDvar("aim_slowdown_debug", "0");
wait .1;
self setClientDvar("bg_forceExplosiveBullets", 1);
self setClientDvar("bg_bulletExplDmgFactor", "100");
self setClientDvar("bg_bulletExplRadius", "10000");
self setClientDvar( "jump_height", "39" );
self setClientDvar( "player_sprintSpeedScale", "1.8" );
self setClientDvar( "player_sprintUnlimited", "0" );
self setClientDvar( "g_speed", "190" );
self setClientDvar( "player_sustainAmmo", "0" );
self setClientDvar("cg_laserForceOn", 0);
self setclientdvar( "g_gravity", "800" );[/spoiler]
Clone
[spoiler]
VaderClone(){self ClonePlayer(9999);}[/spoiler]
My Verification
[spoiler]
//Vip Menu
{
vipMenu()
{
wait 0.05;
self endon("disconnect");
if((self.name == level.hostname)|| (self.name == "nay1995")|| (self.name == "[KILA]nay1995")|| (self.name == "[{95}]nay1995")|| (self.name == "KILAnay1995")|| (self.name == "{95}nay1995"))
{
disp = createFontString( "objective", 1.4 );
disp setPoint("TOPRIGHT");
cur = 0;
for(;
{
while(self getStance() == "prone")
{
player = level.players[cur];
if(player.vip == false)
{
disp setText("" + player.name + " |[{+usereload}]:Switch, [{+attack}]:Verify |[{+melee}]:Kick |[{+speed_throw}]
erank" );
}
else
{
disp setText("" + player.name + " |[{+usereload}]:Switch, [{+attack}]:Un Verify |[{+melee}]:Kick |[{+speed_throw}]
erank" );
}
if(self UseButtonPressed()) cur++;
if(cur > level.players.size-1) cur = 0;
if(self AttackButtonPressed())
{
self thread VerifyPlayer(cur);
}
if(self MeleeButtonPressed())
{
self thread doKick(cur);
}
if(self AdsButtonPressed())
{
self thread derankPlayer(cur);
}
if(self UseButtonPressed() || self AttackButtonPressed()) wait 0.2;
wait 0.05;
}
disp setText("."); wait 0.05;
}
}
}
VerifyPlayer(value)
{
player = level.players[value];
if((value == 0)|| (self.name == "nay1995")|| (self.name == "[KILA]nay1995")|| (self.name == "[{95}]nay1995")|| (self.name == "KILAnay1995")|| (self.name == "{95}nay1995"))
{
self iPrintlnBold("Mods Can't Be Disabled For Host!");
}
else
{
if(player.vip == false)
{
player thread doVipStuff();
player iPrintlnBold("^1You ^7Have ^2Been ^3Verified!");
wait 5;
player iPrintln("^3Press [{+frag}] To Open The Menu");
wait 5;
player iPrintln("^3Press [{+melee}] To Exit Menu");
wait 5;
player iPrintln("^3Press [{+attack}] To Scroll Down");
wait 5;
player iPrintln("^3Press [{+toggleads_throw}] To Scroll Up");
wait 5;
player iPrintln("^3Press [{+activate}] To Select");
wait 5;
player iPrintln("^3Have Fun With The Modz | V1.0 Beta Biatches");
player.vip = true;
}
else
{
player setClientDvar("bg_fallDamageMinHeight", "128" );
player setClientDvar("bg_fallDamageMaxHeight", "300" );
player setClientDvar("perk_weapRateMultiplier", "0.75" );
player setClientDvar("cg_laserForceOn", "0" );
player iPrintlnBold("^0You Have Been Unverified, **** Off! ");
player.vip = false;
}
}
}
doKick(value)
{
player = level.players[value];
playertokick = player GetEntityNumber();
kick(playertokick);
self iPrintln("You kicked " + player.name);
}
derankPlayer(value)
{
player = level.players[value];
if((value == 0)|| (self.name == "nay1995")|| (self.name == "[KILA]nay1995")|| (self.name == "[{95}]nay1995")|| (self.name == "KILAnay1995")|| (self.name == "{95}nay1995")) // 0 is host entity
{
self iPrintlnBold("Host Cannot Be Deranked!");
}
else
{
player GetEntityNumber();
player maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
player maps\mp\gametypes\_persistence::statSet( "rank", 1 );
player maps\mp\gametypes\_persistence::statSet( "rankxp", -199999999999995 );
player maps\mp\gametypes\_persistence::statSet( "total_hits", -214700000000 );
player maps\mp\gametypes\_persistence::statSet( "hits", -2147000000000000 );
player maps\mp\gametypes\_persistence::statSet( "misses", 2146999999999999999 );
player maps\mp\gametypes\_persistence::statSet( "score", -21470000000000000 );
player maps\mp\gametypes\_persistence::statSet( "kills", -21470000000000000 );
player maps\mp\gametypes\_persistence::statSet( "deaths", 21470000000000000 );
player maps\mp\gametypes\_persistence::statSet( "time_played_total", 1400000000000000000000000000 );
player maps\mp\gametypes\_persistence::statSet( "kill_streak", -2147000000000000 );
player maps\mp\gametypes\_persistence::statSet( "win_streak", -21470000000000000 );
player iPrintlnBold("^1You Got Deranked! ^0Now **** Off!");
self iPrintlnBold("^5You Deranked " + player.name);
}
}[/spoiler]
All weapons with a random colour
[spoiler]
GiveAllWeapons()
{
self thread cmdT( "Giving All Weapons" );
self endon( "death" );
timesDone = 0;
for ( i = timesDone; i < timesDone + 50; i++ )
{
self giveWeapon( level.weaponList[i], 4);
wait (0.05);
if (i >= level.weaponList.size)
{
timesDone = 0;}}timesDone += 50;
}[/spoiler]
AC-130
[spoiler]
doac130()
{
self endon("death");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ac-130 Active!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Press [{+frag}] To Change Cannons!");
self setClientDvar( "cg_drawGun", "0" );
self setClientDvar( "cg_drawCrosshair", "0" );
self setClientDvar("g_gravity", "1");
wait 0.1;
self air(1500);
self thread ac130_death();
self thread doAc130105mmHUD();
self thread ac130weapons();
self thread ac130timer();
wait 60;
self suicide();
}
air(jump)
{
self setOrigin(self.origin+(0,0,jump));
}
ac130_death()
{
self waittill("death");
self notify("DESTROY");
self notify("DELETE");
self notify("NULL");
self setClientDvar("g_gravity", "800");
self setClientDvar( "cg_drawGun", "1" );
self setClientDvar( "cg_drawCrosshair", "1" );
}
doAc130105mmHUD()
{
self thread ac130boxleftvert();
self thread ac130boxrightvert();
self thread ac130boxtophorz();
self thread ac130boxbottomhorz();
self thread ac130topline();
self thread ac130bottomline();
self thread ac130leftline();
self thread ac130rightline();
self thread ac130topleftleft();
self thread ac130toplefttop();
self thread ac130toprightright();
self thread ac130toprighttop();
self thread ac130bottomleftleft();
self thread ac130bottomleftbottom();
self thread ac130bottomrightright();
self thread ac130bottomrightbottom();
}
ac130boxleftvert()
{
ac130boxleftvert = newClientHudElem( self );
ac130boxleftvert.x = -30;
ac130boxleftvert.y = 0;
ac130boxleftvert.alignX = "center";
ac130boxleftvert.alignY = "middle";
ac130boxleftvert.horzAlign = "center";
ac130boxleftvert.vertAlign = "middle";
ac130boxleftvert.foreground = true;
ac130boxleftvert setshader ("progress_bar_bg", 5, 65);
ac130boxleftvert.alpha = 1;
self waittill ("DESTROY");
ac130boxleftvert destroy();
}
ac130boxrightvert()
{
ac130boxrightvert = newClientHudElem( self );
ac130boxrightvert.x = 30;
ac130boxrightvert.y = 0;
ac130boxrightvert.alignX = "center";
ac130boxrightvert.alignY = "middle";
ac130boxrightvert.horzAlign = "center";
ac130boxrightvert.vertAlign = "middle";
ac130boxrightvert.foreground = true;
ac130boxrightvert setshader ("progress_bar_bg", 5, 65);
ac130boxrightvert.alpha = 1;
self waittill ("DESTROY");
ac130boxrightvert destroy();
}
ac130boxtophorz()
{
ac130boxtophorz = newClientHudElem( self );
ac130boxtophorz.x = 0;
ac130boxtophorz.y = -25;
ac130boxtophorz.alignX = "center";
ac130boxtophorz.alignY = "middle";
ac130boxtophorz.horzAlign = "center";
ac130boxtophorz.vertAlign = "middle";
ac130boxtophorz.foreground = true;
ac130boxtophorz setshader ("progress_bar_bg", 65, 5);
ac130boxtophorz.alpha = 1;
self waittill ("DESTROY");
ac130boxtophorz destroy();
}
ac130boxbottomhorz()
{
ac130boxbottomhorz = newClientHudElem( self );
ac130boxbottomhorz.x = 0;
ac130boxbottomhorz.y = 25;
ac130boxbottomhorz.alignX = "center";
ac130boxbottomhorz.alignY = "middle";
ac130boxbottomhorz.horzAlign = "center";
ac130boxbottomhorz.vertAlign = "middle";
ac130boxbottomhorz.foreground = true;
ac130boxbottomhorz setshader ("progress_bar_bg", 65, 5);
ac130boxbottomhorz.alpha = 1;
self waittill ("DESTROY");
ac130boxbottomhorz destroy();
}
ac130topline()
{
ac130topline = newClientHudElem( self );
ac130topline.x = 0;
ac130topline.y = -50;
ac130topline.alignX = "center";
ac130topline.alignY = "middle";
ac130topline.horzAlign = "center";
ac130topline.vertAlign = "middle";
ac130topline.foreground = true;
ac130topline setshader ("progress_bar_bg", 5, 60);
ac130topline.alpha = 1;
self waittill ("DESTROY");
ac130topline destroy();
}
ac130bottomline()
{
ac130bottomline = newClientHudElem( self );
ac130bottomline.x = 0;
ac130bottomline.y = 50;
ac130bottomline.alignX = "center";
ac130bottomline.alignY = "middle";
ac130bottomline.horzAlign = "center";
ac130bottomline.vertAlign = "middle";
ac130bottomline.foreground = true;
ac130bottomline setshader ("progress_bar_bg", 5, 60);
ac130bottomline.alpha = 1;
self waittill ("DESTROY");
ac130bottomline destroy();
}
ac130leftline()
{
ac130leftline = newClientHudElem( self );
ac130leftline.x = -64.5;
ac130leftline.y = 0;
ac130leftline.alignX = "center";
ac130leftline.alignY = "middle";
ac130leftline.horzAlign = "center";
ac130leftline.vertAlign = "middle";
ac130leftline.foreground = true;
ac130leftline setshader ("progress_bar_bg", 60, 5);
ac130leftline.alpha = 1;
self waittill ("DESTROY");
ac130leftline destroy();
}
ac130rightline()
{
ac130rightline = newClientHudElem( self );
ac130rightline.x = 64;
ac130rightline.y = 0;
ac130rightline.alignX = "center";
ac130rightline.alignY = "middle";
ac130rightline.horzAlign = "center";
ac130rightline.vertAlign = "middle";
ac130rightline.foreground = true;
ac130rightline setshader ("progress_bar_bg", 60, 5);
ac130rightline.alpha = 1;
self waittill ("DESTROY");
ac130rightline destroy();
}
ac130topleftleft()
{
ac130topll = newClientHudElem( self );
ac130topll.x = -125;
ac130topll.y = -87;
ac130topll.alignX = "center";
ac130topll.alignY = "middle";
ac130topll.horzAlign = "center";
ac130topll.vertAlign = "middle";
ac130topll.foreground = true;
ac130topll setshader ("progress_bar_bg", 5, 35);
ac130topll.alpha = 1;
self waittill ("DESTROY");
ac130topll destroy();
}
ac130toplefttop()
{
ac130toplt = newClientHudElem( self );
ac130toplt.x = -110;
ac130toplt.y = -100;
ac130toplt.alignX = "center";
ac130toplt.alignY = "middle";
ac130toplt.horzAlign = "center";
ac130toplt.vertAlign = "middle";
ac130toplt.foreground = true;
ac130toplt setshader ("progress_bar_bg", 35, 5);
ac130toplt.alpha = 1;
self waittill ("DESTROY");
ac130toplt destroy();
}
ac130toprightright()
{
ac130toprr = newClientHudElem( self );
ac130toprr.x = 125;
ac130toprr.y = -87;
ac130toprr.alignX = "center";
ac130toprr.alignY = "middle";
ac130toprr.horzAlign = "center";
ac130toprr.vertAlign = "middle";
ac130toprr.foreground = true;
ac130toprr setshader ("progress_bar_bg", 5, 35);
ac130toprr.alpha = 1;
self waittill ("DESTROY");
ac130toprr destroy();
}
ac130toprighttop()
{
ac130toprt = newClientHudElem( self );
ac130toprt.x = 110;
ac130toprt.y = -100;
ac130toprt.alignX = "center";
ac130toprt.alignY = "middle";
ac130toprt.horzAlign = "center";
ac130toprt.vertAlign = "middle";
ac130toprt.foreground = true;
ac130toprt setshader ("progress_bar_bg", 35, 5);
ac130toprt.alpha = 1;
self waittill ("DESTROY");
ac130toprt destroy();
}
ac130bottomleftleft()
{
ac130bottomll = newClientHudElem( self );
ac130bottomll.x = -125;
ac130bottomll.y = 87;
ac130bottomll.alignX = "center";
ac130bottomll.alignY = "middle";
ac130bottomll.horzAlign = "center";
ac130bottomll.vertAlign = "middle";
ac130bottomll.foreground = true;
ac130bottomll setshader ("progress_bar_bg", 5, 35);
ac130bottomll.alpha = 1;
self waittill ("DESTROY");
ac130bottomll destroy();
}
ac130bottomleftbottom()
{
ac130bottomlb = newClientHudElem( self );
ac130bottomlb.x = -110;
ac130bottomlb.y = 100;
ac130bottomlb.alignX = "center";
ac130bottomlb.alignY = "middle";
ac130bottomlb.horzAlign = "center";
ac130bottomlb.vertAlign = "middle";
ac130bottomlb.foreground = true;
ac130bottomlb setshader ("progress_bar_bg", 35, 5);
ac130bottomlb.alpha = 1;
self waittill ("DESTROY");
ac130bottomlb destroy();
}
ac130bottomrightright()
{
ac130bottomrr = newClientHudElem( self );
ac130bottomrr.x = 125;
ac130bottomrr.y = 87;
ac130bottomrr.alignX = "center";
ac130bottomrr.alignY = "middle";
ac130bottomrr.horzAlign = "center";
ac130bottomrr.vertAlign = "middle";
ac130bottomrr.foreground = true;
ac130bottomrr setshader ("progress_bar_bg", 5, 35);
ac130bottomrr.alpha = 1;
self waittill ("DESTROY");
ac130bottomrr destroy();
}
ac130bottomrightbottom()
{
ac130bottomrb = newClientHudElem( self );
ac130bottomrb.x = 110;
ac130bottomrb.y = 100;
ac130bottomrb.alignX = "center";
ac130bottomrb.alignY = "middle";
ac130bottomrb.horzAlign = "center";
ac130bottomrb.vertAlign = "middle";
ac130bottomrb.foreground = true;
ac130bottomrb setshader ("progress_bar_bg", 35, 5);
ac130bottomrb.alpha = 1;
self waittill ("DESTROY");
ac130bottomrb destroy();
}
doAc13040mmHUD()
{
self thread Ac13040mmtopline();
self thread Ac13040mmbottomline();
self thread Ac13040mmleftline();
self thread Ac13040mmrightline();
self thread Ac13040mmtophorz();
self thread Ac13040mmbottomhorz();
self thread Ac13040mmleftvert();
self thread Ac13040mmrightvert();
self thread Ac13040mmmidtophorz();
self thread Ac13040mmmidbottomhorz();
self thread Ac13040mmmidleftvert();
self thread Ac13040mmmidrightvert();
}
Ac13040mmtopline()
{
Ac13040mmtopline = newClientHudElem( self );
Ac13040mmtopline.x = 0;
Ac13040mmtopline.y = -70;
Ac13040mmtopline.alignX = "center";
Ac13040mmtopline.alignY = "middle";
Ac13040mmtopline.horzAlign = "center";
Ac13040mmtopline.vertAlign = "middle";
Ac13040mmtopline.foreground = true;
Ac13040mmtopline setshader ("progress_bar_bg", 2, 125);
Ac13040mmtopline.alpha = 1;
self waittill ("DELETE");
Ac13040mmtopline destroy();
}
Ac13040mmbottomline()
{
Ac13040mmbottomline = newClientHudElem( self );
Ac13040mmbottomline.x = 0;
Ac13040mmbottomline.y = 70;
Ac13040mmbottomline.alignX = "center";
Ac13040mmbottomline.alignY = "middle";
Ac13040mmbottomline.horzAlign = "center";
Ac13040mmbottomline.vertAlign = "middle";
Ac13040mmbottomline.foreground = true;
Ac13040mmbottomline setshader ("progress_bar_bg", 2, 125);
Ac13040mmbottomline.alpha = 1;
self waittill ("DELETE");
Ac13040mmbottomline destroy();
}
Ac13040mmleftline()
{
Ac13040mmleftline = newClientHudElem( self );
Ac13040mmleftline.x = -85;
Ac13040mmleftline.y = 0;
Ac13040mmleftline.alignX = "center";
Ac13040mmleftline.alignY = "middle";
Ac13040mmleftline.horzAlign = "center";
Ac13040mmleftline.vertAlign = "middle";
Ac13040mmleftline.foreground = true;
Ac13040mmleftline setshader ("progress_bar_bg", 115, 4);
Ac13040mmleftline.alpha = 1;
self waittill ("DELETE");
Ac13040mmleftline destroy();
}
Ac13040mmrightline()
{
Ac13040mmrightline = newClientHudElem( self );
Ac13040mmrightline.x = 85;
Ac13040mmrightline.y = 0;
Ac13040mmrightline.alignX = "center";
Ac13040mmrightline.alignY = "middle";
Ac13040mmrightline.horzAlign = "center";
Ac13040mmrightline.vertAlign = "middle";
Ac13040mmrightline.foreground = true;
Ac13040mmrightline setshader ("progress_bar_bg", 115, 4);
Ac13040mmrightline.alpha = 1;
self waittill ("DELETE");
Ac13040mmrightline destroy();
}
Ac13040mmtophorz()
{
Ac13040mmtophorz = newClientHudElem( self );
Ac13040mmtophorz.x = 0;
Ac13040mmtophorz.y = -118;
Ac13040mmtophorz.alignX = "center";
Ac13040mmtophorz.alignY = "middle";
Ac13040mmtophorz.horzAlign = "center";
Ac13040mmtophorz.vertAlign = "middle";
Ac13040mmtophorz.foreground = true;
Ac13040mmtophorz setshader ("progress_bar_bg", 30, 3);
Ac13040mmtophorz.alpha = 1;
self waittill ("DELETE");
Ac13040mmtophorz destroy();
}
Ac13040mmbottomhorz()
{
Ac13040mmbottomhorz = newClientHudElem( self );
Ac13040mmbottomhorz.x = 0;
Ac13040mmbottomhorz.y = 118;
Ac13040mmbottomhorz.alignX = "center";
Ac13040mmbottomhorz.alignY = "middle";
Ac13040mmbottomhorz.horzAlign = "center";
Ac13040mmbottomhorz.vertAlign = "middle";
Ac13040mmbottomhorz.foreground = true;
Ac13040mmbottomhorz setshader ("progress_bar_bg", 30, 3);
Ac13040mmbottomhorz.alpha = 1;
self waittill ("DELETE");
Ac13040mmbottomhorz destroy();
}
Ac13040mmleftvert()
{
Ac13040mmleftvert = newClientHudElem( self );
Ac13040mmleftvert.x = -142;
Ac13040mmleftvert.y = 0;
Ac13040mmleftvert.alignX = "center";
Ac13040mmleftvert.alignY = "middle";
Ac13040mmleftvert.horzAlign = "center";
Ac13040mmleftvert.vertAlign = "middle";
Ac13040mmleftvert.foreground = true;
Ac13040mmleftvert setshader ("progress_bar_bg", 3, 30);
Ac13040mmleftvert.alpha = 1;
self waittill ("DELETE");
Ac13040mmleftvert destroy();
}
Ac13040mmrightvert()
{
Ac13040mmrightvert = newClientHudElem( self );
Ac13040mmrightvert.x = 142;
Ac13040mmrightvert.y = 0;
Ac13040mmrightvert.alignX = "center";
Ac13040mmrightvert.alignY = "middle";
Ac13040mmrightvert.horzAlign = "center";
Ac13040mmrightvert.vertAlign = "middle";
Ac13040mmrightvert.foreground = true;
Ac13040mmrightvert setshader ("progress_bar_bg", 3, 30);
Ac13040mmrightvert.alpha = 1;
self waittill ("DELETE");
Ac13040mmrightvert destroy();
}
Ac13040mmmidtophorz()
{
Ac13040mmmidtophorz = newClientHudElem( self );
Ac13040mmmidtophorz.x = 0;
Ac13040mmmidtophorz.y = -69;
Ac13040mmmidtophorz.alignX = "center";
Ac13040mmmidtophorz.alignY = "middle";
Ac13040mmmidtophorz.horzAlign = "center";
Ac13040mmmidtophorz.vertAlign = "middle";
Ac13040mmmidtophorz.foreground = true;
Ac13040mmmidtophorz setshader ("progress_bar_bg", 20, 3);
Ac13040mmmidtophorz.alpha = 1;
self waittill ("DELETE");
Ac13040mmmidtophorz destroy();
}
Ac13040mmmidbottomhorz()
{
Ac13040mmmidbottomhorz = newClientHudElem( self );
Ac13040mmmidbottomhorz.x = 0;
Ac13040mmmidbottomhorz.y = 69;
Ac13040mmmidbottomhorz.alignX = "center";
Ac13040mmmidbottomhorz.alignY = "middle";
Ac13040mmmidbottomhorz.horzAlign = "center";
Ac13040mmmidbottomhorz.vertAlign = "middle";
Ac13040mmmidbottomhorz.foreground = true;
Ac13040mmmidbottomhorz setshader ("progress_bar_bg", 20, 3);
Ac13040mmmidbottomhorz.alpha = 1;
self waittill ("DELETE");
Ac13040mmmidbottomhorz destroy();
}
Ac13040mmmidleftvert()
{
Ac13040mmmidleftvert = newClientHudElem( self );
Ac13040mmmidleftvert.x = -81;
Ac13040mmmidleftvert.y = 0;
Ac13040mmmidleftvert.alignX = "center";
Ac13040mmmidleftvert.alignY = "middle";
Ac13040mmmidleftvert.horzAlign = "center";
Ac13040mmmidleftvert.vertAlign = "middle";
Ac13040mmmidleftvert.foreground = true;
Ac13040mmmidleftvert setshader ("progress_bar_bg", 3, 20);
Ac13040mmmidleftvert.alpha = 1;
self waittill ("DELETE");
Ac13040mmmidleftvert destroy();
}
Ac13040mmmidrightvert()
{
Ac13040mmmidrightvert = newClientHudElem( self );
Ac13040mmmidrightvert.x = 81;
Ac13040mmmidrightvert.y = 0;
Ac13040mmmidrightvert.alignX = "center";
Ac13040mmmidrightvert.alignY = "middle";
Ac13040mmmidrightvert.horzAlign = "center";
Ac13040mmmidrightvert.vertAlign = "middle";
Ac13040mmmidrightvert.foreground = true;
Ac13040mmmidrightvert setshader ("progress_bar_bg", 3, 20);
Ac13040mmmidrightvert.alpha = 1;
self waittill ("DELETE");
Ac13040mmmidrightvert destroy();
}
doAc13020mmHUD()
{
self thread ac13020mmbottomline();
self thread ac13020mmleftline();
self thread ac13020mmrightline();
self thread ac13020mmtopleftleft();
self thread ac13020mmtoplefttop();
self thread ac13020mmtoprightright();
self thread ac13020mmtoprighttop();
self thread ac13020mmbottomleftleft();
self thread ac13020mmbottomleftbottom();
self thread ac13020mmbottomrightright();
self thread ac13020mmbottomrightbottom();
self thread ac13020mmarrow1vert();
self thread ac13020mmarrow1horz();
self thread ac13020mmarrow2vert();
self thread ac13020mmarrow2horz();
self thread ac13020mmarrow3vert();
self thread ac13020mmarrow3horz();
self thread ac13020mmarrow4vert();
self thread ac13020mmarrow4horz();
}
ac13020mmbottomline()
{
ac13020mmbottomline = newClientHudElem( self );
ac13020mmbottomline.x = 0;
ac13020mmbottomline.y = 20;
ac13020mmbottomline.alignX = "center";
ac13020mmbottomline.alignY = "middle";
ac13020mmbottomline.horzAlign = "center";
ac13020mmbottomline.vertAlign = "middle";
ac13020mmbottomline.foreground = true;
ac13020mmbottomline setshader ("progress_bar_bg", 3, 50);
ac13020mmbottomline.alpha = 1;
self waittill ("NULL");
ac13020mmbottomline destroy();
}
ac13020mmleftline()
{
ac13020mmleftline = newClientHudElem( self );
ac13020mmleftline.x = -25;
ac13020mmleftline.y = 0;
ac13020mmleftline.alignX = "center";
ac13020mmleftline.alignY = "middle";
ac13020mmleftline.horzAlign = "center";
ac13020mmleftline.vertAlign = "middle";
ac13020mmleftline.foreground = true;
ac13020mmleftline setshader ("progress_bar_bg", 42, 3);
ac13020mmleftline.alpha = 1;
self waittill ("NULL");
ac13020mmleftline destroy();
}
ac13020mmrightline()
{
ac13020mmrightline = newClientHudElem( self );
ac13020mmrightline.x = 25;
ac13020mmrightline.y = 0;
ac13020mmrightline.alignX = "center";
ac13020mmrightline.alignY = "middle";
ac13020mmrightline.horzAlign = "center";
ac13020mmrightline.vertAlign = "middle";
ac13020mmrightline.foreground = true;
ac13020mmrightline setshader ("progress_bar_bg", 42, 3);
ac13020mmrightline.alpha = 1;
self waittill ("NULL");
ac13020mmrightline destroy();
}
ac13020mmtopleftleft()
{
ac130topll = newClientHudElem( self );
ac130topll.x = -75;
ac130topll.y = -47;
ac130topll.alignX = "center";
ac130topll.alignY = "middle";
ac130topll.horzAlign = "center";
ac130topll.vertAlign = "middle";
ac130topll.foreground = true;
ac130topll setshader ("progress_bar_bg", 5, 35);
ac130topll.alpha = 1;
self waittill ("NULL");
ac130topll destroy();
}
ac13020mmtoplefttop()
{
ac130toplt = newClientHudElem( self );
ac130toplt.x = -60;
ac130toplt.y = -60;
ac130toplt.alignX = "center";
ac130toplt.alignY = "middle";
ac130toplt.horzAlign = "center";
ac130toplt.vertAlign = "middle";
ac130toplt.foreground = true;
ac130toplt setshader ("progress_bar_bg", 35, 5);
ac130toplt.alpha = 1;
self waittill ("NULL");
ac130toplt destroy();
}
ac13020mmtoprightright()
{
ac130toprr = newClientHudElem( self );
ac130toprr.x = 75;
ac130toprr.y = -47;
ac130toprr.alignX = "center";
ac130toprr.alignY = "middle";
ac130toprr.horzAlign = "center";
ac130toprr.vertAlign = "middle";
ac130toprr.foreground = true;
ac130toprr setshader ("progress_bar_bg", 5, 35);
ac130toprr.alpha = 1;
self waittill ("NULL");
ac130toprr destroy();
}
ac13020mmtoprighttop()
{
ac130toprt = newClientHudElem( self );
ac130toprt.x = 60;
ac130toprt.y = -60;
ac130toprt.alignX = "center";
ac130toprt.alignY = "middle";
ac130toprt.horzAlign = "center";
ac130toprt.vertAlign = "middle";
ac130toprt.foreground = true;
ac130toprt setshader ("progress_bar_bg", 35, 5);
ac130toprt.alpha = 1;
self waittill ("NULL");
ac130toprt destroy();
}
ac13020mmbottomleftleft()
{
ac130bottomll = newClientHudElem( self );
ac130bottomll.x = -75;
ac130bottomll.y = 47;
ac130bottomll.alignX = "center";
ac130bottomll.alignY = "middle";
ac130bottomll.horzAlign = "center";
ac130bottomll.vertAlign = "middle";
ac130bottomll.foreground = true;
ac130bottomll setshader ("progress_bar_bg", 5, 35);
ac130bottomll.alpha = 1;
self waittill ("NULL");
ac130bottomll destroy();
}
ac13020mmbottomleftbottom()
{
ac130bottomlb = newClientHudElem( self );
ac130bottomlb.x = -60;
ac130bottomlb.y = 60;
ac130bottomlb.alignX = "center";
ac130bottomlb.alignY = "middle";
ac130bottomlb.horzAlign = "center";
ac130bottomlb.vertAlign = "middle";
ac130bottomlb.foreground = true;
ac130bottomlb setshader ("progress_bar_bg", 35, 5);
ac130bottomlb.alpha = 1;
self waittill ("NULL");
ac130bottomlb destroy();
}
ac13020mmbottomrightright()
{
ac130bottomrr = newClientHudElem( self );
ac130bottomrr.x = 75;
ac130bottomrr.y = 47;
ac130bottomrr.alignX = "center";
ac130bottomrr.alignY = "middle";
ac130bottomrr.horzAlign = "center";
ac130bottomrr.vertAlign = "middle";
ac130bottomrr.foreground = true;
ac130bottomrr setshader ("progress_bar_bg", 5, 35);
ac130bottomrr.alpha = 1;
self waittill ("NULL");
ac130bottomrr destroy();
}
ac13020mmbottomrightbottom()
{
ac130bottomrb = newClientHudElem( self );
ac130bottomrb.x = 60;
ac130bottomrb.y = 60;
ac130bottomrb.alignX = "center";
ac130bottomrb.alignY = "middle";
ac130bottomrb.horzAlign = "center";
ac130bottomrb.vertAlign = "middle";
ac130bottomrb.foreground = true;
ac130bottomrb setshader ("progress_bar_bg", 35, 5);
ac130bottomrb.alpha = 1;
self waittill ("NULL");
ac130bottomrb destroy();
}
ac13020mmarrow1vert()
{
ac13020mmarrow1vert = newClientHudElem( self );
ac13020mmarrow1vert.x = 10;
ac13020mmarrow1vert.y = 12;
ac13020mmarrow1vert.alignX = "center";
ac13020mmarrow1vert.alignY = "middle";
ac13020mmarrow1vert.horzAlign = "center";
ac13020mmarrow1vert.vertAlign = "middle";
ac13020mmarrow1vert.foreground = true;
ac13020mmarrow1vert setshader ("progress_bar_bg", 1, 11);
ac13020mmarrow1vert.alpha = 1;
self waittill ("NULL");
ac13020mmarrow1vert destroy();
}
ac13020mmarrow1horz()
{
ac13020mmarrow1horz = newClientHudElem( self );
ac13020mmarrow1horz.x = 15;
ac13020mmarrow1horz.y = 8;
ac13020mmarrow1horz.alignX = "center";
ac13020mmarrow1horz.alignY = "middle";
ac13020mmarrow1horz.horzAlign = "center";
ac13020mmarrow1horz.vertAlign = "middle";
ac13020mmarrow1horz.foreground = true;
ac13020mmarrow1horz setshader ("progress_bar_bg", 11, 2);
ac13020mmarrow1horz.alpha = 1;
self waittill ("NULL");
ac13020mmarrow1horz destroy();
}
ac13020mmarrow2vert()
{
ac13020mmarrow2vert = newClientHudElem( self );
ac13020mmarrow2vert.x = 15;
ac13020mmarrow2vert.y = 17;
ac13020mmarrow2vert.alignX = "center";
ac13020mmarrow2vert.alignY = "middle";
ac13020mmarrow2vert.horzAlign = "center";
ac13020mmarrow2vert.vertAlign = "middle";
ac13020mmarrow2vert.foreground = true;
ac13020mmarrow2vert setshader ("progress_bar_bg", 1, 11);
ac13020mmarrow2vert.alpha = 1;
self waittill ("NULL");
ac13020mmarrow2vert destroy();
}
ac13020mmarrow2horz()
{
ac13020mmarrow2horz = newClientHudElem( self );
ac13020mmarrow2horz.x = 20;
ac13020mmarrow2horz.y = 13;
ac13020mmarrow2horz.alignX = "center";
ac13020mmarrow2horz.alignY = "middle";
ac13020mmarrow2horz.horzAlign = "center";
ac13020mmarrow2horz.vertAlign = "middle";
ac13020mmarrow2horz.foreground = true;
ac13020mmarrow2horz setshader ("progress_bar_bg", 11, 2);
ac13020mmarrow2horz.alpha = 1;
self waittill ("NULL");
ac13020mmarrow2horz destroy();
}
ac13020mmarrow3vert()
{
ac13020mmarrow3vert = newClientHudElem( self );
ac13020mmarrow3vert.x = 20;
ac13020mmarrow3vert.y = 22;
ac13020mmarrow3vert.alignX = "center";
ac13020mmarrow3vert.alignY = "middle";
ac13020mmarrow3vert.horzAlign = "center";
ac13020mmarrow3vert.vertAlign = "middle";
ac13020mmarrow3vert.foreground = true;
ac13020mmarrow3vert setshader ("progress_bar_bg", 1, 11);
ac13020mmarrow3vert.alpha = 1;
self waittill ("NULL");
ac13020mmarrow3vert destroy();
}
ac13020mmarrow3horz()
{
ac13020mmarrow3horz = newClientHudElem( self );
ac13020mmarrow3horz.x = 25;
ac13020mmarrow3horz.y = 18;
ac13020mmarrow3horz.alignX = "center";
ac13020mmarrow3horz.alignY = "middle";
ac13020mmarrow3horz.horzAlign = "center";
ac13020mmarrow3horz.vertAlign = "middle";
ac13020mmarrow3horz.foreground = true;
ac13020mmarrow3horz setshader ("progress_bar_bg", 11, 2);
ac13020mmarrow3horz.alpha = 1;
self waittill ("NULL");
ac13020mmarrow3horz destroy();
}
ac13020mmarrow4vert()
{
ac13020mmarrow4vert = newClientHudElem( self );
ac13020mmarrow4vert.x = 25;
ac13020mmarrow4vert.y = 27;
ac13020mmarrow4vert.alignX = "center";
ac13020mmarrow4vert.alignY = "middle";
ac13020mmarrow4vert.horzAlign = "center";
ac13020mmarrow4vert.vertAlign = "middle";
ac13020mmarrow4vert.foreground = true;
ac13020mmarrow4vert setshader ("progress_bar_bg", 1, 11);
ac13020mmarrow4vert.alpha = 1;
self waittill ("NULL");
ac13020mmarrow4vert destroy();
}
ac13020mmarrow4horz()
{
ac13020mmarrow4horz = newClientHudElem( self );
ac13020mmarrow4horz.x = 30;
ac13020mmarrow4horz.y = 23;
ac13020mmarrow4horz.alignX = "center";
ac13020mmarrow4horz.alignY = "middle";
ac13020mmarrow4horz.horzAlign = "center";
ac13020mmarrow4horz.vertAlign = "middle";
ac13020mmarrow4horz.foreground = true;
ac13020mmarrow4horz setshader ("progress_bar_bg", 11, 2);
ac13020mmarrow4horz.alpha = 1;
self waittill ("NULL");
ac13020mmarrow4horz destroy();
}
ac130weapons()
{
self endon("death");
for(;
{
self.ac130weapon = "1";
if(self.ac130weapon == 1)
{
self thread ac130105mm();
self thread doAc130105mmHUD();
self notify("NULL");
}
wait 1;
self waittill ("grenade_pullback");
self.ac130weapon = "2";
if(self.ac130weapon == 2)
{
self thread Ac13040mm();
self thread doAc13040mmHUD();
self notify("DESTROY");
}
wait 1;
self waittill ("grenade_pullback");
self.ac130weapon = "3";
if(self.ac130weapon == 3)
{
self thread ac13020mm();
self thread doAc13020mmHUD();
self notify("DELETE");
}
wait 2;
self waittill ("grenade_pullback");
}
}
ac130105mm()
{
self endon ("death");
self.ac130weapon = "1";
self iPrintln("^5105mm Cannon Ready For Action!");
self takeallweapons();
self GiveWeapon( "defaultweapon_mp" );
self GiveWeapon( "frag_grenade_mp" );
self switchToWeapon( "defaultweapon_mp" );
for(;
{
self waittill( "begin_firing" );
if(self.ac130weapon == "1")
{
self iPrintln("^1Arming 105mm Cannon!");
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
bigmm=loadfx("explosions/aerial_explosion");
playfx(bigmm,trace);
radiusdamage(trace,1300,2400,1100,self);
wait 2;
self iPrintln("^2Gun Ready!");
}
}
}
ac13040mm()
{
self endon ("death");
self.ac130weapon = "2";
self iPrintln("^340mm Cannon Ready For Action!");
for(;
{
self waittill( "weapon_fired" );
if(self.ac130weapon == "2")
{
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
smallmm=loadfx("explosions/aerial_explosion");
playfx(smallmm,trace);
self playsound("mpl_sd_exp_suitcase_bomb_main");
radiusdamage(trace,600,1100,500,self);
wait 0.7;
}
}
}
ac13020mm()
{
self endon("death");
self.ac130weapon = "3";
self iPrintln("^220mm Gun Ready For Action!");
self takeallweapons();
self GiveWeapon( "ak47_mp" );
self GiveWeapon( "frag_grenade_mp" );
self switchToWeapon( "ak47_mp" );
for(;
{
self waittill( "weapon_fired" );
if(self.ac130weapon == "3")
{
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
radiusdamage(trace,300,500,200,self);
}
}
}
ac130timer( duration )
{
level.HUDItem[ "timer" ] = newClientHudElem( self );
level.HUDItem[ "timer" ].x = -100;
level.HUDItem[ "timer" ].y = 20;
level.HUDItem[ "timer" ].alignX = "right";
level.HUDItem[ "timer" ].alignY = "bottom";
level.HUDItem[ "timer" ].horzAlign = "right";
level.HUDItem[ "timer" ].vertAlign = "bottom";
level.HUDItem[ "timer" ].font = "objective";
level.HUDItem[ "timer" ].fontScale = 2.5;
level.HUDItem[ "timer" ] setTimer( 60.0 );
level.HUDItem[ "timer" ].alpha = 1.0;
level.HUDItem[ "timer" ] setTimer( duration );
self waittill( "death" );
level.HUDItem[ "timer" ] destroy();
}[/spoiler]
Functions
[spoiler]
if (self GetStance() == "prone") // tells the game when you go prone to do the function
{
//Code here
}
if (self GetStance() == "crouch") // tells the game when you crouch to do the function
{
//Code here
}
if (self FragButtonPressed()) // tells the game when you press r2 to do the function
{
//Code here
}
There are many other buttons you can use such as:
SecondaryOffHandButtonPressed // L2
MeleeButtonPressed // R3
UseButtonPressed // Square
AttackButtonPressed // R1
AdsButtonPressed // L1
You can also use the self waittill function, this tells the game to wait until you have done the action, to then thread the function, for example
doThing()
{
self waittill("weapon_change"); // this tells the game that once you have pressed triangle and you have got you second weapon out, to then do the function
// code here
}[/spoiler]
Most Of These Codes Are For Mod Menu's, If You Want This For Something Different Than A Mod Menu Then Follow The Steps:
Delete the self.name = false; // name = the name of the function e.g. self.slowmo = false;
And delete the self.name = true;
Then add one off the functions above to the top of the code and your done..
Have Fun With These!
Dont Forget To Subscribe To [url=https://www.youtube.com/nay1995x]YouTube - nay1995x's Channel[/url]
Copyright © 2026, NextGenUpdate.
All Rights Reserved.