Beispiel #1
0
 internal void OnChangingIntoGrenade(ChangingIntoGrenadeEventArgs ev)
 {
     if (IsLobby)
     {
         ev.IsAllowed = false;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Called before the server changes a <see cref="Pickup"/> into a <see cref="Grenade"/> when hit by an explosion.
 /// </summary>
 /// <param name="ev">The <see cref="ChangingIntoGrenadeEventArgs"/> instance.</param>
 public static void OnChangingIntoGrenade(ChangingIntoGrenadeEventArgs ev) => ChangingIntoGrenade.InvokeSafely(ev);