Mod Details

BetterMeds Revised

BetterMeds Revised 2.5.0

Created by Revingly

18.1K Downloads

SPT 3.10.5 Compatible

Some modifications to meds

Latest Version 2.5.0
SPT 3.10.5

Updated Dec 8, 2024 at 5:08 PM

Version Notes

Updated to SPT Version 3.10

Forgot to update package.json like a noob. All Fixed!

Lightly Tested! - Send all reports to me on Discord

This download is externally hosted.
Always scan for viruses.

# BetterMedsRevised

This mod is based on an older version “BetterMeds” Better Meds => Thanks to DonutxLord for writing the previous version

Update the meds to have shorter use time and more capacity with modifications.

All the the items have 1 sec use time which can be configured in the config file if you don’t want instant healing

Updated items:

  • Healing meds (AI2, Salewa, IFAK) has 4000hp => can be changed in config file

  • Splint and ALU Splint can be used 10 times => can be changed in config file

  • Bandage and Army bandage can be used 10 times => can be changed in config file

  • Hemostat, CAT, and Esmarch can be used 10 times => can be changed in config file

  • Survive surgery kit and CMS can be used 50 times => can be changed in config file

  • All painkiller meds (pills, stims, vaseline, golden star…):

  1. Can be used 20 times => can be changed in config file
  2. Duration is changed to 5000 sec for each use => can be changed in config file
  3. The Energy and Hydration consumption is lowered to -1 for both on each usage
Version 2.5.0
Download Mod Version
SPT 3.10.5
Latest Compatible SPT Version

2.1K Downloads

Created Dec 8, 2024 at 5:08 PM

Updated Dec 8, 2024 at 5:08 PM

Virus Total Results

Updated to SPT Version 3.10

Forgot to update package.json like a noob. All Fixed!

Lightly Tested! - Send all reports to me on Discord

Version 2.4.1
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

1.7K Downloads

Created Sep 1, 2024 at 7:34 AM

Updated Sep 1, 2024 at 7:34 AM

Virus Total Results
  • Added option to disable modifying Stimulants
  • Added option to change Weight Percentage Increase on M.U.L.E Stims
  • Forgot to include M.U.L.E in Stim Disable option. Oops. (Change manually in config.json)

This version wasn’t tested much and I am half asleep while updating so, pray everything works as planned.

Hope you enjoy the update.!

Version 2.4.0
Download Mod Version
SPT 3.9.8
Latest Compatible SPT Version

1.1K Downloads

Created Aug 5, 2024 at 3:15 AM

Updated Aug 5, 2024 at 3:15 AM

Virus Total Results

Updated to 3.9.x

Version 2.3.6
Download Mod Version
SPT 3.8.3
Latest Compatible SPT Version

1.7K Downloads

Created Apr 5, 2024 at 11:37 AM

Updated Apr 5, 2024 at 11:37 AM

Virus Total Results
  • SPT-3.8
Version 2.3.5
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

1.7K Downloads

Created Oct 15, 2023 at 11:12 AM

Updated Oct 15, 2023 at 11:12 AM

Virus Total Results
  • Remove extra lines of unnecessary code
Version 2.3.4
Download Mod Version
SPT 3.7.1
Latest Compatible SPT Version

158 Downloads

Created Oct 15, 2023 at 6:19 AM

Updated Oct 15, 2023 at 6:19 AM

Virus Total Results
  • SPT 3.7.1
poijn23

So i writing this for anyone that want to custom the duration of all stims, take in mind i did this with chatgpt and it can be further improbe/can have unexpected with other mods…

you need to open the mod file in the src folder (inside the mod folder) and add:

====================================================

handleStimulatorBuffs(itemProps, globals, config) {
conststimBuffKey=itemProps.StimulatorBuffs;

if (stimBuffKey&&Array.isArray(globals.config.Health.Effects.Stimulator.Buffs[stimBuffKey])) {
globals.config.Health.Effects.Stimulator.Buffs[stimBuffKey].forEach(buff=> {
if (buff.Value>0) {
buff.Duration=config.mule.duration;
} else {
buff.Duration=30;
}
});
}
}

======================================================

before the postDBLoad(container) funtion, the custom funtion handleStimulatorBuffs will change any buff wich value is higger than 0 (usually possitve buff) to the duration for the mule effect in the config file.

other positive buff that work on a negative base will be reduse to 30 seconds (this is beacuse i wanted to reduce negative effects to 30 sec, some of which have a no negative value so they also wont be affected)

finally a little lower in the file you need to a call the funtion in the if for sitms, like show below:

========================================

if (this.config.stims.enabled==true) {
if (items[item]._parent===‘5448f3a64bdc2d60728b456a’) {
items[item]._props.MaxHpResource=this.config.stims.capacity;
items[item]._props.medUseTime=this.config.globalUseTime;
if (items[item]._props.effects_health.Energy)
items[item]._props.effects_health.Energy.value=ENERGY_EFFECT;
if (items[item]._props.effects_health.Hydration)
items[item]._props.effects_health.Hydration.value=HYDRATION_EFFECT;
this.handleStimulatorBuffs(items[item]._props, globals, this.config)

}
}

