Last updated
Last updated
In client.lua there is a table called "weapons". This list contains the options for each weapon/death reason. This is where the script goes when it decides for example whether or not the weapon can show headshots, noscopes etc.
Here is a list of all options available for weapon/death reasons. All of the following need to be boolean values. It will fall back to the default if it is not specified.
image; the image of the death reason (image must be a .png file). (default: none, must be specified!)
ignoreDeath; if true it will be ignored the death and not show it in the feed. (default: false)
canHeadshot; if true it can show headshots (default: true)
canDriveBy; if true, it can show the drive-by icon (default: false)
canNoScope; if true, it can show the no-scope icon (default: false)
showDist; if true, it shows the distance between the killer in meters or feet (see config file) (default: false)
canSelf; if true, then the victim can also be displayed as the killer. (default: true)
Adding custom death reasons is pretty easy. This can be used in combination with for example the OverwriteNextDeath function.
Example
canSelf in this example is used so it will show that you starved to death, rather than that you "killed yourself" with starvation.
You can also add custom weapons to the list.
Example