View Single Post
Author Message
little_froy
Senior Member
Join Date: May 2021
Old 06-15-2021 , 04:24   [L4D2] Call of Duty-like Breathing Healing
Reply With Quote #1

NEEDS left4dhooks
https://forums.alliedmods.net/showthread.php?t=321696


Remove all health buffer in game, such as pills, adrenaline, revived.Replace them to real health.
When not got hurt for a while, your health can automatic regeneration, and you will heard the heartbeat.


【sm_cvar】
// health by adrenaline
// -
// Default: "25"
// Minimum: "1.000000"
breath_adrenaline_health "25"

// how long regeneration again ?
// -
// Default: "1.0"
// Minimum: "0.300000"
breath_heal_between "1.0"

// enable breathing healing ?
// -
// Default: "1"
breath_heal_enable "1"

// health regen by breathing once
// -
// Default: "2"
// Minimum: "1.000000"
breath_heal_point "2"

// lower the health, you can breathing healing
// -
// Default: "40.0"
// Minimum: "10.000000"
// Maximum: "80.000000"
breath_max_health "40.0"

// health by pills
// -
// Default: "50"
// Minimum: "1.000000"
breath_pills_health "50"

// health by revived
// -
// Default: "30"
// Minimum: "1.000000"
breath_revive_health "30"

// how long after you not got hurt, then start breathing healing
// -
// Default: "5.0"
// Minimum: "0.300000"
breath_wait_time "5.0"



1.0.1update: improve hookevent of player incap

Last edited by sneaK; 06-16-2021 at 08:02. Reason: Restore to previous version.
little_froy is offline