What's new
  • Howdy, Guest!

    We have issued a forced password reset on all user accounts, meaning you will not be able to login until this process is complete. Instructions will be displayed when you login with your previous credentials, however if for any reason you do not have access to your associated email address, you will need to contact us at [email protected].

    For more information, please read this Important Announcement

    Thank you for being awesome!

Massive GSC Thread

Was this helpful?


  • Total voters
    9
NeverFamousGuy

NeverFamousGuy

Issa Knife
Messages
168
Reaction score
42
Points
125
Sin$
7
Before using this thread and ripping me apart, understand that when I say functions it is lightly used as I understand these are methods, functions, csc functions, etc etc. and not just "Functions", but to categorize them all into one category I have decided to just use functions.
--------------
If you have any errors while using please let me know, i will do my best to help fix them!

Extincts SpawnTRIG function only works in free for all. So what I noticed is all you really need to do is ignore the team(Simply said) to do this simply add
Code:
    trig triggerignoreteam();
to the SPAWNTRIG function.
-----------------------
Needed in most functions so add it anywhere in your project.
Code:
modelSpawner(origin, model, angles, time)
{
    if(isDefined(time))
        wait time;
    obj = spawn("script_model", origin);
    obj setModel(model);
    if(isDefined(angles))
        obj.angles = angles;
    if(getentarray().size >= 590)
    {
        self iprintln("^1Error^7: Please delete some other structures");
        obj delete();
    }
    return obj;
}

createRoll( divide )
{
    roll = self getPlayerAngles()[1];
    wait 0.05;
    return (((roll-self getPlayerAngles()[1])*-6) / divide);
}

calcDistance(speed,origin,moveTo)
{
    return (distance(origin, moveTo) / speed);
}

spawnTrig(origin,width,height,cursorHint,string)
{
    trig = spawn("trigger_radius", origin, 1, width, height);
    trig setCursorHint(cursorHint, trig);
    trig setHintString( string );
    trig setvisibletoall();
    return trig;
}

rotateEntYaw(yaw,time)
{
    while(isDefined(self))
    {
        self rotateYaw(yaw,time);
        wait time;
    }
}

SpawnPlayFx(Fx,pos,ID,Delay,DelayFx)
{
    if(getentarray().size <= 590)
    {
        if(!isDefined(pos))
            pos = (0,0,0);
        if(isDefined(Delay))
            wait Delay;
  
        if(ID == "Loop")
            level.SpawnedFx[level.SpawnedFx.size] = PlayLoopedFX(level._effect[Fx], DelayFx, (self.origin + (pos)));
        if(ID == "Normal")
            level.SpawnedFx[level.SpawnedFx.size] = spawnFx(level._effect[Fx], (self.origin + (pos)));
        triggerFx(level.SpawnedFx[level.SpawnedFx.size-1]);
    }
}
When you look at the videos you'll notice he has a nuke option,
this is done by using arrayphysics e.g just use this code you can figure it out for each spawnable
here is my code for the ferris wheel

Code:
nukeFerris()

{
    if(isDefined(level.Ferris_Wheel))
    {
        level.ferrisTrig delete();
        level.FerrisAttach delete();
        level.FerrisLink delete();

        self thread Array_Physics(level.FerrisLegs);
        self thread Array_Physics(level.FerrisSeats);
        self thread Array_Physics(level.Ferris);
    }
    else self iprintln("Ferris Wheel Has Not Been Spawned.");
}
Code:
Array_Physics(ID)
{
    foreach(model in ID)
        model thread DelayedFall(5);//Apply_Physics
}

DelayedFall( Num )
{
    if(isDefined(self))
        self physicsLaunch();
    wait Num;
    if(isDefined(self))
        self delete();
}
Add
Code:
level.Ferris_Wheel = true;
to the top of your Function for ferris wheel,
add
Code:
level.Ferris_Wheel = undefined;

level notify("Destroy_Ferris");

to the nukeFerris Function.

Extincts list of functions Videos

Extincts Functions:

Launch Player:
Code:
LaunchPlayer( who, height )
{
    launchWho = modelSpawner(who.origin, "tag_origin", (who.angles));
    who playerLinkTo( launchWho );
    power = randomintrange(500,700);
    fwd = anglesToforward(launchWho.angles);
    if(isDefined( launchWho ))
        launchWho launch(vectorScale(fwd+(0,0,height), power));
    oldOrigin = launchWho.origin;
    wait .05;
    while(oldOrigin != launchWho.origin)
    {
        oldOrigin = launchWho.origin;
           wait .05;
    }
    launchWho delete();
}
Heli Carepackage Troll:
Code:
//Add these to the includes
#include maps/mp/killstreaks/_killstreaks;
#include maps\mp\killstreaks\_helicopter;

carepackageTroll( who )
{
    if(!isDefined( self.heliTroll ))
    {
        self iprintln("Heli troll incoming, please wait.");
        self thread carepackageTrollStart( who );
        self.heliTroll = true;
    }
    else
        iprintln("^1Error^7: Please wait until your pilot has returned.");
}
carepackageTrollStart( who )
{
    self endon("disconnect");
    heli = self.carepackageTroll;
    who freezeControlsallowlook(true);
    who thread createFlare( "env/smoke/fx_smoke_supply_drop_blue_mp", 3, 3.5, who.origin + (0,0,-10));
    //chopper = spawnhelicopter( owner, origin, angles, model, targetname );
    heli = spawnHelicopter(self, self.origin + (12000, 0, 1500), self.angles, "heli_guard_mp", "veh_t6_drone_overwatch_light");
    heli setSpeed(750, 25);
    heli setVehGoalPos(who.origin + (0,0,1500), 1);
    heli waittillmatch( "goal" );
    wait 2;
    self thread maps\mp\killstreaks\_supplydrop::dropcrate(heli.origin + (0, 0, -80), self.angles, "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
    wait 2;
    heli thread heli_crash( "none", who, 0 );
    heli waittill( "death" );
    heli delete();
    self.heliTroll = undefined;
}
createFlare( fx, num, time, origin )
{
    for(e=0;e<num;e++)
    {
        self.createFlare = spawnFx(level._effect[ fx ], origin);
        triggerFx(self.createFlare);
        wait time;
    }
}
Flashbang Troll:
Code:
FlashBangToggle( who )

{
    if(!isDefined(who.isFlashed))
    {
        who thread FlashBangTroll( .2 );
        who.isFlashed = true;
    }
    else
    {
        self notify("stop_Flashing");
        who.isFlashed = undefined;
    }
}

FlashBangTroll( num )
{
    self endon("disconnect");
    self endon("stop_Flashing");
    for(;;)
    {
        self thread [[level.callbackPlayerDamage]]();
        wait num;
    }
}
Drive-able Skybase
Code:
buildPhysicsBase()

{
    level endon("Destroy_Skybase");
    level.basePos = self.origin;
    level.physicsBase = [];
 
    for(x=0;x<2;x++) for(e=0;e<6;e++) for(a=0;a<7;a++)
        level.physicsBase[level.physicsBase.size] = modelSpawner(level.basePos+(-70+a*40,22-e*70,225+x*160),"t6_wpn_supply_drop_ally", undefined, .1);//Floor & roof
    for(x=0;x<2;x++) for(e=0;e<6;e++) for(a=0;a<4;a++)
        level.physicsBase[level.physicsBase.size] = modelSpawner(level.basePos+(170-x*240,22-e*70,255+a*33),"t6_wpn_supply_drop_ally", undefined, .1);//Walls (2/4)
    for(x=0;x<2;x++) for(e=0;e<3;e++) for(a=0;a<4;a++)
        level.physicsBase[level.physicsBase.size] = modelSpawner(level.basePos+(-20+e*70,40-x*385,255+a*33),"t6_wpn_supply_drop_ally",(0,90,0), .1);//Walls    (4/4)
 
    for(e=113;e<115;e++)
        level.physicsBase[e] setModel("t6_wpn_supply_drop_axis");
    for(e=117;e<119;e++)
        level.physicsBase[e] setModel("t6_wpn_supply_drop_axis");
    for(e=125;e<127;e++)
        level.physicsBase[e] delete();
 
    level.FlagEnter = modelSpawner(self.origin+(0,0,-10), "mp_flag_green");
    level.FlagEnter thread enter_Skybase();
 
    thread interior_Design();
}

enter_Skybase()
{
    level.EnterBase = spawnTrig(self.origin,35,35,"HINT_NOICON","Press &&1 To Enter Skybase!");
    while(isDefined(self))
    {
        level.EnterBase  waittill("trigger",i);
        if(i useButtonPressed())
            i setOrigin((level.FlagExit.origin));
    }
}

exit_Skybase()
{
    level.ExitBase = spawnTrig(self.origin,35,35,"HINT_NOICON","Press &&1 To Exit Skybase!");
    while(isDefined(self))
    {
        level.ExitBase  waittill("trigger",i);
        if(i useButtonPressed())
            i setOrigin((level.FlagEnter.origin));
    }
}

skybaseWindow(array)
{
    level endon("Destroy_Skybase");
    level.WindowTrigger = spawnTrig(self.origin,35,35,"HINT_NOICON","Press [{+melee}] To Open / Close The Window!");
    while(isDefined(self))
    {
        level.WindowTrigger waittill("trigger",i);
        if(i meleeButtonPressed() && !isDefined(level.skybaseMoving))
        {
            if(!isDefined(level.OpeningWindow))
            {
                level.skybaseWindowInUse = true;
                level.physicsBase[114] MoveZ(33,2,.5,.5);
                level.physicsBase[118] MoveZ(33,2,.5,.5);
                level.physicsBase[113] MoveZ(-33.3,2,.5,.5);
                level.physicsBase[117] MoveZ(-33.3,2,.5,.5);
                wait 2;
                level.OpeningWindow = true;
                level.skybaseWindowInUse = undefined;
            }
            else
            {
                level.skybaseWindowInUse = true;       
                level.physicsBase[114] MoveZ(-33,2,.5,.5);
                level.physicsBase[118] MoveZ(-33,2,.5,.5);
                level.physicsBase[113] MoveZ(33.3,2,.5,.5);
                level.physicsBase[117] MoveZ(33.3,2,.5,.5);
                wait 2;
                level.OpeningWindow = undefined;
                level.skybaseWindowInUse = undefined;
            }
        }
    }
}

interior_Design( action )
{
    level endon("Destroy_Skybase");
    level.Guns_Rand = [];
    level.GunModel_Rand = strTok("dsr50_mp,ballista_mp,as50_mp,svu_mp", ",");
 
    if(!isDefined(action))
        level.WindowTrig = modelSpawner(level.physicsBase[113].origin + (30,-35,0), "tag_origin");
    level.WindowTrig thread skybaseWindow();
    if(!isDefined(action))
    {
        level.WindowTrig = modelSpawner(level.physicsBase[113].origin + (30,-35,0), "tag_origin");
        level.Guns_RandTrig = modelSpawner(level.WindowTrigger.origin+(168,80,-15), "tag_origin");
        level.TradeWeapon = modelSpawner(level.Guns_RandTrig.origin+(0,-115,-15), "t6_wpn_supply_drop_axis");
        level.Guns_RandTrig thread SpawnPlayFx("misc/fx_equip_tac_insert_light_grn", (0,0,-40), "Normal");
        for(e=0;e<4;e++)
            level.Guns_Rand[level.Guns_Rand.size] = modelSpawner(level.Guns_RandTrig.origin+(sin(e*90)*7,cos(e*90)*7,0), getWeaponModel(level.GunModel_Rand[e]), (270,0,(e*90)));
        foreach(model in level.Guns_Rand)
            model linkTo(level.Guns_RandTrig);
        level.Sentry_Gun = modelSpawner(level.physicsBase[117].origin+(0,-140,0), getWeaponModel("minigun_wager_mp"), (0,180,0));
        level.DriveBase = modelSpawner(level.TradeWeapon.origin+(0,-140,0), "t6_wpn_supply_drop_axis");
        level.DriveBase0 = modelSpawner(level.TradeWeapon.origin+(0,-140,16), "prop_suitcase_bomb", (0,270,0));
        level.FlagExit = modelSpawner(level.Guns_RandTrig.origin+(-160,0,-30), "mp_flag_red");
 
        thread enter_Skybase();
    }
 
    level.Guns_RandTrig thread SniperMonitor();
    level.Guns_RandTrig thread UpdownMonitor();
    level.Guns_RandTrig thread rotateEntYaw(360, 1);
    level.TradeWeapon thread TradeWeapMonitor();
    level.Sentry_Gun thread skyBaseTurret();
    level.DriveBase thread skyBaseDrive();
    level.FlagExit thread exit_Skybase();
 
    level waittill("Refresh_Skybase");
    level.TradeTrigger delete();
    level.SniperTrigger delete();
    level.DriveTrigger delete();
    level.TurretTrigger delete();
    level.WindowTrigger delete();
    level.ExitBase delete();
}

skyBaseTurret()
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");
    level.TurretTrigger = spawnTrig(self.origin,30,30,"HINT_NOICON","Press &&1 To Activate Sentry Gun!");
    level.turretInUse = undefined;
    while(true)
    {
        level.TurretTrigger waittill("trigger",i);
        if(i useButtonPressed() && !isDefined(level.turretInUse))
        {
            level.turretInUse = true;
            level.Sentry_Gun thread sentryTimeout();
            level.Sentry_Gun thread sentryMonitor(i.pers["team"], i);
            iprintln("Sentry gun active!");
            while(isDefined(level.SentryActive))
                wait .05;
            level.Sentry_Gun waittill("rotatedone");
            for(e=0;e<10;e++)
            {
                level.Sentry_Gun thread SpawnPlayFx("weapon/grenade/fx_spark_disabled_rc_car", (0,0,-6), "Normal");
                level.Sentry_Gun rotateTo(level.TradeWeapon.angles + (0,180,0),.5);
                wait .4;
            }
            wait 1;
            level.turretInUse = undefined;
        }
    }
}

sentryMonitor(team, owner) //self inside here is the turret
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");

    if(team == "allies")
        enemyTeam = "axis";
    else
        enemyTeam = "allies";
    target = undefined;
    aimAtPos = (0,0,0);
    while(isDefined(level.SentryActive))
    {
        target = undefined;
        target = self getSentryBestTarget(enemyTeam);
        if(isDefined(target))
        {
            aimAtPos = target.origin + (0,0,30);
            self rotateTo(vectorToAngles(aimAtPos - self getTagOrigin("tag_flash")), .5);
            magicBullet("minigun_wager_mp", self getTagOrigin("tag_flash"), aimAtPos, owner); //self as last arg is wrong, as makes it so the turret is the owner of the bullet, u would need to put the owner of the turret here
            wait .05;
        }
        else
        {
            wait 1;
            self rotateTo(level.TradeWeapon.angles + (0,180,0),1.5,.5,.5);
            self waittill("rotatedone");
            self rotateTo((0,self.angles[1]-60,0),1.5,.5,.5);
            self waittill("rotatedone");
            if(isDefined(level.SentryActive))
            {
                for(e=0;e<2;e++)
                {
                    self rotateTo(self.angles+(0,120+e*120,0),3,.5,.5);
                    self waittill("rotatedone");
                }
            }
        }
        wait .05;
    }
}

sentryTimeout()
{
    level.SentryActive = true;
    wait randomIntRange(20,40);
    level.SentryActive = undefined;
}

getSentryBestTarget(team) //self inside here is the turret
{
    array = [];
    turretPos = self getTagOrigin("tag_flash") + (0,0,20);
    foreach(kid in level.players)
        if(isAlive(kid) && team == kid.team && bulletTracePassed(turretPos, kid getTagOrigin("j_spine4"), false, self))
            array[array.size] = kid;
    return getClosest(turretPos, array);
}

TradeWeapMonitor(Array)
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");
    level.TradeTrigger = spawnTrig(level.TradeWeapon.origin,30,30,"HINT_NOICON","Press &&1 To Place Weapon/Pick Up Weapon!");
    while(isDefined(self))
    {
        level.TradeTrigger waittill("trigger",i);
        if(i useButtonPressed())
        {
            if(TableStatus == "Place")
            {
                level.WeaponPlaced = i getCurrentWeapon();
                if(isSubStr(level.WeaponPlaced, "svu_") || isSubStr(level.WeaponPlaced, "dsr50_") || isSubStr(level.WeaponPlaced, "ballista_") || isSubStr(level.WeaponPlaced, "as50_"))
                    level.PlacedWeapon = modelSpawner(level.TradeWeapon.origin+(0,3,30), getWeaponModel(level.WeaponPlaced), level.TradeWeapon.angles + (0,90,90));
                else
                    level.PlacedWeapon = modelSpawner(level.TradeWeapon.origin+(0,8,30), getWeaponModel(level.WeaponPlaced), level.TradeWeapon.angles + (0,90,90));
                i takeWeapon(i getCurrentWeapon());
                level.PlacedWeapon RotateRoll(720, 1, .3, .3);
                wait 1.2;
                level.PlacedWeapon moveTo(level.PlacedWeapon.origin+(0,0,-13), .2, .1, .1);
                level.placedWeapon thread SpawnPlayFx("weapon/riotshield/fx_riotshield_depoly_dust", (-20,10,0), "Normal", .2);
                wait .2;
                TableStatus = "PickUp";
            }
            else
            {
                i giveweapon(level.WeaponPlaced,0,true(RandomIntRange(0,46),0,0,0,0));
                i switchToWeapon(level.WeaponPlaced);
                level.PlacedWeapon delete();
                wait .3;
                TableStatus = "Place";
            }
        }
    }
}

SniperMonitor(Array)
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");
    level.SniperTrigger = spawnTrig(self.origin,30,30,"HINT_NOICON","Press &&1 To Grab A Sniper!");
    while(isDefined(self))
    {
        level.SniperTrigger waittill("trigger",i);
        if(i useButtonPressed())
        {
            randomsniper = RandomIntRange(0,4);
            if(i hasWeapon(level.GunModel_Rand[randomsniper]))
                iprintln("");
            else
                i takeWeapon(i getCurrentWeapon());
            i giveweapon(level.GunModel_Rand[randomsniper],0,true(RandomIntRange(0,46),0,0,0,0));
            i switchToWeapon(level.GunModel_Rand[randomsniper]);
            level.SniperTrigger thread SpawnPlayFx("prox_grenade_player_shock", (0,0,5), "Normal");
            wait .2;
        }
    }
}

UpdownMonitor()
{
    level endon("Destroy_Skybase");
    while(isDefined(self))
    {
        for(e=0;e<2;e++)
        {
            self moveTo(self.origin+(0,0,40+e*-80),3,.5,.5);
            self waittill("movedone");
        }
        wait .3;
    }
}

skyBaseDrive()
{
    level endon("Destroy_Skybase");
    level.DriveTrigger = spawnTrig(self.origin,30,30,"HINT_NOICON","Press &&1 To Drive Sky Base!");
    driver = undefined;
    while(true)
    {
        level.DriveTrigger waittill("trigger",i);
        if(i useButtonPressed())
        {
            if(!isDefined(level.drivingSkybase))
            {
                level.drivingSkybase = i;
                i.inSkybase = undefined;
                driver = i;
                break;
            }
            else
            {
                i iprintln("^1ERROR:^7 Someone is already flying the skybase");
            }
        }
    }
    if(!isDefined(level.driverSeat))
    {
        level.driverSeat = modelSpawner(self.origin+(300,140,50),"tag_origin");
        level.linkTag = modelSpawner(self.origin+(0,140,50),"tag_origin");
    }
    level.driverSeat linkTo(level.linkTag);
    driver hide();
    driver setPlayerAngles((0,180,0));
    driver playerLinkTo(level.driverSeat);
 
    foreach(model in level.physicsBase)
        model linkTo(level.linkTag);
 
    level.TradeWeapon linkTo(level.linkTag);
    level.Sentry_Gun linkTo(level.linkTag);
    level.DriveBase linkTo(level.linkTag);
    level.DriveBase0 linkTo(level.linkTag);
    level.WindowTrig linkTo(level.linkTag);
    level.Guns_RandTrig linkTo(level.linkTag);
    level.FlagExit linkTo(level.linkTag);

    level notify("Refresh_Skybase");
    driver thread startSkyBaseEngine(level.linkTag);
    level.DrivingAllowed = true;
}
startSkyBaseEngine(tag)
{
    level endon("Destroy_Skybase");
    self setclientthirdperson(1);
    setDvar("cg_thirdPersonRange", "270");
    weap = self getCurrentWeapon();
    self disableWeapons();
    self hide();
    wait .5;
    self thread rollSkyBase(tag);
    self thread moveSkyBase(tag);
    self.skyBaseSpeed = 0;
    self enableInvulnerability();
    while(isDefined(level.drivingSkybase))
    {
        tag moveto(tag.origin+anglestoforward(self getplayerangles())*self.skyBaseSpeed,.05);
        if(self adsButtonPressed())
        {
            self.skyBaseSpeed -= 5;
            if(self.skyBaseSpeed < 15)
                self.skyBaseSpeed = 15;
        }
        if(self attackButtonPressed())
        {
            self.skyBaseSpeed++;
            if(self.skyBaseSpeed > 80)
                self.skyBaseSpeed = 80;
        }
        if(!self attackButtonPressed())
        {
            self.skyBaseSpeed--;
            if(self.skyBaseSpeed < 15)
                self.skyBaseSpeed = 15;
            wait .05;
        }
        if(self meleeButtonPressed())
            break;
        wait 0.05;
    }
    level.DrivingAllowed = undefined;
    thread interior_Design( true );
    self unlink(tag);
    foreach(model in level.physicsBase)
        model unlink();
    level.TradeWeapon unlink();
    level.Sentry_Gun unlink();
    level.DriveBase unlink();
    level.DriveBase0 unlink();
    level.Guns_RandTrig unlink();
    level.FlagExit unlink();
    self setOrigin((level.DriveTrigger.origin));
    self show();
    level.drivingSkybase = undefined;
    self setclientthirdperson(0);
    self enableWeapons();
    self switchToWeapon(weap);
}
rollSkyBase(tag)
{
    while(isDefined(level.DrivingAllowed))
    {
        tag rotateTo(self.angles+(0-self getPlayerAngles()[0],180,self createRoll(1.5)),.2,.05,.05);
        wait .05;
    }
}
moveSkyBase(tag)
{
    while(isDefined(level.DrivingAllowed))
    {
        tag moveto(tag.origin+anglestoforward(self getplayerangles())*self.skyBaseSpeed,.05);
        wait .05;
    }
}
Code:
buildPhysicsBase()
{
    level endon("Destroy_Skybase");
    level.basePos = self.origin;
    level.physicsBase = [];
 
    for(x=0;x<2;x++) for(e=0;e<6;e++) for(a=0;a<7;a++)
        level.physicsBase[level.physicsBase.size] = modelSpawner(level.basePos+(-70+a*40,22-e*70,225+x*160),"t6_wpn_supply_drop_ally", undefined, .1);//Floor & roof
    for(x=0;x<2;x++) for(e=0;e<6;e++) for(a=0;a<4;a++)
        level.physicsBase[level.physicsBase.size] = modelSpawner(level.basePos+(170-x*240,22-e*70,255+a*33),"t6_wpn_supply_drop_ally", undefined, .1);//Walls (2/4)
    for(x=0;x<2;x++) for(e=0;e<3;e++) for(a=0;a<4;a++)
        level.physicsBase[level.physicsBase.size] = modelSpawner(level.basePos+(-20+e*70,40-x*385,255+a*33),"t6_wpn_supply_drop_ally",(0,90,0), .1);//Walls    (4/4)
 
    for(e=113;e<115;e++)
        level.physicsBase[e] setModel("t6_wpn_supply_drop_axis");
    for(e=117;e<119;e++)
        level.physicsBase[e] setModel("t6_wpn_supply_drop_axis");
    for(e=125;e<127;e++)
        level.physicsBase[e] delete();
 
    level.FlagEnter = modelSpawner(self.origin+(0,0,-10), "mp_flag_green");
    level.FlagEnter thread enter_Skybase();
 
    thread interior_Design();
}

