1. Correct L4D1 signature for "CTerrorPlayer::OnVomitedUpon" should be:
Also, I think missing check for L4D1 game in SetEntProp of the glow.
2. I noticed sm_vomit is conflicting with unvomit, because green on-screen effect is not appearing, so I guess "SDKCall(g_hSDKUnVomit ... " in Event_IsIt event should be delayed or disabled once for that client if sm_vomit called.
3. Suggestion on improvements:
This plugin is completely remove on-screen green vomit effect, but I want just decrease effect duration e.g. down to 1-2 sec.
I tried such cvars:
sb_vomit_blind_time (set to 1) : 5 : , "sv", "cheat" : How long Boomer vomit/explosion gore blinds us
z_vomit_fade_duration (set to 1) : 5 : , "cheat", "rep", "cl" : How long the fade takes
z_vomit_fade_start (set to 1) : 5 : , "cheat", "rep", "cl" : When the vomit starts to fade away
but without luck here in L4D1.
Maybe you know other cvars? Or you can add Cvar to delay calling "SDKCall(g_hSDKUnVomit ... " in Event_IsIt.
Still, not sure why, when I delay SDKCall on 1.0 sec., effect dissapeared after 1.0 sec, but when I explode second boomer just right after it, on-screen effect is not appearing at all for some time.
Actually, it is good for me. Just share my observations.