Merge
This commit is contained in:
commit
10fb3829c9
@ -83,8 +83,14 @@ NapalmOnTakeDamage(client, damagetype)
|
|||||||
if (NapalmGetClientWaterLevel(client) >= douse)
|
if (NapalmGetClientWaterLevel(client) >= douse)
|
||||||
{
|
{
|
||||||
// Put the fire out.
|
// Put the fire out.
|
||||||
ExtinguishEntity(client);
|
|
||||||
|
|
||||||
|
//ExtinguishEntity(client); <-- Don't use this. Takes off the FL_ONFIRE flag, but flame doesn't get extinguished.
|
||||||
|
|
||||||
|
// This works.
|
||||||
|
new ent = GetEntPropEnt(client, Prop_Data, "m_hEffectEntity");
|
||||||
|
if (IsValidEdict(ent))
|
||||||
|
SetEntPropFloat(ent, Prop_Data, "m_flLifetime", 0.0);
|
||||||
|
|
||||||
// Stop the last bit of inflicted burn damage.
|
// Stop the last bit of inflicted burn damage.
|
||||||
#if defined USE_SDKHOOKS
|
#if defined USE_SDKHOOKS
|
||||||
return _:Plugin_Handled;
|
return _:Plugin_Handled;
|
||||||
|
Loading…
Reference in New Issue
Block a user