l4d2_swarm: Swarm player a little after event is triggered

This commit is contained in:
Jackzie 2021-01-08 21:18:31 -06:00
parent 2119285bf1
commit 5dcd18ad2a
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View file

@ -267,5 +267,9 @@ void SwarmUser(int clientUserId, int range) {
public void Event_CarAlarm(Event event, const char[] name, bool dontBroadcast) {
int user = event.GetInt("userid");
CreateTimer(0.5, Timer_SwarmSingle, user);
}
public Action Timer_SwarmSingle(Handle hdl, int user) {
SwarmUser(user, hSwarmDefaultRange.IntValue);
}