keep taking damage by hunter/jockey/charger/smoker attacker or be incapacitated, you can self escape from the skill and instantly kill the special infected.
Cvars
PHP Code:
// keep take damage over than this value, self escape
// -
// Default: "60"
// Minimum: "1.000000"
self_escape_damage "60"
// 1 = enable, 0 = disable. ignite si before kill?
// -
// Default: "1"
self_escape_ignite "1"
Forwards
Spoiler
PHP Code:
/**
* @brief Called when cleared special infected health to 1 before instantly kill it
*
* @param client client index
* @param healthBefore how many health does the si have before clear
* @param amout how many health cleared
* @param owner survivor index who cause the health clear
*
* @noreturn
*/
forward void SelfEscape_OnClearedSpecialInfectedHealth(int client, int healthBefore, int amout, int owner);
Change log
Spoiler
Code:
1.5 (2024-04-18:
-prevent client not in game error.
1.4 (2024-04-18:
-fix missing check of is the survivor alive.
1.3 (2024-04-16:
-add check for is the special infected alive.
1.2 (2024-04-15:
-minor improve of code.
1.1 (2024-04-15:
-for charger, only count pummel damage in.
1.0 (2024-04-15:
-init public release.