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:
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:
Ultra fast speed reload:
use in the loop of onPlayerSpawned
Modify speed:
Modify sprint cooldown and duration:
Unlock all pro perks:
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:
Freeze controls:
Give killstreak:
Show someone always on radar:
Press usebutton:
Play headless:
Change appearance:
Dunno why the \ get deleted
Always blackbird on:
XP Scale:
COD Points Scale:
Burn yourself:
Close menus:
Basics
Get current weapon:
Clear perks:
Take weapons:
Will add more later..
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] * 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;
}
}
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
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);
}
}
}
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[i] getCurrentWeapon(); //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::giveKillstreak( killstreak );
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);
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..