Mod Details

INFMEDS-Update BY WispsFlame

INFMEDS-Update BY WispsFlame 1.2.0

Created by WispsFlame

9.4K Downloads

SPT 3.11.4 Compatible

COMPATIBLEVERSION

Latest Version 1.2.0
SPT 3.11.4

Updated Mar 16, 12:54 PM

Version Notes

Update ~3.11

This download is externally hosted.
Always scan for viruses.

Need InfineMeds? Here it is!

This is an updated version of the “INFMEDS” mod by sunglasses, compatible with SPT 3.10.0.

Version 1.2.0
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

3.7K Downloads

Created Mar 16, 12:54 PM

Updated Mar 16, 12:54 PM

Virus Total Results

Update ~3.11

Version 1.1.0
Download Mod Version
SPT 3.10.5
Latest Compatible SPT Version

2.3K Downloads

Created Nov 27, 2024 at 11:48 AM

Updated Nov 27, 2024 at 11:48 AM

Virus Total Results

Update on V3.10~

Version 1.0.2
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

3.5K Downloads

Created Jul 19, 2024 at 3:57 PM

Updated Jul 19, 2024 at 3:57 PM

Virus Total Results
Cas

The version 1.1.0 link is broken

0 Likes
Haltzman

Thank you for this mod

0 Likes
IdiotTurdle

Looks like this isn’t working on the morphine injector for some reason. All other injectors are working just fine I believe

0 Likes
Noarch04

When I try to heal myself with stims or medkits, it does the animation and then gets stuck and won’t pull out a weapon and I have to restart the game to fix it. Is there a way to fix this?

0 Likes
Bubblefarts

I don’t know much SPT modding but I added a few things and fixed the logs.

Added:

  • Ability to multiply the number of uses/hp of items so that medkits have different hp values and so on
  • Functionality with single use items, single use items have a value of 0 so multiplying by 0 is 0, so i fixed that
  • Server console log now is more readable and shows the changes to items.
  • Drug items are now also able to be multiplied

Changes:

  • Items are now multiplied instead of a set value
  • Config now sets multipliers

Tentative

  • Make price also multiplicative

