Example #1
0
 private void Respawn(Synapse.Api.Events.SynapseEventArguments.TeamRespawnEventArgs ev)
 {
     if (ev.Team == Respawning.SpawnableTeamType.ChaosInsurgency && UnityEngine.Random.Range(1f, 100f) <= PluginClass.Config.SpawnChance)
     {
         ev.TeamID = 7;
     }
 }
 private void Round_TeamRespawnEvent(Synapse.Api.Events.SynapseEventArguments.TeamRespawnEventArgs ev)
 {
     foreach (Player ply in ev.Players)
     {
         if (afk_players.Contains(ply))
         {
             ev.Players.Remove(ply);
         }
     }
 }