Release Custom Perks

Liam

I'm a god
Messages
191
Points
593
Hey faggots,
Here is some perks i created like last year or something.
i originally released them on MODDB on December 24th 2015.
Credits: Me + Loz

It includes;
Trade Tonic:
[x] Switch weapons with team members by pressing F/X/[ ] whilst looking at them.
[x] Easily Customized
[x] Video:
(here is the MP version)

Double Points Perk:
[x] Lasts forever and for full team
[x] Different than just having unlimited double points power up.
[x] Video: Doesn't Exist Yet.

I would of just put a download link but too much effort and I wont get given credit anyway so :grinning:
Code:
/*
*    Black Ops 2 - Zombie Scripts
*
*    Creator : Liam
*    Project : zm_tests
*    Mode : Zombies
*    Date : 2015/12/19 - 18:10:49  
*
*/  
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes_zm\_hud_util;
#include maps\mp\gametypes_zm\_hud_message;
#include maps\mp\gametypes_zm\_zm_powerups;
init()
{
    level thread onPlayerConnect();
    PreCacheItem("zombie_perk_bottle_sleight");
}

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

onPlayerSpawned()
{
    self endon("disconnect");
    level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
    wait 12.5;
    self thread TradeTonic();
    wait 7.5;
    self thread x2Perk();
    }
}
TradeTonic()
{
self iprintlnbold("Trade Tonic Perk ^6Bought!");
self giveperkTT();
}
giveperkTT()
{
    self endon("disconnect");
    weapon = "zombie_perk_bottle_sleight";
    self GiveWeapon( weapon );
    self SwitchToWeapon( weapon );
    wait 2;
    neww = "870mcs_upgraded_zm";
    self GiveWeapon( neww );
    self SwitchToWeapon( neww );
    iprintlnbold("Press [{+reload}] to activate perk! (F On PC)");
    for(;;)
    {
        trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self)["entity"];
        if(self usebuttonpressed() && isPlayer(trace)) //check if the entity is actually a player
        {
            myGun = self getCurrentWeapon();
            hisGun = trace getCurrentWeapon();
            iprintlnbold(self.name+" is about to switch weapons with "+trace.name+"!");
            wait 2;
            iprintlnbold("Access ^1Granted^7 - Switching Weapons");
            self takeWeapon(myGun);
            self giveWeapon(hisGun);
            self switchToWeapon(hisGun);
            trace takeWeapon(hisGun);
            trace giveWeapon(myGun);
            trace switchToWeapon(myGun);
            break; //ends the loop after it got succesfully used
        }
        wait .05;
    }
}
x2Perk()
{
self givex2perkbot();
iprintlnbold("Double Points Perk ^6Bought!");
}
givex2perkbot()
{
weapon = "zombie_perk_bottle_sleight";
self GiveWeapon( weapon );
self SwitchToWeapon( weapon );
self thread doublepointsperk();
neww = "m1911_zm";
self GiveWeapon( neww );
self SwitchToWeapon( neww );
}
doublepointsperk()
{
self endon("disconnect");
for(;;)
{
if(level.zombie_vars[self.team]["zombie_point_scalar"] != 2)
level.zombie_vars[self.team]["zombie_point_scalar"] = 2;
wait .05;
}
}
Enjoy​
 

Top