===========================================================

the funtion is a simple logic funtion, you would need to modife it so it work as you wanted, it works for my intends

Also i need to add a disclimer that this only works with this mod…

0 Likes
destarcke

hi, great mod. is it possible to increase the healing done ?

0 Likes
Dynamiteside

For the dev and everyone having issues with bandages, splints, heavy bleed items and surgical kits not working correctly. I sat down and had a look at the code and its VERY easy to fix:
-> go to the mods folder “revingly-bettermeds”
-> go into the “src” folder
-> Open “mod.ts” in your text editor of choice (if you have other files in there delete them so we dont have to fix the issue multiple times, they will get generated again on server start based on “mod.ts”)
-> Scroll down to the section labeled “// Medical Items” (Line 45) and do ONE of the following 2:
1.) delete said small section “// Medical Items” (Line 46-50) or
2.) comment it out by adding // at the start of each line in the section (Line 46-50)

-> Enjoy the issue being gone (The Items will still have their increased “Uses” / “Charges” and 1 second use time except they work correctly and only consuming 1 “Charge” at a time)

3 Likes
pghtrouble

Has anybody had a problem when stopping a bleed or fixing a fracture it uses all of or most of the uses of a splint, bandage or calok-b?

0 Likes
Gravebloom

how do i make the use time of the items the same as vanilla Tarkov? ive tried changing default use time from false to true but there is no change when i do that, everything is still on one second timer use

1 Like
obvnotright

Love the mod, it’s one of the most helpful QOL mods out there.

I’m having the same issue as Th3_W01f was having last year, however I never saw an end response solving the problem.

I’ve narrowed it down to the only changes I make are adding SJ6 to itemIds, then launching the server it gives a similar error Th3_W01f was getting about cannot read properties of undefined(reading ‘capacity’) and referencing the mod.ts file.

TypeError: Cannot read properties of undefined (reading ‘capacity’) TypeError: Cannot read properties of undefined (reading ‘capacity’) at C:\SPT 3.9.8\user\mods\revingly-bettermeds\src\mod.ts:86:66 at Array.forEach (<anonymous>) at Mod.postDBLoad (C:\SPT 3.9.8\user\mods\revingly-bettermeds\src\mod.ts:85:38) at PostDBModLoader.executeModsAsync (C:\snapshot\src\loaders\PostDBModLoader.ts:63:45) at PostDBModLoader.onLoad (C:\snapshot\src\loaders\PostDBModLoader.ts:26:13) at App.load (C:\snapshot\src\utils\App.ts:51:13) TypeError: Cannot read properties of undefined (reading ‘capacity’) TypeError: Cannot read properties of undefined (reading ‘capacity’) at C:\SPT 3.9.8\user\mods\revingly-bettermeds\src\mod.ts:86:66 at Array.forEach (<anonymous>) at Mod.postDBLoad (C:\SPT 3.9.8\user\mods\revingly-bettermeds\src\mod.ts:85:38) at PostDBModLoader.executeModsAsync (C:\snapshot\src\loaders\PostDBModLoader.ts:63:45) at PostDBModLoader.onLoad (C:\snapshot\src\loaders\PostDBModLoader.ts:26:13) at App.load (C:\snapshot\src\utils\App.ts:51:13)As I said, the only change made was an attempt to add the SJ6 to the itemIds file, I haven’t even touched the config file yet.

{ “544fb3364bdc2d34748b456a”: “splint”, “544fb25a4bdc2dfb738b4567”: “bandage”, “5751a25924597722c463c472”: “bandage_army”, “5d02778e86f774203e7dedbe”: “core_medical_surgical_kit”, “5af0454c86f7746bf20992e8”: “item_meds_alusplint”, “5d02797c86f774203f38e30a”: “survival_first_aid_rollup_kit”, “5e831507ea0a7c419c2f9bd9”: “item_meds_esmarch”, “60098af40accd37ef2175f27”: “item_meds_cat”, “5e8488fa988a8701445df1e4”: “item_meds_hemostatic”, “5c0e531d86f7747fa23f4d42”: “SJ6_TGLabs” }Thank you for keeping this one running.

0 Likes
Nepuuuu

Any chans we can get an option to not touch stims? Don’t want to change them.

0 Likes
username79899194

Can you make every injector stim’s duration and their uses configureable? Because adding the item ids to the itemid config doesn’t work.

1 Like
T-90MS Tankman

Compatible with boosted meds?

0 Likes
Deurikin

would it be possible to add the 4 main medkits to the item list? the Salewa, Ifak, Afak, cheese, and the car?

0 Likes

Details