Description:
This plugin will start a heartbeat when a Human is below a given Health value.
This is the same thing from L4D2.
There is second plugin included where heartbeat is turned of automatically when players' health is stable again.
Requirements:
SourceMod 1.11+
Zombie:Reloaded
[ZR] Tools
Installation:
- Put all files from the release folder in your game root folder ("csgo", "cstrike", ...).
- Reload map.
If the plugin(s) are not working as intended, check your logs in addons/sourcemod/logs and report here.
If error logs are not available, report nevertheless.
Configuration:
This plugin, unlike plugins usually do, does not use any .cfg files and is purely configurable via playerclasses.txt.
This means you can change values per playerclass.
PHP Code:
"heartbeat" "1" // Is Heartbeat enabled for this class? (1: Enabled, 0: Disabled)
"heartbeat_health" "50" // When Player has this amount of health, heartbeat starts.
"heartbeat_speed" "250" // New speed the Player has when heartbeat started (300 = disabled).
"heartbeat_overlay" "overlays/zr/zvision" // overlay to use on heartbeat ("" = disabled).
"heartbeat_sound" "zr/heartbeatloop.wav" // sound to play on heartbeat ("" = disabled).
Add these values to
all Humans playerclasses you have, anywhere you want.
Put your file for the overlay in materials/overlays/zr and for the sound in sound/zr folder.
Don't forget to add them in zr/downloads.txt.
Changelog:
Code:
- v1.0
- v1.1- v1.2- "heartbeat_on" is now "heartbeat".