示例#1
0
 static void Postfix(ref PlayerControl __instance)
 {
     __instance.Data.IsImpostor = trueImpost;
     if (IsSheriff(__instance.PlayerId))
     {
         PlayerControl_FixedUpdate.SetSheriffKillTimer(__instance, CustomGameOptionsData.customGameOptions.sheriffKillCd.value);
     }
 }
示例#2
0
 static void Postfix()
 {
     if (DestroyableSingleton <TutorialManager> .InstanceExists || !ShipStatus.Instance.IsGameOverDueToDeath())
     {
         if (IsSheriff(PlayerControl.LocalPlayer.PlayerId) && !PlayerControl.LocalPlayer.Data.IsDead)
         {
             PlayerControl_FixedUpdate.SetSheriffKillTimer(PlayerControl.LocalPlayer,
                                                           CustomGameOptionsData.customGameOptions.sheriffKillCd.value);
         }
     }
 }
示例#3
0
 static void Postfix()
 {
     PlayerControl_FixedUpdate.SetSheriffKillTimer(PlayerControl.LocalPlayer,
                                                   10f); // FIXED: ability to kill on intro scene
 }