Mod Details

Custom Kill Messages

Custom Kill Messages 1.0.1

Created by  RaiRaiTheRaichu

3.4K Downloads

SPT 3.11.4 Compatible

Ever wanted the AI to trashtalk you (or your friends) harder after a raid? Now they can! Fully, 100% customizable!

Latest Version 1.0.1
SPT 3.11.4

Updated Mar 29, 12:23 AM

Version Notes

Changelog:

Small update to PmcChatResponseService method.

Minor refactoring.

Minor change to the version in the package.json, compatible with version 3.11.0+ of SPT.

Hey! Thanks for downloading, if you’d like to support my work, you’re more than welcome to support me at the link below or follow along at my Ko-Fi page here:

https://ko-fi.com/rairaitheraichu

This download is externally hosted.
Always scan for viruses.
Mod Info
Custom Kill Messages

**Find out more about what EFT mods I’m working on here!

https://trello.com/b/CONaHPTn/…i-mods-by

Want to support my work? Consider clicking the link below!

kofi4.png?v=3

mgjvtlx.png

This mod allows server hosts to add custom messages that an AI PMC might send a player after being killed by them or if the player was killed by the AI. By default, the mod will not do anything unless custom messages are added to the list in the config.jsonc file. You can add messages to the pool of possible messages to send, or only allow your custom messages to be sent (disable all of the original messages).

As a side function, you can also add PMC names to the name pool, which will allow PMC AI to possibly generate with that name (on the kill screen and dogtags, for example). Flea market listings may also have these names show.

Be mindful of the messages you add, as it can possibly be seen by any player on the server.

Please do not share images of any harmful, derogatory, or hateful messages.

The config.jsonc has extensive documentation on how to add messages, along with plenty of options to tweak with examples.

Currently, you can only add these messages to one language key. In the future, I may refactor it to add certain messages to specific languages, but for now, you can set the language in the config (english by default).

This mod also overrides the default SPT method “chooseMessage()” in PmcChatResponseService. It’s *highly* unlikely any other mod touches this method, but just as a notice for other modders regarding compatibility.

This mod should be compatible with any other mod, however, the ability to add PMC AI names may be overwritten *or* overwrite other mods. When in doubt, use a Load Order Editor and allow this mod to load last, so the changes within this mod are sure to stick.

A quick note on Realism, disable “Real PMC Names” in the Bots tab of the mod config tool, otherwise it will overwrite the changes from any PMC names you add from this mod.

Changelog
  • March 28th, 2025:
    • Small update to PmcChatResponseService method.
    • Minor refactoring.
    • Minor change to the version in the package.json, compatible with version 3.11.0+ of SPT.
Bug Reports

If you encounter any issues, please feel free to contact me on Discord (RaiRaiTheRaichu) (This includes incompatibilities you may find with other mods!)

You can leave a comment here, as well, but response time may be significantly longer as I do not usually check my inbox here often.

Please include any logs generated from the console as well to help me narrow down the issue.

Version 1.0.1
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

1.8K Downloads

Created Mar 29, 12:23 AM

Updated Mar 29, 12:23 AM

Virus Total Results

Changelog:

Small update to PmcChatResponseService method.

Minor refactoring.

Minor change to the version in the package.json, compatible with version 3.11.0+ of SPT.

Hey! Thanks for downloading, if you’d like to support my work, you’re more than welcome to support me at the link below or follow along at my Ko-Fi page here:

https://ko-fi.com/rairaitheraichu

Version 1.0.0
Download Mod Version
SPT 3.9.8
Latest Compatible SPT Version

1.6K Downloads

Created Aug 15, 2024 at 2:42 AM

Updated Aug 15, 2024 at 2:42 AM

Virus Total Results

Built for SPT 3.9.X.

Hey! Thanks for downloading, if you’d like to support my work, you’re more than welcome to support me at the link below or follow along at my Ko-Fi page here:

https://ko-fi.com/rairaitheraichu

j_ii_n_x

