Keep your original equipment when you die as a PMC in a raid.
Keep Your Equipment
Description
Originally forked from Never Lose Equipments by Revingly and bluwatch, code adapted for SPT 3.7.0 and refactored.
- Retain all equipment you loaded in with post-death. (Default Behavior)
- Opt to recover only starting gear post-death without keeping raid-found items by enabling “keepOriginalEquipment”.
- Configuration for secured container contents during this process is available via “keepSecuredContainer”.
- Items acquired during a raid (in pockets, rig, backpack, or container) can be kept post-death but lose the FIR status if “enableFoundInRaid” is set to true.
- Keep map keys like Labs keycards upon successful raid exit
- Insure and drop items during a raid for insurance fraud purposes.
Installation instructions
Download the archive from the releases page and extract into the user/mods folder.
Configurable values
- keepOriginalEquipment: true/false (Default: true)
- Regain all original gear if you die during a raid.
- keepSecuredContainer: true/false (Default: true, keepOriginalEquipment must also be set to true)
- Decides if the secured container contents are reset post-death. Note: potential for item duplication exists if raid items are moved to the secured container.
- enableFoundInRaid: true/false (Default: false)
- Set to true to retain FIR status for raid-acquired items post-death.
- keepMapKeys: true/false (Default: true)
- Normally, the game will consume your Labs keycard on a successful raid. By default, this mod will keep your keycard, because you’re already using this mod to keep your original equipment, so why not?
Encountered a bug or want a feature?
- Please create an issue in the project page and I’ll take a look!
3.9K Downloads
For SPT 3.7.3
This should work, I did some preliminary testing but needs more testing. Use at your own risk!
Changelog:
- 3.7.3 Compatibility
2.1K Downloads
For SPT 3.7.1
Changelog:
- Fix issue with setting inventory on successful raid
For those who can’t upgrade to SPT 3.7.1 yet, use version 1.2.4 instead.
236 Downloads
For SPT 3.7.0
Changelog:
- Fix issue with setting inventory on successful raid
315 Downloads
161 Downloads
For SPT 3.7.0
Fixes issue when extracting raid as a scav (#1)
1.0K Downloads
For SPT 3.7.0
- Fix for exit status check
Should be mostly sorted now, thanks for your patience!
Details
-
GUID
Not Available
-
Additional Authors
-
License
-
Source Code
can you please make that you only keep earpiece, headwear, face cover, armband, body armor, eyewar, weapons (without ammo), tactical rig (empty), and backpack?
I mean, you lose all your meds, ammo, mags and stuff from inside pockets, rig, backpack that you have taken to raid with you but keep all gear items on you (Ithat you taken to raid not looted on raid) ?
Is this possible?
it doesn’t work with 3.7.5 as soon as I start the server there are many errors in red and I have to close to go back to windows. With 3.7.4 it works. With the Never Lose Equipments mod everything works fine.
Reason:
Cannot inject the dependency “inRaidHelper” at position #14 of “NLE” constructor. Reason:
Cannot read properties of undefined (reading ‘getConfig’)
Stacktrace:
Error: Cannot inject the dependency “onLoadComponents” at position #5 of “App” constructor. Reason:
Cannot inject the dependency “httpServer” at position #0 of “HttpCallbacks” constructor. Reason:
Cannot inject the dependency “httpListeners” at position #4 of “HttpServer” constructor. Reason:
Cannot inject the dependency “httpRouter” at position #0 of “AkiHttpListener” constructor. Reason:
Cannot inject the dependency “staticRouters” at position #0 of “HttpRouter” constructor. Reason:
Cannot inject the dependency “inraidCallbacks” at position #0 of “InraidStaticRouter” constructor. Reason:
Cannot inject the dependency “inraidController” at position #0 of “InraidCallbacks” constructor. Reason:
Cannot inject the dependency “inRaidHelper” at position #14 of “NLE” constructor. Reason:
Cannot read properties of undefined (reading ‘getConfig’)
at C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:324:23
at Array.map (<anonymous>)
at C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:295:38
at InternalDependencyContainer.construct (C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:297:11)
at InternalDependencyContainer.resolveRegistration (C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:166:51)
at InternalDependencyContainer.resolve (C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:109:33)
at C:\snapshot\project\src\Program.ts:32:32
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:64:3)
at Function.runMain (pkg/prelude/bootstrap.js:1980:13)
Press Enter to close the window
anyway to add just keep the guns and lose what’s in bag, pocket & vest when death so this way we can just rely on the container for quest items and med kits.
This way I can empty my inventory and use my money cause if I can never lose my stuff in vests, pocket and bag.. I’ll never use my inventory and purchase from trader.
who’s the girl in profile pic?
damn, she’s fine
Hi Thanks for the mod , there is any chance to add the function to only save for example the backpack?
That´s maybe only my request , anything else great
Regards
Was having a long black screen after death(3~5min), it was working fine after the black screen, i just thought of checking the the server cmd and saw this error in red. What to do?
Keep Your Equipment: Player died, restoring original equipment!
Keep Your Equipment: Keeping secured container
TypeError: Cannot read properties of undefined (reading ‘_id’)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at KeepYourEquipment.keepSecuredContainer (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:217:96)
at KeepYourEquipment.performPostRaidActionsWhenDead (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:190:18)
at KeepYourEquipment.savePmcProgress (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:163:35)
at KeepYourEquipment.savePostRaidProgress (C:\snapshot\project\src\controllers\InraidController.ts:100:18)
at InraidCallbacks.saveProgress (C:\snapshot\project\src\callbacks\InraidCallbacks.ts:44:31)
at RouteAction.action (C:\snapshot\project\src\routers\static\InraidStaticRouter.ts:20:53)
at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)
TypeError: Cannot read properties of undefined (reading ‘_id’)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at KeepYourEquipment.keepSecuredContainer (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:217:96)
at KeepYourEquipment.performPostRaidActionsWhenDead (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:190:18)
at KeepYourEquipment.savePmcProgress (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:163:35)
at KeepYourEquipment.savePostRaidProgress (C:\snapshot\project\src\controllers\InraidController.ts:100:18)
at InraidCallbacks.saveProgress (C:\snapshot\project\src\callbacks\InraidCallbacks.ts:44:31)
at RouteAction.action (C:\snapshot\project\src\routers\static\InraidStaticRouter.ts:20:53)
at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)
This is a fantastic mod thank you!
I don’t know if it’s possible or if it’s more work than it’s worth, but it would be really cool to see an option that keeps things like weapon durability and armor damage from the raid. Kinda like you get dragged back to base the way you were found.
When i try to load the spt server it tells me this mod is not compatible, how do i fix this?
I havn’t tried myself on the mod or on my own, but is it possible to configure it so that only the pistol stays after death like the melee ?
On one of the 1st spt releases I was able to do it, but the code has changed since way back when and i havnt been able to recreate. I like playing the game as hard as possible, without insurance etc too, but would be nice to keep a custom pistol lol
I downloaded mod opened with 7 zip and copied folder to user/mods and After finishing raid a black screen, force quit spt and come back I see all my initial gear but no loot even after surviving the raid.