Store player scav brain data in config and pass to client when requested
This commit is contained in:
parent
ac459335c0
commit
8d32cf2d03
@ -1522,6 +1522,58 @@
|
||||
"pmcBot": 0
|
||||
}
|
||||
},
|
||||
"playerScavBrainType": {
|
||||
"factory4_day": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"factory4_night": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"bigmap": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"laboratory": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"woods": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"interchange": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"lighthouse": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"rezervbase": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"shoreline": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
},
|
||||
"tarkovstreets": {
|
||||
"bossKilla": 1,
|
||||
"assault": 1,
|
||||
"pmcBot": 1
|
||||
}
|
||||
},
|
||||
"maxBotCap": {
|
||||
"factory4_day": 13,
|
||||
"factory4_night": 13,
|
||||
|
@ -268,6 +268,9 @@ export class BotController
|
||||
|
||||
public getAiBotBrainTypes(): any
|
||||
{
|
||||
return { pmc: this.pmcConfig.pmcType, assault: this.botConfig.assaultBrainType };
|
||||
return {
|
||||
pmc: this.pmcConfig.pmcType,
|
||||
assault: this.botConfig.assaultBrainType,
|
||||
playerScav: this.botConfig.playerScavBrainType};
|
||||
}
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ export interface IBotConfig extends IBaseConfig
|
||||
showTypeInNickname: boolean;
|
||||
/** What ai brain should a normal scav use per map */
|
||||
assaultBrainType: Record<string, Record<string, number>>;
|
||||
/** What ai brain should a player scav use per map */
|
||||
playerScavBrainType: Record<string, Record<string, number>>;
|
||||
/** Max number of bots that can be spawned in a raid at any one time */
|
||||
maxBotCap: Record<string, number>;
|
||||
/** Chance scav has fake pscav name e.g. Scav name (player name) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user