Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified addons/sourcemod/plugins/optional/l4d2_hittable_control.smx
Binary file not shown.
10 changes: 9 additions & 1 deletion addons/sourcemod/scripting/l4d2_hittable_control.sp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public Plugin myinfo =
{
name = "L4D2 Hittable Control",
author = "Stabby, Visor, Sir, Derpduck, Forgetest",
version = "0.9",
version = "0.9.1",
description = "Allows for customisation of hittable damage values (and debugging)"
};

Expand Down Expand Up @@ -360,6 +360,14 @@ public void OnEntityCreated(int entity, const char[] classname)
}
}

public void OnEntityDestroyed(int entity)
{
if (entity > 0 && entity < MAX_EDICTS)
{
g_nPhysicsHitInfoEntry[entity] = -1;
}
}

void Physics_OnSpawnPost(int entity)
{
int parent = GetEntPropEnt(entity, Prop_Send, "m_hOwnerEntity");
Expand Down
Loading