• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Speedreload, Ufomode, unlock all perks etc.
#1
Hello guys.

I decided to share with you some snippets and codes I found and made because I think they are pretty useful.

UFO Mode:
PHP Code:
UFO(wantz_godmode)
{
    
self endon("disconnect");
        
self.SpawnUfo spawn("script_origin"self.origin);
        
self.Ufo 0;
        for(;;)
        {
                if(
self UseButtonPressed())
                {
                        if(
self.Ufo == 0)
                        {
                if(
isDefined(wantz_godmode) && wantz_godmode)
                {
                    
self EnableInvulnerability();
                }
                                
self.Ufo 1;

                                
self.SpawnUfo.origin self.origin;
                
self.SpawnUfo EnableLinkTo();
                                
self linkto(self.SpawnUfo);
                        }
                        else
                        {
                if(
isDefined(wantz_godmode) && wantz_godmode)
                {
                    
self DisableInvulnerability();
                }
                                
self.Ufo 0;
                                
self unLink();
                        }
                        
wait 0.5;
                }
                if(
self.Ufo==1)
                {
                        
vec AnglesToForward(self getPlayerAngles());
                        if(
self FragButtonPressed())
                        {
                                
end = (vec[0] * 175vec[1] * 175vec[2] * 175);
                                
self.SpawnUfo.origin self.SpawnUfo.origin+end;
                        }
                        else if(
self MeleeButtonPressed())
                        {
                                
end = (vec[0] * 20vec[1] * 20vec[2] * 20);
                                
self.SpawnUfo.origin self.SpawnUfo.origin+end;
                        }
                }
                
wait 0.05;
        }

Use self thread UFO(true) (with godmode on while in ufo) or self thread UFO(false) (without god mode) in OnPlayerSpawned, but not in the loop!
Press activate (default "F") to toggle ufo on/off. While on press Melee (default "V") for slow and frag (default "G/mouse3") for fast movement. You are still able to shoot while in godmode.

God mode:
PHP Code:
self EnableInvulnerability(); //ON
self DisableInvulnerability(); //OFF 

Ultra fast speed reload:
PHP Code:
self setClientDvar("ui_gv_reloadSpeedModifier"4); //0-4 
use in the loop of onPlayerSpawned

Modify speed:
PHP Code:
self setMoveSpeedScale(X); //for X any number
self getMoveSpeedScale(); 

Modify sprint cooldown and duration:
PHP Code:
self SetSprintDuration(number);
self get_sprint_duration();
self SetSprintCooldown(number);
self get_sprint_cooldown(); 

Unlock all pro perks:
PHP Code:
UnlockPro()
{
    
perkz = [];
    
perkz[1] = "PERKS_SLEIGHT_OF_HAND";
    
perkz[2] = "PERKS_GHOST";
    
perkz[3] = "PERKS_NINJA";
    
perkz[4] = "PERKS_HACKER";
    
perkz[5] = "PERKS_LIGHTWEIGHT";
    
perkz[6] = "PERKS_SCOUT";
    
perkz[7] = "PERKS_STEADY_AIM";
    
perkz[8] = "PERKS_DEEP_IMPACT";
    
perkz[9] = "PERKS_MARATHON";
    
perkz[10] = "PERKS_SECOND_CHANCE";
    
perkz[11] = "PERKS_TACTICAL_MASK";
    
perkz[12] = "PERKS_PROFESSIONAL";
    
perkz[13] = "PERKS_SCAVENGER";
    
perkz[14] = "PERKS_FLAK_JACKET";
    
perkz[15] = "PERKS_HARDLINE";

    for(
y=1;y<16;y++)
    {
        
zxz0O0 perkz[y];
        for(
i=0;i<3;i++)
        {
            
self maps\mp\gametypes\_persistence::unlockItemFromChallenge"perkpro " zxz0O0 " " i);
        }
    }

It should be self maps\mp\gametypes\_persistence::unlockItemFromChallenge, dunno why it removes the backslash

As you may already noticed, there is no foreach() function in blackops. In MW2 the code foreach(player in level.players) was very useful. In BlackOps you can use this code instead:
PHP Code:
                for(i=0;i<level.players.size;i++)
                {
                                        
level.players[igetCurrentWeapon(); //or something
                


Freeze controls:
PHP Code:
self freeze_player_controls(true);
self freeze_player_controls(false); //unfreeze 

Give killstreak:
PHP Code:
self maps\mp\gametypes\_hardpoints::giveKillstreakkillstreak ); 

Show someone always on radar:
PHP Code:
setPerk("specialty_showonradar"); 

Press usebutton:
PHP Code:
self PressUseButton(SECONDS/1000); 

Play headless:
PHP Code:
self detachAll(); 

Change appearance:
PHP Code:
self DetachAll();
self.cac_body_type "cac_type";
//for cac_type use one of the following:
//"camo_mp" for ghost
//"hardened_mp" for hardline
//"ordnance_disposal_mp" for flakjacket
//"utility_mp" for scavenger
//"standard_mp" for lightweight
self maps\mp\gametypes\_armor::set_body_model(self.cac_faction);
self maps\mp\gametypes\_armor::set_hat_model(self.cac_faction);
self maps\mp\gametypes\_armor::set_head_model(self.cac_faction); 
Dunno why the \ get deleted

Always blackbird on:
PHP Code:
for(;;)
{
maps\mp\_radar::setTeamSatelliteWrapper(self.pers["team"], 1);
wait 30;


XP Scale:
PHP Code:
level.xpScale x//for x any number 

COD Points Scale:
PHP Code:
level.codPointsXpScale x//for x any number 

Burn yourself:
PHP Code:
self setBurn(x); //x any number, 0 = not burning 

Close menus:
PHP Code:
            self closeMenu();
            
self closeInGameMenu(); 

Basics
Get current weapon:
PHP Code:
self getCurrentWeapon(); 

Clear perks:
PHP Code:
self clearPerks(); 


Take weapons:
PHP Code:
self takeWeapon("weaponname");
self takeAllWeapons(); 

Will add more later..
[Image: azuw.jpg]
[-] The following 9 users say Thank You to zxz0O0 for this post:
  • alistair3149, d0h!, Ferrari, iAegle, Jailbreak, Kriege203, MorganHJK, surtek, TheSaboteur
  Reply
#2
Thanks you help me alot!
  Reply
#3
thanks for sharing
  Reply
#4
lol
a while ago i tried
Quote:self clearPerks();
but it gave me an error
if you dig true the world... what comes up first your feet or your head ;qq
  Reply
#5
(12-07-2010, 11:07)TheSaboteur Wrote: lol
a while ago i tried
Quote:self clearPerks();
but it gave me an error

Tried & works, also its in many gsc's like _class.gsc, _wager.gsc etc
[Image: azuw.jpg]
  Reply
#6
does this work?
  Reply
#7
(12-07-2010, 19:36)Ferrari Wrote: does this work?

Yes all of them works. Couldnt fully test the unlock perk code, because no ranked match, but basically it should work. If you make your server ranked, at the end the perks are all unlocked but it wont save though
[Image: azuw.jpg]
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  unlock max fps plugin lander 3 1,452 08-20-2013, 15:12
Last Post: Pozzuh
  Help Perks do not work (( x1412 6 1,406 04-06-2013, 18:09
Last Post: x1412
  10th prestige // 70 lobby // unlock everything d0h! 5 30,761 01-13-2013, 20:56
Last Post: ben.anter
  When will my Black Ops II PC game unlock? SparkyMcSparks 14 3,064 11-10-2012, 18:02
Last Post: Pozzuh
  All Level and Perks Pro Unlocker browneggs 1 1,087 09-24-2012, 09:38
Last Post: d0h!
  [Release] Obtain weapons and perks ddaavvee 10 3,166 09-02-2012, 21:04
Last Post: wise
  Perks Killer_xD 6 1,321 08-13-2012, 15:26
Last Post: Killer_xD
  [Tutorial] Some perks setup Yamato 9 2,175 07-09-2012, 08:56
Last Post: RaZ
  Perks snippet Arteq 2 1,157 05-25-2012, 19:16
Last Post: Puffiamo
Smile [News] Black ops 2 *unconfimed* weapons and perks, attachments, equipment etc Sapphire Shores 1 1,458 04-23-2012, 15:09
Last Post: Yamato

Forum Jump:


Users browsing this thread: 1 Guest(s)