View Single Post
Author Message
Oshroth
Senior Member
Join Date: Dec 2009
Old 03-25-2010 , 02:33   [L4D2] Digestion (1.2)
Reply With Quote #1

About:
Digestion rewards infected for attacking survivors by giving them health back for damage dealt. Cvar to control how much health infected get back. Infected can become overhealed. Infected can get bonus health for killing/incapping survivors.

Cvars:
sm_digestion_version - Plugin Version

sm_digestion_hunter_heal - (default 0.5) Amount of damage converted to health. 0.1 is 10%, 0.5 is 50%, 1.0 is 100%, etc.
sm_digestion_hunter_healmaxhp - (default 3x normal max HP) Hunter max HP
sm_digestion_hunter_incap - (default 50% normal max HP) How much bonus health Hunters get for incapping a survivor.
sm_digestion_hunter_kill - (default 100% normal max HP) How much bonus health Hunters get for killing a survivor.
sm_digestion_hunter_enable - (default 1) Enable Hunter Digestion

sm_digestion_smoker_heal
sm_digestion_smoker_healmaxhp
sm_digestion_smoker_incap
sm_digestion_smoker_kill
sm_digestion_smoker_enable

sm_digestion_boomer_heal
sm_digestion_boomer_healmaxhp
sm_digestion_boomer_incap
sm_digestion_boomer_kill
sm_digestion_boomer_enable

sm_digestion_charger_heal
sm_digestion_charger_healmaxhp
sm_digestion_charger_incap
sm_digestion_charger_kill
sm_digestion_charger_enable

sm_digestion_tank_heal
sm_digestion_tank_healmaxhp
sm_digestion_tank_incap
sm_digestion_tank_kill
sm_digestion_tank_enable

sm_digestion_spitter_heal
sm_digestion_spitter_healmaxhp
sm_digestion_spitter_incap
sm_digestion_spitter_kill
sm_digestion_spitter_enable

sm_digestion_jockey_heal
sm_digestion_jockey_maxhphp
sm_digestion_jockey_incap
sm_digestion_jockey_kill
sm_digestion_jockey_enable


Changelog:
0.1 - 14 views
- Initial version
1.0 - 22 views
- Fixed out of bounds healing where a player get so much health they go to low health
1.0.5 - 9 views
- Fixed trying to get world entity's health
1.1 - 89 views
- Fixed other world entity bugs
- Added player checks
- Added Incap/Kill bonus health for infected
1.2
- Added individual cvars for all special infected
- Changed bonus hp chat messages to hint messages

To Do:
Currently taking feature requests

Install
Place l4d2_digestion.smx in sourcemod/plugins and delete plugin.l4d2_digestion.cfg in cfg/sourcemod.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_digestion.sp - 3502 views - 13.8 KB)
__________________

Last edited by Oshroth; 04-17-2010 at 10:10. Reason: Plugin Update
Oshroth is offline