mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 22:53:21 +00:00
Remove ComputeGroups from gascans
This commit is contained in:
parent
455f99cdc4
commit
4e97e7a9fa
2 changed files with 11 additions and 18 deletions
Binary file not shown.
|
@ -296,32 +296,25 @@ bool ComputeGroups(GroupResult result, float activateFlow) {
|
|||
public Action L4D2_CGasCan_EventKilled(int gascan, int &inflictor, int &attacker) {
|
||||
if(hEnabled.IntValue > 0 && attacker > 0 && attacker <= MaxClients) {
|
||||
float activatorFlow = L4D2Direct_GetFlowDistance(attacker);
|
||||
GroupResult result;
|
||||
PrintToConsoleAll("[CC] Gascan Shot by %N", attacker);
|
||||
// GroupResult result;
|
||||
// ComputeGroups(result, activatorFlow);
|
||||
lastButtonPressTime = GetGameTime();
|
||||
return Plugin_Continue;
|
||||
|
||||
AdminId admin = GetUserAdmin(attacker);
|
||||
if(admin != INVALID_ADMIN_ID && admin.HasFlag(Admin_Custom1)) {
|
||||
lastButtonPressTime = GetGameTime();
|
||||
return Plugin_Continue;
|
||||
} else if(result.groupCount > 0 && result.ungroupedCount > 0) {
|
||||
lastButtonPressTime = GetGameTime();
|
||||
return Plugin_Continue;
|
||||
}
|
||||
// AdminId admin = GetUserAdmin(attacker);
|
||||
// if(admin != INVALID_ADMIN_ID && admin.HasFlag(Admin_Custom1)) {
|
||||
// lastButtonPressTime = GetGameTime();
|
||||
// return Plugin_Continue;
|
||||
// } else if(result.groupCount > 0 && result.ungroupedCount > 0) {
|
||||
// lastButtonPressTime = GetGameTime();
|
||||
// return Plugin_Continue;
|
||||
// }
|
||||
|
||||
if(panicStarted) {
|
||||
panicStarted = false;
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
|
||||
PrintToConsoleAll("[CC] Gascan Light by %N", attacker);
|
||||
if(hEnabled.IntValue == 2 || !IsActivationAllowed(activatorFlow, 1500.0)) {
|
||||
ClientCommand(attacker, "play ui/menu_invalid.wav");
|
||||
PrintToChat(attacker, "Please wait for players to catch up.");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
lastButtonPressTime = GetGameTime();
|
||||
}
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue