示例#1
0
        public static void Postfix(Scp939 __instance, GameObject target)
        {
            Player player = Player.Get(target);

            if (player != null && API.IsSerpent(player) && !SerpentsHand.Singleton.Config.SerpentsHandModifiers.FriendlyFire)
            {
                player.ReferenceHub.playerEffectsController.DisableEffect <CustomPlayerEffects.Amnesia>();
            }
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Scp939Role"/> class.
 /// </summary>
 /// <param name="player">The encapsulated player.</param>
 /// <param name="scp939Type">The type of SCP-939.</param>
 internal Scp939Role(Player player, RoleType scp939Type)
 {
     Owner    = player;
     RoleType = scp939Type;
     script   = player.ReferenceHub.scpsController.CurrentScp as Scp939;
 }