Skip to content

Instantly share code, notes, and snippets.

@Akaricchi
Created January 10, 2012 15:21
Show Gist options
  • Save Akaricchi/1589577 to your computer and use it in GitHub Desktop.
Save Akaricchi/1589577 to your computer and use it in GitHub Desktop.
diff --git a/qcsrc/server/g_handgrenades.qc b/qcsrc/server/g_handgrenades.qc
index c882c31..49e38d1 100644
--- a/qcsrc/server/g_handgrenades.qc
+++ b/qcsrc/server/g_handgrenades.qc
@@ -11,6 +11,7 @@ void HG_Napalm_Burn (float dt, float dist, float damage, float edgedamage, float
for(e = findradius(self.origin, dist); e; e = e.chain)
//if(e != self.owner) if(e.takedamage == DAMAGE_AIM) if(e.classname != "player" || !self.owner || IsDifferentTeam(e, self))
{
+ /*
p = e.origin;
p_x += e.mins_x + random() * (e.maxs_x - e.mins_x);
p_y += e.mins_y + random() * (e.maxs_y - e.mins_y);
@@ -18,6 +19,7 @@ void HG_Napalm_Burn (float dt, float dist, float damage, float edgedamage, float
d = vlen(self.origin - p);
if(d < dist)
{
+ */
traceline(p, self.origin, MOVE_NORMAL, e);
if(/* trace_startsolid || */ trace_fraction != 1)
continue;
@@ -25,7 +27,7 @@ void HG_Napalm_Burn (float dt, float dist, float damage, float edgedamage, float
d = vlen(self.origin - e.fireball_impactvec);
d = damage + (edgedamage - damage) * (d / dist);
Fire_AddDamage(e, self.owner, d * burntime, burntime, self.projectiledeathtype | HITTYPE_BOUNCE);
- }
+ //}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment