Stop running when escape vehicle

This commit is contained in:
Jackz 2023-05-16 20:56:14 -05:00
parent 2015c1f507
commit 584fd758cc
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -44,8 +44,8 @@ public void OnPluginStart() {
HookEvent("tank_killed", Event_TankKilled);
}
public Action L4D2_OnChooseVictim(int attacker, int &curTarget) {
if(finaleStarted) return Plugin_Continue;
int class = GetEntProp(attacker, Prop_Send, "m_zombieClass");
if(class != TANK_CLASS_ID) return Plugin_Continue;