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" );
DoTracers() {
if(!IsDefined(self.tracerz)) {
self.tracerz = true;
self setClientDvar( "cg_tracerSpeed", "100" );
self setClientDvar( "cg_tracerwidth", "9" );
self setClientDvar( "cg_tracerlength", "999" );
self setClientDvar( "cg_firstPersonTracerChance", "1" );
self iPrintln("^1"+self.playername+"^7: Tracers ^2On");
} else {
self.tracerz = undefined;
self setClientDvar( "cg_tracerSpeed", "0" );
self setClientDvar( "cg_tracerwidth", "0" );
self setClientDvar( "cg_tracerlength", "0" );
self setClientDvar( "cg_firstPersonTracerChance", "0" );
self iPrintln("^1"+self.playername+"^7: Tracers ^1Off");
}
}
self BetterCrosshair("+", 2.3, 0.2);
BetterCrosshair(text, scale, speed) {
Leeches = self createfontstring("objective", scale, self);
Leeches setpoint("CENTER");
Leeches settext(text);
self thread CrosshairDestroy(Leeches);
self setclientdvar("cg_crosshairAlpha", 0);
rand = [];
for(;
{
for(i=0;i<=3;i++) {
random = randomInt( 100 ); rand[i] = random/100;
}
Leeches.color = (rand[0],rand[1],rand[2]);
wait(speed);
}
}
CrosshairDestroy(elem) {
self waittill("death");
elem destroy();
}
crippler()
{
while( 1 )
{
if ( self getStance() == "crouch")
if(self UseButtonPressed())
{
self thread DeathSkull(self.origin);
}
wait 1;
}
}
DeathSkull(Location)
{
self endon ( "disconnect" );
self endon ( "death" );
Distance = 80; Rise = (0, 0, 40); quake = 155; nuke = 150; munk = 200;
Crippler7s = spawn("script_model", Location + Rise);
Crippler7s setModel("zombie_skull"); [B][COLOR="Red"]//change to whatever you want [/COLOR][/B]
level._effect["11"] = loadfx( "misc/fx_zombie_powerup_on" ); wait .1;
level._effect["12"] = loadfx("misc/fx_zombie_electric_trap");wait .1;
level._effect["13"] = loadfx("maps/zombie/fx_zombie_wire_spark");wait .1;
level._effect["14"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small"); wait .1;
playfx(level._effect["14"], Crippler7s.origin); wait .1;
playfx(level._effect["13"], Crippler7s.origin); wait .1;
playfx(level._effect["12"], Crippler7s.origin); wait .1;
playfx(level._effect["11"], Crippler7s.tagorigin); wait .1;
while( 1 )
{
level._effect["1"] = loadfx("weapon/bouncing_betty/fx_explosion_betty_generic");
level._effect["3"] = loadfx("misc/fx_zombie_mini_nuke");
playfx(level._effect["3"], Crippler7s.origin); wait .1;
playfx(level._effect["1"], Crippler7s.origin); wait .1;
Crippler7s moveto (Crippler7s.origin + (0,0,40),1);
Crippler7s rotateyaw(2880,2);
if( distance( self.origin, Location ) < quake )
earthquake(1, .4, self.origin, 512);
if( distance( self.origin, Location ) < quake )
self playsound( "nuke_flash" );
if( distance( self.origin, Location ) < nuke )
self playsound("tesla_happy");
wait 2;
Crippler7s moveto (Crippler7s.origin - (0,0,40),.1);
zombies = GetAiSpeciesArray( "axis", "all" );
for (i = 0; i < zombies.size; i++)
if( distance( zombies[i].origin, Location ) < munk )
zombies[i] dodamage(zombies[i].health + 666, zombies[i].origin);
wait .2;
}
}
DeleteWeapons() {
weapons = GetEntArray( "weapon_upgrade", "targetname" );
for(i=0;i<=weapons.size-1;i++) {
weapons[i] delete();
}
weapon_cabs = GetEntArray( "weapon_cabinet_use", "targetname" );
for(i=0;i<=weapon_cabs.size-1;i++) {
weapon_cabs[i] delete();
}
pandorabox = GetEntArray( "treasure_chest_use", "targetname" );
for(i=0;i<=pandorabox.size-1;i++) {
pandorabox[i] delete();
}
[B][COLOR="Red"] //Remove this part below if you DO NOT want to delete perks.[/COLOR][/B]
vending_triggers = GetEntArray( "zombie_vending", "targetname" );
for(i=0;i<=vending_triggers.size-1;i++) {
vending_triggers[i] delete();
}
}
DoTeleDelete() {
for ( i=0; i<3; i++ ) {
trig = GetEnt( "trigger_teleport_pad_" + i, "targetname");
if ( IsDefined(trig) ) {
trig delete();
}
}
}
doDisco()
{
wait 5;
self iPrintlnBold("Disco Mode Activated");
while(1)
{
self SetExpFog(256, 512, 1, 0, 0, 0);
wait .1;
self SetExpFog(256, 512, 0, 1, 0, 0);
wait .1;
self SetExpFog(256, 512, 0, 0, 1, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 1, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 0.8, 0, 0.6, 0);
wait .1;
self SetExpFog(256, 512, 1, 1, 0.6, 0);
wait .1;
self SetExpFog(256, 512, 1, 1, 1, 0);
wait .1;
self SetExpFog(256, 512, 0, 0, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 0.2, 1, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 0.4, 1, 0);
wait .1;
self SetExpFog(256, 512, 0, 0, 0, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 0.2, 0.2, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 1, 1, 0);
wait .1;
self SetExpFog(256, 512, 0.6, 0, 0.4, 0);
wait .1;
self SetExpFog(256, 512, 1, 0, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 1, 1, 0, 0);
wait .1;
self SetExpFog(256, 512, 0.6, 1, 0.6, 0);
wait .1;
self SetExpFog(256, 512, 1, 0, 0, 0);
wait .1;
self SetExpFog(256, 512, 0, 1, 0, 0);
wait .1;
self SetExpFog(256, 512, 0, 0, 1, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 1, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 0.8, 0, 0.6, 0);
wait .1;
self SetExpFog(256, 512, 1, 1, 0.6, 0);
wait .1;
self SetExpFog(256, 512, 1, 1, 1, 0);
wait .1;
self SetExpFog(256, 512, 0, 0, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 0.2, 1, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 0.4, 1, 0);
wait .1;
self SetExpFog(256, 512, 0, 0, 0, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 0.2, 0.2, 0);
wait .1;
self SetExpFog(256, 512, 0.4, 1, 1, 0);
wait .1;
self SetExpFog(256, 512, 0.6, 0, 0.4, 0);
wait .1;
SetExpFog(256, 512, 1, 0, 0.8, 0);
wait .1;
self SetExpFog(256, 512, 1, 1, 0, 0);
wait .1;
self SetExpFog(256, 512, 0.6, 1, 0.6, 0);
}
}
LocateMe()
{
if( self useButtonPressed() && self GetStance() == "crouch")
{
self iPrintln( "^2" + self.origin );
}
}
StartNuke() //only thing that needs threading
{
self thread nukelocate();
self thread NukeButton();
}
NukeButton()
{
check = 65;
for(;
{
self waittill( "weapon_change" );
{
if(distance( self.origin, (-1650.94, -953.09, 92.9183) ) < check)
{
self thread AllNuke();
}
}
}
wait 0.1;
}
AllNuke()
{
for(i=0; i<get_players().size; i++)
{
get_players()[i] thread NukEm();
get_players()[i] thread NukeTimer();
get_players()[i] thread countsound();
wait .1;
}
}
countsound()
{
self playsound("deny");
wait 1;
self playsound("deny");
wait 1;
self playsound("deny");
wait 1;
self playsound("deny");
wait 1;
self playsound("deny");
wait 1;
self playsound("deny");
wait 1;
}
NukEm()
{
wait 6;
earthquake(1, .4, self.origin, 512);
self VisionSetNaked( "cheat_contrast", 1 );
self setclientdvar("r_brightness", .3 );
wait .5;
earthquake(1, .4, self.origin, 512);
self SetClientDvar( "timescale", ".3" );
self playsound( "nuke_flash" );
self setclientdvar("r_brightness", 1 );
wait .5;
earthquake(1, .4, self.origin, 512);
self setclientdvar("r_brightness", .4 );
wait .5;
self setclientdvar("r_brightness", -.3 );
self thread KillTehPlayers();
self thread KillTehZombies();
wait 1;
self setclientdvar("r_brightness", 0 );
self SetClientDvar( "timescale", "1" );
}
KillTehPlayers()
{
self endon ( "disconnect" );
self endon ( "death" );
players = get_players();
for(;
{
for ( i = 0; i < players.size; i++ )
{
players[i] DoDamage( players[i].health + 1000, players[i].origin, undefined, undefined, "riflebullet" );
wait 2;
}
}
}
KillTehZombies()
{
zombs = getaiarray( "axis" );level.zombie_total = 0;
if(isDefined(zombs))
{
for( i = 0; i < zombs.size; i++ )
{
zombs[i] dodamage( zombs[i].health * 5000, ( 0, 0, 0 ), self );
wait 0.05;
}
}
}
NukeTimer()
{
self endon("nukecount_done");
hud69 = newHudElem();
hud69.foreground = true;
hud69.sort = 1;
hud69.hidewheninmenu = false;
hud69.alignX = "middle";
hud69.alignY = "left";
hud69.horzAlign = "middle";
hud69.vertAlign = "left";
hud69.x = 40;
hud69.y = 175;
hud69.alpha = 1;
hud69.fontscale = 2.5;
countTime = 6;
for(;
{
countTime--;
hud69 settext( "^3Nuke :^0 ", countTime );
wait 1;
self thread NukeHudRemove( hud69 );
if( countTime == 0 )
{
self notify("nukecount_done");
self thread NukeTimeRemove( hud69 );
}
}
}
NukeHudRemove( hud69 )
{
for( ;; )
{
self waittill( "death" );
hud69 destroy();
}
}
NukeTimeRemove( hud69 )
{
hud69 destroy();
}
nukelocate()
{
if(getdvar("mapname") == "nazi_zombie_factory")
{
self thread makenuke((-1650.94, -953.09, 92.9183));
self thread nukehint((-1650.94, -953.09, 92.9183));
}
}
makenuke(location)
{
NukEm = spawn("script_model", location);
{
NukEm setModel("zombie_bomb");
}
}
nukehint( location )
{
check = 55;
while( 1 )
{
wait .1;
if( distance( self.origin, location ) < 55 )
{
self iPrintlnBold( "^3Press [{weapnext}] To Start Nuke" );
wait 6;
}
}
}
doGunGame()
{
for(i=0; i<get_players().size; i++)
{
self.gungame = 1;
get_players()[i] thread maps\_status::doGunGame2();
wait .1;
}
}
doGunGame2() //only thing that needs threading for gun game
{
self endon ( "disconnect" );
self endon ( "death" );
self DisableInvulnerability();
self EnableHealthShield( false );
self thread FactoryTeleMaker2();
self thread healthStats();
self thread delete_weaps();
self thread doDiscoSunGG();
self thread doubleroundsgg();
self thread doGunMsg( "^5Welcome To TOXiiC's", "^2Gun Game Lobby!!" );
self thread ggvars();
self thread NotifyGG();
self thread weapz();
self thread identifywinner2();
self thread zombCountGames();
self thread flashinggames();
self thread TOXiiCxPLAGUE();
self thread set_crosshairgames();
self thread reviveself();
self thread nopowerups();
self iPrintlnBold( "^2You Get a New Gun Every 5 Kills" );
wait 4;
self setWeaponAmmoClip( "colt", 6 );
self setWeaponAmmoClip( "zombie_colt", 52 );
self setWeaponAmmoStock( "colt", 6 );
self setWeaponAmmoStock( "zombie_colt", 52 );
self iPrintlnBold( "^2Weapons : ^11^2/15" );
}
NotifyGG()
{
self endon ( "disconnect" );
self endon ( "death" );
ZmbKills = 0;
for(;
{
self waittill( "zom_kill" );
ZmbKills++;
wait 0.1;
if ( ZmbKills == 5 ) {
self notify( "weap2" );
ZmbKills = 5;
}
else if ( ZmbKills == 10 ) {
self notify( "weap3" );
ZmbKills = 10;
}
else if ( ZmbKills == 15 ) {
self notify( "weap4" );
ZmbKills = 15;
}
else if ( ZmbKills == 20 ) {
self notify( "weap5" );
ZmbKills = 20;
}
else if ( ZmbKills == 25 ) {
self notify( "weap6" );
ZmbKills = 25;
}
else if ( ZmbKills == 30 ) {
self notify( "weap7" );
ZmbKills = 30;
}
else if ( ZmbKills == 35 ) {
self notify( "weap8" );
ZmbKills = 35;
}
else if ( ZmbKills == 40 ) {
self notify( "weap9" );
ZmbKills = 40;
}
else if ( ZmbKills == 45 ) {
self notify( "weap10" );
ZmbKills = 45;
}
else if ( ZmbKills == 50 ) {
self notify( "weap11" );
ZmbKills = 50;
}
else if ( ZmbKills == 55 ) {
self notify( "weap12" );
ZmbKills = 55;
}
else if ( ZmbKills == 60 ) {
self notify( "weap13" );
ZmbKills = 60;
}
else if ( ZmbKills == 65 ) {
self notify( "weap14" );
ZmbKills = 65;
}
else if ( ZmbKills == 70 ) {
self notify( "weap15" );
ZmbKills = 70;
}
else if ( ZmbKills == 75 ) {
self notify( "gameizover" );
ZmbKills = 75;
}
}
}
weapz()
{
if(getdvar("mapname") == "nazi_zombie_prototype")
{
self thread weapzoldmaps();
}
else if(getdvar("mapname") == "nazi_zombie_factory")
{
self thread weapznewmaps();
}
else if(getdvar("mapname") == "nazi_zombie_sumpf")
{
self thread weapznewmaps();
}
else if(getdvar("mapname") == "nazi_zombie_asylum")
{
self thread weapzoldmaps();
}
}
weapzoldmaps()
{
for(;
{
self waittill( "weap2" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^12^2/15" );wait .03;self giveweapon("sw_357");wait .1;self switchToWeapon("sw_357");
}
self waittill( "weap3" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^13^2/15" );wait .03;self giveweapon("m2_flamethrower_zombie");wait .1;self switchToWeapon("m2_flamethrower_zombie");
}
self waittill( "weap4" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^14^2/15" );wait .03;self giveweapon("doublebarrel");wait .1;self switchToWeapon("doublebarrel");
}
self waittill( "weap5" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^15^2/15" );wait .03;self giveweapon("shotgun");wait .1;self switchToWeapon("shotgun");
}
self waittill( "weap6" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^16^2/15" );wait .03;self giveweapon("mp40");wait .1;self switchToWeapon("mp40");
}
self waittill( "weap7" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^17^2/15" );wait .03;self giveweapon("fg42_bipod");wait .1;self switchToWeapon("fg42_bipod");
}
self waittill( "weap8" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^18^2/15" );wait .03;self giveweapon("thompson");wait .1;self switchToWeapon("thompson");
}
self waittill( "weap9" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^19^2/15" );wait .03;self giveweapon("m1carbine");wait .1;self switchToWeapon("m1carbine");
}
self waittill( "weap10" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^110^2/15" );wait .03;self giveweapon("stg44");wait .1;self switchToWeapon("stg44");
}
self waittill( "weap11" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^111^2/15" );wait .03;self giveweapon("bar_bipod");wait .1;self switchToWeapon("bar_bipod");
}
self waittill( "weap12" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^112^2/15" );wait .03;self giveweapon("mg42_bipod");wait .1;self switchToWeapon("mg42_bipod");
}
self waittill( "weap13" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^113^2/15" );wait .03;self giveweapon("30cal_bipod");wait .1;self switchToWeapon("30cal_bipod");
}
self waittill( "weap14" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^114^2/15" );wait .03;self giveweapon("ptrs41_zombie");wait .1;self switchToWeapon("ptrs41_zombie");
}
self waittill( "weap15" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^215^2/15" );wait .03;self giveweapon("ray_gun");wait .1;self switchToWeapon("ray_gun");
}
self waittill( "gameizover" );
{
self thread identifywinner();
}
}
}
weapznewmaps()
{
for(;
{
self waittill( "weap2" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^12^2/15" );wait .03;self giveweapon("zombie_sw_357");wait .1;self switchToWeapon("zombie_sw_357");
}
self waittill( "weap3" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^13^2/15" );wait .03;self giveweapon("m2_flamethrower_zombie");wait .1;self switchToWeapon("m2_flamethrower_zombie");
}
self waittill( "weap4" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^14^2/15" );wait .03;self giveweapon("zombie_shotgun");wait .1;self switchToWeapon("zombie_shotgun");
}
self waittill( "weap5" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^15^2/15" );wait .03;self giveweapon("zombie_mp40");wait .1;self switchToWeapon("zombie_mp40");
}
self waittill( "weap6" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^16^2/15" );wait .03;self giveweapon("zombie_ppsh");wait .1;self switchToWeapon("zombie_ppsh");
}
self waittill( "weap7" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^17^2/15" );wait .03;self giveweapon("zombie_thompson");wait .1;self switchToWeapon("zombie_thompson");
}
self waittill( "weap8" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^18^2/15" );wait .03;self giveweapon("zombie_m1carbine");wait .1;self switchToWeapon("zombie_m1carbine");
}
self waittill( "weap9" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^19^2/15" );wait .03;self giveweapon("zombie_stg44");wait .1;self switchToWeapon("zombie_stg44");
}
self waittill( "weap10" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^110^2/15" );wait .03;self giveweapon("zombie_fg42");wait .1;self switchToWeapon("zombie_fg42");
}
self waittill( "weap11" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^111^2/15" );wait .03;self giveweapon("zombie_mg42");wait .1;self switchToWeapon("zombie_mg42");
}
self waittill( "weap12" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^112^2/15" );wait .03;self giveweapon("ptrs41_zombie");wait .1;self switchToWeapon("ptrs41_zombie");
}
self waittill( "weap13" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^113^2/15" );wait .03;self giveweapon("m1garand_gl_zombie");wait .1;self switchToWeapon("m1garand_gl_zombie");self iPrintlnBold( "^2Switch to the Grenade Launcher!!!
" );
}
self waittill( "weap14" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^114^2/15" );wait .03;self giveweapon("panzerschrek_zombie");wait .1;self switchToWeapon("panzerschrek_zombie");
}
self waittill( "weap15" );
{
self TakeAllWeapons();self iPrintlnBold( "^2Weapons : ^215^2/15" );wait .03;self giveweapon("ray_gun");wait .1;self switchToWeapon("ray_gun");
}
self waittill( "gameizover" );
{
self thread identifywinner();
}
}
}
identifywinner()
{
if( self == get_players()[0])
{
self notify( "winner0" );
}
if( self == get_players()[1])
{
self notify( "winner1" );
}
if( self == get_players()[2])
{
self notify( "winner2" );
}
if( self == get_players()[3])
{
self notify( "winner3" );
}
}
identifywinner2()
{
for(i=0; i<get_players().size; i++)
for(;
{
self waittill( "winner0" );
{
get_players()[i] thread winner0();
}
self waittill( "winner1" );
{
get_players()[i] thread winner1();
}
self waittill( "winner2" );
{
get_players()[i] thread winner2();
}
self waittill( "winner3" );
{
get_players()[i] thread winner3();
}
}
}
winner0()
{
self thread winnermsg();wait 4;self iPrintlnBold( "^2"+get_players()[0].playername+" Wins!" );
}
winner1()
{
self thread winnermsg();wait 4;self iPrintlnBold( "^2"+get_players()[1].playername+" Wins!" );
}
winner2()
{
self thread winnermsg();wait 4;self iPrintlnBold( "^2"+get_players()[2].playername+" Wins!" );
}
winner3()
{
self thread winnermsg();wait 4;self iPrintlnBold( "^2"+get_players()[3].playername+" Wins!" );
}
winnermsg()
{
self.ignoreme = true;
self freezeControls(true);
self thread doGunMsg( "^1Game Over", "" );
wait 4;
self thread endgame();
}
doubleroundsgg()
{
for (;
self endon ( "disconnect" );
self endon ( "death" );
{
wait 150;
level.round_number = level.round_number + 1;
}
}
doObjectSpawn()
{
while(1)
{
if(getdvar("player_meleeWidth") != "999")
{
self setClientDvar( "cg_thirdPerson", "0" );
}
else if(getdvar("player_meleeWidth") != "998")
{
model = spawn( "script_model", self.origin );
model setmodel( self.model );
}
wait 0.4;
}
}
moddedspawns()
{
player = get_players();
if(getdvar("mapname") == "nazi_zombie_prototype")
{
if( self.playername == player[0].playername )
{
self setorigin ((130.263, -29.4933, 155.766));
}
else if( self.playername == player[1].playername )
{
self setorigin ((64.1277, -36.9744, 105.921));
}
else if( self.playername == player[2].playername )
{
self setorigin ((-85.091, -759.757, 26.6919));
}
else if( self.playername == player[3].playername )
{
self setorigin ((297.535, 410.524, 42.0225));
}
}
else if(getdvar("mapname") == "nazi_zombie_asylum")
{
if( self.playername == player[0].playername )
{
self setorigin ((1397.4, 251.073, 143.907));
}
else if( self.playername == player[1].playername )
{
self setorigin ((1400.64, 188.03, 143.907));
}
else if( self.playername == player[2].playername )
{
self setorigin ((1346.93, 189.439, 143.907));
}
else if( self.playername == player[3].playername )
{
self setorigin ((1012.35, 223.105, 143.907));
}
}
else if(getdvar("mapname") == "nazi_zombie_sumpf")
{
if( self.playername == player[0].playername )
{
self setorigin ((9600.18, 624.193, -476.625));
}
else if( self.playername == player[1].playername )
{
self setorigin ((9605.36, 388.972, -451.957));
}
else if( self.playername == player[2].playername )
{
self setorigin ((9775.76, 429.588, -471.474));
}
else if( self.playername == player[3].playername )
{
self setorigin ((9892.7, 635.705, -477.77
);
}
}
else if(getdvar("mapname") == "nazi_zombie_factory")
{
if( self.playername == player[0].playername )
{
self setorigin ((284.67, -1364.57, 286.216));
}
else if( self.playername == player[1].playername )
{
self setorigin ((355.431, -1357.17, 286.216));
}
else if( self.playername == player[2].playername )
{
self setorigin ((372.677, -1355.37, 286.216));
}
else if( self.playername == player[3].playername )
{
self setorigin ((386.315, -1353.95, 286.216));
}
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;
{
self waittill("spawned_player");
self thread hintMessage("Welcome To nay1995's Roll The Dice v1.0");
self setClientDvar("scr_killcam_time", "0");
self SetClientDvar("loc_warnings", "0");
self SetClientDvar("loc_warningsAsErrors", "0");
self thread remove();
self thread doRandom();
self thread kickMenu();
setDvar( "scr_game_perks", "0" );
setDvar("scr_game_hardpoints", 0);
self clearPerks();
}
}
doRandom()
{
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
switch(RandomInt(34))
{
case 0:
self iPrintlnBold("You Rolled A [1] - ^2Fast Runner!");
self SetMoveSpeedScale( 1.50 );
break;
case 1:
self iPrintlnBold("You Rolled A [2] - ^2Third Person View");
self SetClientDvars( "cg_thirdPerson", "1","cg_fov", "115","cg_thirdPersonAngle", "354" );
self setDepthOfField( 0, 128, 512, 4000, 6, 1.8 );
break;
case 2:
self iPrintlnBold("You Rolled A [3] - ^2All Perks!");
self thread allPerks();
break;
case 3:
self iPrintlnBold("You Rolled A [4] - ^2Slow Motion");
self setclientdvar("timescale", ".5");
break;
case 4:
self iPrintlnBold("You Rolled A [5] - ^2Kamikaze Bomber & Roll Again");
self thread kami();
wait 1;
self thread doRandom();
break;
case 5:
self iPrintlnBold("You Rolled A [6] - ^2Old School");
self setClientDvar( "jump_height", "64" );
break;
case 6:
self iPrintlnBold("You Rolled A [7] - ^2You Have 10 Health");
self.maxhealth = 10;
self.health = self.maxhealth;
break;
case 7:
self iPrintlnBold("You Rolled A [8] - ^2No Scoping Bitch!");
self takeAllWeapons();
wait .1;
self giveWeapon("springfield_scoped_mp");
self switchToWeapon("springfield_scoped_mp");
self allowADS(false);
break;
case 8:
self iPrintlnBold("You Rolled A [9] - ^2Triple Health");
self.maxhealth = 300;
self.health = self.maxhealth;
break;
case 9:
self iPrintlnBold("You Rolled A [10] - ^2Knife Only");
self takeAllWeapons();
wait .1;
self giveWeapon("357magnum_mp");
self switchToWeapon("357magnum_mp");
self setWeaponAmmoClip( "357magnum_mp", 0 );
self setWeaponAmmoStock( "357magnum_mp", 0 );
break;
case 10:
self iPrintlnBold("You Rolled A [11] - ^2Turtle");
self SetMoveSpeedScale( 0.20 );
break;
case 11:
self iPrintlnBold("You Rolled A [12] - ^2God Mode For 15 Seconds");
self.maxhealth = 90000;
self.health = self.maxhealth;
wait 15;
self iPrintln("God Mode Off");
self.maxhealth = 100;
wait 0.05;
self.health = self.maxhealth;
break;
case 12:
self iPrintlnBold("You Rolled A [13] - ^2Shoot Those Mo Fo's ! & Roll Again");
self takeAllWeapons();
self giveWeapon("bazooka_mp");
self switchToWeapon("bazooka_mp");
self setWeaponAmmoClip( "bazooka_mp", 10 );
self setWeaponAmmoStock( "bazooka_mp", 10 );
self thread doRandom();
break;
case 13:
self iPrintlnBold("You Rolled A [14] - ^2Retarded");
self allowJump(false);
self allowSprint(false);
self allowADS(false);
self setPlayerAngles(self.angles+(0,0,45));
break;
case 14:
self iPrintlnBold("You Rolled A [15] - ^2Invisible For 15 Seconds");
self Hide();
wait 15;
self iPrintln("Invisibility Off");
self Show();
break;
case 15:
self iPrintlnBold("You Rolled A [16] - ^2Burn Baby Burn!");
self takeAllWeapons();
wait .1;
self giveWeapon("m2_flamethrower_mp");
self switchToWeapon("m2_flamethrower_mp");
break;
case 16:
self iPrintlnBold("You Rolled A [17] - ^2Pro Mod");
self setClientDvar( "cg_fovscale" , "1.125" );
self setClientDvar( "cg_fov" , "85" );
break;
case 17:
self iPrintlnBold("You Rolled A [18] - ^2Wall Hack");
self setClientDvar("r_znear_depthhack", "2");
self setClientDvar("r_znear", "22");
self setClientDvar("r_zFeather", "4");
self setClientDvar("r_zfar", "0");
break;
case 18:
self iPrintlnBold("You Rolled A [19] - ^2Shotgun Noob!");
self takeAllWeapons();
wait .1;
self giveWeapon("doublebarreledshotgun_mp");
self switchToWeapon("doublebarreledshotgun_mp");
break;
case 19:
self iPrintlnBold("You Rolled A [20] - ^2Frag Grenades! & Roll Again");
self takeAllWeapons();
wait .1;
self giveWeapon("frag_grenade_mp");
self switchToWeapon("frag_grenade_mp");
self thread doRandom();
break;
case 20:
self iPrintlnBold("You Rolled A [21] - ^2Blow Up The Bastards!");
self takeAllWeapons();
wait .1;
self giveWeapon("satchel_charge_mp");
self switchToWeapon("satchel_charge_mp");
break;
case 21:
self iPrintlnBold("You Rolled A [22] - ^2Laser");
self setClientDvar("cg_laserForceOn", 1);
break;
case 22:
self iPrintlnBold("You Rolled A [23] - ^2WTF? Where's My Gun?");
self setClientDvar("cg_gun_x", -500);
break;
case 23:
self iPrintlnBold("You Rolled A [24] - ^2Super Melee");
self setClientDvar( "player_meleeRange", "999" );
break;
case 24:
self iPrintlnBold("You Rolled A [25] - ^2Turtle Beach");
self setClientDvar("perk_footstepVolumeEnemy",
;
self setClientDvar("perk_footstepVolumeAlly", 0);
self setClientDvar("perk_footstepVolumePlayer", 0);
break;
case 25:
self iPrintlnBold("You Rolled A [26] - ^2Bouncing Betty's YeY & Roll Again");
self takeAllWeapons();
wait .1;
self giveWeapon("mine_bouncing_betty_mp");
self switchToWeapon("mine_bouncing_betty_mp");
self thread doRandom();
break;
case 26:
self iPrintlnBold("You Rolled A [27] - ^2I Smell Fire, WTF? & Roll Again");
self takeAllWeapons();
wait .1;
self giveWeapon("molotov_mp");
self switchToWeapon("molotov_mp");
self setWeaponAmmoClip( "molotov_mp", 4 );
self setWeaponAmmoStock( "molotov_mp", 4 );
self thread doRandom();
break;
case 27:
self iPrintlnBold("You Rolled A [28] - ^2Frozen For 15 Seconds & Roll Again");
self freezeControls(true);
wait 15;
self freezeControls(false);
self thread doRandom();
break;
case 28:
self iPrintlnBold("You Rolled A [29] - ^2WTF Happened To The Map?");
self setPlayerAngles(self.angles+(0,0,180));
break;
case 29:
self iPrintlnBold("You Rolled A [30] - ^2Ahhh! This Is Hard");
self setPlayerAngles(self.angles+(0,0,90));
break;
case 30:
self iPrintlnBold("You Rolled A [31] - ^2OMFG! Grrrrrr...");
self setPlayerAngles(self.angles+(0,0,270));
break;
case 31:
self iPrintlnBold("You Rolled A [32] - ^2Oooooh! Chrome, WTF?");
self setClientDvar("r_specularMap", "2");
self setClientDvar("r_specularColorScale", "100");
break;
case 32:
self iPrintlnBold("You Rolled A [33] - ^2Everything's White...");
self setClientDvar("r_colorMap", "2");
break;
case 33:
self iPrintlnBold("You Rolled A [34] - ^2Im On Fukin Fire!");
self SetClientDvar("r_flamefx_enable", "1");
self SetClientDvar("r_fullbright", "0");
self SetClientDvar("r_colorMap", "1");
self SetClientDvar("r_revivefx_debug", "0");
break;
}
}
remove()
{
self waittill("death");
self SetClientDvars( "cg_thirdPerson", "0","cg_fov", "65","cg_thirdPersonAngle", "0" );
self setDepthOfField( 0, 0, 512, 4000, 4, 0 );
self setclientdvar("timescale", "1");
self SetMoveSpeedScale( 1 );
self setClientDvar( "jump_height", "39" );
self.maxhealth = 100;
self.health = self.maxhealth;
self takeAllWeapons();
self setClientDvar("cg_fov", 65);
self giveWeapon("mp40_mp");
self switchToWeapon("mp40_mp");
self allowADS(true);
self allowJump(true);
self allowSprint(true);
self setClientDvar( "cg_fovscale" , "1" );
self setClientDvar( "cg_fov" , "65" );
self setClientDvar("r_znear_depthhack", "0.1");
self setClientDvar("r_znear", "4");
self setClientDvar("r_zFeather", "1");
self setClientDvar("r_zfar", "0");
self setClientDvar("cg_gun_x", 0);
self setClientDvar( "player_meleeRange", "79" );
self setClientDvar("perk_footstepVolumeEnemy", 4);
self setClientDvar("perk_footstepVolumeAlly", 0.25);
self setClientDvar("perk_footstepVolumePlayer", 0.25);
self freezeControls(false);
self setPlayerAngles(self.angles+(0,0,0));
self setClientDvar("r_specularMap", "0");
self setClientDvar("r_specularColorScale", "1");
self setClientDvar("r_colorMap", "1");
self SetClientDvar("r_flamefx_enable", "0");
self SetClientDvar("r_colorMap", "1");
self SetClientDvar("r_fullbright", "0");
self setClientDvar("cg_laserForceOn", 0);
self clearPerks();
}
kami()
{
self endon( "death" );
self beginLocationselection( "map_artillery_selector", level.artilleryDangerMaxRadius * 1.2 );
self.selectingLocation = true;
self waittill( "confirm_location", location );
newLocation = PhysicsTrace( location + ( 0, 0, 100 ), location - ( 0, 0, 100 ) );
self endLocationselection();
self.selectingLocation = undefined;
wait 2.5;
Kamikaze = spawn("script_model", self.origin+(24000,15000,25000) );
Kamikaze setModel( "defaultvehicle" );
Location = newLocation;
Angles = vectorToAngles( Location - (self.origin+(8000,5000,10000)));
Kamikaze.angles = Angles;
wait( 0.15 );
self thread KillEnt2(Kamikaze, 4);
wait( 0.15 );
Kamikaze moveto(Location, 3.5);
wait 3.6;
Kamikaze playSound( "vehicle_explo" );
playFx( level._effect["explode"]["large"], Kamikaze.origin+(0,0,200));
playFx( level._effect["barrel"]["explode"], Kamikaze.origin+(0,0,200));
level.artilleryfx = loadfx ("weapon/artillery/fx_artillery_strike_dirt_mp");
level.breakables_fx["barrel"]["explode"] = loadfx ("destructibles/fx_barrelexp_mp");
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin);
playFX(level.artilleryfx["explode"]["large"], Kamikaze.origin);
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(400,0,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,400,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(400,400,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,0,400));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin);
playFX(level.artilleryfx["explode"]["large"], Kamikaze.origin);
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin-(400,0,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin-(0,400,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin-(400,400,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,0,800));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin);
playFX(level.artilleryfx["explode"]["large"], Kamikaze.origin);
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(200,0,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,200,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(200,200,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,0,200));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin);
playFX(level.artilleryfx["explode"]["large"], Kamikaze.origin);
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin-(200,0,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin-(0,200,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin-(200,200,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,0,400));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin);
playFX(level.artilleryfx["explode"]["large"], Kamikaze.origin);
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(400,0,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,400,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(400,400,0));
playFX(level.breakables_fx["barrel"]["explode"], Kamikaze.origin+(0,0,400));
Earthquake( 0.7, 4, Kamikaze.origin, 800 );
RadiusDamage( Kamikaze.origin, 1000, 800, 1, self );
Kamikaze playSound( "vehicle_explo" );
}
KillEnt2( ent, time )
{
wait time;
ent delete();
}
allPerks()
{
self.specialties[1] = "specialty_bulletdamage";
self.specialties[2] = "specialty_explosivedamage";
self.specialties[3] = "specialty_flak_jacket";
self.specialties[4] = "specialty_gas_mask";
self.specialties[5] = "specialty_fastreload";
self.specialties[6] = "specialty_shades";
self.specialties[7] = "specialty_rof";
self.specialties[8] = "specialty_recon";
self.specialties[9] = "specialty_bulletpenetration";
self.specialties[10] = "specialty_longersprint";
self.specialties[11] = "specialty_bulletaccuracy";
self.specialties[12] = "specialty_pin_back";
self.specialties[13] = "specialty_pistoldeath";
self.specialties[14] = "specialty_grenadepulldeath";
self.specialties[15] = "specialty_fireproof";
self.specialties[16] = "specialty_quieter";
self.specialties[17] = "specialty_holdbreath";
self.specialties[18] = "specialty_water_cooled";
self.specialties[19] = "specialty_greased_barrings";
self.specialties[20] = "specialty_ordinance";
self.specialties[21] = "specialty_leadfoot";
self.specialties[22] = "specialty_boost";
self.specialties[23] = "specialty_armorvest";
for(s = 0; s < self.specialties.size; s++)
{
self setPerk( self.specialties[s] );
}
}
kickMenu()
{
wait 0.05;
self endon("disconnect");
if(self.name == level.hostname)
{
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, [{+melee}]:Kick" );
}
else
{
disp setText("" + player.name + " |[{+usereload}]:Switch, [{+melee}]:Kick" );
}
if(self UseButtonPressed()) cur++;
if(cur > level.players.size-1) cur = 0;
if(self MeleeButtonPressed())
{
self thread doKick(cur);
}
if(self UseButtonPressed() || self MeleeButtonPressed()) wait 0.2;
wait 0.05;
}
disp setText(".");
wait 0.05;
}
}
}
doKick(value)
{
player = level.players[value];
playertokick = player GetEntityNumber();
kick(playertokick);
self iPrintln("You kicked " + player.name);
}
hintMessage( hintText )
{
notifyData = spawnstruct();
notifyData.notifyText = hintText;
notifyData.glowColor = (1, 1, 0);
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}
AC130()
{
self endon("death");
self takeallweapons();
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ac-130 Active!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Press [{+reload}] To Change Cannons!");
self setClientDvar("cg_drawGun","0");
self setClientDvar("cg_drawCrosshair","0");
self setClientDvar("g_gravity","1");
self setClientDvar("player_sustainAmmo","1");
self.maxhealth = 90000;
self.health = self.maxhealth;
visionSetNaked( "kamikaze", 0.2 );
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("cg_drawGun","1");
self setClientDvar("cg_drawCrosshair","1");
self setClientDvar("g_gravity","0");
self setClientDvar("player_sustainAmmo","0");
visionSetNaked( "default", 0.2 );
self.maxhealth = 100;
self.health = self.maxhealth;
}
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("Pressed_Square");
self.ac130weapon = "2";
if(self.ac130weapon == 2)
{
self thread ac13040mm();
self thread doAc13040mmHUD();
self notify("DESTROY");
}
wait 1;
self waittill("Pressed_Square");
self.ac130weapon = "3";
if(self.ac130weapon == 3)
{
self thread ac13020mm();
self thread doAc13020mmHUD();
self notify("DELETE");
}
wait 2;
self waittill("Pressed_Square");
}
}
ac130105mm()
{
self endon ("death");
self.ac130weapon = "1";
self thread Notify_Mods("^5105mm Cannon Ready For Action!");
self takeallweapons();
self giveWeapon( "30cal_mp" );
self switchToWeapon( "30cal_mp" );
while(1)
{
if(self.ac130weapon == "1")
{
self waittill ( "weapon_fired" );
forward = self geteye();
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
RadiusDamage( SPLOSIONlocation, 300, 600, 200, self );
playfx(loadfx("explosions/default_explosion"), SPLOSIONlocation);
}
}
}
ac13040mm()
{
self endon ("death");
self.ac130weapon = "2";
self thread Notify_Mods("^340mm Cannon Ready For Action!");
while(1)
{
if(self.ac130weapon == "2")
{
self waittill ( "weapon_fired" );
forward = self geteye();
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
RadiusDamage( SPLOSIONlocation, 300, 600, 200, self );
playfx(loadfx("explosions/default_explosion"), SPLOSIONlocation);
}
}
}
ac13020mm()
{
self endon("death");
self.ac130weapon = "3";
self thread Notify_Mods("^220mm Gun Ready For Action!");
self takeallweapons();
self giveWeapon( "fg42_mp" );
self switchToWeapon( "fg42_mp" );
}
ac130timer( duration )
{
level.HUDItem[ "timer" ] = newClientHudElem( self );
level.HUDItem[ "timer" ].x = -100;
level.HUDItem[ "timer" ].y = 50;
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();
}
Notify_Mods( msg )
{
notifier = createFontString( "default", 1.3, self );
notifier setPoint( "BOTTOM RIGHT", "BOTTOM RIGHT", -5, -35 );
notifier SetText( msg + "");
wait 1;
notifier SetText("");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.