enter_Skybase()
{
    level.EnterBase = spawnTrig(self.origin,35,35,"HINT_NOICON","Press &&1 To Enter Skybase!");
    while(isDefined(self))
    {
        level.EnterBase  waittill("trigger",i);
        if(i useButtonPressed())
            i setOrigin((level.FlagExit.origin));
    }
}

exit_Skybase()
{
    level.ExitBase = spawnTrig(self.origin,35,35,"HINT_NOICON","Press &&1 To Exit Skybase!");
    while(isDefined(self))
    {
        level.ExitBase  waittill("trigger",i);
        if(i useButtonPressed())
            i setOrigin((level.FlagEnter.origin));
    }
}

skybaseWindow(array)
{
    level endon("Destroy_Skybase");
    level.WindowTrigger = spawnTrig(self.origin,35,35,"HINT_NOICON","Press [{+melee}] To Open / Close The Window!");
    while(isDefined(self))
    {
        level.WindowTrigger waittill("trigger",i);
        if(i meleeButtonPressed() && !isDefined(level.skybaseMoving))
        {
            if(!isDefined(level.OpeningWindow))
            {
                level.skybaseWindowInUse = true;
                level.physicsBase[114] MoveZ(33,2,.5,.5);
                level.physicsBase[118] MoveZ(33,2,.5,.5);
                level.physicsBase[113] MoveZ(-33.3,2,.5,.5);
                level.physicsBase[117] MoveZ(-33.3,2,.5,.5);
                wait 2;
                level.OpeningWindow = true;
                level.skybaseWindowInUse = undefined;
            }
            else
            {
                level.skybaseWindowInUse = true;       
                level.physicsBase[114] MoveZ(-33,2,.5,.5);
                level.physicsBase[118] MoveZ(-33,2,.5,.5);
                level.physicsBase[113] MoveZ(33.3,2,.5,.5);
                level.physicsBase[117] MoveZ(33.3,2,.5,.5);
                wait 2;
                level.OpeningWindow = undefined;
                level.skybaseWindowInUse = undefined;
            }
        }
    }
}

interior_Design( action )
{
    level endon("Destroy_Skybase");
    level.Guns_Rand = [];
    level.GunModel_Rand = strTok("dsr50_mp,ballista_mp,as50_mp,svu_mp", ",");
 
    if(!isDefined(action))
        level.WindowTrig = modelSpawner(level.physicsBase[113].origin + (30,-35,0), "tag_origin");
    level.WindowTrig thread skybaseWindow();
    if(!isDefined(action))
    {
        level.WindowTrig = modelSpawner(level.physicsBase[113].origin + (30,-35,0), "tag_origin");
        level.Guns_RandTrig = modelSpawner(level.WindowTrigger.origin+(168,80,-15), "tag_origin");
        level.TradeWeapon = modelSpawner(level.Guns_RandTrig.origin+(0,-115,-15), "t6_wpn_supply_drop_axis");
        level.Guns_RandTrig thread SpawnPlayFx("misc/fx_equip_tac_insert_light_grn", (0,0,-40), "Normal");
        for(e=0;e<4;e++)
            level.Guns_Rand[level.Guns_Rand.size] = modelSpawner(level.Guns_RandTrig.origin+(sin(e*90)*7,cos(e*90)*7,0), getWeaponModel(level.GunModel_Rand[e]), (270,0,(e*90)));
        foreach(model in level.Guns_Rand)
            model linkTo(level.Guns_RandTrig);
        level.Sentry_Gun = modelSpawner(level.physicsBase[117].origin+(0,-140,0), getWeaponModel("minigun_wager_mp"), (0,180,0));
        level.DriveBase = modelSpawner(level.TradeWeapon.origin+(0,-140,0), "t6_wpn_supply_drop_axis");
        level.DriveBase0 = modelSpawner(level.TradeWeapon.origin+(0,-140,16), "prop_suitcase_bomb", (0,270,0));
        level.FlagExit = modelSpawner(level.Guns_RandTrig.origin+(-160,0,-30), "mp_flag_red");
 
        thread enter_Skybase();
    }
 
    level.Guns_RandTrig thread SniperMonitor();
    level.Guns_RandTrig thread UpdownMonitor();
    level.Guns_RandTrig thread rotateEntYaw(360, 1);
    level.TradeWeapon thread TradeWeapMonitor();
    level.Sentry_Gun thread skyBaseTurret();
    level.DriveBase thread skyBaseDrive();
    level.FlagExit thread exit_Skybase();
 
    level waittill("Refresh_Skybase");
    level.TradeTrigger delete();
    level.SniperTrigger delete();
    level.DriveTrigger delete();
    level.TurretTrigger delete();
    level.WindowTrigger delete();
    level.ExitBase delete();
}

skyBaseTurret()
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");
    level.TurretTrigger = spawnTrig(self.origin,30,30,"HINT_NOICON","Press &&1 To Activate Sentry Gun!");
    level.turretInUse = undefined;
    while(true)
    {
        level.TurretTrigger waittill("trigger",i);
        if(i useButtonPressed() && !isDefined(level.turretInUse))
        {
            level.turretInUse = true;
            level.Sentry_Gun thread sentryTimeout();
            level.Sentry_Gun thread sentryMonitor(i.pers["team"], i);
            iprintln("Sentry gun active!");
            while(isDefined(level.SentryActive))
                wait .05;
            level.Sentry_Gun waittill("rotatedone");
            for(e=0;e<10;e++)
            {
                level.Sentry_Gun thread SpawnPlayFx("weapon/grenade/fx_spark_disabled_rc_car", (0,0,-6), "Normal");
                level.Sentry_Gun rotateTo(level.TradeWeapon.angles + (0,180,0),.5);
                wait .4;
            }
            wait 1;
            level.turretInUse = undefined;
        }
    }
}

sentryMonitor(team, owner) //self inside here is the turret
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");

    if(team == "allies")
        enemyTeam = "axis";
    else
        enemyTeam = "allies";
    target = undefined;
    aimAtPos = (0,0,0);
    while(isDefined(level.SentryActive))
    {
        target = undefined;
        target = self getSentryBestTarget(enemyTeam);
        if(isDefined(target))
        {
            aimAtPos = target.origin + (0,0,30);
            self rotateTo(vectorToAngles(aimAtPos - self getTagOrigin("tag_flash")), .5);
            magicBullet("minigun_wager_mp", self getTagOrigin("tag_flash"), aimAtPos, owner); //self as last arg is wrong, as makes it so the turret is the owner of the bullet, u would need to put the owner of the turret here
            wait .05;
        }
        else
        {
            wait 1;
            self rotateTo(level.TradeWeapon.angles + (0,180,0),1.5,.5,.5);
            self waittill("rotatedone");
            self rotateTo((0,self.angles[1]-60,0),1.5,.5,.5);
            self waittill("rotatedone");
            if(isDefined(level.SentryActive))
            {
                for(e=0;e<2;e++)
                {
                    self rotateTo(self.angles+(0,120+e*120,0),3,.5,.5);
                    self waittill("rotatedone");
                }
            }
        }
        wait .05;
    }
}

sentryTimeout()
{
    level.SentryActive = true;
    wait randomIntRange(20,40);
    level.SentryActive = undefined;
}

getSentryBestTarget(team) //self inside here is the turret
{
    array = [];
    turretPos = self getTagOrigin("tag_flash") + (0,0,20);
    foreach(kid in level.players)
        if(isAlive(kid) && team == kid.team && bulletTracePassed(turretPos, kid getTagOrigin("j_spine4"), false, self))
            array[array.size] = kid;
    return getClosest(turretPos, array);
}

TradeWeapMonitor(Array)
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");
    level.TradeTrigger = spawnTrig(level.TradeWeapon.origin,30,30,"HINT_NOICON","Press &&1 To Place Weapon/Pick Up Weapon!");
    while(isDefined(self))
    {
        level.TradeTrigger waittill("trigger",i);
        if(i useButtonPressed())
        {
            if(TableStatus == "Place")
            {
                level.WeaponPlaced = i getCurrentWeapon();
                if(isSubStr(level.WeaponPlaced, "svu_") || isSubStr(level.WeaponPlaced, "dsr50_") || isSubStr(level.WeaponPlaced, "ballista_") || isSubStr(level.WeaponPlaced, "as50_"))
                    level.PlacedWeapon = modelSpawner(level.TradeWeapon.origin+(0,3,30), getWeaponModel(level.WeaponPlaced), level.TradeWeapon.angles + (0,90,90));
                else
                    level.PlacedWeapon = modelSpawner(level.TradeWeapon.origin+(0,8,30), getWeaponModel(level.WeaponPlaced), level.TradeWeapon.angles + (0,90,90));
                i takeWeapon(i getCurrentWeapon());
                level.PlacedWeapon RotateRoll(720, 1, .3, .3);
                wait 1.2;
                level.PlacedWeapon moveTo(level.PlacedWeapon.origin+(0,0,-13), .2, .1, .1);
                level.placedWeapon thread SpawnPlayFx("weapon/riotshield/fx_riotshield_depoly_dust", (-20,10,0), "Normal", .2);
                wait .2;
                TableStatus = "PickUp";
            }
            else
            {
                i giveweapon(level.WeaponPlaced,0,true(RandomIntRange(0,46),0,0,0,0));
                i switchToWeapon(level.WeaponPlaced);
                level.PlacedWeapon delete();
                wait .3;
                TableStatus = "Place";
            }
        }
    }
}

SniperMonitor(Array)
{
    level endon("Destroy_Skybase");
    level endon("Refresh_Skybase");
    level.SniperTrigger = spawnTrig(self.origin,30,30,"HINT_NOICON","Press &&1 To Grab A Sniper!");
    while(isDefined(self))
    {
        level.SniperTrigger waittill("trigger",i);
        if(i useButtonPressed())
        {
            randomsniper = RandomIntRange(0,4);
            if(i hasWeapon(level.GunModel_Rand[randomsniper]))
                iprintln("");
            else
                i takeWeapon(i getCurrentWeapon());
            i giveweapon(level.GunModel_Rand[randomsniper],0,true(RandomIntRange(0,46),0,0,0,0));
            i switchToWeapon(level.GunModel_Rand[randomsniper]);
            level.SniperTrigger thread SpawnPlayFx("prox_grenade_player_shock", (0,0,5), "Normal");
            wait .2;
        }
    }
}

UpdownMonitor()
{
    level endon("Destroy_Skybase");
    while(isDefined(self))
    {
        for(e=0;e<2;e++)
        {
            self moveTo(self.origin+(0,0,40+e*-80),3,.5,.5);
            self waittill("movedone");
        }
        wait .3;
    }
}

skyBaseDrive()
{
    level endon("Destroy_Skybase");
    level.DriveTrigger = spawnTrig(self.origin,30,30,"HINT_NOICON","Press &&1 To Drive Sky Base!");
    driver = undefined;
    while(true)
    {
        level.DriveTrigger waittill("trigger",i);
        if(i useButtonPressed())
        {
            if(!isDefined(level.drivingSkybase))
            {
                level.drivingSkybase = i;
                i.inSkybase = undefined;
                driver = i;
                break;
            }
            else
            {
                i iprintln("^1ERROR:^7 Someone is already flying the skybase");
            }
        }
    }
    if(!isDefined(level.driverSeat))
    {
        level.driverSeat = modelSpawner(self.origin+(300,140,50),"tag_origin");
        level.linkTag = modelSpawner(self.origin+(0,140,50),"tag_origin");
    }
    level.driverSeat linkTo(level.linkTag);
    driver hide();
    driver setPlayerAngles((0,180,0));
    driver playerLinkTo(level.driverSeat);
 
    foreach(model in level.physicsBase)
        model linkTo(level.linkTag);
 
    level.TradeWeapon linkTo(level.linkTag);
    level.Sentry_Gun linkTo(level.linkTag);
    level.DriveBase linkTo(level.linkTag);
    level.DriveBase0 linkTo(level.linkTag);
    level.WindowTrig linkTo(level.linkTag);
    level.Guns_RandTrig linkTo(level.linkTag);
    level.FlagExit linkTo(level.linkTag);

    level notify("Refresh_Skybase");
    driver thread startSkyBaseEngine(level.linkTag);
    level.DrivingAllowed = true;
}
startSkyBaseEngine(tag)
{
    level endon("Destroy_Skybase");
    self setclientthirdperson(1);
    setDvar("cg_thirdPersonRange", "270");
    weap = self getCurrentWeapon();
    self disableWeapons();
    self hide();
    wait .5;
    self thread rollSkyBase(tag);
    self thread moveSkyBase(tag);
    self.skyBaseSpeed = 0;
    self enableInvulnerability();
    while(isDefined(level.drivingSkybase))
    {
        tag moveto(tag.origin+anglestoforward(self getplayerangles())*self.skyBaseSpeed,.05);
        if(self adsButtonPressed())
        {
            self.skyBaseSpeed -= 5;
            if(self.skyBaseSpeed < 15)
                self.skyBaseSpeed = 15;
        }
        if(self attackButtonPressed())
        {
            self.skyBaseSpeed++;
            if(self.skyBaseSpeed > 80)
                self.skyBaseSpeed = 80;
        }
        if(!self attackButtonPressed())
        {
            self.skyBaseSpeed--;
            if(self.skyBaseSpeed < 15)
                self.skyBaseSpeed = 15;
            wait .05;
        }
        if(self meleeButtonPressed())
            break;
        wait 0.05;
    }
    level.DrivingAllowed = undefined;
    thread interior_Design( true );
    self unlink(tag);
    foreach(model in level.physicsBase)
        model unlink();
    level.TradeWeapon unlink();
    level.Sentry_Gun unlink();
    level.DriveBase unlink();
    level.DriveBase0 unlink();
    level.Guns_RandTrig unlink();
    level.FlagExit unlink();
    self setOrigin((level.DriveTrigger.origin));
    self show();
    level.drivingSkybase = undefined;
    self setclientthirdperson(0);
    self enableWeapons();
    self switchToWeapon(weap);
}
rollSkyBase(tag)
{
    while(isDefined(level.DrivingAllowed))
    {
        tag rotateTo(self.angles+(0-self getPlayerAngles()[0],180,self createRoll(1.5)),.2,.05,.05);
        wait .05;
    }
}
moveSkyBase(tag)
{
    while(isDefined(level.DrivingAllowed))
    {
        tag moveto(tag.origin+anglestoforward(self getplayerangles())*self.skyBaseSpeed,.05);
        wait .05;
    }
}
Ferris Wheel
Code:
Spawn_Ferriswheel()
{
    level endon("Destroy_Ferris");
    level.ferrisOrg = self.origin;
    level.speed = 0;
 
    level.FerrisLegs = [];
    level.FerrisSeats = [];
    level.Ferris = [];
    level.Ferris_Wheel = true;

    level.FerrisAttach = modelSpawner(level.ferrisOrg + (0,0,420), "tag_origin");
    level.FerrisLink = modelSpawner(level.ferrisOrg + (0,0,60), "tag_origin");
    for(a=0;a<2;a++) for(e=0;e<30;e++)
        level.Ferris[level.Ferris.size] = modelSpawner(level.ferrisOrg + (-50+a*100,0,420) + (0,sin(e*12)*330, cos(e*12)*330), "t6_wpn_supply_drop_ally", (0,0,e*-12),.1);
    for(a=0;a<2;a++) for(b=0;b<5;b++) for(e=0;e<15;e++)
        level.Ferris[level.Ferris.size] = modelSpawner(level.ferrisOrg + (-50+a*100,0,420) + (0,sin(e*24)*40+b*65, cos(e*24)*40+b*65), "t6_wpn_supply_drop_ally", (0,0,(e*-24)-90),.1);
    for(e=0;e<15;e++)
        level.FerrisSeats[level.FerrisSeats.size] = modelSpawner(level.ferrisOrg + (0,0,420) + (0,sin(e*24)*330, cos(e*24)*330), "t6_wpn_supply_drop_axis",(e*24,90,0),.1);
    for(e=0;e<3;e++)
        level.FerrisLegs[level.FerrisLegs.size] = modelSpawner(level.ferrisOrg + (82-e*82,0,420),"t6_wpn_supply_drop_ally",(0,90,0),.1);
    for(e=0;e<2;e++) for(a=0;a<8;a++)
        level.FerrisLegs[level.FerrisLegs.size] = modelSpawner(level.ferrisOrg + (-100+e*200,-220,0) + (0,a*28,a*60),"t6_wpn_supply_drop_ally",(0,0,65),.1);
    for(e=0;e<2;e++) for(a=0;a<8;a++)
        level.FerrisLegs[level.FerrisLegs.size] = modelSpawner(level.ferrisOrg + (-100+e*200,220,0) + (0,a*-28,a*60),"t6_wpn_supply_drop_ally",(0,0,-65),.1);
 
    foreach(model in level.Ferris)
        model linkTo(level.FerrisAttach);
    foreach(model in level.FerrisSeats)
        model linkTo(level.FerrisAttach);
 
    level.FerrisAttach thread ferrisRotate(1);
    level.FerrisLink checkRidersFerris(level.FerrisSeats);
}

ferrisRotate(speed)
{
    self thread doFerrisRotate(speed);
}

resetFerrisSpeed()
{
    level.speed = 0;
    self thread doFerrisRotate(1);
}

doFerrisRotate(speed)
{
    level endon("Destroy_Ferris");
    level.speed += speed;
    if(level.speed >= 15)
        level.speed = 15;
    if(level.speed <= -15)
        level.speed = -15;
    iprintln(level.speed);
    while(true)
    {
        for(a=0;a<360;a+=level.speed)
        {
            self rotateTo((0,self.angles[1],a),.2);
            wait .05;
        }
        for(a=360;a<0;a-=level.speed)
        {
            self rotateTo((0,self.angles[1],a),.2);
            wait .05;
        }
        wait .05;
    }
}

checkRidersFerris(Array)
{
    level endon("Destroy_Ferris");
    level.ferrisTrig = spawnTrig(self.origin,250,40,"HINT_NOICON","Press &&1 To Enter / Exit The Ferris Wheel!");
    while(isDefined(self))
    {
        level.ferrisTrig waittill("trigger",i);
        if(!isDefined(i.riding) && isPlayer(i) && i useButtonPressed())
        {
            Closest = getClosest(i.origin,Array);
            Seat = modelSpawner(Closest.origin-anglesToRight(self.angles)*22,"script_origin",(0,90,0));
            Seat thread seatAngleFix(Closest);
            if(!isDefined(Closest.FerrisOccupied))
            {
                i setStance("crouch");
                i.ridingFerris = true;
                i PlayerLinkToDelta(Seat);
                i thread playerExitFerry(Closest,Seat);
                Closest.FerrisOccupied = true;
            }
        }
    }
}

seatAngleFix(seat)
{
    while(true)
    {
        for(a=0;a<360;a+=level.speed)
        {
            self.angles = (0,90,0);
            self MoveTo(seat.origin+(0,0,10),.1);
            wait .05;
        }
        wait .05;
    }
}

