Prop Health

Prop Health

MIT

A SourceMod plugin that gives any prop that uses `prop_physics` a health bar. Primarily for Zombie Escape, Mod, and Hunting servers in Counter-Strike.

Demo

A video I made in 2015 demonstrating the plugin's use cases.

A SourceMod plugin that gives any prop using prop_physics a healthbar. This should work for any Source Engine game, but was only tested on CS:GO.

Configuration

Here is the plugin's configuration.

General ConVars (cfg/sourcemod/plugin.prop-health.cfg)

Name Default Value Description
sm_ph_version <VERSION> The plugin's version.
sm_ph_config_path configs/prophealth.props.cfg The path to the Prop Health override config.
sm_ph_default_health -1 A prop's default health if not defined in the config file. -1 = Doesn't break.
sm_ph_default_multiplier 325.00 Default multiplier based on the player count (for zombies/humans). Default: 65 * 5 (65 damage by right-click knife with 5 hits)
sm_ph_color 255 0 0 255 If a prop has a color, set it to this color. -1 = no color. Uses RGBA.
sm_ph_team 2 What team are allowed to destroy props? 0 = no restriction, 1 = humans, 2 = zombies.
sm_ph_print 1 Print the prop's health when damaged to the attacker's chat?
sm_ph_print_type 1 The print type (if "sm_ph_print" is set to 1). 1 = PrintToChat, 2 = PrintCenterText, 3 = PrintHintText.
sm_ph_print_message {darkred}[PH]{default}Prop Health: {lightgreen}%i The message to send to the client. Multicolors supported only for PrintToChat. %i = health value.
sm_ph_debug 0 Enable debugging (logging will go to logs/prophealth-debug.log).

Prop Overrides

You can specify overrides in the SourceMod directory (path being the value of sm_ph_config_path, which is defaulted to configs/prophealth.props.cfg).

"Props"
{
    "<model_path>"
    {
        "health": "<health float>",
        "multiplier", "<health multiplier>"
    }
}

Installation

Requirements For Compile

Building & Installing

  1. Compile plugin with spcomp(64) or compile executable within SourceMod's scripting/ directory.
  2. Copy auto_cmd_on_update.smx file into sourcemod/plugins directory.
  3. Copy translations/acou.phrases.txt file into sourcemod/ directory.

Engagement Over Time

Loading…

Prop Health is a mod for Counter-Strike 2 in the Zombie Escape category. It has 0 downloads, 2 views, 0 favorites, and 1 release. This item belongs to 4 tags.

Reviews

Log in to leave a review.

Loading...

Comments (0)

Log in to comment.

Loading...
Prop Health - Counter-Strike 2