Results 1 to 9 of 9
  1. #1
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive

    Speedreload, Ufomode, unlock all perks etc.

    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]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] * 175, vec[1] * 175, vec[2] * 175);
    self.SpawnUfo.origin = self.SpawnUfo.origin+end;
    }
    else if(self MeleeButtonPressed())
    {
    end = (vec[0] * 20, vec[1] * 20, vec[2] * 20);
    self.SpawnUfo.origin = self.SpawnUfo.origin+end;
    }
    }
    wait 0.05;
    }
    }[/php]
    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]self EnableInvulnerability(); //ON
    self DisableInvulnerability(); //OFF[/php]

    Ultra fast speed reload:
    [php]self setClientDvar("ui_gv_reloadSpeedModifier", 4); //0-4[/php]
    use in the loop of onPlayerSpawned

    Modify speed:
    [php]self setMoveSpeedScale(X); //for X any number
    self getMoveSpeedScale();[/php]

    Modify sprint cooldown and duration:
    [php]self SetSprintDuration(number);
    self get_sprint_duration();
    self SetSprintCooldown(number);
    self get_sprint_cooldown();[/php]

    Unlock all pro perks:
    [php]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::unlockItemFromChal lenge( "perkpro " + zxz0O0 + " " + i);
    }
    }
    }[/php]
    It should be self maps\mp\gametypes\_persistence::unlockItemFromChal lenge, 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] for(i=0;i<level.players.size;i++)
    {
    level.players[i] getCurrentWeapon(); //or something
    }[/php]

    Freeze controls:
    [php]self freeze_player_controls(true);
    self freeze_player_controls(false); //unfreeze[/php]

    Give killstreak:
    [php]self maps\mp\gametypes\_hardpoints::giveKillstreak( killstreak );[/php]

    Show someone always on radar:
    [php]setPerk("specialty_showonradar");[/php]

    Press usebutton:
    [php]self PressUseButton(SECONDS/1000);[/php]

    Play headless:
    [php]self detachAll();[/php]

    Change appearance:
    [php]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.gsc::set_body_model(self. cac_faction);
    self maps\mp\gametypes\_armor.gsc::set_hat_model(self.c ac_faction);
    self maps\mp\gametypes\_armor.gsc::set_head_model(self. cac_faction);[/php]

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

    XP Scale:
    [php]level.xpScale = x; //for x any number[/php]

    COD Points Scale:
    [php]level.codPointsXpScale = x; //for x any number[/php]

    Burn yourself:
    [php]self setBurn(x); //x any number, 0 = not burning[/php]

    Close menus:
    [php] self closeMenu();
    self closeInGameMenu();[/php]

    Basics
    Get current weapon:
    [php]self getCurrentWeapon();[/php]

    Clear perks:
    [php]self clearPerks();[/php]


    Take weapons:
    [php]self takeWeapon("weaponname");
    self takeAllWeapons();[/php]

    Will add more later..
    Last edited by zxz0O0; 12-08-2010 at 02:13 PM.
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  2. The Following 2 Users Say Thank You to zxz0O0 For This Useful Post:

    Lemon30 (12-08-2010),[WhA]4FunPlayinBackup (12-08-2010)

  3. #2
    [WhA]4FunPlayinBackup's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    1
    My Mood
    Bitchy
    ~burn yourself lol'd

    Also:
    Code:
    giveWeapon(weaponname, ?, camo, lens, reticle, tag, emblem);
    Or maybe the camo...emblem needs to be in a ():
    Code:
    giveWeapon(weaponname, ?, ( <camo>, <lens>, <reticle>, <tag>, <emblem> ));
    ? = idk

  4. #3
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Yeah I dont know yet how giveWeapon works, seems they removed the akimbo boolean.

    btw why did you get banned
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  5. #4
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    725
    My Mood
    Aggressive
    UnlockPro()
    Does this work for only this match?
    Helped out over 5000 guys with my level trainer and other stuff.

    Selling Steam accounts. Send me a message if you're interested.



    Nice forum needs to expands! Register now for a good position! (PM me)


  6. #5
    Deathmax's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    11
    Quote Originally Posted by [WhA]4FunPlayinBackup View Post
    ~burn yourself lol'd

    Also:
    Code:
    giveWeapon(weaponname, ?, camo, lens, reticle, tag, emblem);
    Or maybe the camo...emblem needs to be in a ():
    Code:
    giveWeapon(weaponname, ?, ( <camo>, <lens>, <reticle>, <tag>, <emblem> ));
    ? = idk
    Actually, the 3rd argument is weaponOptions, which is an int calculated using calcWeaponOptions(<camo>, <lens>, <reticle>, <tag>, <emblem>);
    The 2nd argument might be variant like MW2, but all usage of it in GSC seems to be 0.

  7. #6
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Quote Originally Posted by jabbathehutt View Post
    UnlockPro()
    Does this work for only this match?
    It only works in a ranked match ofc
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  8. #7
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    This is great-- but we don't need two threads when we can just add to one universal thread..
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  9. #8
    marcusalier's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Never had a VAC ban.
    Posts
    300
    Reputation
    8
    Thanks
    24
    My Mood
    Angry
    will u be banned for this?

  10. #9
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Quote Originally Posted by Insane View Post
    This is great-- but we don't need two threads when we can just add to one universal thread..
    Well then add it :P
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

Tags for this Thread