Skip to content

Commit d65ec73

Browse files
authored
Fix hittable damage applied to common hits (#942)
* Update l4d2_hittable_control * Minor clear up fix * Fix hittable damage applied on other source
1 parent 79f2c11 commit d65ec73

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

71 Bytes
Binary file not shown.

addons/sourcemod/scripting/l4d2_hittable_control.sp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Plugin myinfo =
140140
{
141141
name = "L4D2 Hittable Control",
142142
author = "Stabby, Visor, Sir, Derpduck, Forgetest",
143-
version = "0.9",
143+
version = "0.9.1",
144144
description = "Allows for customisation of hittable damage values (and debugging)"
145145
};
146146

@@ -360,6 +360,14 @@ public void OnEntityCreated(int entity, const char[] classname)
360360
}
361361
}
362362

363+
public void OnEntityDestroyed(int entity)
364+
{
365+
if (entity > 0 && entity < MAX_EDICTS)
366+
{
367+
g_nPhysicsHitInfoEntry[entity] = -1;
368+
}
369+
}
370+
363371
void Physics_OnSpawnPost(int entity)
364372
{
365373
int parent = GetEntPropEnt(entity, Prop_Send, "m_hOwnerEntity");

0 commit comments

Comments
 (0)