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>"
    }
}

安装说明

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.

互动趋势

加载中…

Prop Health 是一个 Counter-Strike 2 模组,属于 SourceMod 分类。它拥有 2 次下载、18 次浏览、0 次收藏和 1 个发布版本。 此条目属于 4 个标签。

评价

登录后即可发表评价。

加载中…

评论 (0)

登录后即可评论。

加载中…
Prop Health - Counter-Strike 2 - The Modding Community