Having trouble getting this to work. Ive set the appropriate options to true and placed it last in the mod load order but im still receiving the default messages.

Ive also added names which were previously listed in SVM, but these now work intermittently with some tags now showing BEAR or USEC followed by a few numbers (eg. BEAR 2354)

Ive tried shuffling the mod load order around a few times without success.

Any help is appreciated.

0 Likes
Ederys

Thank you for your hard work :3

Can I ask you if it would be possible for you to create a mod to not receive messages from the AI after a raid?
I know there was a mod available on the website but it seems to have been taken down.

In any cases, I wish you a good continuation

0 Likes

hi, within the config of this mod, that would be possible. setting the following in the config file:

“CustomizeMessageChances”: true, “MessageChanceKiller”: 0, “MessageChanceVictim”: 0, will result in no messages ever being sent.

1 Like
Ederys

Thank you so very much

It’s perfect :3

0 Likes
Ederys

So, it didn’t worked in the end ^^’

But I still thank you for trying to help me

1 Like
Shturman

i have got a error in my server when i use this mod

0 Likes

Post ALL of your logs, I have no way of knowing what’s wrong otherwise.

0 Likes
DatBvB

I get Errors too, after PMC Raid. Game crashes, but Progress is saved.

Serverlog

Logoutput

Errorslog

Edit: Text copied from Server.exe Window after Game crashes

TypeError: Cannot read properties of undefined (reading ‘pmcresponse-victim_plead_1’)

TypeError: Cannot read properties of undefined (reading ‘pmcresponse-victim_plead_1’)

at CustomPmcChatResponseService.chooseMessage (C:\Spiele\SingleplayerTarkov\SPTTEST\user\mods\rairaitheraichu-customkillmessages-1.0.0\src\CustomPmcChatResponseService.ts:54:75)

at CustomPmcChatResponseService.sendVictimResponse (C:\snapshot\src\services\PmcChatResponseService.ts:53:34)

at InraidController.savePmcProgress (C:\snapshot\src\controllers\InraidController.ts:237:41)

at InraidController.savePostRaidProgress (C:\snapshot\src\controllers\InraidController.ts:131:18)

at InraidCallbacks.saveProgress (C:\snapshot\src\callbacks\InraidCallbacks.ts:41:31)

at RouteAction.action (C:\snapshot\src\routers\static\InraidStaticRouter.ts:13:49)

at InraidStaticRouter.handleStatic (C:\snapshot\src\di\Router.ts:41:63)

at HttpRouter.handleRoute (C:\snapshot\src\routers\HttpRouter.ts:61:68)

at HttpRouter.getResponse (C:\snapshot\src\routers\HttpRouter.ts:34:36)

at SptHttpListener.getResponse (C:\snapshot\src\servers\http\SptHttpListener.ts:130:44)

TypeError: Cannot read properties of undefined (reading ‘pmcresponse-victim_plead_1’)

TypeError: Cannot read properties of undefined (reading ‘pmcresponse-victim_plead_1’)

at CustomPmcChatResponseService.chooseMessage (C:\Spiele\SingleplayerTarkov\SPTTEST\user\mods\rairaitheraichu-customkillmessages-1.0.0\src\CustomPmcChatResponseService.ts:54:75)

at CustomPmcChatResponseService.sendVictimResponse (C:\snapshot\src\services\PmcChatResponseService.ts:53:34)

at InraidController.savePmcProgress (C:\snapshot\src\controllers\InraidController.ts:237:41)

at InraidController.savePostRaidProgress (C:\snapshot\src\controllers\InraidController.ts:131:18)

at InraidCallbacks.saveProgress (C:\snapshot\src\callbacks\InraidCallbacks.ts:41:31)

at RouteAction.action (C:\snapshot\src\routers\static\InraidStaticRouter.ts:13:49)

at InraidStaticRouter.handleStatic (C:\snapshot\src\di\Router.ts:41:63)

at HttpRouter.handleRoute (C:\snapshot\src\routers\HttpRouter.ts:61:68)

at HttpRouter.getResponse (C:\snapshot\src\routers\HttpRouter.ts:34:36)

at SptHttpListener.getResponse (C:\snapshot\src\servers\http\SptHttpListener.ts:130:44)

[Client-Anfrage] /launcher/profile/info

[Client-Anfrage] /launcher/server/version

[Client-Anfrage] /launcher/profile/info

[Client-Anfrage] /launcher/server/version

[Client-Anfrage] /raid/profile/save

Error: No location found with an Id of: none in database

Error: No location found with an Id of: none in database

at DatabaseService.getLocation (C:\snapshot\src\services\DatabaseService.ts:114:19)

at InraidController.savePmcProgress (C:\snapshot\src\controllers\InraidController.ts:149:57)

at InraidController.savePostRaidProgress (C:\snapshot\src\controllers\InraidController.ts:131:18)

at InraidCallbacks.saveProgress (C:\snapshot\src\callbacks\InraidCallbacks.ts:41:31)

at RouteAction.action (C:\snapshot\src\routers\static\InraidStaticRouter.ts:13:49)

at InraidStaticRouter.handleStatic (C:\snapshot\src\di\Router.ts:41:63)

at HttpRouter.handleRoute (C:\snapshot\src\routers\HttpRouter.ts:61:68)

at HttpRouter.getResponse (C:\snapshot\src\routers\HttpRouter.ts:34:36)

at SptHttpListener.getResponse (C:\snapshot\src\servers\http\SptHttpListener.ts:130:44)

at IncomingMessage.<anonymous> (C:\snapshot\src\servers\http\SptHttpListener.ts:64:49)

Error: No location found with an Id of: none in database

Error: No location found with an Id of: none in database

at DatabaseService.getLocation (C:\snapshot\src\services\DatabaseService.ts:114:19)

at InraidController.savePmcProgress (C:\snapshot\src\controllers\InraidController.ts:149:57)

at InraidController.savePostRaidProgress (C:\snapshot\src\controllers\InraidController.ts:131:18)

at InraidCallbacks.saveProgress (C:\snapshot\src\callbacks\InraidCallbacks.ts:41:31)

at RouteAction.action (C:\snapshot\src\routers\static\InraidStaticRouter.ts:13:49)

at InraidStaticRouter.handleStatic (C:\snapshot\src\di\Router.ts:41:63)

at HttpRouter.handleRoute (C:\snapshot\src\routers\HttpRouter.ts:61:68)

at HttpRouter.getResponse (C:\snapshot\src\routers\HttpRouter.ts:34:36)

at SptHttpListener.getResponse (C:\snapshot\src\servers\http\SptHttpListener.ts:130:44)

at IncomingMessage.<anonymous> (C:\snapshot\src\servers\http\SptHttpListener.ts:64:49)

[Client-Anfrage] /launcher/profile/info

[Client-Anfrage] /launcher/server/version

[Client-Anfrage] /launcher/profile/info

1 Like

hi, please post the contents of your config.json for this mod as well.

0 Likes
DatBvB

Hey good morning. Thanks for your reply.