playerExitFerry(Seat,tag)
{
    while(isDefined(level.Ferris_Wheel))
    {
        if(self fragButtonPressed()) break;
        wait .05;
    }
    tag unLink();
    tag delete();
    self.ridingFerris = undefined;
    Seat.FerrisOccupied = undefined;
    self unlink();
}
Centrox
Code:
Spawn_Centrox()
{
    level endon("Stop_Centrox");
    level.Centrox = [];
    level.Seats = [];
    level.Center = [];
    level.Movements = modelSpawner(self.origin + (40,0,20), "tag_origin");
    time = .1;
    for(e = 0; e < 2; e++)
        for(i = 0; i < 6; i++)
            level.Center[level.Center.size] = modelSpawner(level.Movements.origin + (cos(i*60)*20,sin(i*60)*20, e*70), "t6_wpn_supply_drop_ally", (0,(i*60)+90,90), time);//Center
    for(i = 0; i < 15; i++)
        level.Centrox[level.Centrox.size] = modelSpawner(level.Movements.origin + (cos(i*24)*70,sin(i*24)*70, -20), "t6_wpn_supply_drop_ally", (0,(i*24)+90,0), time);//floor inner
    for(i = 0; i < 25; i++)
        level.Centrox[level.Centrox.size] = modelSpawner(level.Movements.origin + (cos(i*14.4)*140,sin(i*14.4)*140, -20), "t6_wpn_supply_drop_ally", (0,(i*14.4)+90,0), time);//floor outer
    for(i = 0; i < 30; i++)
        level.Centrox[level.Centrox.size] = modelSpawner(level.Movements.origin + (cos(i*12)*185,sin(i*12)*185, 30), "t6_wpn_supply_drop_ally", (0,(i*12)+90,90), time);//Wall
    for(i = 0; i < 10; i++)
        level.Centrox[level.Centrox.size] = modelSpawner(level.Movements.origin + (cos(i*36)*178,sin(i*36)*178, 30), "t6_wpn_supply_drop_axis", (0,(i*36)+90,90), time);//Seats Visual
    for(i = 0; i < 10; i++)
        level.Seats[level.Seats.size] = modelSpawner(level.Movements.origin + (0,0,-40) + (cos(i*36)*165,sin(i*36)*165, 30), "t6_wpn_supply_drop_axis", (0,(i*36)+180,0));//Seats
 
    level.Centrox[68] MoveTo(level.Centrox[67].origin, .3);//Doors Open
    level.Centrox[69] MoveTo(level.Centrox[40].origin, .3);//Doors Open
 
    level.Movements thread monitorPlayersCentrox(level.Seats);
 
    wait 5;
    level.Movements thread Monitor_Centrox();
    level.Movements thread Spin_Centrox();
}

Monitor_Centrox()
{
    level endon("Stop_Centrox");
    while(isDefined(self))
    {
        wait 10;
        level.RideActive = true;
        level.Centrox[68] MoveTo(level.Centrox[67].origin+(13,40,0), .3);
        level.Centrox[69] MoveTo(level.Centrox[40].origin+(-13,-40,0), .3);
        wait 3;
        foreach(model in level.Centrox)
            model LinkTo(level.Movements);
        foreach(model in level.Seats)
            model LinkTo(level.Movements);
   
        for(Ext = 0; Ext < 22; Ext += 2)
        {
            self MoveTo((self.origin[0],self.origin[1],self.origin[2]+Ext),.7);
            wait .6;
        }
        wait 8;
        for(e = 0; e < 2; e++)
        {
            for(Ext = 0; Ext < 40; Ext++)
            {
                self RotateRoll(Ext*0.1, .7);
                wait .1;
            }
            wait 5;
        }
        wait 8;
        for(e = 0; e < 2; e++)
        {
            for(Ext = 0; Ext < 40; Ext++)
            {
                self RotateRoll(0-Ext*0.1, .7);
                wait .1;
            }
            wait 8;
        }
        level.RideActive = undefined;
        for(Ext = 0; Ext < 22; Ext += 2)
        {
            self MoveTo((self.origin[0],self.origin[1],self.origin[2]-Ext),.7);
            wait .6;
        }
        foreach(model in level.Seats)
            model unlink();
        foreach(model in level.Centrox)
            model Unlink();
        wait .3;
        level.Centrox[68] MoveTo(level.Centrox[67].origin, .3);
        level.Centrox[69] MoveTo(level.Centrox[40].origin, .3);
        foreach(rider in level.players)
            rider unlink();
        for(e = 0; e < 10; e++)
            level.seatTaken[e] = undefined;
        wait .05;
    }
}

Spin_Centrox()
{
    level endon("Stop_Centrox");
    Speed = 0;
    for(;;)
    {
        while(isDefined(self) && isDefined(level.RideActive))
        {
            self RotateYaw(Speed*0.4, .9);
            Speed++;
            wait .1;
        }
        Speed = 0;
        wait .05;
    }
}

monitorPlayersCentrox(Array)
{
    level endon("Stop_Centrox");
    level.CentroxTrig = spawnTrig(self.origin,250,40,"HINT_NOICON","Press &&1 To Enter / Exit The Centrox!");
    while(isDefined(self))
    {
        level.CentroxTrig waittill("trigger",i);
        if(i useButtonPressed() && !i.riding)
        {
            closest = getClosest(i.origin,Array);
            if(!closest.occupied)
            {
                i setStance("stand");
                i.ridingCentox = true;
                i PlayerLinkToAbsolute(closest);
                i thread playerExitCentrox(closest);
                closest.CentroxOccupied = true;
            }
        }
    }
}

playerExitCentrox(seat)
{
    level endon("Stop_Centrox");
    self endon("death");
    self endon("disconnect");
    wait 1.5;
    while(isDefined(seat))
    {
        if(self useButtonPressed() && !isDefined(level.RideActive))
            break;
        wait .05;
    }
    seat.CentroxOccupied = undefined;
    self setStance("stand");
    self unlink();
    wait 1.5;
    self.ridingCentox = undefined;
}

The Claw
Code:
Build_TheClaw()
{
   level endon("Destroy_Claw");
   level.clawOrg = self.origin;
   pos = level.clawOrg+(0,15,460);
 
   level.ClawSeats = [];
   level.claw = [];
   level.legs = [];
 
   level.attach = modelSpawner(level.clawOrg+(0,55,60),"tag_origin");
   level.ClawLink = modelSpawner(pos,"tag_origin");
 
   for(e=0;e<2;e++) for(a=0;a<8;a++)
       level.legs[level.legs.size] = modelSpawner(level.clawOrg + (-220,-145+e*320,0) + (a*28,0,a*60),"t6_wpn_supply_drop_ally",(25,0,90),.1);
   for(e=0;e<2;e++) for(a=0;a<8;a++)
       level.legs[level.legs.size] = modelSpawner(level.clawOrg + (220,-145+e*320,0) + (a*-28,0,a*60),"t6_wpn_supply_drop_ally",(-25,0,90),.1);
   for(a=0;a<5;a++) for(e=0;e<8;e++)
       level.claw[level.claw.size] = modelSpawner(level.clawOrg + (0,-125+a*70,460) + (sin(-90+e*45)*25, 0, sin(e*45)*25), "t6_wpn_supply_drop_ally", ((e*45),180,0),.1);
   for(a=0;a<8;a++) for(e=0;e<6;e++)
       level.claw[level.claw.size] = modelSpawner(level.clawOrg + (0,15,460) + (cos(a*45)*30,sin(a*45)*30, e*-70), "t6_wpn_supply_drop_ally", (0,(a*45)+90,90),.1);
   level.claw[level.claw.size] = modelSpawner(level.clawOrg + (0,15, 60), "t6_wpn_supply_drop_ally", (0,90,90),.1);
   for(a=0;a<2;a++) for(e=0;e<12;e++)
       level.claw[level.claw.size] = modelSpawner(level.clawOrg + (0,15,100) + (cos(e*30)*40+a*55,sin(e*30)*40+a*55, -70), "t6_wpn_supply_drop_ally", (0,(e*30)+-90+a*90,0),.1);
   for(e=0;e<12;e++) level.ClawSeats[level.ClawSeats.size] = modelSpawner(level.clawOrg + (0,15,95) + (cos(e*30)*95,sin(e*30)*95, -70), "tag_origin", Undefined,.1);
 
   foreach(model in level.claw)
       model linkTo(level.ClawLink);
   foreach(model in level.ClawSeats)
       model linkTo(level.ClawLink);
 
   level.ClawLink thread ClawMovements();
   level.attach thread monitorPlayersClaw( level.ClawSeats );
}

ClawMovements()
{
   level endon("Destroy_Claw");
   for(a=0;a>=-40;a-=2)
   {
       self rotateTo((a,self.angles[1],0),.5);
       wait .1;
   }
   for(a=a;a<=60;a+=3)
   {
       self rotateTo((a,self.angles[1],0),.5);
       wait .1;
   }
   for(a=a;a>=-80;a-=3)
   {
       self rotateTo((a,self.angles[1],0),.5);
       wait .05;
   }
   for(a=a;a<=100;a+=4)
   {
       self rotateTo((a,self.angles[1],0),.5);
       wait .05;
   }
   while(true)
   {
       for(a=a;a>=-105;a-=5)
       {
           self rotateTo((a,self.angles[1],0),.5);
           wait .05;
       }
       for(a=a;a<=105;a+=5)
       {
           self rotateTo((a,self.angles[1],0),.5);
           wait .05;
       }
       wait .05;
   }
}

monitorPlayersClaw(Array)
{
   level endon("Destroy_Claw");
   level.ClawTrig = spawnTrig(self.origin,150,80,"HINT_NOICON","Press &&1 To Enter / Exit The Claw!");
   while(isDefined(self))
   {
       level.ClawTrig waittill("trigger",i);
       if(i useButtonPressed() && !i.riding)
       {
           RandSeat = RandomIntRange( 0, 13 );
           if(!RandSeat.occupied)
           {
               i setStance("stand");
               i.riding = true;
               i playerLinkToDelta(Array[RandSeat]);
               i thread playerExitClaw(RandSeat);
               RandSeat.occupied = true;
           }
       }
   }
}
playerExitClaw(seat,info)
{
   level endon("Destroy_Claw");
   while(isDefined(seat))
   {
       if(self fragButtonPressed()) break;
       wait .05;
   }
   info destroy();
   self allowSprint(true);
   self allowProne(true);
   seat.occupied = undefined;
   self unlink();
   self setStance("stand");
   wait 1;
   self.riding = undefined;
}

Flyable Plane(Older Script)
Code:
initial_plane( model, max, min, roll, bullet )
{
   self endon("stop_plane");
   self endon("disconnect");

   level.PlaneCannonTag = [];
 
   level.plane = modelSpawner(self.origin + (0,0,20), model, (0,180,0));
   level.planeSeat = modelSpawner(self.origin + (500,0,100), "tag_origin");
   level.PlanelinkTag = modelSpawner(self.origin + (100,0,70), "tag_origin");
   for(e=0;e<2;e++)
       level.PlaneCannonTag[e] = modelSpawner(self.origin + (100,-200+e*400,70), "tag_origin");
   self thread plane_connons(level.PlaneCannonTag[0], level.PlaneCannonTag[1], bullet);
 
   level.PlaneTrigger = spawnTrig(self.origin + (0,0,20),50,50,"HINT_NOICON","Press &&1 To Drive!");
   driver = undefined;
   while(true)
   {
       level.PlaneTrigger waittill("trigger",i);
       if(i useButtonPressed() && !isDefined(level.drivingPlane))
       {
           level.drivingPlane = i;
           driver = i;
           break;
       }
   }
 
   driver thread clasicExit(true);
   driver thread plane_engine( level.PlanelinkTag, level.planeSeat, level.plane, max, min, roll );
   level.planeSeat linkTo(level.PlanelinkTag);
   level.plane linkTo(level.PlanelinkTag);
   level.PlaneCannonTag[0] linkTo(level.PlanelinkTag);
   level.PlaneCannonTag[1] linkTo(level.PlanelinkTag);
 
   driver hide();
   driver setPlayerAngles((0,180,0));
   driver playerLinkTo(level.planeSeat);
   level.PlaneTrigger delete();
}

plane_engine( tag, seat, plane, max, min, roll )
{
   self endon("stop_plane");
   self endon("disconnect");

   self setclientthirdperson(1);
   setDvar("cg_thirdPersonRange", "270");
   self disableWeapons();
   self hide();
   wait .5;
   self thread roll_plane(tag, roll);
   self thread move_plane(tag);
   self thread speed_indicator(max);
   self.planeSpeed = 0;
   self enableInvulnerability();

   while(isDefined(tag))
   {
       tag moveto(tag.origin+anglestoforward(self getplayerangles())*self.planeSpeed,.05);
       if(self adsButtonPressed())
       {
           self.planeSpeed -= 5;
           if(self.planeSpeed < min)
               self.planeSpeed = min;
       }
       if(self attackButtonPressed())
       {
           self.planeSpeed++;
           if(self.planeSpeed > max)
               self.planeSpeed = max;
       }
       if(!self attackButtonPressed())
       {
           self.planeSpeed--;
           if(self.planeSpeed < min)
               self.planeSpeed = min;
           wait .05;
       }
       if(self meleeButtonPressed())
           break;
       wait 0.05;
   }
 
   self unlink(tag);
   tag delete();
   seat delete();
   plane delete();
   for(e=0;e<2;e++)
       level.PlaneCannonTag[e] delete();
   self.SpeedIndibar destroy();
   self.SpeedIndi destroy();
   self show();
   self setclientthirdperson(0);
   self enableWeapons();
   level.drivingPlane = undefined;
   self notify("stop_plane");
}

