- Messages
- 5,085
- Reaction score
- 2,880
- Points
- 1,103
Hey guys,
in this thread I would like to share some advanced GSC scripts for Call of Duty: Black Ops 3. You can use these functions in Infinity Loader as well.
Scripts for Zombies
Mystery Box will never move
Make all Boxes to Mystery Box, remove all Mystery Boxes
Set Mystery Box cost
Keep All Perks On Death
Set Crypto Keys
You can download a full example project for this here:
Set Prestige
in this thread I would like to share some advanced GSC scripts for Call of Duty: Black Ops 3. You can use these functions in Infinity Loader as well.
Scripts for Zombies
Mystery Box will never move
C++:
func_BoxesNeverMove() {
self iPrintlnBold("Unlimited Chest Rolls ^2Successful");
level.chest_min_move_usage = 999;
}
Make all Boxes to Mystery Box, remove all Mystery Boxes
C++:
//Put into your includes
#include scripts\zm\_zm_magicbox;
//Show all Mystery Boxes
func_ShowBoxess() {
self iPrintlnBold("All Mystery Boxes ^2Spawned");
foreach(box in level.chests)
box thread zm_magicbox::show_chest();
}
//Hide all Mystery Boxes
func_HideBoxess() {
self iPrintlnBold("All Mystery Boxes ^2Hidden");
foreach(box in level.chests)
box thread zm_magicbox::hide_chest(0);
}
Set Mystery Box cost
C++:
func_boxcost(i){
self iPrintlnBold("Box Opening price set to ^2" +i);
foreach(box in level.chests)
box.zombie_cost = i;
}
Keep All Perks On Death
C++:
func_keepperks() {
if (!isDefined(self._retain_perks)) {
self iPrintlnBold("Keep all Perks on death ^2ON");
self._retain_perks = true;
} else {
self._retain_perks = undefined;
self iPrintlnBold("Keep all Perks on death ^1OFF");
}
}
Set Crypto Keys
C++:
//To use Crypto you have to make sure you are in an online match first. We can force that with the following script:
//Put into init():
thread func_ForceOnlineMatch();
//Put somewhere below:
func_ForceOnlineMatch(){
level waittill("prematch_over");
while(level.inPrematchPeriod)
wait 0.5;
wait 5;
EnableOnlineMatch();
level._online = true;
level.players[0] iPrintLn("^2You are now in an online match!");
}
//If you are in an online match you can set the Cryptokeys with:
self SetDStat("mp_loot_xp_due", amountOfCryptoKeys);
//Go give yourself 1000 keys:
self SetDStat("mp_loot_xp_due", 1000);
Set Prestige
C++:
self SetDStat("playerstatslist", "plevel", "statvalue", prestigeLevel);
//For example prestige 5:
self SetDStat("playerstatslist", "plevel", "statvalue", 5);
//Ensure it's an online match. You can view how to force your game online in "Crypto Key Script"