“use strict”; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || (“get” in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function () { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function (o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) { Object.defineProperty(o, “default”, { enumerable: true, value: v }); }) : function (o, v) { o[“default”] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== “default” && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, “__esModule”, { value: true }); // Generic const BaseClasses_1 = require(“C:/snapshot/project/obj/models/enums/BaseClasses”); const LogTextColor_1 = require(“C:/snapshot/project/obj/models/spt/logging/LogTextColor”); const config = __importStar(require(“../config/config.json“)); class Mod { mod; constructor() { this.mod = “Wisps-InfMeds-1.0.3”; } postDBLoad(container) { var stimMaxUses = 0; var medHp = 0; var medUsages = 0; var drugUsages = 0; const logger = container.resolve(“WinstonLogger”); const db = container.resolve(“DatabaseServer”); const tables = db.getTables(); const items = tables.templates.items; const locales = tables.locales.global; const random = Math.floor(Math.random() * 1000 + 1); // const random = 1000; if (random == 1000) logger.logWithColor(“[ InfMeds ] its a 1 in 1000 chance to get this message and since you recieved it that means your special“, LogTextColor_1.LogTextColor.MAGENTA); let loopedOverStims = 0; let loopedOverMedkits = 0; let loopedOverMedical = 0; let loopedOverDrugs = 0; logger.logWithColor(\[ InfMeds \] IMPROVING YOUR HEALTHCARE..., LogTextColor_1.LogTextColor.CYAN); for (const item in items) { const itemProps = items[item]._props; const itemId = items[item]._id; // STIMS CONFIG : SJ6s, Propitals etc if (config.changeStims) { if (items[item]._parent == BaseClasses_1.BaseClasses.STIMULATOR) { if (config.blacklisted_stims.includes(items[item]._id)) { logger.logWithColor(\[ InfMeds - Stims \] ${locales\["en"\]\[${itemId} ShortName\]} is blacklisted and will not get infinite uses, LogTextColor_1.LogTextColor.GRAY); continue; } if (config.infStims) itemProps.MaxHpResource = 999; else if (!config.infStims) { if (itemProps.MaxHpResource == 0) itemProps.MaxHpResource = 1; itemProps.MaxHpResource = itemProps.MaxHpResource * config.stimUsesMultiplier; stimMaxUses = itemProps.MaxHpResource; } if (config.logItemsWithModifiedUses) logger.logWithColor(\[ InfMeds - Stims \] ${locales\["en"\]\[${itemId} ShortName\]} now has ${stimMaxUses} uses, LogTextColor_1.LogTextColor.GRAY); loopedOverStims++; } } // MEDKIT CONFIG : Like Salewas etc if (config.changeMedkits) { if (items[item]._parent == BaseClasses_1.BaseClasses.MEDKIT) { if (config.blacklisted_medkits.includes(items[item]._id)) { logger.logWithColor(\[ InfMeds - Medkits \] ${locales\["en"\]\[${itemId} ShortName\]} is blacklisted and will not get infinite uses, LogTextColor_1.LogTextColor.RED); continue; } if (config.infMedkits) itemProps.MaxHpResource = 9999; else if (!config.infMedkits) { if (itemProps.MaxHpResource == 0) itemProps.MaxHpResource = 1; itemProps.MaxHpResource = itemProps.MaxHpResource * config.medkitHpMultiplier; medHp = itemProps.MaxHpResource; } if (config.logItemsWithModifiedUses) logger.logWithColor(\[ InfMeds - Medkits \] ${locales\["en"\]\[${itemId} ShortName\]} now has ${medHp} hp, LogTextColor_1.LogTextColor.GRAY); loopedOverMedkits++; } } // MEDs CONFIG : CMSs, Bandages etc if (config.changeMedical) { if (items[item]._parent == BaseClasses_1.BaseClasses.MEDICAL) { if (config.blacklisted_medkits.includes(items[item]._id)) { logger.logWithColor(\[ InfMeds - Medical \] ${locales\["en"\]\[${itemId} ShortName\]} is blacklisted and will not get infinite uses, LogTextColor_1.LogTextColor.RED); continue; } if (config.infMedical) itemProps.MaxHpResource = 999; else if (!config.infMedical) { if (itemProps.MaxHpResource == 0) itemProps.MaxHpResource = 1; itemProps.MaxHpResource = itemProps.MaxHpResource * config.medicalUsesMultiplier; medUsages = itemProps.MaxHpResource; } if (config.logItemsWithModifiedUses) logger.logWithColor(\[ InfMeds - Medical \] ${locales\["en"\]\[${itemId} ShortName\]} now has ${medUsages} uses, LogTextColor_1.LogTextColor.GRAY); loopedOverMedical++; } } // Drugs CONFIG : Analgin, Vaseline, etc if (config.changeDrugs) { if (items[item]._parent == BaseClasses_1.BaseClasses.DRUGS) { if (config.blacklisted_drugs.includes(items[item]._id)) { logger.logWithColor(\[ InfMeds - Medical \] ${locales\["en"\]\[${itemId} ShortName\]} is blacklisted and will not get infinite uses, LogTextColor_1.LogTextColor.RED); continue; } if (config.infMedical) itemProps.MaxHpResource = 999; else if (!config.infMedical) { if (itemProps.MaxHpResource == 0) itemProps.MaxHpResource = 1; itemProps.MaxHpResource = itemProps.MaxHpResource * config.drugUsesMultiplier; drugUsages = itemProps.MaxHpResource; } if (config.logItemsWithModifiedUses) logger.logWithColor(\[ InfMeds - Drug \] ${locales\["en"\]\[${itemId} ShortName\]} now has ${drugUsages} uses, LogTextColor_1.LogTextColor.GRAY); loopedOverDrugs++; } } } logger.logWithColor(\[ InfMeds \] FOUND AND MODDED THESE ITEMS, LogTextColor_1.LogTextColor.CYAN); logger.logWithColor(\[ InfMeds \] Modified ${loopedOverStims} stims to have x${config.stimUsesMultiplier} uses., LogTextColor_1.LogTextColor.CYAN); logger.logWithColor(\[ InfMeds \] Modified ${loopedOverMedkits} medkits to have x${config.medkitHpMultiplier} HP., LogTextColor_1.LogTextColor.CYAN); logger.logWithColor(\[ InfMeds \] Modified ${loopedOverMedical} medical items to have x${config.medicalUsesMultiplier} uses., LogTextColor_1.LogTextColor.CYAN); logger.logWithColor(\[ InfMeds \] Modified ${loopedOverDrugs} drug items to have x${config.drugUsesMultiplier} uses., LogTextColor_1.LogTextColor.CYAN); } } module.exports = { mod: new Mod() }; //# sourceMappingURL=mod.js.mapConfig.json

{ “changeStims”: true, “changeMedkits”: true, “changeMedical”: true, “changeDrugs”: true, “infStims”: false, “infMedkits”: false, “infMedical”: false, “infDrugs”: false, “stimUsesMultiplier”: 10, “medkitHpMultiplier”: 2, “medicalUsesMultiplier”: 2, “drugUsesMultiplier”: 2, “logItemsWithModifiedUses”: true, “blacklisted_stims”: [], “blacklisted_medkits”: [ “5755356824597772cb798962” ], “blacklisted_medical”: [], “blacklisted_drugs”: [] }Thank you for the great mod, these are just my edits and i figured people can use them if they want.

0 Likes
Lemon-Ru

А чё за мод что он делает?

0 Likes
Kaylightning

I would really like it if there was an option to multiply the price in addition to the uses… I would put 10 uses but they would be 10x more expensive too!

Thanks for the mod!

0 Likes

Details