COMPATIBLEVERSION
Need InfineMeds? Here it is!
This is an updated version of the “INFMEDS” mod by sunglasses, compatible with SPT 3.10.0.
9.32 KB
1.7K Downloads
Released Nov 2, 6:49 AM
Fix me too dummy to forgot put the file on the path :/ Fix the stim multiply not apply
9.07 KB
183 Downloads
Released Nov 1, 5:18 PM
update to the 4.0.3 version(SPT keep fixing i just want upload the mod :/
Add Mutiplymode Make the blacklist config just use one of then
just want make the mod better can comment for me :D
4.0K Downloads
Released Mar 16, 12:54 PM
Fika Compatibility UnknownUpdate ~3.11
No Addons Yet
This mod doesn't have any addons yet.
Details
-
GUID
com.wispsflame.infmeds
-
License
-
Latest Version VirusTotal Results
-
Fika Compatibility Unknown
Noticed 2 things
1: Even when set to true, server says [WispsInfMeds] medkit Was Been Disabled On Inf!
2: Multiply Stims does not work, stims remain single use. StimUses works though.
Can anyone else confirm they have the same issue?
Thanks for the mod!
I think you forgot to make a folder in /mods for the config folder and dll file.
idk if i am doing something wrong but the mods not working
The version 1.1.0 link is broken
Thank you for this mod
Looks like this isn’t working on the morphine injector for some reason. All other injectors are working just fine I believe
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?
I don’t know much SPT modding but I added a few things and fixed the logs.
Added:
Changes:
Tentative
“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.
А чё за мод что он делает?
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!