0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Updated dogtag generation based on client investigation

This commit is contained in:
Chomp 2025-01-02 13:20:18 +00:00
parent 1df8a5630b
commit d151db0c76

View File

@ -701,30 +701,14 @@ export class BotGenerator {
* @returns Bot with dogtag added * @returns Bot with dogtag added
*/ */
protected addDogtagToBot(bot: IBotBase): void { protected addDogtagToBot(bot: IBotBase): void {
const dogtagUpd: IUpd = {
SpawnedInSession: true,
Dogtag: {
AccountId: bot.sessionId,
ProfileId: bot._id,
Nickname: bot.Info.Nickname,
Side: bot.Info.Side,
Level: bot.Info.Level,
Time: new Date().toISOString(),
Status: "Killed by ",
KillerAccountId: "Unknown",
KillerProfileId: "Unknown",
KillerName: "Unknown",
WeaponName: "Unknown",
},
};
const inventoryItem: IItem = { const inventoryItem: IItem = {
_id: this.hashUtil.generate(), _id: this.hashUtil.generate(),
_tpl: this.getDogtagTplByGameVersionAndSide(bot.Info.Side, bot.Info.GameVersion), _tpl: this.getDogtagTplByGameVersionAndSide(bot.Info.Side, bot.Info.GameVersion),
parentId: bot.Inventory.equipment, parentId: bot.Inventory.equipment,
slotId: "Dogtag", slotId: "Dogtag",
location: undefined, upd: {
upd: dogtagUpd, SpawnedInSession: true,
},
}; };
bot.Inventory.items.push(inventoryItem); bot.Inventory.items.push(inventoryItem);