Added config option forceRigWhenNoVest
Wired up to bot generation Updated Raiders to use true value
This commit is contained in:
parent
53e0a74a1f
commit
cabd17d2c9
@ -789,6 +789,7 @@
|
|||||||
"lightIsActiveNightChancePercent": 95,
|
"lightIsActiveNightChancePercent": 95,
|
||||||
"laserIsActiveChancePercent": 95,
|
"laserIsActiveChancePercent": 95,
|
||||||
"forceOnlyArmoredRigWhenNoArmor": true,
|
"forceOnlyArmoredRigWhenNoArmor": true,
|
||||||
|
"forceRigWhenNoVest": true,
|
||||||
"forceStock": true,
|
"forceStock": true,
|
||||||
"weaponModLimits": {
|
"weaponModLimits": {
|
||||||
"scopeLimit": 1,
|
"scopeLimit": 1,
|
||||||
|
@ -240,7 +240,7 @@ export class BotInventoryGenerator {
|
|||||||
randomisationDetails: randomistionDetails,
|
randomisationDetails: randomistionDetails,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bot has no armor vest and flagged to be foreced to wear armored rig in this event
|
// Bot has no armor vest and flagged to be forceed to wear armored rig in this event
|
||||||
if (botEquipConfig.forceOnlyArmoredRigWhenNoArmor && !hasArmorVest) {
|
if (botEquipConfig.forceOnlyArmoredRigWhenNoArmor && !hasArmorVest) {
|
||||||
// Filter rigs down to only those with armor
|
// Filter rigs down to only those with armor
|
||||||
this.filterRigsToThoseWithProtection(templateInventory.equipment);
|
this.filterRigsToThoseWithProtection(templateInventory.equipment);
|
||||||
@ -252,6 +252,11 @@ export class BotInventoryGenerator {
|
|||||||
this.filterRigsToThoseWithoutProtection(templateInventory.equipment);
|
this.filterRigsToThoseWithoutProtection(templateInventory.equipment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bot is flagged as always needing a vest
|
||||||
|
if (botEquipConfig.forceRigWhenNoVest && !hasArmorVest) {
|
||||||
|
wornItemChances.equipment.TacticalVest = 100;
|
||||||
|
}
|
||||||
|
|
||||||
this.generateEquipment({
|
this.generateEquipment({
|
||||||
rootEquipmentSlot: EquipmentSlots.TACTICAL_VEST,
|
rootEquipmentSlot: EquipmentSlots.TACTICAL_VEST,
|
||||||
rootEquipmentPool: templateInventory.equipment.TacticalVest,
|
rootEquipmentPool: templateInventory.equipment.TacticalVest,
|
||||||
|
@ -138,6 +138,7 @@ export interface EquipmentFilters {
|
|||||||
/** Should the stock mod be forced to spawn on bot */
|
/** Should the stock mod be forced to spawn on bot */
|
||||||
forceStock?: boolean;
|
forceStock?: boolean;
|
||||||
armorPlateWeighting?: IArmorPlateWeights[];
|
armorPlateWeighting?: IArmorPlateWeights[];
|
||||||
|
forceRigWhenNoVest?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModLimits {
|
export interface ModLimits {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user