mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 20:03:20 +00:00
Stop running when escape vehicle
This commit is contained in:
parent
2015c1f507
commit
584fd758cc
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -44,8 +44,8 @@ public void OnPluginStart() {
|
||||||
HookEvent("tank_killed", Event_TankKilled);
|
HookEvent("tank_killed", Event_TankKilled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Action L4D2_OnChooseVictim(int attacker, int &curTarget) {
|
public Action L4D2_OnChooseVictim(int attacker, int &curTarget) {
|
||||||
|
if(finaleStarted) return Plugin_Continue;
|
||||||
int class = GetEntProp(attacker, Prop_Send, "m_zombieClass");
|
int class = GetEntProp(attacker, Prop_Send, "m_zombieClass");
|
||||||
if(class != TANK_CLASS_ID) return Plugin_Continue;
|
if(class != TANK_CLASS_ID) return Plugin_Continue;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue