System Messages for NW3
- BadCorps
- Experienced
- Posts: 80
- Joined: Thu Jan 10, 2019 3:15 am
- Personal rank: Unholy
- Location: Toronto, Canada
- Contact:
System Messages for NW3
I was wondering if there was a way to edit the system messages (i.e. Player has killed Bot w/ X Weapon) for the NW3 mod. If so, where would I go to edit the messages?
Re: System Messages for NW3
The settings for the NWCoreVIII.NWKillMsgManager are in NWConfig.ini - [NWCoreVIII.NWInfo] -> enableKillMsgManager=True turns the MsgManager on and the KillMessageOptions (DamageName and WeaponItem) are under [NWCoreVIII.NWKillMsgManager]. I'm not sure how much these messages can be altered beyond these two settings.BadCorps wrote:I was wondering if there was a way to edit the system messages (i.e. Player has killed Bot w/ X Weapon) for the NW3 mod. If so, where would I go to edit the messages?
Of course, there's a death message for each weapon in the default properties of that weapon and, I assume, this is what is shown if the KillMsgManager is turned off.
Last edited by OjitroC on Wed Jan 16, 2019 2:47 pm, edited 1 time in total.
Re: System Messages for NW3
This is in interesting question in some way. I realized while playing CTF with NW3 (and other mutators at the same time) that sometimes these messages "sb killed sb with weapon xy" were not true. The person was killed yes, but with another NW3 weapon as said. I have no idea why this message was wrong and perhaps it's an issue in combination with other mutators. l have not been paying attention lately...
Re: System Messages for NW3
Yes, I get that with the Graviton in particular - in fact, I get kill messsages for that weapon a minute or two after I've used it and then switched to another weapon (which has done the killling).Aldebaran wrote:... sometimes these messages "sb killed sb with weapon xy" were not true. The person was killed yes, but with another NW3 weapon as said ...
Some damage names are missing from the KillMessageOptions - for example, 'shot' for the WRE primary fire and there's nothing for the IRPR, though I assume the default death messages for those weapons are shown instead.
- Feralidragon
- Godlike
- Posts: 5493
- Joined: Wed Feb 27, 2008 6:24 pm
- Personal rank: Work In Progress
- Location: Liandri
Re: System Messages for NW3
Other than what was described above, you can edit the messages themselves through localization files.
These are the localization files for NW3: There you can find all the NW3 messages, including the ones you want.
It's only client-side though, if you plan to change the messages from a server perspective, so that every player sees your custom messages, it won't work.
As for the wrong messages appearing, I cannot say much unless I investigate the issue better, but in the final version of the mod I tried to track as best as possible which weapon was used to kill an enemy, because by default UT will associate with the currently held weapon by the player, when the enemy could have been killed by a mine instead for example.
So I built a custom manager in the mod which would provide he correct message based on the damage type.
In the case of the Graviton, I recall that NW3 also tracks if an enemy has been killed as a consequence of using this weapon, rather than looking at the damage type alone, so that killing someone using the beam through fall damage or sending them to a lava pit gets correctly credited to the player and the weapon involved. But I don't really remember well how I did this (I believe I attach something to the enemy when the beam is used, and make calculations from there), so it might indeed not be perfect.
These are the localization files for NW3: There you can find all the NW3 messages, including the ones you want.
It's only client-side though, if you plan to change the messages from a server perspective, so that every player sees your custom messages, it won't work.
As for the wrong messages appearing, I cannot say much unless I investigate the issue better, but in the final version of the mod I tried to track as best as possible which weapon was used to kill an enemy, because by default UT will associate with the currently held weapon by the player, when the enemy could have been killed by a mine instead for example.
So I built a custom manager in the mod which would provide he correct message based on the damage type.
In the case of the Graviton, I recall that NW3 also tracks if an enemy has been killed as a consequence of using this weapon, rather than looking at the damage type alone, so that killing someone using the beam through fall damage or sending them to a lava pit gets correctly credited to the player and the weapon involved. But I don't really remember well how I did this (I believe I attach something to the enemy when the beam is used, and make calculations from there), so it might indeed not be perfect.
Re: System Messages for NW3
This can happen with projectile weapons, because a projectile does not know from what weapon it was fired, it only knows the shooter (Instigator). The death message is assembled then by the weapon the shooter is currently holding. If he has changed the weapon while the projectile was flying, the message will be wrong.Aldebaran wrote:sometimes these messages "sb killed sb with weapon xy" were not true
<EDIT>Ups, Feralidragon already explained it above.</EDIT>
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett