-
Notifications
You must be signed in to change notification settings - Fork 0
Random crates
Alexander Korshun edited this page Jan 8, 2017
·
2 revisions
Here's a list of all random crates and their weights and conditions under which to disable them. CrateTime
becomes false after 5 minutes since the start of the map (can be replaced with Timer() > 5 * 60 * 35
). There are 34 random crates.
CrateWeight(CRATE_ARMORUPGRADE, 2.0, GetArmorGrade() >= 5);
CrateWeight(CRATE_BASEMIRACLE, 1.0, false);
CrateWeight(CRATE_CHEMPROOF, 2.0, IsChemProof()); RedirectOnFail(CRATE_ARMORUPGRADE);
CrateWeight(CRATE_FIREPOWERUPGRADE, 2.0, HasFirepowerUpgrade());
CrateWeight(CRATE_BONUSCREDITS, 2.0, false);
CrateWeight(CRATE_BONUSXP, 2.0, PlayerRank() >= RANK_COMMANDO);
CrateWeight(CRATE_FIREPROOF, 2.0, IsFireProof()); RedirectOnFail(CRATE_ARMORUPGRADE);
CrateWeight(CRATE_STEALTH, 2.0, CheckInventory("StealthLaserRifle") || CheckInventory("PowerInvisibility"));
CrateWeight(CRATE_IRONCURTAIN, 2.0, GetCVar("aowr_tournamentmode") || CheckInventory ("PowerInvulnerable"));
CrateWeight(CRATE_KAMIKAZE, 3.0, GetCVAR("aowr_tournamentmode") || CheckInventory ("IsKamikaze"));
CrateWeight(CRATE_PLASMACANNON, 2.0, CrateTime || CheckInventory("PlasmaCannon"));
CrateWeight(CRATE_RESIGN, 2.0, false);
CrateWeight(CRATE_SPEEDUPGRADE, 2.0, CheckInventory ("PowerSpeedUpgrade") || CheckInventory ("StealthLaserRifle") || CheckInventory ("PowerInvisibility")); // because speed trails
CrateWeight(CRATE_CREDITSSTOLEN, 2.0,
CrateWeight(CRATE_TIMEGUN, 2.0, CheckInventory("TimeGun"));
CrateWeight(CRATE_BOMB, 7.0, Rank[PlayerNumber()] >= RANK_LIEUTENANT && !random(0, 2));
CrateWeight(CRATE_BASECRASHER, 1.0, CrateTime);
CrateWeight(CRATE_UTILITYGUN, 2.0, CheckInventory ("UtilityGun"));
CrateWeight(CRATE_LASERRESISTANCE,2.0, IsLaserResistant()); RedirectOnFail(CRATE_ARMORUPGRADE);
CrateWeight(CRATE_EXPLOSIONRESISTANCE, 2.0, IsExplosionResistant()); RedirectOnFail(CRATE_ARMORUPGRADE);
CrateWeight(CRATE_BULLETRESISTANCE, 2.0, IsBulletResistant()); RedirectOnFail(CRATE_ARMORUPGRADE);
CrateWeight(CRATE_GUARDIAN, 1.0, CrateTime || !MechsAllowed() || IsMech() || CheckInventory ("GuardianPowerup"));
CrateWeight(CRATE_BERSERK, 1.0, CrateTime || IsMech() || IsBerserk());
CrateWeight(CRATE_HEALINGRADIUS, 2.0, CheckInventory ("HealingRadiusItem"));
CrateWeight(CRATE_TEAMREVIVAL, 2.0, false);
CrateWeight(CRATE_CHAINSAW, 2.0, CheckInventory ("EagerBeaver"));
CrateWeight(CRATE_MARINEBEACON, 2.0, CheckInventory("MarineBeaconItem") || AIMarineCount >= MAX_MARINES);
CrateWeight(CRATE_OPENDECK, 1.0, Timer() < 10*60*35 || CheckInventory ("CrateChooser") || GetCVAR("aowr_tournamentmode"));
CrateWeight(CRATE_THERMALCLOAKING, 2.0, false);
CrateWeight(CRATE_DISARM, 2.0, Rank[PlayerNumber()] >= RANK_LIEUTENANT && !random (0, 2) || CheckInventory ("IsMech"));
CrateWeight(CRATE_FATIGUE, 2.0, CheckInventory("PowerFatigue") || CheckInventory ("StealthLaserRifle") || CheckInventory ("Knife") || CheckInventory ("PowerInvisibility")); // speed trails
CrateWeight(CRATE_REMOTEC4, 2.0, CheckInventory ("RemoteC4"));
CrateWeight(CRATE_PARTIALINVISIBILITY, 2.0, CheckInventory ("StealthLaserRifle") || CheckInventory ("Knife") || CheckInventory ("PowerInvisibility"));
CrateWeight(CRATE_RANDOMWEAPON, 2.0, HasAllNormalWeapons());