From 8200e571ed3282da7c8d7b0711745159c88fb47b Mon Sep 17 00:00:00 2001 From: Andrew Borba Date: Mon, 28 Dec 2009 16:38:21 -0800 Subject: [PATCH] Fixed napalm extinguish feature. Untested, but read that it should work. --- src/zr/napalm.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/zr/napalm.inc b/src/zr/napalm.inc index 8648874..f45f1c9 100644 --- a/src/zr/napalm.inc +++ b/src/zr/napalm.inc @@ -83,8 +83,14 @@ NapalmOnTakeDamage(client, damagetype) if (NapalmGetClientWaterLevel(client) >= douse) { // 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. #if defined USE_SDKHOOKS return _:Plugin_Handled;