Description:
When a survivor dies, a grave appears near his body, and this grave glows through the objects on the map,
allowing a quick location from where the survivor died.
And when the survivor respawn, the grave associated with him disappears.
In addition, there are six types of grave that are chosen randomly.
Maybe can be useful for use with a defibrillator (L4D2), or even for those who use the "Emergency Treatment With First Aid Kit Revive And CPR" (L4D) plugin, for example.
Screenshots:
CVARs:
PHP Code:
// Enable or disable this plugin.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_graves_enable "1"
// Turn glow On or Off.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_graves_glow "1"
// RGB Color - Change the render color of the glow. Values between 0-255.
// Note: Only for Left 4 Dead 2.
// -
// Default: "255 255 255"
l4d_graves_glowcolor "255 255 255"
// Number of points of damage to take before breaking. For Left 4 Dead 2, 0 means don't break.
// -
// Default: "1500"
l4d_graves_health "1500"
// [L4D & L4D2] Graves version
// -
// Default: "1.1.1"
l4d_graves_version "1.1.1"
// How long will it take for the grave to spawn.
// -
// Default: "5.0"
// Minimum: "1.000000"
l4d_graves_delay "5.0"
// Enables or disables the solidity of the grave.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_graves_not_solid "0"
CHANGELOG:
2018-12-27 (v1.1.1)
- Added the l4d_graves_delay CVAR that determines how long it will take for the grave to spawn. This delay is necessary to avoid cases, for example, where a Tank has just killed a survivor and the grave appears instantly, and Tank immediately breaks the grave.
- Added the l4d_graves_not_solid CVAR that allows you to turn grave solidity on or off. The reason is that some players have said that they sometimes get stuck on the grave when it spawns. In such cases, the admin may prefer to disable solidity.
- Fixed client index issue when calling GetClientTeam function.
2018-12-27 (v1.0.1)
- Function RemoveEntity has been replaced by function AcceptEntityInput, passing the "Kill" parameter, so that it work with the online compiler.
2018-12-26 (v1.0.0)
############################
This plugin is also based on the Tuty plugin (CSS Graves), which can be found here:
https://forums.alliedmods.net/showthread.php?p=867275
But I rewrote all the code to run on Left 4 Dead 1 & 2.
This code can be found on my github page here:
https://github.com/samuelviveiros/l4d_graves
Do not forget to update the CFG file with the new CVARs.
For Left 4 Dead, the file is located in
left4dead/cfg/sourcemod/l4d_graves.cfg.
And for Left 4 Dead 2, the file is located in
left4dead2/cfg/sourcemod/l4d_graves.cfg.
Have fun!