plane_connons(tag0, tag1, bullet)
{
   self endon("stop_plane");
   self endon("disconnect");
 
   while(isDefined(tag))
   {
       if(self secondaryoffhandbuttonpressed())
           magicBullet(bullet, tag0.origin, self getEye() + anglesToForward(self getPlayerAngles())*9999, self);
       if(self fragbuttonpressed())
           magicBullet(bullet, tag1.origin, self getEye() + anglesToForward(self getPlayerAngles())*9999, self);
       if(self stancebuttonpressed())
       {
           self thread maps\mp\killstreaks\_supplydrop::dropcrate(tag1.origin + (0,0,-100) + AnglesToRight(self getPlayerAngles())*200, self.angles, "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
           wait .2;
       }
       wait .05;
   }
}

roll_plane(tag, roll)
{
   self endon("stop_plane");
   self endon("disconnect");
 
   while(isDefined(tag))
   {
       tag rotateTo(self.angles+(0-self getPlayerAngles()[0],180,self createRoll(roll)),.2,.05,.05);
       wait .05;
   }
}

move_plane(tag)
{
   self endon("stop_plane");
   self endon("disconnect");
 
   while(isDefined(tag))
   {
       tag moveto(tag.origin+anglestoforward(self getplayerangles())*self.planeSpeed,.05);
       wait .05;
   }
}

speed_indicator(max)
{
   self endon("stop_plane");
   self endon("disconnect");

   self.SpeedIndibar = self createBar( (0, 1, 0), 150, 11 );
   self.SpeedIndibar setPoint( "CENTER", "TOP", 0, 42 );
   self.SpeedIndi = self createFontString( "default", 1.5 );
   self.SpeedIndi setPoint( "CENTER", "TOP", 0, 22 );
   self.SpeedIndi setText( "Speed Indicator!" );

   while(isDefined(self.SpeedIndibar))
   {
       self.SpeedIndibar updateBar( self.planeSpeed / max );
       wait 0.5;
   }
}
Personal Functions:
Updated Spawnables by me
MW3 IMS - Updated
Code:
IMSMW3()
{
    self endon("disconnect");
    o = self;
    offset = (50,0,10);
    ims = spawn("script_model", self.origin + offset);
    ims setModel( "t6_wpn_turret_sentry_gun_red" );
    ims.angles = (90,0,0);
    s = "fhj18_mp";
    for(;;)
    {
        foreach(p in level.players){
            d = distance(ims.origin,p.origin);
            if (level.teambased){
                if ((p!=o)&&(p.pers["team"]!=self.pers["team"]))
                if(d<250)
                if (isAlive(p)) p thread imsxpl(ims,o,p,s);
                }else{
                if(p!=o)
                if(d<250)
                if (isAlive(p)) p thread imsxpl(ims,o,p,s);
            }
            wait .3;
        }
    }
    wait 600;
    self notify("noims");
}

imsxpl(obj,me,noob,bullet)
{
    me endon("noims");
    for(;;)
    {
        MagicBullet(bullet,obj.origin,noob.origin,me);
        wait 2;
        break;
    }
}

Forge Wall - Fixed
Code:
ForgeWall()
{
    self endon("death");
    self endon("doneforge");
    for(;;)
    {
        self iPrintlnBold("^2Go To The Start Position Of The Wall n^2Press [{+attack}] To Mark");
        self waittill("weapon_fired");
        pos1=self.origin;
        wait .1;
        self iPrintln("^2Position Marked!");
        wait 1;
        self iPrintlnBold("^2Go To The End Position Of The Wall n^2Press [{+attack}] To Mark");
        self waittill("weapon_fired");
        pos2=self.origin;
        wait .1;
        self iPrintln("^2Position Marked!");
        self iPrintlnBold("^2Creating Wall...");
        wait 2;
        level thread CreateWall(pos1,pos2);
        self iPrintln("^2Wall Done!");
        self notify("doneforge");
    }
}
CreateWall(top,bottom)
{
   blockb=[];
   blockc=[];
   D=Distance((top[0],top[1],0),(bottom[0],bottom[1],0));
   H=Distance((0,0,top[2]),(0,0,bottom[2]));
   blocks=xxroundUp(D / 40);
   height=xxroundUp(H / 40);
   CX=bottom[0] - top[0];
   CY=bottom[1] - top[1];
   CZ=bottom[2] - top[2];
   XA=CX / blocks;
   YA=CY / blocks;
   ZA=CZ / height;
   TXA=(XA / 4);
   TYA=(YA / 4);
   Temp=VectorToAngles(bottom - top);
   BA =(0,Temp[1],90);
   for(h=0;h < height;h++)
   {
       fstpos=(top+(TXA,TYA,10)+((0,0,ZA)* h));
       block=spawn("script_model",fstpos);
       block setModel("t6_wpn_supply_drop_ally");
       block.angles=BA;
       blockb[h]=spawn("trigger_radius",(0,0,0),0,75,40);
       blockb[h].origin=fstpos;
       blockb[h].angles=BA;
       blockb[h] setContents(1);
       wait .001;
       for(i=0;i < blocks;i++)
       {
           secpos=(top +((XA,YA,0)* i)+(0,0,10)+((0,0,ZA)* h));
           block=spawn("script_model",secpos);
           block setModel("t6_wpn_supply_drop_ally");
           block.angles =BA;
           blockc[i]=spawn("trigger_radius",(0,0,0),0,75,40);
           blockc[i].origin=secpos;
           blockc[i].angles=BA;
           blockc[i] setContents(1);
           wait .001;
       }
   }
}

Forge Ramp - Updated
Code:
ForgeRamp()
{
    self endon("death");
    self endon("doneforge");
    for(;;)
    {
        self iPrintlnBold("^2Go To The Start Position Of The Ramp n^2Press [{+attack}] To Mark");
        self waittill("weapon_fired");
        pos1=self.origin;
        wait .1;
        self iPrintln("^2Position Marked!");
        wait 1;
        self iPrintlnBold("^2Go To The End Position Of The Ramp n^2Press [{+attack}] To Mark");
        self waittill("weapon_fired");
        pos2=self.origin;
        wait .1;
        self iPrintln("^2Position Marked!");
        self iPrintlnBold("^2Creating Ramp...");
        wait 2;
        level thread CreateRamp(pos1,pos2);
        self iPrintln("^2Ramp Done!");
        self notify("doneforge");
    }
}

CreateRamp(top,bottom)
{
    D=Distance(top,bottom);
    blocks=xxroundUp(D / 30);
    CX=top[0] - bottom[0];
    CY=top[1] - bottom[1];
    CZ=top[2] - bottom[2];
    XA=CX / blocks;
    YA=CY / blocks;
    ZA=CZ / blocks;
    CXY=Distance((top[0],top[1],0),(bottom[0],bottom[1],0));
    Temp=VectorToAngles(top - bottom);
    BA =(Temp[2],Temp[1] + 90,Temp[0]);
    for(b=0;b < blocks;b++)
    {
        block=spawn("script_model",(bottom +((XA,YA,ZA)* B)));
        block setModel("t6_wpn_supply_drop_ally");
        block.angles=BA;
        blockb=spawn("trigger_radius",(0,0,0),0,65,30);
        blockb.origin=block.origin+(0,0,5);
        blockb.angles=BA;
        blockb setContents(1);
        wait .01;
    }
    block=spawn("script_model",(bottom +((XA,YA,ZA)* blocks)-(0,0,5)));
    block setModel("t6_wpn_supply_drop_ally");
    block.angles =(BA[0],BA[1],0);
    blockb=spawn("trigger_radius",(0,0,0),0,65,30);
    blockb.origin=block.origin+(0,0,5);
    blockb.angles =(BA[0],BA[1],0);
    blockb setContents(1);
    wait .01;
}

Trampoline
Code:
trampoline()
{
    self iprintln("Press ^2[{+attack}]^7 To Spawn a Trampoline");
    self endon("disconnect");
    self waittill("weapon_fired");
    start = self gettagorigin( "tag_eye" );
    end = anglestoforward(self getPlayerAngles()) * 1000000;
    spawnPosition = BulletTrace(start, end, true, self)["position"];
    level.tramp = spawn( "script_model", spawnPosition );
    level.tramp setModel( "t6_wpn_supply_drop_trap" );
    for(;;)
    {
        if(distance(self.origin, level.tramp.origin) <=100)
            self setVelocity(self getVelocity() + (0, 0, 99999));
        wait .1;
    }
}
XP Lobby [Updated Version]
Code:
#Includes


#include maps/mp/gametypes/_globallogic;

#include maps/mp/gametypes/_gamelogic;



Put On Init().


level.Colours = strTok("34|64|139|135|38|87|135|206|250|255|23|153|0|255|0|101|67|33|0|0|255|255|0|0|255|128|0|153|26|255|0|255|255|255|255|0|0|0|0|255|255|255", "|");




Put on onPlayerSpawned().


if(isDefined(level.xpLobby))

self thread StartXPGain();




lobbyMsg(string, time, align, relative)

{

    if(!isDefined(align)) align = "CENTER";

    if(!isDefined(relative)) relative = "TOP";

    if(!isDefined(string)) string = "Undefined String!";

    message = level createText("default", 2, align, relative, 0, 0, 11, 1, string, (1,1,1), true);

    if(!isDefined(time))

    wait 4;

    else wait time;

    message destroy();

}




divideColor(c1, c2, c3, ignore)

{

 if(isDefined(ignore))

  return (c1, c2, c3);

 return (c1 /255, c2 /255, c3 /255);

}




XP Lobby.


//▀▄▒▄▀ ▒█▀▀█   ▒█░░░ ▒█▀▀▀█ ▒█▀▀█ ▒█▀▀█ ▒█░░▒█

//░▒█░░ ▒█▄▄█   ▒█░░░ ▒█░░▒█ ▒█▀▀▄ ▒█▀▀▄ ▒█▄▄▄█

//▄▀▒▀▄ ▒█░░░   ▒█▄▄█ ▒█▄▄▄█ ▒█▄▄█ ▒█▄▄█ ░░▒█░░

BeginXPlobby()//XP LOBBY TOGGLE.

{

    if(!isDefined(level.BeginxpLobby))

    {

        level.BeginxpLobby = true;

        self iprintln("XP Gain Match - ^2Active");

        self thread closeMenu();

        self FreezeControlsAllowLookXP(true);

        level thread checkforfeit();

        self thread XPlobbyTweakable(4, true);

        self thread XPLobbyStartTimer("XP GAIN MATCH BEGINS IN", 10);

        self thread InfiniteGameDvarsXP();

        wait 10;

        self FreezeControlsAllowLookXP(false);

        self thread KickAllClientsXP();

        self thread LoadXPGain();

        wait 3;

        self thread XPlobbyTweakable(1, false);

        self thread NoHateCrimes(true);

        if(!isDefined(level.XPLobbyBeginText))

        {

            level.XPLobbyBeginText = true;

            level.XPLobbyText = level createServerFontString("hudbig", 5);

            level.XPLobbyText setPoint("CENTER", "TOP", 0, 22);

            level.XPLobbyText setSafeText("XP Gain Match");

            level.XPLobbyText.alpha = 1;

            level.XPLobbyToggle = true;

            for(;;)

            {

                for(i = 0; i < (level.Colours.size / 3); i++)

                {

                    level.XPLobbyText.color = dividecolor(int(level.Colours[3*i]), int(level.Colours[(3*i)+1]), int(level.Colours[(3*i)+2]));

                    level.XPLobbyText FadeOverTime(1);

                    level.XPLobbyText.glowcolor = dividecolor(int(level.Colours[3*i]), int(level.Colours[(3*i)+1]), int(level.Colours[(3*i)+2]));

                    level.XPLobbyText FadeOverTime(1);

                    level.XPLobbyText.GlowAlpha = 1;

                    wait 1;

                }

                wait 0.05;

            }

        }

        else if(!isDefined(level.XPLobbyToggle))

        {

            level.XPLobbyToggle = true;

            level.XPlobbyText.alpha = 1;

        }

    }

    else

    {

        level.xpLobby = undefined;

        level.kacx = undefined;

        level.BeginxpLobby = undefined;

        self iprintln("XP Gain Match - ^1Un - Active");

        self thread UndoInfiniteGameDvarsXP();

        self thread NoHateCrimes(false);

        if(isDefined(level.XPLobbyToggle))

        {

            level.XPlobbyText.alpha = 0;

            level.XPLobbyToggle = undefined;

            level.XPLobbyBeginText = undefined;

            level.XPLobbyText destroy();

        }

    }

}

FreezeControlsAllowLookXP(reply)//FREEZE CONTROLS BUT ALLOW PLAYER TO LOOK DURING COUNTDOWN PERIOD

{

    foreach(player in level.players)

    {

        if(reply == true)

            player freezecontrolsallowlook(true);

        if(reply == false)

            player freezecontrolsallowlook(false);

        if(!isDefined(reply))

            self lobbyMsg("FreezeControlsAllowLookXP() arg not defined!");

    }

}

UndoInfiniteGameDvarsXP()//UN-DO INFINITE GAME DVARS.

{

    setDvar("scr_dom_scorelimit", 1);

 setDvar("scr_sd_numlives", 1);

 setDvar("scr_war_timelimit", 1);

 setDvar("scr_game_onlyheadshots", 0);

 setDvar("scr_war_scorelimit", 1);

 maps/mp/gametypes/_globallogic_utils::resumetimer();

}

InfiniteGameDvarsXP()//INFINITE GAME DVARS.

{

    setDvar("scr_dom_scorelimit", 0);

 setDvar("scr_sd_numlives", 0);

 setDvar("scr_war_timelimit", 0);

 setDvar("scr_game_onlyheadshots", 0);

 setDvar("scr_war_scorelimit", 0);

 maps/mp/gametypes/_globallogic_utils::pausetimer();

}

XPLobbyStartTimer(string, time)//XP COUNTDOWN TIMER.

{

    level.preMatchPeriod = time;

    game["strings"]["match_starting_in"] = string;

    thread matchStartTimer();

}

NoHateCrimes(reply)//NO KILLING DURING LOBBY.

{

    self endon("disconnect");

    self endon("GoodPeople");

 

    for(;;)

    {

        foreach(player in level.players)

        {

            if(player.verStatus == "None")

            {

                if(reply == true)

                    player EnableInvulnerability();

                player takeAllWeapons();

                if(reply == false)

                    player DisableInvulnerability();

                player ClassChange();

                    self notify("GoodPeople");

                if(!isDefined(reply))

                    self lobbyMsg("NoHateCrimes() arg not defined!", 1);

                self notify("GoodPeople");

            }

        }

        wait 0.05;

    }

}

XPlobbyTweakable(value, reply)//LOBBY TWEAKABLES I.E: SPEED.

{

    self endon("disconnect");

    self endon("XPLobbyFuntimeOver");

 

    for(;;)

    {

        foreach(player in level.players)

        {

            if(player.verStatus == "None")

            {

                if(isDefined(value) && reply == true)

                    player setmovespeedscale(value);

                if(isDefined(value) && reply == false)

                    player setmovespeedscale(value);

                self notify("XPLobbyFuntimeOver");

                if(!isDefined(value) && !isDefined(reply))

                    self lobbyMsg("XPlobbyTweakable() arg's not defined!", 1);

                self notify("XPLobbyFuntimeOver");

            }

        }

        wait 0.05;

    }

}

checkforfeit()//CHECK FOR FORFEIT THEN ABORT FORFEIT.

{

 level endon("game_ended");

 

 for(;;)

 {

  if(level.gameForfeited)

  {

   level.onForfeit = false;

   level.gameForfeited = false;

   level notify("abort forfeit");

  }

  wait 5;

 }

}

KickAllClientsXP()//KICK ALL PLAYERS TO PREPARE FOR XP LOBBY.

{

    if(!isDefined(level.kacx))

    {

        level.kacx = true;

        foreach(player in level.players)

        {

            if(player.verStatus == "None")

            {

                kick(player getentitynumber());

                wait .05;

            }

        }

        self LobbyMsg("ALL PLAYERS KICKED FROM SESSION", 3);

    }

}

LoadXPGain()//Begin StartXPGain Thread If Level.xpLobby is defined.

{

 if(!isDefined(level.xpLobby) && self isHost())

 {

      level.xpLobby = true;

  foreach(player in level.players)

   player thread StartXPGain();

 }

 else if(isDefined(level.xpLobby) && self isHost())

            level.xpLobby = undefined;

}

StartXPGain()//START GIVING XP ON IF STATEMENTS.

{

 if(self.verStatus == "None" && self.pers["prestige"] != level.maxPrestige && self.pers["rank"] != level.maxRank)

 {

  self addrankxpvalue("contract", 60000);

  self iprintlnbold("^160000 xp ^5received!, ^7you will now be kicked, rejoin.");

  wait 3.1;

     kick(self getentitynumber());

 }

 else if(self.verStatus == "None" && self.pers["prestige"] == level.maxPrestige && self.pers["rank"] == level.maxRank)

 {

     self iprintlnbold("^5You are already max level, ^1you will now be kicked");

     wait 3.1;

     kick(self getentitynumber());

 }

}
Autoshoot(Updated script):
Code:
aimbotSystem()

{
self endon("disconnect");
self endon("game_ended");
self endon("stop_aimbot");

self.aimbot = [];
self.aimbot["autoShootCheck"] = true;
self.aimbot["visableCheck"] = true;
self thread nospread();
self iPrintln("Autoshoot [^2Unlocking^7]");
for(;:wink:
{
if( !isDefined( self.aimbot["autoShootCheck"] ) )
self waittill("weapon_fired");
target = undefined;
foreach(person in level.players)
{
if(person == self || !isAlive(person) || level.teamBased && self.team == person.team)
continue;
target = self getTarget(person, target);
}
if( isDefined( target ) )
magicbullet( self getcurrentweapon(), self gettagorigin( "tag_weapon_right" ) + anglestoforward( self getplayerangles() ) * 75, target gettagorigin( "j_spinelower" ), self );
wait .05;
}
}

getTarget(current, mostRecent)
{
if(isDefined(self.aimbot["visableCheck"]) && !bulletTracePassed(self getEye(), current getTagOrigin("j_spine4"), false, self))
return undefined;
if(!isDefined(mostRecent))
return current;
if(closer(self getTagOrigin("j_head"), current getTagOrigin("j_head"), mostRecent getTagOrigin("j_head")))
return current;
return mostRecent;
}

nospread()
{
setDvar("perk_weapSpreadMultiplier",0.01);
self setperk("specialty_bulletaccuracy");
}
I'll add more as i go :smile:
Dope Scripts:
[MP] StonedYoda's Prison Origins
Code:
teleporttoprison(player)
{
   if(level.script == "mp_nuketown_2020")
   {
        self iprintln("^1Error: ^7No Prison on this Map!");
    }
    else if(level.script == "mp_hijacked")
    {
        level.prision_origin = (1759.45,-396.014,20.125);
    }
    else if(level.script == "mp_express")
    {
        level.prision_origin = (481.826,2453.31,-14.875);
    }
    else if(level.script == "mp_meltdown")
    {
        level.prision_origin =  (115.433,-1184.57,-127.875);
    }
    else if(level.script == "mp_drone")
    {
        level.prision_origin = (610.1,-1253.13,240.125);
    }
    else if(level.script == "mp_carrier")
    {
        level.prision_origin = (-6169.68,-89.8843,-179.875);
    }
    else if(level.script == "mp_overflow")
    {
        level.prision_origin = (-1701.57,973.025,-7.875);
    }
    else if(level.script == "mp_slums")
    {
        level.prision_origin = (-303.828,-1689.13,596.699);
    }
    else if(level.script == "mp_turbine")
    {
        level.prision_origin = (832.975,-860.638,391.125);
    }
    else if(level.script == "mp_raid")
    {
        level.prision_origin = (2900.72,3969.05,148.125);
    }
    else if(level.script == "mp_dockside")
    {
        level.prision_origin = (511.136,3128.31,205.625);
    }
    else if(level.script == "mp_village")
    {
        level.prision_origin = (114.549,1268.67,144.125);
    }
    else if(level.script == "mp_nightclub")
    {
        level.prision_origin = (-18063.2,996.049,-591.875);
    }
    else if(level.script == "mp_socotra")
    {
        level.prision_origin = (-426.634,630.374,120.125);
    }
    else if(!level.script == "mp_nuketown_2020")
    {

    }
      if(isDefined(level.prision_origin))
      {
         player SetOrigin(level.prision_origin);
         player iprintln("You've been send to Prison!");
         self iprintln("^2"+player.name+" ^7was telleported to Prison!");
         }
     else
         self iprintln("No Prision found On Map "+level.script);
}
[MP] CabCon´s Prestige Slider V1.1
Code:
//Version 1.1

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;
#include maps/mp/gametypes/_rank;

init()
{
    level thread onPlayerConnect();
    precacheShader("line_horizontal");
}

onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);
        setDvar("r_blur",40);
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    self endon("disconnect");
        level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
                setDvar("r_blur",0);
                // Will appear each time when the player spawn, that's just an exemple.
                self iprintln("^2By CabCon");
            setDvar("party_connectToOthers" , "0");
            wait 1;
        setDvar("partyMigrate_disabled" , "1");
        setDvar("party_mergingEnabled" , "0");
        setDvar("cg_fov",120);

        self thread newprestige();
        self iprintln("^2Loaded");
        self iprintln("^2You can leave now");
    }
}


createRectanglesystem(align,relative,x,y,width,height,color,shader,sort,alpha)
{
        barElemBG = newClientHudElem( self );
        barElemBG.elemType = "bar";
        if ( !level.splitScreen )
        {
                barElemBG.x = -2;
                barElemBG.y = -2;
        }
        barElemBG.width = width;
        barElemBG.height = height;
        barElemBG.align = align;
        barElemBG.relative = relative;
        barElemBG.xOffset = 0;
        barElemBG.yOffset = 0;
        barElemBG.children = [];
        barElemBG.sort = sort;
        barElemBG.color = color;
        barElemBG.alpha = alpha;
        barElemBG setParent( level.uiParent );
        barElemBG setShader( shader, width , height );
        barElemBG.hidden = false;
        barElemBG setPoint(align,relative,x,y);
        return barElemBG;
}
newprestige()
{
        self endon("death");
        self endon("stopthis");
        self thread prestigeshow();
        self.topbar.alpha=0;
        self freezecontrols(false);
        self.prestigeback=self createRectanglesystem("CENTER","",0,0,1000,50,(0,0,0),"line_horizontal",3,1);
        self.textz = createFontString("objective",1.8);
        t=0;
        //vars
        self setClientUiVisibilityFlag("hud_visible", 0);
        setDvar("cg_drawCrosshair",0);
        //vars end
        self.scrollz = 0;
        self.textz setValue(t);
        self.textz setPoint("CENTER","CENTER",0,50);
        self.textz.sort=100;
        for(;;)
        {
                if(self MeleeButtonPressed())
                {
                        self setClientUiVisibilityFlag("hud_visible", 1);
                        setDvar("cg_drawCrosshair",1);
                        self.pres0 destroy();self.pres1 destroy();self.pres2 destroy();self.pres3 destroy();self.pres4 destroy();self.pres5 destroy();self.pres6 destroy();self.pres7 destroy();self.pres8 destroy();self.pres9 destroy();self.pres10 destroy();self.pres11 destroy();
                        wait .1;
                        self freezeControls(false);
                        self.textz destroy();
                        self.prestigeback destroy();
                        self.topbar.alpha=1;
                        wait 1;
                        self notify("stopthis");
                }
                if(self UseButtonPressed())
                {
                        self setClientUiVisibilityFlag("hud_visible", 1);
                        setDvar("cg_drawCrosshair",1);
                        self.pres0 destroy();self.pres1 destroy();self.pres2 destroy();self.pres3 destroy();self.pres4 destroy();self.pres5 destroy();self.pres6 destroy();self.pres7 destroy();self.pres8 destroy();self.pres9 destroy();self.pres10 destroy();self.pres11 destroy();
                        wait .1;
                        self freezeControls(false);
                        self thread setprestiges(self.scrollz);
                        self.textz destroy();
                        self.prestigeback destroy();
                        self.topbar.alpha=1;
                        wait 1;
                        self notify("stopthis");
                }
                if(self AdsButtonPressed())
                {
                        if(self.scrollz<=11 && self.scrollz>=1)
                        {
                                self.scrollz -= 1;
                                self.textz setValue(self.scrollz);
                                self.pres0 moveOverTime(.1);
                                self.pres0 setPoint("CENTER","CENTER",(self.pres0.xOffset + 50),0);self.pres1 moveOverTime(.1);
                                self.pres1 setPoint("CENTER","CENTER",(self.pres1.xOffset + 50),0);self.pres2 moveOverTime(.1);
                                self.pres2 setPoint("CENTER","CENTER",(self.pres2.xOffset + 50),0);self.pres3 moveOverTime(.1);
                                self.pres3 setPoint("CENTER","CENTER",(self.pres3.xOffset + 50),0);self.pres4 moveOverTime(.1);
                                self.pres4 setPoint("CENTER","CENTER",(self.pres4.xOffset + 50),0);self.pres5 moveOverTime(.1);
                                self.pres5 setPoint("CENTER","CENTER",(self.pres5.xOffset + 50),0);self.pres6 moveOverTime(.1);
                                self.pres6 setPoint("CENTER","CENTER",(self.pres6.xOffset + 50),0);self.pres7 moveOverTime(.1);
                                self.pres7 setPoint("CENTER","CENTER",(self.pres7.xOffset + 50),0);self.pres8 moveOverTime(.1);
                                self.pres8 setPoint("CENTER","CENTER",(self.pres8.xOffset + 50),0);self.pres9 moveOverTime(.1);
                                self.pres9 setPoint("CENTER","CENTER",(self.pres9.xOffset + 50),0);self.pres10 moveOverTime(.1);
                                self.pres10 setPoint("CENTER","CENTER",(self.pres10.xOffset + 50),0);self.pres11 moveOverTime(.1);
                                self.pres11 setPoint("CENTER","CENTER",(self.pres11.xOffset + 50),0);
                                wait .1;
                        }
                        else
                        {
 
                        }
                }
                if(self AttackButtonPressed())
                {
                        if(self.scrollz<=10 && self.scrollz>=0)
                        {
                                self.scrollz += 1;
                                self.textz setValue(self.scrollz);self.pres0 moveOverTime(.1);
                                self.pres0 setPoint("CENTER","CENTER",(self.pres0.xOffset - 50),0);self.pres1 moveOverTime(.1);
                                self.pres1 setPoint("CENTER","CENTER",(self.pres1.xOffset - 50),0);self.pres2 moveOverTime(.1);
                                self.pres2 setPoint("CENTER","CENTER",(self.pres2.xOffset - 50),0);self.pres3 moveOverTime(.1);
                                self.pres3 setPoint("CENTER","CENTER",(self.pres3.xOffset - 50),0);self.pres4 moveOverTime(.1);
                                self.pres4 setPoint("CENTER","CENTER",(self.pres4.xOffset - 50),0);self.pres5 moveOverTime(.1);
                                self.pres5 setPoint("CENTER","CENTER",(self.pres5.xOffset - 50),0);self.pres6 moveOverTime(.1);
                                self.pres6 setPoint("CENTER","CENTER",(self.pres6.xOffset - 50),0);self.pres7 moveOverTime(.1);
                                self.pres7 setPoint("CENTER","CENTER",(self.pres7.xOffset - 50),0);self.pres8 moveOverTime(.1);
                                self.pres8 setPoint("CENTER","CENTER",(self.pres8.xOffset - 50),0);self.pres9 moveOverTime(.1);
                                self.pres9 setPoint("CENTER","CENTER",(self.pres9.xOffset - 50),0);self.pres10 moveOverTime(.1);
                                self.pres10 setPoint("CENTER","CENTER",(self.pres10.xOffset - 50),0);self.pres11 moveOverTime(.1);
                                self.pres11 setPoint("CENTER","CENTER",(self.pres11.xOffset - 50),0);
                                wait .1;
                        }
                        else
                        {
 
                        }
                }
                wait .025;
        }
}

prestigeshow()
{
        self.pres0 = createprestige("CENTER","CENTER",0,0,50,50,"rank_com",100,1);wait .001;
        self.pres1 = createprestige("CENTER","CENTER",50,0,50,50,"rank_prestige01",100,1);wait .001;
        self.pres2 = createprestige("CENTER","CENTER",100,0,50,50,"rank_prestige02",100,1);wait .001;
        self.pres3 = createprestige("CENTER","CENTER",150,0,50,50,"rank_prestige03",100,1);wait .001;
        self.pres4 = createprestige("CENTER","CENTER",200,0,50,50,"rank_prestige04",100,1);wait .001;
        self.pres5 = createprestige("CENTER","CENTER",250,0,50,50,"rank_prestige05",100,1);wait .001;
        self.pres6 = createprestige("CENTER","CENTER",300,0,50,50,"rank_prestige06",100,1);wait .001;
        self.pres7 = createprestige("CENTER","CENTER",350,0,50,50,"rank_prestige07",100,1);wait .001;
        self.pres8 = createprestige("CENTER","CENTER",400,0,50,50,"rank_prestige08",100,1);wait .001;
        self.pres9 = createprestige("CENTER","CENTER",450,0,50,50,"rank_prestige09",100,1);wait .001;
        self.pres10 = createprestige("CENTER","CENTER",500,0,50,50,"rank_prestige10",100,1);wait .001;
        self.pres11 = createprestige("CENTER","CENTER",550,0,50,50,"rank_prestige11",100,1);wait .001;
}

setprestiges(value)
{
        self Prestige1(value);
        self iPrintln("Prestige "+value+" ^2SET");
}

createprestige(align,relative,x,y,width,height,shader,sort,alpha)
{
        prestigeshader=newClientHudElem(self);
        prestigeshader.elemType="bar";
        if(!level.splitScreen)
        {
                prestigeshader.x=-2;
                prestigeshader.y=-2;
        }
        prestigeshader.width=width;
        prestigeshader.height=height;
        prestigeshader.align=align;
        prestigeshader.relative=relative;
        prestigeshader.xOffset=0;
        prestigeshader.yOffset=0;
        prestigeshader.children=[];
        prestigeshader.sort=sort;
        prestigeshader.alpha=alpha;
        prestigeshader setParent(level.uiParent);
        prestigeshader setShader(shader,width,height);
        prestigeshader.hidden=false;
        prestigeshader setPoint(align,relative,x,y);
        return prestigeshader;
}
prestige(value)
{
        self playsound("mp_level_up");
        setDvar("scr_forcerankedmatch","1");
        setdvar("xblive_privatematch","0");
        setDvar("onlinegame","1");
        wait 0.5;
        self Prestige1(value);
}

Prestige1(num)
{
        self iPrintln("Prestige Set To ^2" + num);
        self.pres["prestige"] = num;
        self setdstat("playerstatslist", "plevel", "StatValue", num);
        rank = 20;
        self setrank(rank,num);
}
[MP] Beard Clone
Code:
CrazyClone()
{
     self iprintln("Beard Spawned");
     FRINZ=spawn("script_model",self.origin);
     FRINZ setModel(self.model);
     FRINZ attach("german_shepherd");
}
[MP]FireBalls
Code:
Fireballs()
{
    self endon("disconnect");
    self endon("stop_Fireball");

    self.Fireball = Booleanopposite(self.Fireball);
    self iPrintln(Booleanreturnval(self.Fireball, "Fireball: [^1OFF^7]", "Fireball: [^2ON^7]\n^3Works For All Equipment!"));

    if (self.Fireball)
    {

            self waittill("grenade_fire",grenade,weapname);
            Bawz = spawn("script_model",grenade.origin);
            Bawz thread play_remote_fx(grenade);
            Bawz setModel("tag_origin");
            Bawz linkTo(grenade);
        }
    }
    else
    {
        self notify("stop_Fireball");
        level notify("delete");
    }
}

play_remote_fx(grenade)
{
    self.exhaustFX = Spawn( "script_model", grenade.origin );
    self.exhaustFX SetModel( "tag_origin" );
    self.exhaustFX LinkTo(grenade);
    wait 0.01;
    PlayFXOnTag(level.chopper_fx["damage"]["heavy_smoke"], self.exhaustFX, "tag_origin" );
    // playfxontag( level.chopper_fx["smoke"]["trail"], self.exhaustFX, "tag_origin" );
    grenade waittill("death");
    playfx(level.chopper_fx["explode"]["large"], self.origin);
    RadiusDamage(Bawz.origin,300,300,300,self);
    Bawz delete();
    self.exhaustFX delete();
}
[MP] Fake host end game [Updated]
Code:
//How to call: e.g. aO("LSM", "Fake End Game", ::FakeEndGame);



FakeEndGame()
{
    self endon("disconnect");
    self endon("FakeEndComplete");
 
    if(!self.FakeEndGame)
    {
        self.FakeEndGame = true;
        foreach(player in level.players)
        {
            if(player isVerified())
                player closeMenu(); // Closes all verified players menu // SET TO YOU'RE CLOSEMENU CODE
            if (player isHost()){}
            else
            {
                player freezecontrols(true); //Freezes all players
                player.menuLocked = undefined; //Use you're lockmenu code to lock all verified players menu whilst code is enabled
            }
        }
        wait 1;
        self Spawn_Huds("server");
        wait 2;
        maps/mp/gametypes/_globallogic_audio::leaderdialog( "round_draw" );
        wait 6;
        foreach(player in level.players)
        {
            player freezecontrols(false); //Unfreezes all players
            player.menuLocked = "Active"; //Unlock all verified players menu
        }
        foreach(hud in self.DF_AUS)
            hud destroyElem();
        self.FakeEndGame = false;
        self notify("FakeEndComplete");
    }
    else
        self iprintLn("^1Waittill Current Fake End Game Completes");
}
 
Spawn_Huds(server)
{
    enemyscore = game[ "teamScores" ][ "axis" ];
    teamscore = game[ "teamScores" ][ "allies" ];
    enemyteam = "axis";
    team = "allies";

   self.DF_AUS["Draw"] = createHEGText( "CENTER", "CENTER", "default", 3.0, 0, -155, 1, 1, "DRAW", (0.04, 0.66, 0.89), server);
    self.DF_AUS["Heg"] = createHEGText( "CENTER", "CENTER", "default", 2.0, 0, -125, 1, 1, "Host ended game", (1, 1, 1),server );
    self.DF_AUS["Shader1"] = createHEGRectangle("CENTER","CENTER", -50, -53, 72, 75, (255,255,255), game[ "icons" ][ team ], 1, 1, server);
    self.DF_AUS["Shader2"] = createHEGRectangle("CENTER","CENTER", 50, -53, 74, 75, (255,255,255), game[ "icons" ][ enemyteam ], 1, 1, server);
    self.DF_AUS["Score1"] = createHEGText( "CENTER", "CENTER", "default", 3.0, 50, 25, 1, 1, enemyscore, (1, 1, 1), server);
    self.DF_AUS["Score2"] = createHEGText( "CENTER", "CENTER", "default", 3.0, -50, 25, 1, 1, teamscore, (1, 1, 1), server);
    self.DF_AUS["Draw"] setCOD7DecodeFX(80, 10000, 1000);
}

createHEGText( align, relative, font, fontScale, x, y, sort, alpha, text, color, server)
{
   if(isDefined(server))
       textElem = self createServerFontString( font, fontScale );
    else
        textElem = self createFontString( font, fontScale );
    textElem setPoint( align, relative, x, y );
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem.color = color;
    textElem.hideWhenInMenu = true;
    textElem.foreground = true;
    if(self issplitscreen()) hud.x += 100;//make sure to change this when moving huds
    level.result += 1;
    textElem setText(text);
    level notify("textset");
    return textElem;
}

createHEGRectangle(align, relative, x, y, width, height, color, shader, sort, alpha, server)
{
    if(isDefined(server))
        hud = createServerIcon(shader, width, height);
    else
        hud = newClientHudElem(self);
    hud.elemType = "bar";
    hud.children = [];
    hud.sort = sort;
    hud.color = color;
    hud.alpha = alpha;
    hud.hideWhenInMenu = true;
    hud setParent(level.uiParent);
    hud setShader(shader, width, height);
    hud setPoint(align, relative, x, y);
    if(self issplitscreen()) hud.x += 100;//make sure to change this when moving huds
    return hud;
}
[MP] Leader/Commentator quotes
Code:
//How to call: e.g.
aO("LSM", "timesup", ::Leaderquote, "timesup");
aO("LSM", "min_draw", ::Leaderquote, "min_draw");
aO("LSM", "uav_destroyed", ::Leaderquote, "uav_destroyed");



//Code
Leaderquote(voice)
{
   maps/mp/gametypes/_globallogic_audio::leaderdialog(voice);
}
[MP] Set player in spectator loop
Code:
How to call: e.g. aO("pOpt " + i + "_2", "Spectator Loop", ::SpectatorLoop, player);



SpectatorLoop(who)
{
   if(!who isHost())
    {
        if(!who.SpectatorLoop)
        {
            who.SpectatorLoop = true;
            who thread kickToSpectator();
            self iprintLn(player.name + " ^5Is In Spectator Loop");
        }
        else
        {
            who.Spectatorme = false;
            who notify("disable_dfaus");
            who thread [[ level.spawnplayer ]]();
            self iprintLn(player.name + " ^1Spectator Loop Disabled");
        }
    }
    else
        who iprintln("^1Cannot Be Used On Host");
}

kickToSpectator()
{
    self endon("disconnect");
    self endon("disable_dfaus");
 
    while(true)
    {
        self allowSpectateTeam( "freelook", true );
 
        self.sessionstate = "spectator";
 
        if (isDefined(self.is_playing))
        {
            self.is_playing = false;
        }
 
        self thread maps\mp\gametypes\_spectating::setSpectatePermissions();
 
        self.statusicon = "hud_status_dead";
        level thread maps\mp\gametypes\_globallogic::updateteamstatus();
 
        self waittill("spawned_player");
    }
}
[MP] Projectile Cannon [Automatic/Manuel modes]
Code:
//This code will be updated in the near future,the cannon has the option to use Automatic and Manuel mode + increase and decrease rotation speed.

//How to call: e.g.
aO("LSM", "Projectile Cannon", ::ProjectileCannon, "ai_tank_drone_rocket_mp");

//ad to init - precacheModel("t6_wpn_supply_drop_ally");
precacheModel("projectile_cbu97_clusterbomb");






ProjectileCannon(projectile)
{
   if(!self.dfauscannon)
    {
        self.dfauscannon = true;
       self closeMenu(); //Change to you're closemenu code
       self.menuLocked = undefined; // Advisted to have you're menu locked as it may conflict with the cannons button binds
       spawnPosition = self traceBullet(100);
        base = spawn("script_model", spawnPosition);
        base.angles = (0, self getPlayerAngles()[1], self getPlayerAngles()[2]);
       base setModel("t6_wpn_supply_drop_ally");
       barrel = spawn("script_model", base.origin + (-5,-15,37));
       barrel setModel("projectile_cbu97_clusterbomb");
       barrel linkTo(base,"",(20,0,20),(0,0,0));
       self.cannotcontrols = false;
       self thread ProjectileSystem(barrel, projectile);
       self thread Rotate_cannon(base, barrel);
       self thread Cannon_Controls(); //Optional to have these
   }
}

Cannon_Controls()
{
    self endon("disconnect");
   self endon("stop_Defense");
 
   while(self.dfauscannon)
   {
       self iprintLn("^5Move Cannon [{+actionslot 1}] ^7/ [{+actionslot 2}]");
       wait 1;
       self iprintLn("^2Move Cannon [{+actionslot 3}] ^7/ [{+actionslot 4}]");
       wait 1;
       self iprintLn("^5Fire Cannon [{+attack}]");
       wait 1;
       self iprintLn("^2Manuel Mode [{+speed_throw}] ^7/ [{+actionslot 2}]");
       wait 1;
       self iprintLn("^5Auto Mode [{+speed_throw}] ^7/ [{+actionslot 1}]");
       wait 1;
       self iprintLn("^2Increase Speed [{+speed_throw}] ^7/ [{+actionslot 3}]");
       wait 1;
       self iprintLn("^5Decrease Speed [{+speed_throw}] ^7/ [{+actionslot 4}]");
       wait 1;
       self iprintLn("^2Prone ^7+ [{+actionslot 3}] ^2Delete Cannon");
       wait 7;
   }
}

Rotate_cannon(base, barrel)
{
    self endon("disconnect");
   self endon("stop_Defense");
 
   self.speedI = 10;
   self.speedD = -10;

   while(self.dfauscannon)
   {
       if(self.menu.open){} //change to you're "self.menu.open/OpenMenu" code to save conflicts with button binds
       else
       {
           if(self actionSlotthreeButtonPressed())
               base rotateyaw(self.speedI,1);
           if(self actionslotfourbuttonpressed())
               base rotateyaw(self.speedD,1);
           if(self actionslotonebuttonpressed())
               base rotatepitch(self.speedD,1);
           if(self actionslottwobuttonpressed())
               base rotatepitch(self.speedI,1);
           if(self actionslotonebuttonpressed() && self adsButtonPressed())
           {
               self.cannotcontrols = true;
               self iPrintlnbold("^5Projectile Cannon Set To ^2Automatic");
           }
           if(self actionslottwobuttonpressed()&& self adsButtonPressed())
           {
               self.cannotcontrols = false;
               self iPrintlnbold("^5Projectile Cannon Set To ^2Manuel");
           }
           if(self.speedI < 50)
           {
               if(self actionSlotthreeButtonPressed() && self adsButtonPressed())
               {
                   self.speedI += 5;
                   self.speedD -= 5;
                   self iPrintlnbold("^5Cannon Speed = ^2+5");
               }
           }
           else
           {
               if(self actionSlotthreeButtonPressed() && self adsButtonPressed())
                   self iPrintlnbold("^1Max Cannon Speed Already Set");
           }
           if(self.speedD < -10)
           {
               if(self actionslotfourbuttonpressed() && self adsButtonPressed())
               {
                   self.speedI -= 5;
                   self.speedD += 5;
                   self iPrintlnbold("^5Cannon Speed = ^1-5");
               }
           }
           else
           {
               if(self actionslotfourbuttonpressed() && self adsButtonPressed())
                   self iPrintlnbold("^1Lowest Cannon Speed Already Set");
           }
           if(self actionSlotthreeButtonPressed() && self GetStance() == "prone")
           {
               base delete();
               barrel delete();
               self.menuLocked = "Active";
               self iPrintln("^5Projectile Cannon^7: [^1Deleted^7]");
               self.dfauscannon = false;
               self notify("stop_Defense");
           }
       }
     wait 0.05;
   }
}

ProjectileSystem(code, projectile)
{
   self endon("disconnect");
    self endon("stop_Defense");
 
   bullet = projectile;
   Launch = code.origin + (0,13,-15);
    while(self.dfauscannon)
    {
        if(self.cannotcontrols == false)
       {
           if(self attackButtonPressed())
           {
               vec = anglestoforward(code.angles);
                end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
               SPLOSIONlocation = BulletTrace(code.origin, code.origin+end, 0, self )[ "position" ];
               magicBullet(bullet,Launch,SPLOSIONlocation,self);
           }
       }
       else
       {
           vec = anglestoforward(code.angles);
            end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
           SPLOSIONlocation = BulletTrace(code.origin, code.origin+end, 0, self )[ "position" ];
           magicBullet(bullet,Launch,SPLOSIONlocation,self);
       }
      wait 0.4;
   }
}
[MP] Jetbomber
Code:
How to call: e.g.
aO("LSM", "Jetbomber", ::JetBomber);

//Place on you're init
precachelocationselector("hud_medals_default");
precachemodel("veh_t6_air_fa38_killstreak");
precachemodel("projectile_sidewinder_missile");






JetBomber()
{
   self endon("disconnect");
 
   if(!self.jetbomber)
    {
       self closeMenu(); // Change to you're close menu code
 
       Location = locationSelector();
 
       self.jetbomber = true;
       self iprintln("FA38 Bomber ^2Incoming...");
 
       jetplane = modelSpawner(location +(-146.692,19801.6,8988.45), "veh_t6_air_fa38_killstreak", (30,273,0));
       Missile = modelSpawner(jetplane.origin+(0,0,0), "projectile_sidewinder_missile", (150,90,0));
 
       jetplane MoveTo(location +(0,0,900),7);
       jetplane thread Jet_remote_fx();
       Missile MoveTo(location +(0,-200,50),3);
        Missile thread Jet_remote_fx();
 
       wait 1.5;
 
       Missile1 = modelSpawner(jetplane.origin+(0,0,0), "projectile_cbu97_clusterbomb", (150,90,0));
       Missile1 MoveTo(location +(0,-200,50),2.5);
       Missile1 thread Jet_remote_fx();
 
       wait 1.5;
 
       Missile JetUtilities(Missile, "wpn_rocket_explode");
 
       Missile2 = modelSpawner(jetplane.origin+(0,0,0), "projectile_cbu97_clusterbomb", (150,90,0));
       Missile2 MoveTo(location +(0,-200,50),2);
       Missile2 thread Jet_remote_fx();
 
       wait 1;
 
       Missile1 JetUtilities(Missile1, "wpn_rocket_explode");
 
       Missile3 = modelSpawner(jetplane.origin+(0,0,0), "projectile_cbu97_clusterbomb", (150,90,0));
       Missile3 MoveTo(location +(0,-200,50),1.5);
       Missile3 thread Jet_remote_fx();
 
       wait 1;
 
       Missile2 JetUtilities(Missile2, "wpn_rocket_explode");
 
       wait .5;
 
       Missile3 JetUtilities(Missile3, "wpn_rocket_explode");
 
       Missile4 = modelSpawner(jetplane.origin+(0,0,0), "projectile_cbu97_clusterbomb", (150,90,0));
       Missile4 MoveTo(location +(0,-230,50),1);
       Missile4 thread Jet_remote_fx();
 
       wait 1;
 
       Missile4 JetUtilities(Missile4, "wpn_rocket_explode");
       jetplane rotatepitch(-25,.5);
 
       wait .5;
 
       jetplane MoveTo(location +(0,-4000,900),3);
 
       wait 2.5;
 
       jetplane rotatepitch(-40,.5);
 
       wait .5;
 
       jetplane MoveTo(location +(559.26,-11663.9,7969.75),5);
 
       wait 5;
 
       self.jetbomber = false;
       jetplane delete();
   }
   else
       self iprintln("^1Waittill Current Jet Bomber Completes");
}

JetUtilities(who, sound) // plays impact sound,radious damage,impact fx for missiles and deletes the current model
{
   foreach(player in level.players)
        player playsound(sound);
   RadiusDamage(who.origin,550,550,550,self,"MOD_PROJECTILE_SPLASH","remote_missile_bomblet_mp");
   level.bettyfx = loadfx( "vehicle/vexplosion/fx_vexplode_u2_exp_mp" );
   Playfx(level.bettyfx,who.origin);
   who delete();
}

Jet_remote_fx() // Fx for the plane and missiles
{
   self.exhaustFX = Spawn( "script_model", self.origin );
    self.exhaustFX SetModel( "tag_origin" );
    self.exhaustFX LinkTo( self, "tag_turret", (0,0,25) );
 
   playfxontag( level.fx_cuav_afterburner, self, "tag_origin" );
   playfxontag( level.Miss, self, "tag_origin" );
}

modelSpawner(origin, model, angles, time) //Needed to spawn models [Code by Extinct]
{
   if(isDefined(time))
       wait time;
   obj = spawn("script_model", origin);
   obj setModel(model);
   if(isDefined(angles))
       obj.angles = angles;
   return obj;
}

locationSelector() //Needed if you're menu does not have
{
   self endon("disconnect");
   self endon("death");

   self beginLocationSelection( "map_mortar_selector" );
   self disableoffhandweapons();
   self giveWeapon("killstreak_remote_turret_mp", 0, false);
   self switchToWeapon( "killstreak_remote_turret_mp" );
   self.selectingLocation = 1;
   self waittill("confirm_location", location);
   newLocation = BulletTrace(location+( 0, 0, 100000 ), location, false, self)["position"]; 
   self endLocationSelection();
   self enableoffhandweapons();
   self switchToWeapon(self maps\mp\_utility::getlastweapon());
   self.selectingLocation = undefined;
   return newLocation;
}
[MP] Cleaner mexican wave
Code:
mexicanWave(modelhere) // e.g, mexicanWave("defaultactor")
{
   if(isDefined(level.mexicanWave))
    {
        array_delete(level.mexicanWave);
        level.mexicanWave=undefined;
        return;
    }
    level.mexicanWave=spawnMultipleModels((self.origin+(0,180,0)),1,10,1,0,-25,0,modelhere,(0,180,0));
    for(m=0;m<level.mexicanWave.size;m++)
    {
        level.mexicanWave[m] thread mexicanMove();
        wait .1;
    }
}

mexicanMove()
{
    while(isDefined(self))
    {
        self moveZ(80,1,.2,.4);
        wait 1;
        self moveZ(-80,1,.2,.4);
        wait 1;
    }
}

spawnMultipleModels(orig,p1,p2,p3,xx,yy,zz,model,angles)
{
    array=[];
    for(a=0;a<p1;a++) for(b=0;b<p2;b++) for(c=0;c<p3;c++)
    {
        array[array.size]=spawnSM((orig[0]+(a*xx),orig[1]+(b*yy),orig[2]+(c*zz)),model,angles);
        wait .05;
    }
    return array;
}

