mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 21:03:20 +00:00
l4d2_swarm: Swarm player a little after event is triggered
This commit is contained in:
parent
2119285bf1
commit
5dcd18ad2a
2 changed files with 4 additions and 0 deletions
Binary file not shown.
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue