To make the fix mentioned in the thread you posted:
stripper:source
https://forums.alliedmods.net/showthread.php?t=39439
global_filters.cfg
Code:
insert:
{
"classname" "logic_timer"
"OnTimer" "player,SetHealth,1000,-1"
}
And to make what your plugin does:
This is untested, but probably does what your plugin does, but less costly (no SM overhead) and none of the error spam.
(Replaces all trigger_hurt with negative damage values to a trigger_multiple that full-heals.
0.5 is the rate that trigger_hurt damages. But it can be set faster with the wait keyvalue.
Code:
modify:
{
match:
{
"classname" "trigger_hurt"
"damage" "/^\-\d*(\.\d*)?$/"
}
insert:
{
"wait" "0.5"
"OnTrigger" "!activator,SetHealth,1000,0,-1 "
}
delete:
{
"damage" "/.*/"
"damagetype" "/.*/"
"damagemodel" "/.*/"
"damagecap" "/.*/"
"nodmgforce" "/.*/"
}
replace:
{
"classname" "trigger_multiple"
}
}
My motivation for doing this was that I already use con_filter for particles
;o
Sadly there is no AddHealth input. I dunno how to do such a thing with just map entities.
If that doesn't work, tell me and I'll try again.
__________________