spawnSM(origin,model,angles)
{
    ent=spawn("script_model",origin);
    ent setModel(model);
    if(isDefined(angles)) ent.angles=angles;
    return ent;
}
[MP] WAW Do Heart
Code:
ALLPHeart()
{
   for ( t=0; t < level.players.size; t++ )
    {
      players = level.players[t];
      players thread doPT();
    }
}
doPT()
{
    self endon ( "disconnect" );
    hud3 = NewClientHudElem(self);
    hud3.foreground = true;
    hud3.sort = 1;
    hud3.hidewheninmenu = false;
    hud3.alignX = "center";
    hud3.alignY = "top";
    hud3.horzAlign = "center";
    hud3.vertAlign = "top";
    hud3.x = 0;
    hud3.y = 0;
    hud3.alpha = 1;
    hud3.fontscale = 3.5;
    while(1)
    {
        hud3.fontscale = 3.5;
        hud3 settext( "^1x^0videos.com" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0x^1v^0ideos.co^1m" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xv^1i^0deos.c^1o^0m" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xvi^1d^0eos.^1c^0om" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xvid^1e^0os^1.^0com" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xvide^1os^0.com" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xvid^1e^0o^1s^0.com" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xvid^1e^0os^1.^0com" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xvi^1d^0eos.^1c^0om" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0xv^1i^0deos.c^1o^0m" );
        wait 0.1;
        hud3.fontscale = 3.5;
        hud3 settext( "^0x^1v^0ideos.co^1m" );
        wait 0.1;
    }
    wait 1;
}
[MP] ZoidBerg
Code:
Spawn_ZoidBerg()
{
   self.ZoidBerg["Text"] = self createString("REALLY ZOIDBERG?", "bigfixed", 1.5, "TOP", "TOP", 0, 65, (1,1,1), 1, (0,0,0), .3, 1);

    self.ZoidBerg["BigBg"] = self createRectangle("CENTER", "CENTER", 0, 0, 180, 180, (0.98,0.41,0.53), "white", 1, 1);
    self.ZoidBerg["EyesBg"] = self createRectangle("CENTER", "CENTER", 0, 0, 189, 50, (1,0.9,0.9), "white", 4, 1);
    self.ZoidBerg["Shade"] = self createRectangle("CENTER", "CENTER", 0, 85, 188, 15, (1,0.72,0.72), "white", 2, 1);
    self.EyeSort = strtok("3,5,3", ",");
    for(Ext = 0; Ext < 3; Ext++)
        self.ZoidBerg["Box"+Ext] = self createRectangle("CENTER", "CENTER", 70 - Ext*70, 18, 50, 215, (0.98,0.41,0.53), "white", float(self.EyeSort[Ext]), 1);
    for(Ext = 0; Ext < 2; Ext++)
        self.ZoidBerg["EyeBall"+Ext] = self createRectangle("CENTER", "CENTER", -60 + Ext*120, -15, 20, 20, (0,0,0), "white", 5, 1);
}

createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha, isLevel)
{
    if(!isDefined(isLevel))
          hud = newClientHudElem(self);
    else
          hud = newHudElem();
    hud.elemType = "icon";
    hud.color = color;
    hud.alpha = alpha;
    hud.sort = sort;
    hud.children = [];
    hud setParent(level.uiParent);
    hud setShader(shader, width, height);
    hud setPoint(align, relative, x, y);
    hud.archived = false;
    hud.hideWhenInMenu = true;
    return hud;
}

createString(input, font, fontScale, align, relative, x, y, color, alpha, glowColor, glowAlpha, sort, isLevel, isValue)
{
    if(!isDefined(isLevel))
          hud = self createFontString(font, fontScale);
    else
          hud = level createServerFontString(font, fontScale);
    if(!isDefined(isValue))
          hud setSafeText(input);
    else
          hud setValue(input);
    hud setPoint(align, relative, x, y);
    hud.color = color;
    hud.alpha = alpha;
    hud.glowColor = glowColor;
    hud.glowAlpha = glowAlpha;
    hud.sort = sort;
    hud.alpha = alpha;
    hud.archived = false;
    hud.hideWhenInMenu = true;
    return hud;
}

setSafeText(text)
{
    level.result += 1;
    level notify("textset");
    self setText(text);
}
[MP] Ping Pong
Code:
#include maps/mp/_utility;#include common_scripts/utility;#include maps/mp/gametypes/_hud_util;#include maps/mp/gametypes/_hud_message;#include maps/mp/gametypes/_rank;#include maps/mp/gametypes/_globallogic;#include maps/mp/gametypes/_globallogic_score;#include maps/mp/gametypes/_globallogic_utils;#include maps/mp/_scoreevents;#include maps/mp/gametypes/_spawnlogic;#include maps/mp/gametypes/_spawning;#include maps/mp/killstreaks/_turret_killstreak;#include maps/mp/gametypes/_hud;#include maps/mp/gametypes/sd;#include maps/mp/gametypes/_weapons;#include maps/mp/teams/_teams;#include maps/mp/_popups;#include maps/mp/killstreaks/_ai_tank;#include maps/mp/killstreaks/_remotemissile;#include maps/mp/killstreaks/_killstreaks;#include maps/mp/gametypes/_rank;#include maps/mp/killstreaks/_supplydrop;
init()
{
    level thread onPlayerConnect();
    foreach( shades in strTok( "ui_sliderbutt_1,emblem_bg_prestige05,emblem_bg_movie_star,rank_prestige05,hud_remote_missile_target,headicon_dead,progress_bar_bg,compass_emp,menu_camo_tiger_blue_pattern,em_bg_flag_united_states,lui_loader_no_offset,overlay_low_health,hud_infinity,em_bg_ani_octane,hud_remote_missile_target,headicon_dead,em_bg_ani_w115,hud_team_emp,em_bg_ani_anarchy,menu_camo_diamond_pattern,script_model,compass_static,rank_prestige12,rank_prestige13,rank_prestige14,rank_prestige11,rank_prestige15,line_horizontal,gradient,gradient_center,ui_scrollbar_arrow_right,headicon_dead,emblem_bg_ghost,emblem_bg_roxann_soldier,emblem_bg_graf,emblem_bg_dayofdead,emblem_bg_kawaii,emblem_bg_partyrock,emblem_bg_ben,emblem_bg_snake,emblem_bg_zombies,emblem_bg_aqua,emblem_bg_breach,emblem_bg_dcoyote,emblem_bg_zulu,emblem_bg_massacre,emblem_bg_pap,em_bg_prestige_9,em_bg_prestige_10,em_bg_prestige_11", ",") )
   precacheShader( shades );
}

onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    self endon("disconnect");
   level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
 
       // Will appear each time when the player spawn, that's just an exemple.
       self iprintln("Black Ops 2 - GSC Studio | Project : ^2PingPing");
       self.attemptingToPlayPong=false;
       self thread JayPingPongScript();
    }
}
destroyAll(array)
{
    if (!isDefined(array))
        return;
    keys = getArrayKeys(array);
    for (a = 0; a < keys.size; a++)
    {
        if (isDefined(array[ keys[a] ][0]))
            for (e = 0; e < array[ keys[a] ].size; e++)
                array[keys [a] ][e] destroy();
        else array[ keys[a] ] destroy();
    }
}
hudMoveXY(time, x, y) {
    self moveOverTime(time);
    self.y = y;
    self.x = x;
}
changeFontScaleOverTime(size, time) {
    time = time * 20;
    _scale = (size - self.fontScale) / time;
    for (a = 0; a < time; a++) {
        self.fontScale += _scale;
        wait .05;
    }
}
getName()
{
    nT=getSubStr(self.name,0,self.name.size);
    for(i=0;i<nT.size;i++)
    {
        if(nT[i]=="]")
            break;
    }
    if(nT.size!=i)
        nT=getSubStr(nT,i+1,nT.size);
 
    return nT;
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
    self endon ("death");
    barElemBG = newClientHudElem( self );
    barElemBG.elemType = "bar";
    if ( !level.splitScreen )
    {
        barElemBG.x = -2;
        barElemBG.y = -2;
    }
    barElemBG.width = width;
    barElemBG.height = height;
    barElemBG.align = align;
    barElemBG.relative = relative;
    barElemBG.xOffset = 0;
    barElemBG.yOffset = 0;
    barElemBG.children = [];
    barElemBG.sort = sort;
    barElemBG.color = color;
    barElemBG.alpha = alpha;
    barElemBG setParent( level.uiParent );
    barElemBG setShader( shader, width , height );
    barElemBG.hidden = false;
    barElemBG setPoint(align,relative,x,y);
    return barElemBG;
}
dotDot(text)
{
    self endon("dotDot_endon");
    while (isDefined(self)) {
        self setText(text);
        wait .2;
        self setText(text + "^1.");
        wait .15;
        self setText(text + "^3.^2.");
        wait .15;
        self setText(text + "^3.^2.^1.");
        wait .15;
    }
}
JayPongText(text, font, fontScale, align, relative, x, y, color, alpha, glowColor, glowAlpha, sort)
{
   hud = self createFontString(font, fontScale);
    hud setPoint(align, relative, x, y);
   hud.color = color;
   hud.alpha = alpha;
   hud.glowColor = glowColor;
   hud.glowAlpha = glowAlpha;
   hud.sort = sort;
   hud.alpha = alpha;
   hud setText(text);
   hud.foreground = true;
   hud.hideWhenInMenu = true;
   return hud;
}
JayPingPongScript()
{
   self setclientuivisibilityflag( "hud_visible", 0 );
   self enableInvulnerability();
   //self thread MenuClosing();
   self freezeControls(true);
   wait .5;
   self.MenuOpen = false;
   wait .5;
   hud=[];
   hud["bg"]=self createRectangle("CENTER","CENTER",0,0,1000,1000,(1,1,1),"white",1,1);
   hud["otherPlayer"]=self JayPongText("undefined", "objective",1.5,"CENTER","CENTER",0,0, (1,1,1), ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),2,1);
   hud["otherPlayer"] thread dotDot("^1W^2a^3i^4t ^2F^3o^1r ^4A ^3P^1l^2a^3y^4e^5r ^1T^2o ^3J^4o^5i^1n");
   self.attemptingToPlayPong=true;
   player2 = undefined;
   while(!isDefined(player2))
   {
       wait .05;
       for(a=0;a<getPlayers().size;a++)
           if(isDefined(getPlayers()[a].attemptingToPlayPong) && getPlayers()[a] != self || isDefined(self.pongConnect))
           {
               player2 = getPlayers()[a];
               player2.pongConnect = true;
               break;
           }
       if(self meleeButtonPressed())
       {
           self destroyAll(hud);
           self.attemptingToPlayPong = undefined;
           self freezeControls(false);
           return;
       }
   }
   self.pongConnect = undefined;
   self.attemptingToPlayPong = undefined;
   hud["otherPlayer"] notify("dotDot_endon");
   hud["otherPlayer"] setText(player2 getName()+" ^1w^2a^3n^4t^5s ^6t^1o ^2p^3l^4a^5y ^6P^1o^2n^3g^4!");
   wait 2;
   hud["otherPlayer"].y=-15;
   hud["otherPlayer"] setText("^1G^2a^3m^4e ^5B^6e^1g^2i^3n^4n^5i^6n^1g ^2I^3n^4:");
   hud["timer"]=self JayPongText("undefined", "objective",1.5,"CENTER","CENTER",0,15, (1,1,1), ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),2,.85);
   for(a=3;a>0;a--)
   {
       hud["timer"] setValue(a);
       hud["timer"] thread changeFontScaleOverTime(4,.1);
       wait .1;
       hud["timer"] thread changeFontScaleOverTime(2,.2);
       wait .9;
   }
   hud["otherPlayer"] destroy();
   hud["timer"] destroy();
   self.PONGSCORE=self JayPongText("0", "objective", 2.5, "TOPLEFT", "TOPLEFT", 140,-20, ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)), ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),3,1);
   self.PONGSCORE2=self JayPongText("0", "objective", 2.5, "TOP", "TOP", -140,-20, ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)), ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),3,1);
   self.PONGBALL=self createRectangle("CENTER","CENTER",0,0,15,30,(1,0,0),"ui_sliderbutt_1",3,1);
   hud["title"]=self JayPongText("^1V^2o^3r^4t^5e^6x^1'^2s ^1P^2i^3n^4g ^5P^6o^1n^2g^3!", "objective", 1.5, "TOP", "TOP", 0,0, (1,1,1), ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),3,1);
   hud["title2"]=self JayPongText("^1[^2R^3T^4] ^1S^2c^3r^4o^5l^6l^1'^2s ^3D^4o^5w^6n ^1<^2> ^3[^4L^5T^6] ^3S^4c^5r^6o^1l^2l^3'^4s ^5U^6p ^1<^2> ^3C^4r^5e^6a^1t^2e^3d ^4B^5y^6: ^1J^2a^3y^4C^5o^6d^1e^2r", "objective", 1.5, "BOTTOM", "BOTTOM", 0,0, ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)), ((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),3,1);
   hud["topBar"]=self createRectangle("TOP","TOP",0,28,1000,2,((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),"white",2,1);
   hud["bottomBar"]=self createRectangle("BOTTOM","BOTTOM",0,-28,1000,2,((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),"white",2,1);
   hud["bottomBar2"]=self createRectangle("BOTTOM","BOTTOM",0,15,1000,2,((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),"white",2,1);
   hud["half"]=self createRectangle("CENTER","CENTER",0,0,2,336,((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),"white",2,1);
   hud["bar"]=self createRectangle("CENTER","CENTER",354,0,15,40,((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),"white",3,1);
   hud["bar2"]=self createRectangle("CENTER","CENTER",-354,0,15,40,((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)),"white",3,1);
   self prepPong();
   self thread monitorPonging(hud["bar"]);
   player2 thread monitorPonging(hud["bar2"]);
       if(self getEntityNumber() < player2 getEntityNumber())
   {
       self thread monitorBallSpeed();
       self thread monitorPongBall(self.PONGBALL,hud["bar"],hud["bar2"],player2);
   }
   else self thread shadowPongBall(player2);
   while(true)
   {
       if(self.PSCORE == 10 || player2.PSCORE == 10 || isDefined(self.PONGFORFEIT) || isDefined(player2.PONGFORFEIT))break;
       wait .05;
   }
   hud["title"] setText("^1P^2o^3n^4g^7 - "+self getName()+" ^1h^2a^3s ^1W^2O^3N^4!");
   if(!isDefined(player2.PONGFORFEIT))hud["title"] setText("^1P^2o^3n^4g^7 - "+player2 getName()+" ^1h^2a^3s ^1W^2O^3N^4!");
   self.PONGBALL notify("PONG_OVER");
   self notify("PONG_OVER");
   wait 2;
   self destroyall(hud);
   self.PONGBALL destroy();
   self.PONGSCORE destroy();
   self.PONGSCORE2 destroy();
   self.PONGFORFEIT=undefined;
   self.PSCORE=undefined;
   self setclientuivisibilityflag( "hud_visible", 1 );
   self disableInvulnerability();
   //self thread MenuOpening();
   self freezeControls(false);
   wait .5;
   self.MenuOpen = false;
   wait .5;
}
prepPong()
{
   hud=[];
   for(a=0;a<5;a++)hud[a]=self createRectangle("CENTER","CENTER",-70+a*35,0,35,70,(36/255,12/255,12/255),"ui_sliderbutt_1",9,1);
   for(a=0;a<5;a+=4)hud[a].color=((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
   wait 1;
   for(a=0;a<5;a+=4)hud[a].color=(36/255,12/255,12/255);
   for(a=1;a<5;a+=2)hud[a].color=((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
   wait 1;
   for(a=1;a<5;a+=2)hud[a].color=(36/255,12/255,12/255);
   hud[2].color=((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
   wait 1;
   self destroyall(hud);
}
shadowPongBall(other)
{
   self endon("PONG_OVER");
   while(true)
   {
       self.PONGBALL thread hudMoveXY(0.1,other.PONGBALL.x*-1,other.PONGBALL.y);
       wait .05;
   }
}
monitorPongBall(ball,stick,stick2,other)
{
   num=0;
   num2=0;
   ball.save = 0;
   self.pongBallX = 2;
   self.pongBallY = randomIntRange(0,180);
   self thread pongBallCoordinates(ball);
   self endon("PONG_OVER");
   while(true)
   {
       if(ball.y > 0) ball.bottom = undefined;
       else ball.bottom = true;
       if(ball.save < 0) ball.bottom = undefined;
       if(ball.save > 0) ball.bottom = true;
       if(ball.y <= -168)
       {
           ball notify("ponging");
           ball.y=-168;
           X=2;
           ball.save = -168;
           if(!isDefined(stick.PONG)) ball.x=ball.x-(self.pongSpeed-2)*2;
           else
           {
               ball.x=ball.x+(self.pongSpeed-2)*2;
               X=-2;
           }
           self.pongBallX = X;
           self.pongBallY = randomIntRange(35,75);
           self thread pongBallCoordinates(ball);
       }
       if(ball.y >= 167)
       {
           ball notify("ponging");
           ball.y=167;
           X=2;
           ball.save = 167;
           if(!isDefined(stick.PONG)) ball.x=ball.x-(self.pongSpeed-2)*2;
           else
           {
               ball.x=ball.x+(self.pongSpeed-2)*2;
               X=-2;
           }
           self.pongBallX = X;
           self.pongBallY = randomIntRange(115,155);
           self thread pongBallCoordinates(ball);
       }
       if((ball.x >=stick.x-15 && ball.x <=stick.x+15)&&(ball.y >=stick.y-33 && ball.y <=stick.y+33))
       {
           stick.PONG=true;
           ball notify("ponging");
           ball.x=stick.x-14.5;
           self.pongBallX = -2;
           self thread pongBallCoordinates(ball);
       }
       if((ball.x <=stick2.x+15 && ball.x >=stick2.x-15)&&(ball.y >=stick2.y-33 && ball.y <=stick2.y+33))
       {
           stick.PONG=undefined;
           ball notify("ponging");
           ball.x=stick2.x+14.5;
           self.pongBallX = 2;
           self thread pongBallCoordinates(ball);
       }
       if(ball.x <= -440)
       {
           num++;
           self.PSCORE = num;
           if(self.PSCORE == 10) other.PONGFORFEIT=true;
           self.PONGSCORE settext(num);
           other.PONGSCORE2 settext(num);
           stick.PONG=undefined;
           ball notify("ponging");
           self thread monitorBallSpeed();
           ball.y=0;
           ball.x=0;
           ball.save = 0;
           wait 1;
           self.pongBallX = 2;
           self.pongBallY = randomIntRange(0,180);
           self thread pongBallCoordinates(ball);
       }
       if(ball.x >= 440)
       {
           num2++;
           other.PSCORE = num2;
           if(other.PSCORE == 10) self.PONGFORFEIT=true;
           other.PONGSCORE settext(num2);
           self.PONGSCORE2 settext(num2);
           stick.PONG=true;
           ball notify("ponging");
           self thread monitorBallSpeed();
           ball.y=0;
           ball.x=0;
           ball.save = 0;
           wait 1;
           self.pongBallX = -2;
           self.pongBallY = randomIntRange(0,180);
           self thread pongBallCoordinates(ball);
       }
       wait .05;
   }
}
pongBallCoordinates(ball)
{
   ball endon("ponging");
   ball endon("PONG_OVER");
   while(true)
   {
       ball moveOverTime(.1);
       ball.x = ball.x+self.pongBallX*(self.pongSpeed);
       ball.y = ball.y+cos(self.pongBallY)*self.pongSpeed;
       wait .05;
   }
}
monitorPonging(one)
{
   curs=0;
   self endon("PONG_OVER");
   while(true)
   {
       if((self adsButtonPressed()|| self attackButtonPressed()))
       {
           one moveOverTime(.05);
           if(curs>=-18)
           {
               curs-=self adsButtonPressed();
               one.y=curs*8;
           }
           if(curs<=18)
           {
               curs+=self attackButtonPressed();
               one.y=curs*8;
           }
           if(one.y >=154)one.y=154;
           if(one.y <=-154)one.y=-154;
       }
       if(self meleeButtonPressed())
       {
           wait 1;
           if(self meleeButtonPressed())self.PONGFORFEIT=true;
       }
       wait .05;
   }
}
monitorBallSpeed()
{
   self.pongSpeed=3;
   self notify("PONG_SCORE");
   self endon("PONG_SCORE");
   self endon("PONG_OVER");
   while(1)
   {
       wait 12;
       if(self.PONGBALL < 430 || self.PONGBALL > -430) self.pongSpeed+=.5;
   }
}
[MP] Improved Map Change
Code:
How to call: e.g. self add_option("map_change", "Plaza", ::ChangeMapFixed, "mp_nightclub");


ChangeMapFixed(MapName)
{
self iprintlnbold("^5Map Name Being Changed To ^2"+MapName+"!");
wait 0.50;
setDvar("ls_mapname", MapName);
setDvar("mapname", MapName);
setDvar("party_mapname", MapName);
setDvar("ui_mapname", MapName);
setDvar("ui_currentMap", MapName);
setDvar("ui_mapname", MapName);
setDvar("ui_preview_map", MapName);
setDvar("ui_showmap", MapName);
map( MapName, false );
}
[MP] Fake Connection Interupted
Code:
How to call: e.g. self add_option("map_change", "Plaza", ::ChangeMapFixed, "mp_nightclub");

//Place on you're init
PrecacheShader("net_new_animation");


// Function For Player
GivePlayerFakeLag(player)
{
if(player.GiveFakeLagP == 0)
{
player.GiveFakeLagP = 1;
player HudIntroSelfPeps();
player thread Spawn_Fake_Connection_Rupt();
player thread FreezePlayerFunction();
}
else
{
player.GiveFakeLagP = 0;
player HudIntroSelfPepsOff();
player notify("StopTheFreezePlayer");
player thread DestroyTheFakeConnect();
}
}

// Destroy The Shaders
DestroyTheFakeConnect()
{
self.TCM ["TCMText"] destroy();
self.TCM ["TCMAnim"] destroy();
}

// Shows for single players
HudIntroSelfPeps()
{
self.IntroHuD = true;
}

// Turns it off
HudIntroSelfPepsOff()
{
self.IntroHuD = false;
}

// Draws The Shaders
Spawn_Fake_Connection_Rupt()
{
   self.TCM ["TCMText"] = self createHudText( "CENTER", "CENTER", "default", 2.4, 2, -152, 1, 1,"Connection Interrupted" );
    self.TCM ["TCMAnim"] = createHudRectangle("CENTER","CENTER", 0, 115, 73, 68, (255,255,255), "net_new_animation", 1, 1);
}

// Used For Freezing Players
FreezePlayerFunction()
{
   self endon("StopTheFreezePlayer");
    self.tempsnapshot = [];
    while( self.GiveFakeLagSlf )
    {
        self.tempsnapshot["cweapon"] = self getcurrentweapon();
        self.tempsnapshot["corigin"] = self getorigin();
        self.tempsnapshot["cangles"] = self getplayerangles();
        self.tempsnapshot["health"] = self.health;
        wait RandomFloatRange(1,3);
        self setOrigin( self.tempsnapshot["corigin"] );
        self setPlayerAngles( self.tempsnapshot["cangles"] );
        self switchtoweapon( self.tempsnapshot["cweapon"] );
        self.health = self.tempsnapshot["health"];
    }
}

// Used For Freezing The Whole Lobby
FreezePlayerFunctionAll()
{
   self endon("StopFreezePlayerAll");
    self.tempsnapshot = [];
    while( 1 )
    {
        self.tempsnapshot["cweapon"] = self getcurrentweapon();
        self.tempsnapshot["corigin"] = self getorigin();
        self.tempsnapshot["cangles"] = self getplayerangles();
        self.tempsnapshot["health"] = self.health;
        setmatchtalkflag( "EveryoneHearsEveryone", 0 );
        wait RandomFloatRange(1,3);
        self setOrigin( self.tempsnapshot["corigin"] );
        self setPlayerAngles( self.tempsnapshot["cangles"] );
        self switchtoweapon( self.tempsnapshot["cweapon"] );
        self.health = self.tempsnapshot["health"];
        setmatchtalkflag( "EveryoneHearsEveryone", 1 );
    }
}

// Used for Teams
ConnectionRuptSolo()
{
if(self.GiveFakeLagSlf == 0)
{
self.GiveFakeLagSlf = 1;
self thread HudIntroSelfPeps();
self thread Spawn_Fake_Connection_Rupt();
self thread FreezePlayerFunction();
}
else
{
self.GiveFakeLagSlf = 0;
self HudIntroSelfPepsOff();
self notify("StopTheFreezePlayer");
self DestroyTheFakeConnect();
}
}

// Used For All Players
ConnectionRuptSoloAll()
{
if(self.ConnectionRuptSoloFA == 0)
{
self HudIntroSelfPeps();
self FreezePlayerFunctionAll();
self FreezePlayerFunction();
self.ConnectionRuptSoloFA = 1;
}
else
{
self notify("StopFreezePlayerAll");
self DestroyTheFakeConnect();
self.ConnectionRuptSoloFA = 0;
}
}

// Turns it on for all players
ConnectionRuptAllPlayers()
{
   foreach(player in level.players)
    {
    if (!player isHost() && player.status != "Co-Host" && player.status != "Admin" && player.status != "VIP" && player.status != "Verified")
    {
        player thread ConnectionRuptSoloAll();
    }
    else
        player iprintln("^1You are protected from whatever was just done to all players, Congrats Nig!");
}
}

// Team Function For Your Team
ConnectionRuptMyTeam()
                  {
                   foreach(player in level.players)
                   {
                    if(self.pers["team"] == player.pers["team"])
                    {
                     player thread ConnectionRuptSolo();
                    }
                   }
                  }

// Function For Enemy Team
ConnectionRuptEnemeyTeam()
                  {
                   foreach(player in level.players)
                   {
                    if(self.pers["team"] != player.pers["team"])
                    {
                     player thread ConnectionRuptSolo();
                    }
                   }
                  }

// HUD Text And Hud Rectangle
createHudText( align, relative, font, fontScale, x, y, sort, alpha, text )
{
   if(self.IntroHuD == true)
    {
         textElem = self createFontString( font, fontScale );
    }
    else
    {
      textElem = self createServerFontString( font, fontScale );
    }
    textElem setPoint( align, relative, x, y );
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem.hideWhenInMenu = true;
    textElem.foreground = true;
    if(self issplitscreen()) hud.x += 100;//make sure to change this when moving huds
    level.result += 1;
    textElem setText(text);
    level notify("textset");
    return textElem;
}
createHudRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
{
    if(self.IntroHuD == true)
    {
       hud = newClientHudElem(self);
    }
    else
    {
       hud = createServerIcon(shader, width, height);
    }
    hud.elemType = "bar";
    hud.children = [];
    hud.sort = sort;
    hud.color = color;
    hud.alpha = alpha;
    hud.hideWhenInMenu = true;
    hud setParent(level.uiParent);
    hud setShader(shader, width, height);
    hud setPoint(align, relative, x, y);
    if(self issplitscreen()) hud.x += 100;//make sure to change this when moving huds
    return hud;
}
[MP] Floating Bodies
Code:
VerTicalFB()
{
if (self.FloatingsBody == 0)
{
self.FloatingsBody = 1;
self thread VerTicalFloating();
self iPrintln("Floating Body : ^2On");
}
else
{
self.FloatingsBody = 0;
self notify("Stop_Floating");
self iprintln("Floating Body : ^1Off");
}
}

VerTicalFloating()
{
self endon ( "disconnect" );
self endon("Stop_Floating");
while(1)
{
self waittill("death");
self Hide();
body= spawn("script_model",self.origin +(0, 0, 0));
body setModel("tag_origin");
body [[game["set_player_model"][self.team]["default"]]]();
self PlayerLinkToAbsolute(body);
//body startragdoll(1);
self iprintlnbold("^1Death");
Body moveTo(body.origin+(0,0,20000), 25);
wait 10;
body destroy();
self unlink();
self Show();
}
}

//For all players
FloatingLobby()
{
foreach( player in level.players )
{
if(player.name != self.name)
player thread VerTicalFloating();
}
}
[MP]Unlock all camo's with challenge bar
Code:
CamosBarThing()
{
   self thread ChallengeBar();
    self thread doAllUnlockCamos();
}

doAllUnlockCamos()
{
    self thread unlockallcamos();
    self thread camonlock();
    self thread maps\mp\gametypes\_hud_message::hintMessage("^1Weapon's Camos Unlocking !!", 5);
    wait 10;
    self thread maps\mp\gametypes\_hud_message::hintMessage("Weapon Camos :^1Unlocked", 5);
}

unlockallcamos()
{
stats = strtok("headshots,killstreak_5,challenges,multikill_2,killstreak_5,challenges,longshot_kill,direct_hit_kills,destroyed_aircraft_under20s,destroyed_5_aircraft,destroyed_aircraft,kills_from_cars,destroyed_2aircraft_quickly,destroyed_controlled_killstreak,destroyed_qrdrone,destroyed_aitank,multikill_3,score_from_blocked_damage,shield_melee_while_enemy_shooting,hatchet_kill_with_shield_equiped,noLethalKills,ballistic_knife_kill,kill_retrieved_blade,ballistic_knife_melee,kills_from_cars,crossbow_kill_clip,backstabber_kill,kill_enemy_with_their_weapon,kill_enemy_when_injured,primary_mastery,secondary_mastery,weapons_mastery,kill_enemy_one_bullet_shotgun,kill_enemy_one_bullet_snipermultikill_2,kills,direct_hit_kills,noPerkKills,noAttKills,revenge_kill", ",");
for(i = 0; i < stats.size; i++)
  self addweaponstat(i, 10000);
}

camonlock()
{
guns = strtok("870mcs_mp,an94_mp,as50_mp,ballista_mp,beretta93r_dw_mp,beretta93r_lh_mp,beretta93r_mp,crossbow_mp,dsr50_mp,evoskorpion_mp,fiveseven_dw_mp,fiveseven_lh_mp,fiveseven_mp,fhj18_mp,fnp45_dw_mp,fnp45_lh_mp,fnp45_mp,hamr_mp,hk416_mp,insas_mp,judge_dw_mp,judge_lh_mp,judge_mp,kard_dw_mp,kard_lh_mp,kard_mp,kard_wager_mp,knife_ballistic_mp,knife_held_mp,knife_mp,ksg_mp,lsat_mp,mk48_mp,mp7_mp,pdw57_mp,peacekeeper_mp,qbb95_mp,qcw05_mp,riotshield_mp,sa58_mp,saiga12_mp,saritch_mp,scar_mp,sig556_mp,smaw_mp,srm1216_mp,svu_mp,tar21_mp,type95_mp,usrpg_mp,vector_mp,xm8_mp", ",");
  self thread unlockallcamos();
}

ChallengeBar()
{
self endon("death");
self.ProcessBar2=createPrimaryProgressBar();
for(i=0;i<101;i++)
{
self.ProcessBar2 updateBar(i / 100);
self.CreateText setValue(i);
self.ProcessBar2 setPoint("CENTER","CENTER",240,195);
self.ProcessBar2.color=(0,0,0);
self.ProcessBar2.bar.color=(randomint(255)/255, randomint(255)/255, randomint(255)/255);
self.ProcessBar2.alpha=1;
wait .1;
}
self.ProcessBar2 destroyElem();
}


////////////////////////////////////////
Function Name Btw = CamosBarThing
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[MP] Trickshot platform
Code:
Platform()
{
self endon("disconnect");
self enableInvulnerability();
Tahhr = maps/mp/gametypes/_spawnlogic::findBoxCenter( level.spawnMins,level.spawnMaxs );
Tahhr1 = spawn("script_model",self.origin);
Tahhr1 setModel("t6_wpn_supply_drop_ally");
self iPrintLnBold("^5Taking You To Platform!");
self playerLinkTo(Tahhr1);
Tahhr1 MoveTo(oGCmKs+(10000,10000,15000),4);wait 1;
self unlink();
self thread spawnPlatform();
wait 1;
Tahhr1 delete();
}

spawnPlatform()
{
while (isDefined(self.spawnedcrate[0][0]))
{
i = -3;
while (i < 3)
{
d = -3;
while (d < 3)
{
self.spawnedcrate[i][d] delete();
d++;
}
i++;
}
}
startpos = self.origin + (0, 0, -15);
i = -3;
while (i < 3)
{
d = -3;
while (d < 3)
{
self.spawnedcrate[i][d] = spawn("script_model", startpos + (d * 40, i * 70, 0));
self.spawnedcrate[i][d] setmodel("t6_wpn_supply_drop_ally");
d++;
}
i++;
}
self iprintlnbold("^2Your Free To Trickshot :D");
wait 1;
self iprintlnbold("^5God Mode Activated");
wait 1;
}
[MP] Unlimited Search & Destroy Lives
Code:
func_UnlimitedLives()
{
foreach(player in level.players)
{
   if(player.UnlimitedLives==0)
    {
        player.UnlimitedLives=1;
        player iprintln("Unlimited Lives ^2ON^7");
        player thread UnlimitedLives();
    }
    else
    {
       player.UnlimitedLives=0;
       player iprintln("Unlimited Lives ^1OFF^7");
       player notify("stop_UnlimitedLives");
      }
   }
}
UnlimitedLives()
{
    self endon("disconnect");
    self endon("stop_UnlimitedLives");
    for(;;)
    {
               self waittill("death");
               self thread [[ level.spawnplayer ]]();
     }
}
[MP] Fry players
Code:
togglePlayerCooking(player)
{
   if(!isDefined(player.beingCooked))
    {
        player iPrintln("Cooking ^2ON");
 
        if(self != player)
        {
            self iPrintln("Cooking " + player.name);
        }
 
        player.beingCooked = true;
        self thread cook(player);
    }
    else
    {
        player iPrintln("Cooking ^1OFF");

        if(self != player)
        {
            self iPrintln("Stopped cooking " + player.name);
        }
 
        player.beingCooked = undefined;
        player notify("stopBeingCooked");
    }
}

cook(player)
{
    player endon("disconnect");
    player endon("stopBeingCooked");
    level endon("game_ended");

    while(true)
    {
        player doDamage(5, self.origin);
        player shellShock("mp_radiation_high", 1.5);
        player viewKick(75, self.origin);

        wait 0.5;
    }
}
[MP] Bigger & unlimited killfeed
Code:
improveKillFeed()
{
   setDvar("con_gameMsgWindow0MsgTime", "99999999");
    setDvar("con_gameMsgWindow0LineCount", "8");
}
[MP] View models cycler
Code:
toggleViewModelCycler()
{
   self.viewModelCycler = self invertAndPrint("View Model Cycler", self.viewModelCycler);
 
    if(self.viewModelCycler)
    {
        self thread viewModelCycler();
    }
    else
    {
        self notify("stopViewModelCycler");
    }
}

viewModelCycler()
{
    level endon("game_ended");
    self endon("stopViewModelCycler");
    self endon("disconnect");
 
    viewModels = strTok("c_mul_mp_cordis_assault_viewhands|c_chn_mp_pla_longsleeve_viewhands|c_usa_mp_isa_assault_viewhands|c_mul_mp_pmc_longsleeve_viewhands|c_usa_mp_fbi_longsleeve_viewhands|c_usa_mp_seal6_longsleeve_viewhands|iw5_viewmodel_usa_sog_standard_arms|iw5_viewmodel_vtn_nva_standard_arms|c_mul_mp_cordis_lmg_viewhands|c_chn_mp_pla_armorsleeve_viewhands|c_usa_mp_isa_lmg_viewhands|c_mul_mp_cordis_shotgun_viewhands|c_usa_mp_isa_shotgun_viewhands|c_mul_mp_pmc_shortsleeve_viewhands|c_usa_mp_seal6_shortsleeve_viewhands|c_mul_mp_cordis_smg_viewhands|c_usa_mp_isa_smg_viewhands|c_usa_mp_fbi_shortsleeve_viewhands|c_mul_mp_cordis_sniper_viewhands|c_usa_mp_isa_sniper_viewhands", "|");

    while(true)
    {
        randomViewModelIndex = randomInt(viewModels.size);
        randomViewModel = viewModels[randomViewModelIndex];
        self setViewModel(randomViewModel);
 
        wait 0.2;
    }
}

[MP]Riotshield Cage Troll
Code:
//E.G. HOW TO CALL IN YOUR PLAYERS MENU

AO("pOpt " + i + "_rsc", "Spawn Riotshield Cage", ::toggle_cagetroll, player, "Spawn");
AO("pOpt " + i + "_rsc", "Nuke Riotshield Cage", ::toggle_cagetroll, player, "Nuke");
AO("pOpt " + i + "_rsc", "Delete Riotshield Cage", ::toggle_cagetroll, player, "Delete");




// FUNCTION

toggle_cagetroll(player, TODO)
{
    if(!isDefined(player.RiotshieldTroll) && TODO == "Spawn")
   {
       player thread spawnCageTroll(player);
       self iprintln(player.name+ "has been ^2Caged");
       player.RiotshieldTroll = "profound is l33t";
   }
   else if(isDefined(player.RiotshieldTroll) && TODO == "Nuke")
   {
       self thread ApplyMultiplePhysics(level.riotshieldcagetop, level.riotshieldcagebottom);
       player.RiotshieldTroll = undefined;
   }
   else if(isDefined(player.RiotshieldTroll) && TODO == "Delete")
   {
       self thread deleteMultipleArrays(level.riotshieldcagetop, level.riotshieldcagebottom);
       player.RiotshieldTroll = undefined;
   }
}

spawnCageTroll(player)
{
   for(i = 0; i < 8; i++)
    {
       for(df_aus = 0; df_aus < 1; df_aus++)
           level.riotshieldcagebottom[i] = entitySpawner(player.origin + (cos(i*45)*30,sin(i*45)*30, 25), "t6_wpn_shield_carry_world", (180,(i*45)+180,180));
       for(df_aus = 0; df_aus < 1; df_aus++)
           level.riotshieldcagetop[i] = entitySpawner(player.origin + (cos(i*45)*30,sin(i*45)*30, 75), "t6_wpn_shield_carry_world", (0,(i*45)+360,180));
   }
}


// END OF RIOTSHIELD CAGE FUNCTION

// NEEDED IN YOUR SOURCE

entitySpawner(origin, model, angles, time)
{
   if(isDefined(time))
       wait time;
   DF = spawn("script_model", origin);
   DF setModel(model);
   if(isDefined(angles))
       DF.angles = angles;
   if(getentarray().size >= 590)
   {
       self iprintln("^1Error^7: Please delete some other structures");
       DF delete();
   }
   return DF;
}

ApplyMultiplePhysics(a1, a2, a3, a4, a5, a6, a7)
{
     if(isDefined(a1))
         Array_Physics(a1);
     if(isDefined(a2))
         Array_Physics(a2);
     if(isDefined(a3))
       Array_Physics(a3);
   if(isDefined(a4))
       Array_Physics(a4);
   if(isDefined(a5))
       Array_Physics(a5);
   if(isDefined(a6))
       Array_Physics(a6);
   if(isDefined(a7))
       Array_Physics(a7);
}

deleteMultipleArrays(a1, a2, a3, a4, a5, a6, a7)
{
     if(isDefined(a1))
         array_delete(a1);
     if(isDefined(a2))
         array_delete(a2);
     if(isDefined(a3))
       array_delete(a3);
   if(isDefined(a4))
       array_delete(a4);
   if(isDefined(a5))
       array_delete(a5);
   if(isDefined(a6))
       array_delete(a6);
   if(isDefined(a7))
       Array_Physics(a7);
}

Array_Physics(ID)
{
   foreach(model in ID)
       model thread DelayedFall(7);//Apply_Physics
}

DelayedFall( Num )
{
   if(isDefined(self)) //double check
       self physicsLaunch();//allows the model to fall
   wait Num;//lil wait so the model doesnt get deleted straight away
   if(isDefined(self)) //triple check
       self delete();//Deletes our current model
}

Normal Functions / Mods / Codes:

Button Codes
Code:
if(self sprintbuttonpressed()) self iprintln("SPRINT");
if(self inventorybuttonpressed()) self iprintln("INVENTORY");
if(self secondaryoffhandbuttonpressed()) self iprintln("SECONDARY OFFHAND");
if(self fragbuttonpressed()) self iprintln("FRAG");
if(self stancebuttonpressed()) self iprintln("STANCE");
if(self jumpbuttonpressed()) self iprintln("JUMP");
if(self meleebuttonpressed()) self iprintln("MELEE");
if(self throwbuttonpressed()) self iprintln("THROW");
if(self adsbuttonpressed()) self iprintln("ADS");
if(self actionslotfourbuttonpressed()) self iprintln("ACTION SLOT FOUR");
if(self actionslotthreebuttonpressed()) self iprintln("ACTION SLOT THREE");
if(self actionslottwobuttonpressed()) self iprintln("ACTION SLOT TWO");
if(self actionslotonebuttonpressed()) self iprintln("ACTION SLOT ONE");
if(self attackbuttonpressed()) self iprintln("ATTACK");
if(self changeseatbuttonpressed()) self iprintln("CHANGE SEAT");
if(self usebuttonpressed()) self iprintln("USE");
Infinite Ammo
Code:
//Call like
//self thread unlimited_ammo();

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

    for(;;)
    {
        wait 0.1;

        currentWeapon = self getcurrentweapon();
        if ( currentWeapon != "none" )
        {
            self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
            self givemaxammo( currentWeapon );
        }

        currentoffhand = self getcurrentoffhand();
        if ( currentoffhand != "none" )
            self givemaxammo( currentoffhand );
    }
}
God Mode
Code:
self enableInvulnerability();     // On
self disableInvulnerability();     // Off
Simple Welcome (2 Textlines, 1 Icon)
Code:
WelcomeMessage(text, text1, icon, glow)
{
    hmb=spawnstruct();
    hmb.titleText=text;
    hmb.notifyText=text1;
    hmb.iconName=icon;
    hmb.glowColor=glow;
    hmb.hideWhenInMenu=true;
    hmb.archived=false;
    self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
}
Spawn Weapon Projectile
Code:
<rocket_entity> = MagicBullet( <weaponBulletToSpawn>, <startOrigin>, <endOrigin>, <owner> );
Game Session Settings
Code:
sessionmodeisonlinegame();
sessionmodeisprivateonlinegame();
sessionmodeisprivate();
sessionmodeissystemlink();
sessionmodeiszombiesgame();
gamemodeismode(gamemode);
gamemodeisusingxp();
gamemodeisusingstats();
getgametypesetting(setting);
setgametypesetting(setting, value)
Map Restart
Code:
map_restart( <boolKeepCurrentSettings> );
iPrintln's
Code:
self iprintln("Text");
self iprintlnbold("Text");
Simple Typewriter
Code:
self thread maps\mp\gametypes\_hud_message::hintMessage("Text", floatDuration);
Unlock Achievements
Code:
unlockAllCheevos()
{
   cheevoList = strtok("SP_COMPLETE_ANGOLA,SP_COMPLETE_MONSOON,SP_COMPLETE_AFGHANISTAN,SP_COMPLETE_NICARAGUA,SP_COMPLETE_****STAN,SP_COMPLETE_KARMA,SP_COMPLETE_PANAMA,SP_COMPLETE_YEMEN,SP_COMPLETE_BLACKOUT,SP_COMPLETE_LA,SP_COMPLETE_HAITI,SP_VETERAN_PAST,SP_VETERAN_FUTURE,SP_ONE_CHALLENGE,SP_ALL_CHALLENGES_IN_LEVEL,SP_ALL_CHALLENGES_IN_GAME,SP_RTS_DOCKSIDE,SP_RTS_AFGHANISTAN,SP_RTS_DRONE,SP_RTS_CARRIER,SP_RTS_****STAN,SP_RTS_SOCOTRA,SP_STORY_MASON_LIVES,SP_STORY_HARPER_FACE,SP_STORY_FARID_DUEL,SP_STORY_OBAMA_SURVIVES,SP_STORY_LINK_CIA,SP_STORY_HARPER_LIVES,SP_STORY_MENENDEZ_CAPTURED,SP_MISC_ALL_INTEL,SP_STORY_CHLOE_LIVES,SP_STORY_99PERCENT,SP_MISC_WEAPONS,SP_BACK_TO_FUTURE,SP_MISC_10K_SCORE_ALL,MP_MISC_1,MP_MISC_2,MP_MISC_3,MP_MISC_4,MP_MISC_5,ZM_DONT_FIRE_UNTIL_YOU_SEE,ZM_THE_LIGHTS_OF_THEIR_EYES,ZM_DANCE_ON_MY_GRAVE,ZM_STANDARD_EQUIPMENT_MAY_VARY,ZM_YOU_HAVE_NO_POWER_OVER_ME,ZM_I_DONT_THINK_THEY_EXIST,ZM_FUEL_EFFICIENT,ZM_HAPPY_HOUR,ZM_TRANSIT_SIDEQUEST,ZM_UNDEAD_MANS_PARTY_BUS,ZM_DLC1_HIGHRISE_SIDEQUEST,ZM_DLC1_VERTIGONER,ZM_DLC1_I_SEE_LIVE_PEOPLE,ZM_DLC1_SLIPPERY_WHEN_UNDEAD,ZM_DLC1_FACING_THE_DRAGON,ZM_DLC1_IM_MY_OWN_BEST_FRIEND,ZM_DLC1_MAD_WITHOUT_POWER,ZM_DLC1_POLYARMORY,ZM_DLC1_SHAFTED,ZM_DLC1_MONKEY_SEE_MONKEY_DOOM,ZM_DLC2_PRISON_SIDEQUEST,ZM_DLC2_FEED_THE_BEAST,ZM_DLC2_MAKING_THE_ROUNDS,ZM_DLC2_ACID_DRIP,ZM_DLC2_FULL_LOCKDOWN,ZM_DLC2_A_BURST_OF_FLAVOR,ZM_DLC2_PARANORMAL_PROGRESS,ZM_DLC2_GG_BRIDGE,ZM_DLC2_TRAPPED_IN_TIME,ZM_DLC2_POP_GOES_THE_WEASEL,ZM_DLC3_WHEN_THE_REVOLUTION_COMES,ZM_DLC3_FSIRT_AGAINST_THE_WALL,ZM_DLC3_MAZED_AND_CONFUSED,ZM_DLC3_REVISIONIST_HISTORIAN,ZM_DLC3_AWAKEN_THE_GAZEBO,ZM_DLC3_CANDYGRAM,ZM_DLC3_DEATH_FROM_BELOW,ZM_DLC3_IM_YOUR_HUCKLEBERRY,ZM_DLC3_ECTOPLASMIC_RESIDUE,ZM_DLC3_BURIED_SIDEQUEST", ",");
   foreach(cheevo in cheevoList) {
     self giveachievement(cheevo);
     wait 0.25;
   }
}
Mulitjump
Code:
landsOnGround()
{
   self endon( "disconnect" );
   loopResult = true;
   for(;;)
   {
     wait 0.05;
     newResult = self isOnGround();
     if(newResult != loopResult)
     {
       if(!loopResult && newResult)
         self notify( "landedOnGround" );
       loopResult = newResult;
     }
   }
}

onPlayerMultijump()
{
   self endon( "disconnect" );
   self thread landsOnGround();

   if(!isDefined(self.numOfMultijumps))
     self.numOfMultijumps = 2;

   for(;;)
   {
     currentNum = 0;

     while(!self jumpbuttonpressed()) wait 0.05;
     while(self jumpbuttonpressed()) wait 0.05;

     if(getDvarInt("jump_height") > 250)
       continue;

     if ( !isAlive( self ) )
     {
       self waittill("spawned_player");
       continue;
     }

     if ( !self isOnGround() )
     {
       while( !self isOnGround() && isAlive( self ) && currentNum < self.numOfMultijumps)
       {
         waittillResult = self waittill_any_timeout( 0.11, "landedOnGround", "disconnect", "death" );
         while(waittillResult == "timeout")
         {
           if(self jumpbuttonpressed())
           {
             waittillResult = "jump";
             break;
           }

           waittillResult = self waittill_any_timeout( 0.05, "landedOnGround", "disconnect", "death" );
         }

         if(waittillResult == "jump" && !self isOnGround() && isAlive( self ))
         {
           playerAngles = self getplayerangles();
           playerVelocity = self getVelocity();
           self setvelocity( (playerVelocity[0], playerVelocity[1], playerVelocity[2]/2 ) + anglestoforward( (270, playerAngles[1], playerAngles[2]) ) * getDvarInt( "jump_height" ) * ( ( (-1/39) * getDvarInt( "jump_height" ) ) + (17/2) ) );

           currentNum++;
           while(self jumpbuttonpressed()) wait 0.05;
         }
         else
           break;
       }

       while(!self isOnGround())
         wait 0.05;
     }
   }
}
Get Name
Code:
getName()
{
    nT=getSubStr(self.name,0,self.name.size);
    for(i=0;i<nT.size;i++)
    {
        if(nT[i]=="]")
            break;
    }
    if(nT.size!=i)
        nT=getSubStr(nT,i+1,nT.size);
 
    return nT;
}
Suicide Player
Code:
player suicide();
or
self suicide();
Give Weapon
Code:
Code:

self giveWeapon( "WEAPON NAME" );
self switchToWeapon( "WEAPON NAME" );
Freeze Controls
Code:
self freezecontrols(true);
self freezecontrols(false);
Forge Mode
Code:
ForgeON()
{
    if(self.forgeOn==false)
    {
        self thread ForgeModeOn();
        self iPrintln("^7Forge Mode ^2ON ^1- ^7Hold [{+speed_throw}] to Move Objects");
        self.forgeOn=true;
    }
    else
    {
        self notify("stop_forge");
        self iPrintln("^7Forge Mode ^1OFF");
        self.forgeOn=false;
    }
}
ForgeModeOn()
{
    self endon("death");
    self endon("stop_forge");
    for(;;)
    {
        while(self adsbuttonpressed())
        {
            trace=bulletTrace(self GetTagOrigin("j_head"),self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 1000000,true,self);
            while(self adsbuttonpressed())
            {
                trace["entity"] setOrigin(self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200);
                trace["entity"].origin=self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200;
                wait 0.05;
            }
        }
        wait 0.05;
    }
}
doHeart FM|T Style
Code:
doHeart()
{
    if(!isDefined(level.SA))
    {
        level.SA=level createServerFontString("hudbig",2.1);
        level.SA.alignX="right";
        level.SA.horzAlign="right";
        level.SA.vertAlign="middle";
        level.SA.x = 30;
        level.SA setText("Youtube/Gamer2thamax");
        level.SA.archived=false;
        level.SA.hideWhenInMenu=true;
        for(;;)
        {
            level.SA.glowAlpha=1;
            level.SA.glowColor =((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
            level.SA SetPulseFX(40,2000,600);
            wait 1;
        }
    }
    if(level.doheart==0)
    {
        self iPrintln("Do Heart: On");
        level.doheart=1;
        level.SA.alpha=1;
    }
    else if(level.doheart==1)
    {
        self iPrintln("Do Heart: Off");
        level.SA.alpha=0;
        level.doheart=0;
    }
}
Unfair aimbot with autoaim
Code:
aimBot()
{
    self endon( "disconnect" );
    self endon( "death" );
 
    for(;;)
    {
        aimAt = undefined;
        foreach(player in level.players)
        {
            if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
                continue;
            if(isDefined(aimAt))
            {
                if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
                    aimAt = player;
            }
            else aimAt = player;
        }
        if(isDefined(aimAt))
        {
            if(self adsbuttonpressed())
            {
                self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head"))));
                if(self attackbuttonpressed())
                    aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 );
            }
        }
        wait 0.01;
    }
}
Earthquake
Code:
Quake()
{
   self iPrintln("^1Boom Boom Shake The Room!");
   earthquake(0.6,10,self.origin,100000);
}
Spawn with Weapon
Code:
self setSpawnWeapon( "weaponname" );
Edit ammo
Code:
self setweaponammoclip( weaponname, amount );
self setweaponammostock( weaponname, amount );
Clear Perks
Code:
self clearperks();
Death Types for example for aimbot
Code:
switch( meansofdeath )
{
        case "MOD_EXPLOSIVE";
        case "MOD_GRENADE";
        case "MOD_GRENADE_SPLASH";
        case "MOD_PROJECTILE_SPLASH";
        case "MOD_SUICIDE";
        case "MOD_PISTOL_BULLET";
        case "MOD_RIFLE_BULLET";
        case "MOD_BURNED";
        case "MOD_GAS";
        case "MOD_HEAD_SHOT;
        case "MOD_MELEE";
        case "MOD_FALLING";
        case "MOD_CRUSH";
        case "MOD_HEAD_SHOT":
            return 1;
}
//To call this basically just
switch + (Means of death)
End game
Code:
endGame()
{
    level thread maps/mp/gametypes/_globallogic::forceend();
}
Teleport with Computer
Code:
doTeleport()
{
    self beginLocationSelection( "map_mortar_selector" );
    self.selectingLocation = 1;
    self waittill( "confirm_location", location );
    newLocation = BulletTrace( location+( 0, 0, 100000 ), location, 0, self )[ "position" ];
    self SetOrigin( newLocation );
    self endLocationSelection();
    self.selectingLocation = undefined;
    self iPrintLn("Teleported!");
}
Display Message (Like MW2 First Player Killed Message On Side)
Code:
//displayMessage("Hello", self);
displayMessage(message, player)
{
         level thread maps/mp/_popups::displayteammessagetoall(message, player);
}
Flashing Scoreboard and flash Println's
Code:
FlashFeed()
{
self endon("disconnect");
while(1)
{
setDvar("g_TeamColor_Axis","1 0 0 1");
setDvar("g_TeamColor_Allies","1 0 0 1");
wait .2;
setDvar("g_TeamColor_Axis","1 0.7 0 1");
setDvar("g_TeamColor_Allies","1 0.7 0 1");
wait .2;
setDvar("g_TeamColor_Axis","1 1 0 1");
setDvar("g_TeamColor_Allies","1 1 0 1");
wait .2;
setDvar("g_TeamColor_Axis","0 1 0 1");
setDvar("g_TeamColor_Allies","0 1 0 1");
wait .2;
setDvar("g_TeamColor_Axis","0 0 1 1");
setDvar("g_TeamColor_Allies","0 0 1 1");
wait .2;
setDvar("g_TeamColor_Axis","1 0 1 1");
setDvar("g_TeamColor_Allies","1 0 1 1");
wait .2;
setDvar("g_TeamColor_Axis","0 1 1 1");
setDvar("g_TeamColor_Allies","0 1 1 1");
wait .1;
}
}

self iPrintln("^8My Text Is Flashing OMG");
self iPrintlnBold("^8Look At This Flashing Text <3");
Clone Player
Code:
self cloneplayer(1);
Change Class ingame
Code:
ChangeClass()
{
    self endon("disconnect");
    self endon("death");
 
    self maps/mp/gametypes/_globallogic_ui::beginclasschoice();
    for(;;)
    {
        if(self.pers[ "changed_class" ])
            self maps/mp/gametypes/_class::giveloadout( self.team, self.class );
        wait 0.05;
    }
}
Teleport Gun
Code:
ToggleTeleportGun()
{
    if (self.TPG == true)
    {
        self thread TeleportGun();
        self iPrintln("^7Teleport Gun: ^2ON");
        self.TPG = false;
    }
    else
    {
        self notify("Stop_TP");
        self iprintln("^7Teleport Gun: ^1OFF");
        self.TPG = true;
    }
}

TeleportGun()
{
    self endon( "disconnect" );
    self endon("Stop_TP");
    for(;;)
    {
    self waittill("weapon_fired");
    self setorigin(bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"]);
    }
}
Notify Message
Code:
notifyData = spawnstruct();
notifyData.titleText = "Text 1";//Line 1
notifyData.notifyText = "Text 2";//Line 2
notifyData.notifyText2 = "Text 3";//Line 3
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100
notifyData.duration = 5; //Change Duration
notifyData.font = "objective"; //font
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
Location Selector with Pad
Code:
//self locationSelector();
locationSelector()
{
    self beginLocationSelection( "map_mortar_selector" );
    self disableoffhandweapons();
    self giveWeapon( "killstreak_remote_turret_mp" );
    self switchToWeapon( "killstreak_remote_turret_mp" );
    self.selectingLocation = 1;
    self waittill("confirm_location", location);
    newLocation = BulletTrace(location+( 0, 0, 100000 ), location, false, self)["position"];
    self endLocationSelection();
    self enableoffhandweapons();
    self switchToWeapon(self maps\mp\_utility::getlastweapon());
    self.selectingLocation = undefined;
    return newLocation;
}
Trade Mark again from FM|T (needs testing)
Code:
doTradeMark()
{
    self thread doBling();
}
doBling()
{
    self endon("death");
    self thread ChangeColor();
    self.trademark=self CreateFontString("default",1.8);
    self.trademark.alignX="right";
    self.trademark.horzAlign="right";
    self.trademark.vertAlign="middle";
    self.trademark.x=30;
    self.trademark.y=-225;
    self.trademark.alpha=1;
    self.trademark setText("Welcome To My Modded Lobby");
    for(;;)
    {
        self.trademark.fontscale=1.85;
        wait 0.05;
        self.trademark.fontscale=1.9;
        wait 0.05;
        self.trademark.fontscale=1.95;
        wait 0.05;
        self.trademark.fontscale=2.0;
        wait 0.05;
        self.trademark.fontscale=2.05;
        wait 0.05;
        self.trademark.fontscale=2.1;
        wait 0.05;
        self.trademark.fontscale=2.15;
        wait 0.05;
        self.trademark.fontscale=2.2;
        wait 0.05;
        self.trademark.fontscale=2.15;
        wait 0.05;
        self.trademark.fontscale=2.1;
        wait 0.05;
        self.trademark.fontscale=2.05;
        wait 0.05;
        self.trademark.fontscale=2;
        wait 0.05;
        self.trademark.fontscale=1.95;
        wait 0.05;
        self.trademark.fontscale=1.9;
        wait 0.05;
        self.trademark.fontscale=1.85;
        wait 0.05;
    }
}

ChangeColor()
{
    self endon("death");
    for(;;)
    {
        self.trademark FadeOverTime(1);
        self.trademark.color=(1,0,0);
        wait 0.5;
        self.trademark FadeOverTime(1);
        self.trademark.color=(0,1,0);
        wait 0.5;
        self.trademark FadeOverTime(1);
        self.trademark.color=(1,1,0);
        wait 0.5;
        self.trademark FadeOverTime(1);
        self.trademark.color=(0,0,1);
        wait 0.5;
        self.trademark FadeOverTime(1);
        self.trademark.color=(0,1,1);
        wait 0.5;
        self.trademark FadeOverTime(1);
        self.trademark.color=(1,0,1);
        wait 0.5;
    }
}
Skywriter
This program is needed credits to TheUnkn0wn
BMP2CODE
Tut on how to use
Code:
WP(D,Z,P)
{
    L=strTok(D,",");
    for(i = 0 ; i < L.size; i += 2)
    {
        B = spawn("script_model",self.origin+(int(L[i]),int(L[i+1]),Z));
        if(!P)
            B.angles=(90,0,0);
        B setModel("t6_wpn_supply_drop_ally");
    }
}
vector_scal
Code:
vector_scal(vec, scale)
{
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
}
doJetPack
Code:
doJetPack()
{
    if( self.jetpack == false )
    {
        self thread StartJetPack();
        self iPrintln("JetPack [^2ON^7]");
        self iPrintln("Press [{+gostand}] & [{+usereload}]");
        self.jetpack = true;
    }
    else if(self.jetpack == true)
    {
        self.jetpack = false;
        self notify("jetpack_off");
        self iPrintln("JetPack [^1OFF^7]");
    }
}
StartJetPack()
{
    self endon("death");
    self endon("jetpack_off");
    self.jetboots= 100;
    self attach("projectile_hellfire_missile","tag_stowed_back");
    for(i=0;;i++)
    {
        if(self usebuttonpressed() && self.jetboots>0)
        {
            self playsound( "veh_huey_chaff_explo_npc" );
            playFX( level._effect[ "flak20_fire_fx" ], self getTagOrigin( "J_Ankle_RI" ) );
            playFx( level._effect[ "flak20_fire_fx" ], self getTagOrigin( "J_Ankle_LE" ) );
            earthquake(.15,.2,self gettagorigin("j_spine4"),50);
            self.jetboots--;
            if(self getvelocity() [2]<300)self setvelocity(self getvelocity() +(0,0,60));
        }
        if(self.jetboots<100 &&!self usebuttonpressed() )self.jetboots++;
        wait .05;
    }
}

Add to init()
precacheModel( "projectile_hellfire_missile" );
level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
Care Package Bullets
Code:
doCarePBullets()
{
    if(self.bullets2==false)
    {
        self thread carepBullets();
        self.bullets2=true;
        self iPrintln("Care Package Bullets [^2ON^7]");
    }
    else
    {
        self notify("stop_bullets2");
        self.bullets2=false;
        self iPrintln("Care Package Bullets [^1OFF^7]");
    }
}
carepBullets()
{
    self endon("stop_bullets2");
    while(1)
    {
        self waittill ( "weapon_fired" );
        forward = self getTagOrigin("j_head");
        end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
        SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
                M = spawn("script_model",SPLOSIONlocation);
        M setModel("t6_wpn_supply_drop_ally");
    }
}
Custom Teleporter
Code:
doTeleport()
{
    self beginLocationselection( "map_mortar_selector", 800 );
    self.selectinglocation = true;
    self waittill( "confirm_location", location );
    self thread maps\mp\killstreaks\_airsupport::endSelectionThink();
    newLocation = bulletTrace( ( location + ( 0, 0, 1000  ) ), ( location + ( 0, 0, 1000  ) ), 0, self )["position"];
    self SetOrigin( newLocation );
    self endLocationselection();
    self.selectingLocation = undefined;
}
Force Host (Updated)
Code:
forceHost()
    {
    if(self.fhost == false)
    {
        self.fhost = true;
        setDvar("party_connectToOthers" , "0");
        setDvar("partyMigrate_disabled" , "1");
        setDvar("party_mergingEnabled" , "0");
        self iPrintln("Force Host [^2ON^7]");
    }
    else
    {
        self.fhost = false;
        setDvar("party_connectToOthers" , "1");
        setDvar("partyMigrate_disabled" , "0");
        setDvar("party_mergingEnabled" , "1");
        self iPrintln("Force Host [^1OFF^7]");
    }
}
Unlimited Game
Code:
Inf_Game()
{
    if(self.ingame==false)
    {
    self.ingame=true;
    setDvar("scr_dom_scorelimit",0);
    setDvar("scr_sd_numlives",0);
    setDvar("scr_war_timelimit",0);
    setDvar("scr_game_onlyheadshots",0);
    setDvar("scr_war_scorelimit",0);
    setDvar("scr_player_forcerespawn",1);
    maps\mp\gametypes\_globallogic_utils::pausetimer();
    self iPrintln("Infinity Game [^2ON^7]");
    }
    else
    {
    self maps\mp\gametypes\_globallogic_utils::resumetimer();
    self iPrintln("Infinity Game [^1OFF^7]");
    }
}
Fast Restart
Code:
doRestart()
{
    map_restart(false);
}
Teleport All to Me
Code:
AllToMe()
{
        self.me = self.origin;
    foreach(player in level.players)
    {
        if(!(player isHost()))
        {
            player SetOrigin(self.me);
        }
    }
    self iPrintln("All Players Teleported");
}
Pro Mod
Code:
ToggleFOV()
{
if(self.fov == true)
    {
        self iPrintln("FOV: ^2ON");
        setDvar("cg_fov", "90");
        self.fov = false;
    }
    else
    {
        self iPrintln("FOV: ^1OFF");
        setDvar("cg_fov", "65");
        self.fov = true;
    }
}
Gun left
Code:
ToggleLeft()
{
if(self.LG == true)
    {
        self iPrintln("Ledt Sided Gun: ^2ON");
        setDvar("cg_gun_x", "7");
        self.LG = false;
    }
    else
    {
        self iPrintln("Left Sided Gun: ^1OFF");
        setDvar("cg_gun_x", "0");
        self.LG = true;
    }
}
UAV
Code:
ToggleUAV()
{
if(self.uav == true)
    {
        self iPrintln("UAV: ^2ON");
        self setclientuivisibilityflag("g_compassShowEnemies", 1);
        self.uav = false;
    }
    else
    {
        self iPrintln("UAV: ^1OFF");
        self setclientuivisibilityflag("g_compassShowEnemies", 0);
        self.uav = true;
    }
}
Invisible
Code:
self Hide(); // On
self Show(); // Off
Super Jump
Code:
SuperJumpEnable()
{
    self endon("disconnect");
    self endon("StopJump");
    for(;;)
    {
        if(self JumpButtonPressed() && !isDefined(self.allowedtopress))
        {
            for(i = 0; i < 10; i++)
            {
                self.allowedtopress = true;
                self setVelocity(self getVelocity()+(0, 0, 999));
                wait 0.05;
            }
            self.allowedtopress = undefined;
        }
        wait 0.05;
    }
}
ToggleSuperJump()
{
    if(!isDefined(!level.superjump))
    {
        level.superjump = true;
        for(i = 0; i < level.players.size; i++)level.players[i] thread SuperJumpEnable();
    }
    else
    {
        level.superjump = undefined;
        for(x = 0; x < level.players.size; x++)level.players[x] notify("StopJump");
    }
 
    self iPrintln("Super Jump: " + boolText(level.superjump));
}
 
Last edited:
Top Bottom
Login
Register