AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Digestion (1.2) (https://forums.alliedmods.net/showthread.php?t=122285)

Oshroth 03-25-2010 02:33

[L4D2] Digestion (1.2)
 
2 Attachment(s)
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.

quang20082008 03-25-2010 12:06

Re: [L4D2] Digestion 1.0
 
Cool Plugins , Work great ! Thanks.

Daewa 03-25-2010 16:34

Re: [L4D2] Digestion 1.0
 
Ahaha nice plugin name :D

Oshroth 03-25-2010 22:46

Re: [L4D2] Digestion 1.0
 
I actually got the idea from an online game called Urban Dead. One of the zombie skills is Digestion which heals you the amount of damage that you do to other players.
Although when I was testing it someone mentioned that it was like a Vampire mod.

Acecombat2 03-26-2010 07:40

Re: [L4D2] Digestion 1.0
 
err is this affected to tank also? :| if it does i will say ":grrr: Invincible Tank! F.T.W" << nvm that i saw a wrong word to comprehend "Infected means normal zombies"

sorry...

Oshroth 03-26-2010 12:29

Re: [L4D2] Digestion 1.0
 
Quote:

Originally Posted by Acecombat2 (Post 1129207)
err is this affected to tank also? :| if it does i will say ":grrr: Invincible Tank! F.T.W"

The health recovered from damage is fairly small compared to how much damage the survivors do to the tank at the same time.

The plugin is more for those infected that managed to get a survivor isolated where they can incap and kill them without getting shot at. The health they get should be enough to cover any damage that took getting the person in the first place.

The plugin has basically no limit on the max health for infected but to get any significant amount of health, you'll need to set the heal multiplier really high (I was messing around with a 50x heal modifier which gave the tank about 1000 HP for each punch).

Acecombat2 03-26-2010 12:34

Re: [L4D2] Digestion 1.0
 
ah i see..... now... Your plugin definitely has something spamming in console *1.3.0"i get the errors here tomorrow

Edit:
[SM] To access your backpack, type !pack in chat.
L 03/27/2010 - 06:31:57: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 03/27/2010 - 06:31:57: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 06:31:57: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 06:31:58: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 03/27/2010 - 06:31:58: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 06:31:58: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 06:31:58: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 03/27/2010 - 06:31:58: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 06:31:58: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 06:31:59: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 03/27/2010 - 06:31:59: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 06:31:59: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
[SM] Type !usepoints to use your item points.
T

Oshroth 03-26-2010 22:19

Re: [L4D2] Digestion 1.0
 
Quote:

Originally Posted by Acecombat2 (Post 1129419)
L 03/27/2010 - 06:31:57: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 03/27/2010 - 06:31:57: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 06:31:57: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()

Oops I try to get the client's health before I check if they are a real client(i.e. the error is caused because I'm checking the world entity's health, which is not a good thing to do)
Fixed it now.

Acecombat2 03-27-2010 07:25

Re: [L4D2] Digestion 1.0.5
 
Rolf? Still getting this
L 03/27/2010 - 19:25:25: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:25: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:25: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
Colonel Ace unpaused the game
Colonel Ace paused the game
L 03/27/2010 - 19:25:26: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:26: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:26: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 19:25:26: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:26: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:26: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
Colonel Ace unpaused the game
Colonel Ace unpaused the game
L 03/27/2010 - 19:25:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:29: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:29: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 19:25:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:29: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:29: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 19:25:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:29: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:29: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
Colonel Ace paused the game
L 03/27/2010 - 19:25:31: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:31: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:31: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 19:25:32: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:32: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:32: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
L 03/27/2010 - 19:25:33: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 03/27/2010 - 19:25:33: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 03/27/2010 - 19:25:33: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()

Oshroth 03-27-2010 11:50

Re: [L4D2] Digestion 1.0.5
 
I fixed that error and added a few checks to hopefully prevent other errors as well as adding new features.


All times are GMT -4. The time now is 12:36.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.