コード例 #1
0
 internal static void Postfix(GunItem __instance)
 {
     if (Weapon_Settings.Get().no_jam_delay)
     {
         GameManager.GetVpFPSCamera().CurrentShooter.NextAllowedReloadTime = Time.time;
     }
 }
コード例 #2
0
 internal static bool Prefix()
 {
     if (Weapon_Settings.Get().hide_ammo_hud)
     {
         InterfaceManager.m_Panel_HUD.m_EquipItemPopup.m_TimeToHideAmmo = Time.time;
         return(false);
     }
     return(true);
 }
コード例 #3
0
 internal static void Prefix(vp_FPSPlayer __instance)
 {
     if (__instance.FPSCamera.CurrentWeapon.ReloadInProgress() && Weapon_Settings.Get().cancel_reload)
     {
         __instance.FPSCamera.CurrentWeapon.m_BulletsToReload = 0;
     }
     if (Weapon_Settings.Get().no_fire_delay_after_reload)
     {
         __instance.FPSCamera.CurrentWeapon.m_GunItem.m_FireDelayAfterReload = 0;
     }
 }