{ // If “CustomizeMessageChances” is set to true, “MessageChanceKiller/Victim” is the percent chance to send a message “CustomizeMessageChances”: false, // Killer: If the player is killed by a PMC AI, Victim: If the PMC AI is killed by the player “MessageChanceKiller”: 16, // Default: 16% “MessageChanceVictim”: 7, // Default: 7% // Some randomization to the messages themselves “AllLowercaseChance”: 20, // Default: 20% “AllCapitalChance”: 20, // Default: 20% // Chance to attach a “suffix” (see below) to the end of a message “KillerSuffixChance”: 15, // Default: 15% “VictimSuffixChance”: 35, // Default: 35% // Which language key to add the custom messages to (en for english, es for spanish, it, jp, fr, and so on) // Currently limited to one language at a time! “Language”: “en”, /* * Within the []‘s, put some messages inside of double quotes (““), separate them by commas * Example: * “negative”: [“nice kill you loser”, “what a nerd, you’re already level {{playerLevel}}“, “all {{playerSide}}s SUCK”, “{{playerName}} is such a lame username”] * You can add the following tags: * {{playerSide}} - will be USEC or Bear * {{playerName}} - will be replaced with the player’s name * {{playerLevel}} - will be replaced with the player’s level * * Keep in mind, there are a lot of messages already in SPT, so these may still be rare * For example, there’s just over a hundred “victim_negative” messages… * See the “OverwriteMessages” section at the end if you want to remove the defaults * * By default… * There’s a 20% chance for the message to be written in all caps, or all lowercase * For Victims, there’s a 35% chance to add a “suffix” to the end of the message * For Killers, there’s a 15% chance to add a “suffix” to the end of the message * * ANY player could end up seeing these, so please be mindful of what you write */ “CustomMessages”: { // “victim” means these will be sent after you kill a PMC “victim”: { //Positive example: “Alright fair that was a good shot” “positive”: [], //Negative example: “Nice cheese strats” “negative”: [], //Plead example: “Hope ur happy i can’t even afford a new kit” “plead”: [] }, // “killer” means these will be sent after a PMC AI kills you “killer”: { //Positive example: “You nearly got me, great fight” “positive”: [], //Negative example: “No wonder you died, your gun is trash” “negative”: [], //Plead example: “I need to kill {{playerSide}}, i hope you understand”, “plead”: [] }, // A list of things that might be attached to the end of a message, like “king”, “kid”, or “lil bro” // Example: “my dude” (could result in: “Nice cheese strats my dude”) // No need to start with a space, it’s added automatically “suffix”: [] }, // Setting any of these to true will delete all the original messages of that category // It will only use your own custom ones for that type, make sure you have plenty of messages above! “OverwriteMessages”: { “victim_positive”: false, “victim_negative”: false, “victim_plead”: false, “killer_positive”: false, “killer_negative”: false, “killer_plead”: false, “suffix”: false }, // Names to add to the PMC AI name pool, both BEAR and Usec // Remember, the game only allows up to 15 letters per name // Example: “PogChamp” // Keep in mind other mods may overwrite the name pool entirely… // Realism, for example, will overwrite all of the custom PMC names unless you disable “Real PMC Names” in its config // Use a load order editor mod to let this mod load last, if you want to make extra sure these specific changes all work “CustomNames”: { “usec”: [], “bear”: [] }, // Setting any of these to true will delete all the original PMC names of that faction // It will only use your own custom names for that side, make sure you have plenty of names above! // Again, keep in mind other mods may have loaded before this which made their own edits to the name pool // …which this setting will delete in favor of only your own custom entries above // If a mod loads after this that replaces the name pool entirely, well… gotta change the load order “OverwriteNames”: { “usec”: false, “bear”: false } }

0 Likes

oh interesting, may i ask what language your game is set to?

0 Likes
DatBvB

Language is set to English.

0 Likes
SlaveToTheGames

Is there a way to make it so that a message only happens once per profile?

- Meaning if it already showed up, it wont anymore until you make a new profile?

0 Likes

It’s definitely not impossible, but it would definitely mean writing entirely new custom logic within the mod to track and store that information. It’s not something I’m personally interested in adding, especially with other priorities at the moment, but it’s certainly doable.

1 Like

No problem. Thanks for answering and definitely glad to know it is possible.

1 Like
Takasaki Yu

Hello,auther,I like your MOD very much!

May I share your MOD on ODDBA?

Thank you!

0 Likes

Yes! You have permission as long as credit is given.

0 Likes

Thanks!

0 Likes
ForeskinJohn

YES, ive always wanted something like this, im sure the messages are configurable somewhere, but this streamlines it a bit, now i can finally add even more memeworthy text to this game!

0 Likes

Same honestly. Rather than meme I wanted to use it for a more narrative focus, and jesus it was finally done. RaiRaiTheRaichu out here dropping quality!!!!

Pick up your crown! You dropped it.

0 Likes

Details