Пример #1
0
 public static void InjurePlayer(BasePlayer ply)
 {
     if (ply == null || ply.IsDead())
     {
         return;
     }
     if (Server.woundingenabled && !ply.IsIncapacitated() && !ply.IsSleeping() && !ply.isMounted)
     {
         if (ply.IsCrawling())
         {
             ply.GoToIncapacitated(null);
         }
         else
         {
             ply.BecomeWounded();
         }
     }
     else
     {
         ply.ConsoleMessage("Can't go to wounded state right now.");
     }
 }