using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using Receiver2;
using Receiver2ModdingKit;
using Receiver2ModdingKit.CustomRounds;
using Receiver2ModdingKit.Helpers;
using UnityEngine;
using UnityEngine.Events;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
namespace PlusPRound;
public class PlusPAssets : MonoBehaviour, ISerializationCallbackReceiver
{
public ModHelpEntry plus_p_rounds_entry;
public ModHelpEntry competition_rounds_entry;
public Texture2D srab_tex;
public Texture2D srab_comp_tex;
public TapeContent plus_p_tape;
public TapeContent fbi_load_tape;
public TapeContent bear_load_tape;
[SerializeField]
[HideInInspector]
private string _help_entry_name;
[SerializeField]
[HideInInspector]
private Sprite _help_entry_info_sprite;
[SerializeField]
[HideInInspector]
private string _help_entry_title;
[SerializeField]
[HideInInspector]
private string _help_entry_description;
[SerializeField]
[HideInInspector]
private string _competition_help_entry_name;
[SerializeField]
[HideInInspector]
private Sprite _competition_help_entry_info_sprite;
[SerializeField]
[HideInInspector]
private string _competition_help_entry_title;
[SerializeField]
[HideInInspector]
private string _competition_help_entry_description;
public Texture2D _9mm_plus_p_tex;
public Texture2D _9mm_casing_plus_p_tex;
public Texture2D _9mm_tracer_plus_p_tex;
public CustomRoundDefinition _9mm_plus_p_round_def;
public CustomRoundDefinition _38_special_plus_p_round_def;
[SerializeField]
[HideInInspector]
private float _9mm_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _9mm_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _9mm_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _9mm_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _9mm_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _9mm_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _9mm_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _9mm_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _9mm_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _9mm_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _9mm_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _9mm_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _9mm_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _9mm_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _9mm_cartridge;
[SerializeField]
[HideInInspector]
private string _9mm_clean_name;
[SerializeField]
[HideInInspector]
private float _38_special_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _38_special_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _38_special_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _38_special_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _38_special_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _38_special_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _38_special_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _38_special_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _38_special_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _38_special_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _38_special_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _38_special_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _38_special_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _38_special_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _38_special_cartridge;
[SerializeField]
[HideInInspector]
private string _38_special_clean_name;
public Texture2D _45_acp_plus_p_tex;
public Texture2D _45_acp_case_plus_p_tex;
public Texture2D _45_acp_tracer_plus_p_tex;
public Texture2D _45_lc_plus_p_tex;
public Texture2D _45_lc_case_plus_p_tex;
public CustomRoundDefinition _45_acp_plus_p_round_def;
public CustomRoundDefinition _45_lc_plus_p_round_def;
public CustomRoundDefinition _50_ae_plus_p_round_def;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _45_acp_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _45_acp_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _45_acp_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _45_acp_cartridge;
[SerializeField]
[HideInInspector]
private string _45_acp_clean_name;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _45_lc_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _45_lc_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _45_lc_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _45_lc_cartridge;
[SerializeField]
[HideInInspector]
private string _45_lc_clean_name;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _50_ae_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _50_ae_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _50_ae_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _50_ae_cartridge;
[SerializeField]
[HideInInspector]
private string _50_ae_clean_name;
public CustomRoundDefinition _9mm_competition_round_def;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _9mm_comp_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _9mm_comp_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _9mm_comp_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _9mm_comp_cartridge;
[SerializeField]
[HideInInspector]
private string _9mm_comp_clean_name;
public Texture2D _9mm_comp_tex;
public Texture2D _9mm_comp_tracer_tex;
public Texture2D _9mm_comp_case_tex;
public CustomRoundDefinition _45_acp_competition_round_def;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _45_acp_comp_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _45_acp_comp_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _45_acp_comp_cartridge;
[SerializeField]
[HideInInspector]
private string _45_acp_comp_clean_name;
public Texture2D _45_acp_comp_tex;
public Texture2D _45_acp_comp_tracer_tex;
public Texture2D _45_acp_comp_case_tex;
public CustomRoundDefinition _50_ae_competition_round_def;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_rotation_x;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_rotation_y;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_recoil_x;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_recoil_y;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_stovepipe_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_doublefeed_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_ftf_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_wrongly_seated_mag_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_out_of_battery_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_slamfire_chance;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_slide_fire_speed;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_extra_wedged_amount;
[SerializeField]
[HideInInspector]
private float _50_ae_comp_spawn_chance;
[SerializeField]
[HideInInspector]
private Preset _50_ae_comp_baseVariant;
[SerializeField]
[HideInInspector]
private Preset _50_ae_comp_cartridge;
[SerializeField]
[HideInInspector]
private string _50_ae_comp_clean_name;
public void OnAfterDeserialize()
{
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_003a: Unknown result type (might be due to invalid IL or missing references)
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Expected O, but got Unknown
//IL_005a: Unknown result type (might be due to invalid IL or missing references)
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_006b: Unknown result type (might be due to invalid IL or missing references)
//IL_0077: Unknown result type (might be due to invalid IL or missing references)
//IL_0083: Unknown result type (might be due to invalid IL or missing references)
//IL_0085: Unknown result type (might be due to invalid IL or missing references)
//IL_008a: Unknown result type (might be due to invalid IL or missing references)
//IL_0096: Expected O, but got Unknown
//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d7: Unknown result type (might be due to invalid IL or missing references)
//IL_00e3: Unknown result type (might be due to invalid IL or missing references)
//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
//IL_0107: Unknown result type (might be due to invalid IL or missing references)
//IL_0113: Unknown result type (might be due to invalid IL or missing references)
//IL_011f: Unknown result type (might be due to invalid IL or missing references)
//IL_012b: Unknown result type (might be due to invalid IL or missing references)
//IL_0137: Unknown result type (might be due to invalid IL or missing references)
//IL_0143: Unknown result type (might be due to invalid IL or missing references)
//IL_0145: Unknown result type (might be due to invalid IL or missing references)
//IL_014a: Unknown result type (might be due to invalid IL or missing references)
//IL_014f: Unknown result type (might be due to invalid IL or missing references)
//IL_0151: Unknown result type (might be due to invalid IL or missing references)
//IL_0156: Unknown result type (might be due to invalid IL or missing references)
//IL_015b: Unknown result type (might be due to invalid IL or missing references)
//IL_0167: Unknown result type (might be due to invalid IL or missing references)
//IL_0178: Expected O, but got Unknown
//IL_0184: Unknown result type (might be due to invalid IL or missing references)
//IL_0189: Unknown result type (might be due to invalid IL or missing references)
//IL_0195: Unknown result type (might be due to invalid IL or missing references)
//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
//IL_01ad: Unknown result type (might be due to invalid IL or missing references)
//IL_01b9: Unknown result type (might be due to invalid IL or missing references)
//IL_01c5: Unknown result type (might be due to invalid IL or missing references)
//IL_01d1: Unknown result type (might be due to invalid IL or missing references)
//IL_01dd: Unknown result type (might be due to invalid IL or missing references)
//IL_01e9: Unknown result type (might be due to invalid IL or missing references)
//IL_01f5: Unknown result type (might be due to invalid IL or missing references)
//IL_0201: Unknown result type (might be due to invalid IL or missing references)
//IL_020d: Unknown result type (might be due to invalid IL or missing references)
//IL_0219: Unknown result type (might be due to invalid IL or missing references)
//IL_0225: Unknown result type (might be due to invalid IL or missing references)
//IL_0227: Unknown result type (might be due to invalid IL or missing references)
//IL_022c: Unknown result type (might be due to invalid IL or missing references)
//IL_0231: Unknown result type (might be due to invalid IL or missing references)
//IL_0233: Unknown result type (might be due to invalid IL or missing references)
//IL_0238: Unknown result type (might be due to invalid IL or missing references)
//IL_023d: Unknown result type (might be due to invalid IL or missing references)
//IL_0249: Unknown result type (might be due to invalid IL or missing references)
//IL_025a: Expected O, but got Unknown
//IL_0266: Unknown result type (might be due to invalid IL or missing references)
//IL_026b: Unknown result type (might be due to invalid IL or missing references)
//IL_0277: Unknown result type (might be due to invalid IL or missing references)
//IL_0283: Unknown result type (might be due to invalid IL or missing references)
//IL_028f: Unknown result type (might be due to invalid IL or missing references)
//IL_029b: Unknown result type (might be due to invalid IL or missing references)
//IL_02a7: Unknown result type (might be due to invalid IL or missing references)
//IL_02b3: Unknown result type (might be due to invalid IL or missing references)
//IL_02bf: Unknown result type (might be due to invalid IL or missing references)
//IL_02cb: Unknown result type (might be due to invalid IL or missing references)
//IL_02d7: Unknown result type (might be due to invalid IL or missing references)
//IL_02e3: Unknown result type (might be due to invalid IL or missing references)
//IL_02ef: Unknown result type (might be due to invalid IL or missing references)
//IL_02fb: Unknown result type (might be due to invalid IL or missing references)
//IL_0307: Unknown result type (might be due to invalid IL or missing references)
//IL_0309: Unknown result type (might be due to invalid IL or missing references)
//IL_030e: Unknown result type (might be due to invalid IL or missing references)
//IL_0313: Unknown result type (might be due to invalid IL or missing references)
//IL_0315: Unknown result type (might be due to invalid IL or missing references)
//IL_031a: Unknown result type (might be due to invalid IL or missing references)
//IL_031f: Unknown result type (might be due to invalid IL or missing references)
//IL_032b: Unknown result type (might be due to invalid IL or missing references)
//IL_033c: Expected O, but got Unknown
//IL_0348: Unknown result type (might be due to invalid IL or missing references)
//IL_034d: Unknown result type (might be due to invalid IL or missing references)
//IL_0359: Unknown result type (might be due to invalid IL or missing references)
//IL_0365: Unknown result type (might be due to invalid IL or missing references)
//IL_0371: Unknown result type (might be due to invalid IL or missing references)
//IL_037d: Unknown result type (might be due to invalid IL or missing references)
//IL_0389: Unknown result type (might be due to invalid IL or missing references)
//IL_0395: Unknown result type (might be due to invalid IL or missing references)
//IL_03a1: Unknown result type (might be due to invalid IL or missing references)
//IL_03ad: Unknown result type (might be due to invalid IL or missing references)
//IL_03b9: Unknown result type (might be due to invalid IL or missing references)
//IL_03c5: Unknown result type (might be due to invalid IL or missing references)
//IL_03d1: Unknown result type (might be due to invalid IL or missing references)
//IL_03dd: Unknown result type (might be due to invalid IL or missing references)
//IL_03e9: Unknown result type (might be due to invalid IL or missing references)
//IL_03eb: Unknown result type (might be due to invalid IL or missing references)
//IL_03f0: Unknown result type (might be due to invalid IL or missing references)
//IL_03f5: Unknown result type (might be due to invalid IL or missing references)
//IL_03f7: Unknown result type (might be due to invalid IL or missing references)
//IL_03fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0401: Unknown result type (might be due to invalid IL or missing references)
//IL_040d: Unknown result type (might be due to invalid IL or missing references)
//IL_041e: Expected O, but got Unknown
//IL_042a: Unknown result type (might be due to invalid IL or missing references)
//IL_042f: Unknown result type (might be due to invalid IL or missing references)
//IL_043b: Unknown result type (might be due to invalid IL or missing references)
//IL_0447: Unknown result type (might be due to invalid IL or missing references)
//IL_0453: Unknown result type (might be due to invalid IL or missing references)
//IL_045f: Unknown result type (might be due to invalid IL or missing references)
//IL_046b: Unknown result type (might be due to invalid IL or missing references)
//IL_0477: Unknown result type (might be due to invalid IL or missing references)
//IL_0483: Unknown result type (might be due to invalid IL or missing references)
//IL_048f: Unknown result type (might be due to invalid IL or missing references)
//IL_049b: Unknown result type (might be due to invalid IL or missing references)
//IL_04a7: Unknown result type (might be due to invalid IL or missing references)
//IL_04b3: Unknown result type (might be due to invalid IL or missing references)
//IL_04bf: Unknown result type (might be due to invalid IL or missing references)
//IL_04cb: Unknown result type (might be due to invalid IL or missing references)
//IL_04cd: Unknown result type (might be due to invalid IL or missing references)
//IL_04d2: Unknown result type (might be due to invalid IL or missing references)
//IL_04d7: Unknown result type (might be due to invalid IL or missing references)
//IL_04d9: Unknown result type (might be due to invalid IL or missing references)
//IL_04de: Unknown result type (might be due to invalid IL or missing references)
//IL_04e3: Unknown result type (might be due to invalid IL or missing references)
//IL_04ef: Unknown result type (might be due to invalid IL or missing references)
//IL_0500: Expected O, but got Unknown
//IL_050c: Unknown result type (might be due to invalid IL or missing references)
//IL_0511: Unknown result type (might be due to invalid IL or missing references)
//IL_051d: Unknown result type (might be due to invalid IL or missing references)
//IL_0529: Unknown result type (might be due to invalid IL or missing references)
//IL_0535: Unknown result type (might be due to invalid IL or missing references)
//IL_0541: Unknown result type (might be due to invalid IL or missing references)
//IL_054d: Unknown result type (might be due to invalid IL or missing references)
//IL_0559: Unknown result type (might be due to invalid IL or missing references)
//IL_0565: Unknown result type (might be due to invalid IL or missing references)
//IL_0571: Unknown result type (might be due to invalid IL or missing references)
//IL_057d: Unknown result type (might be due to invalid IL or missing references)
//IL_0589: Unknown result type (might be due to invalid IL or missing references)
//IL_0595: Unknown result type (might be due to invalid IL or missing references)
//IL_05a1: Unknown result type (might be due to invalid IL or missing references)
//IL_05ad: Unknown result type (might be due to invalid IL or missing references)
//IL_05af: Unknown result type (might be due to invalid IL or missing references)
//IL_05b4: Unknown result type (might be due to invalid IL or missing references)
//IL_05b9: Unknown result type (might be due to invalid IL or missing references)
//IL_05bb: Unknown result type (might be due to invalid IL or missing references)
//IL_05c0: Unknown result type (might be due to invalid IL or missing references)
//IL_05c5: Unknown result type (might be due to invalid IL or missing references)
//IL_05d1: Unknown result type (might be due to invalid IL or missing references)
//IL_05e3: Unknown result type (might be due to invalid IL or missing references)
//IL_05f4: Expected O, but got Unknown
//IL_0600: Unknown result type (might be due to invalid IL or missing references)
//IL_0605: Unknown result type (might be due to invalid IL or missing references)
//IL_0611: Unknown result type (might be due to invalid IL or missing references)
//IL_061d: Unknown result type (might be due to invalid IL or missing references)
//IL_0629: Unknown result type (might be due to invalid IL or missing references)
//IL_0635: Unknown result type (might be due to invalid IL or missing references)
//IL_0641: Unknown result type (might be due to invalid IL or missing references)
//IL_064d: Unknown result type (might be due to invalid IL or missing references)
//IL_0659: Unknown result type (might be due to invalid IL or missing references)
//IL_0665: Unknown result type (might be due to invalid IL or missing references)
//IL_0671: Unknown result type (might be due to invalid IL or missing references)
//IL_067d: Unknown result type (might be due to invalid IL or missing references)
//IL_0689: Unknown result type (might be due to invalid IL or missing references)
//IL_0695: Unknown result type (might be due to invalid IL or missing references)
//IL_06a1: Unknown result type (might be due to invalid IL or missing references)
//IL_06a3: Unknown result type (might be due to invalid IL or missing references)
//IL_06a8: Unknown result type (might be due to invalid IL or missing references)
//IL_06ad: Unknown result type (might be due to invalid IL or missing references)
//IL_06af: Unknown result type (might be due to invalid IL or missing references)
//IL_06b4: Unknown result type (might be due to invalid IL or missing references)
//IL_06b9: Unknown result type (might be due to invalid IL or missing references)
//IL_06c5: Unknown result type (might be due to invalid IL or missing references)
//IL_06d6: Expected O, but got Unknown
//IL_06e2: Unknown result type (might be due to invalid IL or missing references)
//IL_06e7: Unknown result type (might be due to invalid IL or missing references)
//IL_06f3: Unknown result type (might be due to invalid IL or missing references)
//IL_06ff: Unknown result type (might be due to invalid IL or missing references)
//IL_070b: Unknown result type (might be due to invalid IL or missing references)
//IL_0717: Unknown result type (might be due to invalid IL or missing references)
//IL_0723: Unknown result type (might be due to invalid IL or missing references)
//IL_072f: Unknown result type (might be due to invalid IL or missing references)
//IL_073b: Unknown result type (might be due to invalid IL or missing references)
//IL_0747: Unknown result type (might be due to invalid IL or missing references)
//IL_0753: Unknown result type (might be due to invalid IL or missing references)
//IL_075f: Unknown result type (might be due to invalid IL or missing references)
//IL_076b: Unknown result type (might be due to invalid IL or missing references)
//IL_0777: Unknown result type (might be due to invalid IL or missing references)
//IL_0783: Unknown result type (might be due to invalid IL or missing references)
//IL_0785: Unknown result type (might be due to invalid IL or missing references)
//IL_078a: Unknown result type (might be due to invalid IL or missing references)
//IL_078f: Unknown result type (might be due to invalid IL or missing references)
//IL_0791: Unknown result type (might be due to invalid IL or missing references)
//IL_0796: Unknown result type (might be due to invalid IL or missing references)
//IL_079b: Unknown result type (might be due to invalid IL or missing references)
//IL_07a7: Unknown result type (might be due to invalid IL or missing references)
//IL_07b8: Expected O, but got Unknown
if (plus_p_rounds_entry == null)
{
plus_p_rounds_entry = new ModHelpEntry(_help_entry_name)
{
title = _help_entry_title,
description = _help_entry_description,
info_sprite = _help_entry_info_sprite,
menu_entry_category = (MenuEntryCategories)4,
locked_default = true
};
}
if (competition_rounds_entry == null)
{
competition_rounds_entry = new ModHelpEntry(_competition_help_entry_name)
{
title = _competition_help_entry_title,
description = _competition_help_entry_description,
info_sprite = _competition_help_entry_info_sprite,
menu_entry_category = (MenuEntryCategories)4,
locked_default = true
};
}
if (_9mm_plus_p_round_def == null)
{
_9mm_plus_p_round_def = new CustomRoundDefinition
{
extra_rotation_x = _9mm_extra_rotation_x,
extra_rotation_y = _9mm_extra_rotation_y,
extra_recoil_x = _9mm_extra_recoil_x,
extra_recoil_y = _9mm_extra_recoil_y,
extra_stovepipe_chance = _9mm_extra_stovepipe_chance,
extra_doublefeed_chance = _9mm_extra_doublefeed_chance,
extra_ftf_chance = _9mm_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _9mm_extra_wrongly_seated_mag_chance,
extra_slide_fire_speed = _9mm_extra_slide_fire_speed,
extra_out_of_battery_chance = _9mm_extra_out_of_battery_chance,
extra_slamfire_chance = _9mm_extra_slamfire_chance,
extra_wedged_amount = _9mm_extra_wedged_amount,
spawn_chance = _9mm_spawn_chance,
baseVariant = _9mm_baseVariant,
cartridge = _9mm_cartridge,
clean_name = _9mm_clean_name,
shootingRangeAmmoBoxTexture = srab_tex
};
}
if (_9mm_competition_round_def == null)
{
_9mm_competition_round_def = new CustomRoundDefinition
{
extra_rotation_x = _9mm_comp_extra_rotation_x,
extra_rotation_y = _9mm_comp_extra_rotation_y,
extra_recoil_x = _9mm_comp_extra_recoil_x,
extra_recoil_y = _9mm_comp_extra_recoil_y,
extra_stovepipe_chance = _9mm_comp_extra_stovepipe_chance,
extra_doublefeed_chance = _9mm_comp_extra_doublefeed_chance,
extra_ftf_chance = _9mm_comp_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _9mm_comp_extra_wrongly_seated_mag_chance,
extra_slide_fire_speed = _9mm_comp_extra_slide_fire_speed,
extra_out_of_battery_chance = _9mm_comp_extra_out_of_battery_chance,
extra_slamfire_chance = _9mm_comp_extra_slamfire_chance,
extra_wedged_amount = _9mm_comp_extra_wedged_amount,
spawn_chance = _9mm_comp_spawn_chance,
baseVariant = _9mm_comp_baseVariant,
cartridge = _9mm_comp_cartridge,
clean_name = _9mm_comp_clean_name,
shootingRangeAmmoBoxTexture = srab_comp_tex
};
}
if (_38_special_plus_p_round_def == null)
{
_38_special_plus_p_round_def = new CustomRoundDefinition
{
extra_rotation_x = _38_special_extra_rotation_x,
extra_rotation_y = _38_special_extra_rotation_y,
extra_recoil_x = _38_special_extra_recoil_x,
extra_recoil_y = _38_special_extra_recoil_y,
extra_stovepipe_chance = _38_special_extra_stovepipe_chance,
extra_doublefeed_chance = _38_special_extra_doublefeed_chance,
extra_ftf_chance = _38_special_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _38_special_extra_wrongly_seated_mag_chance,
extra_out_of_battery_chance = _38_special_extra_out_of_battery_chance,
extra_slamfire_chance = _38_special_extra_slamfire_chance,
extra_slide_fire_speed = _38_special_extra_slide_fire_speed,
extra_wedged_amount = _38_special_extra_wedged_amount,
spawn_chance = _38_special_spawn_chance,
baseVariant = _38_special_baseVariant,
cartridge = _38_special_cartridge,
clean_name = _38_special_clean_name,
shootingRangeAmmoBoxTexture = srab_tex
};
}
if (_45_acp_plus_p_round_def == null)
{
_45_acp_plus_p_round_def = new CustomRoundDefinition
{
extra_rotation_x = _45_acp_extra_rotation_x,
extra_rotation_y = _45_acp_extra_rotation_y,
extra_recoil_x = _45_acp_extra_recoil_x,
extra_recoil_y = _45_acp_extra_recoil_y,
extra_stovepipe_chance = _45_acp_extra_stovepipe_chance,
extra_doublefeed_chance = _45_acp_extra_doublefeed_chance,
extra_ftf_chance = _45_acp_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _45_acp_extra_wrongly_seated_mag_chance,
extra_out_of_battery_chance = _45_acp_extra_out_of_battery_chance,
extra_slamfire_chance = _45_acp_extra_slamfire_chance,
extra_slide_fire_speed = _45_acp_extra_slide_fire_speed,
extra_wedged_amount = _45_acp_extra_wedged_amount,
spawn_chance = _45_acp_spawn_chance,
baseVariant = _45_acp_baseVariant,
cartridge = _45_acp_cartridge,
clean_name = _45_acp_clean_name,
shootingRangeAmmoBoxTexture = srab_tex
};
}
if (_45_acp_competition_round_def == null)
{
_45_acp_competition_round_def = new CustomRoundDefinition
{
extra_rotation_x = _45_acp_comp_extra_rotation_x,
extra_rotation_y = _45_acp_comp_extra_rotation_y,
extra_recoil_x = _45_acp_comp_extra_recoil_x,
extra_recoil_y = _45_acp_comp_extra_recoil_y,
extra_stovepipe_chance = _45_acp_comp_extra_stovepipe_chance,
extra_doublefeed_chance = _45_acp_comp_extra_doublefeed_chance,
extra_ftf_chance = _45_acp_comp_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _45_acp_comp_extra_wrongly_seated_mag_chance,
extra_out_of_battery_chance = _45_acp_comp_extra_out_of_battery_chance,
extra_slamfire_chance = _45_acp_comp_extra_slamfire_chance,
extra_slide_fire_speed = _45_acp_comp_extra_slide_fire_speed,
extra_wedged_amount = _45_acp_comp_extra_wedged_amount,
spawn_chance = _45_acp_comp_spawn_chance,
baseVariant = _45_acp_comp_baseVariant,
cartridge = _45_acp_comp_cartridge,
clean_name = _45_acp_comp_clean_name,
shootingRangeAmmoBoxTexture = srab_comp_tex
};
}
if (_45_lc_plus_p_round_def == null)
{
_45_lc_plus_p_round_def = new CustomRoundDefinition
{
extra_rotation_x = _45_lc_extra_rotation_x,
extra_rotation_y = _45_lc_extra_rotation_y,
extra_recoil_x = _45_lc_extra_recoil_x,
extra_recoil_y = _45_lc_extra_recoil_y,
extra_stovepipe_chance = _45_lc_extra_stovepipe_chance,
extra_doublefeed_chance = _45_lc_extra_doublefeed_chance,
extra_ftf_chance = _45_lc_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _45_lc_extra_wrongly_seated_mag_chance,
extra_out_of_battery_chance = _45_lc_extra_out_of_battery_chance,
extra_slamfire_chance = _45_lc_extra_slamfire_chance,
extra_slide_fire_speed = _45_lc_extra_slide_fire_speed,
extra_wedged_amount = _45_lc_extra_wedged_amount,
spawn_chance = _45_lc_spawn_chance,
baseVariant = _45_lc_baseVariant,
cartridge = _45_lc_cartridge,
clean_name = _45_lc_clean_name,
checkUnlockCondition = HasUnlockedBearLoad,
shootingRangeAmmoBoxTexture = srab_tex
};
}
if (_50_ae_plus_p_round_def == null)
{
_50_ae_plus_p_round_def = new CustomRoundDefinition
{
extra_rotation_x = _50_ae_extra_rotation_x,
extra_rotation_y = _50_ae_extra_rotation_y,
extra_recoil_x = _50_ae_extra_recoil_x,
extra_recoil_y = _50_ae_extra_recoil_y,
extra_stovepipe_chance = _50_ae_extra_stovepipe_chance,
extra_doublefeed_chance = _50_ae_extra_doublefeed_chance,
extra_ftf_chance = _50_ae_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _50_ae_extra_wrongly_seated_mag_chance,
extra_out_of_battery_chance = _50_ae_extra_out_of_battery_chance,
extra_slamfire_chance = _50_ae_extra_slamfire_chance,
extra_slide_fire_speed = _50_ae_extra_slide_fire_speed,
extra_wedged_amount = _50_ae_extra_wedged_amount,
spawn_chance = _50_ae_spawn_chance,
baseVariant = _50_ae_baseVariant,
cartridge = _50_ae_cartridge,
clean_name = _50_ae_clean_name,
shootingRangeAmmoBoxTexture = srab_tex
};
}
if (_50_ae_competition_round_def == null)
{
_50_ae_competition_round_def = new CustomRoundDefinition
{
extra_rotation_x = _50_ae_comp_extra_rotation_x,
extra_rotation_y = _50_ae_comp_extra_rotation_y,
extra_recoil_x = _50_ae_comp_extra_recoil_x,
extra_recoil_y = _50_ae_comp_extra_recoil_y,
extra_stovepipe_chance = _50_ae_comp_extra_stovepipe_chance,
extra_doublefeed_chance = _50_ae_comp_extra_doublefeed_chance,
extra_ftf_chance = _50_ae_comp_extra_ftf_chance,
extra_wrongly_seated_mag_chance = _50_ae_comp_extra_wrongly_seated_mag_chance,
extra_out_of_battery_chance = _50_ae_comp_extra_out_of_battery_chance,
extra_slamfire_chance = _50_ae_comp_extra_slamfire_chance,
extra_slide_fire_speed = _50_ae_comp_extra_slide_fire_speed,
extra_wedged_amount = _50_ae_comp_extra_wedged_amount,
spawn_chance = _50_ae_comp_spawn_chance,
baseVariant = _50_ae_comp_baseVariant,
cartridge = _50_ae_comp_cartridge,
clean_name = _50_ae_comp_clean_name,
shootingRangeAmmoBoxTexture = srab_comp_tex
};
}
}
public void OnBeforeSerialize()
{
//IL_0187: Unknown result type (might be due to invalid IL or missing references)
//IL_018c: Unknown result type (might be due to invalid IL or missing references)
//IL_0198: Unknown result type (might be due to invalid IL or missing references)
//IL_019d: Unknown result type (might be due to invalid IL or missing references)
//IL_02a2: Unknown result type (might be due to invalid IL or missing references)
//IL_02a7: Unknown result type (might be due to invalid IL or missing references)
//IL_02b3: Unknown result type (might be due to invalid IL or missing references)
//IL_02b8: Unknown result type (might be due to invalid IL or missing references)
//IL_03bd: Unknown result type (might be due to invalid IL or missing references)
//IL_03c2: Unknown result type (might be due to invalid IL or missing references)
//IL_03ce: Unknown result type (might be due to invalid IL or missing references)
//IL_03d3: Unknown result type (might be due to invalid IL or missing references)
//IL_04d8: Unknown result type (might be due to invalid IL or missing references)
//IL_04dd: Unknown result type (might be due to invalid IL or missing references)
//IL_04e9: Unknown result type (might be due to invalid IL or missing references)
//IL_04ee: Unknown result type (might be due to invalid IL or missing references)
//IL_05f3: Unknown result type (might be due to invalid IL or missing references)
//IL_05f8: Unknown result type (might be due to invalid IL or missing references)
//IL_0604: Unknown result type (might be due to invalid IL or missing references)
//IL_0609: Unknown result type (might be due to invalid IL or missing references)
//IL_070e: Unknown result type (might be due to invalid IL or missing references)
//IL_0713: Unknown result type (might be due to invalid IL or missing references)
//IL_071f: Unknown result type (might be due to invalid IL or missing references)
//IL_0724: Unknown result type (might be due to invalid IL or missing references)
//IL_0829: Unknown result type (might be due to invalid IL or missing references)
//IL_082e: Unknown result type (might be due to invalid IL or missing references)
//IL_083a: Unknown result type (might be due to invalid IL or missing references)
//IL_083f: Unknown result type (might be due to invalid IL or missing references)
//IL_0944: Unknown result type (might be due to invalid IL or missing references)
//IL_0949: Unknown result type (might be due to invalid IL or missing references)
//IL_0955: Unknown result type (might be due to invalid IL or missing references)
//IL_095a: Unknown result type (might be due to invalid IL or missing references)
if (plus_p_rounds_entry != null)
{
_help_entry_description = plus_p_rounds_entry.description;
_help_entry_info_sprite = plus_p_rounds_entry.info_sprite;
_help_entry_name = plus_p_rounds_entry.name;
_help_entry_title = plus_p_rounds_entry.title;
}
if (competition_rounds_entry != null)
{
_competition_help_entry_description = competition_rounds_entry.description;
_competition_help_entry_info_sprite = competition_rounds_entry.info_sprite;
_competition_help_entry_name = competition_rounds_entry.name;
_competition_help_entry_title = competition_rounds_entry.title;
}
if (_9mm_plus_p_round_def != null)
{
_9mm_extra_rotation_x = _9mm_plus_p_round_def.extra_rotation_x;
_9mm_extra_rotation_y = _9mm_plus_p_round_def.extra_rotation_y;
_9mm_extra_recoil_x = _9mm_plus_p_round_def.extra_recoil_x;
_9mm_extra_recoil_y = _9mm_plus_p_round_def.extra_recoil_y;
_9mm_extra_stovepipe_chance = _9mm_plus_p_round_def.extra_stovepipe_chance;
_9mm_extra_doublefeed_chance = _9mm_plus_p_round_def.extra_doublefeed_chance;
_9mm_extra_ftf_chance = _9mm_plus_p_round_def.extra_ftf_chance;
_9mm_extra_wrongly_seated_mag_chance = _9mm_plus_p_round_def.extra_wrongly_seated_mag_chance;
_9mm_extra_slide_fire_speed = _9mm_plus_p_round_def.extra_slide_fire_speed;
_9mm_extra_out_of_battery_chance = _9mm_plus_p_round_def.extra_out_of_battery_chance;
_9mm_extra_slamfire_chance = _9mm_plus_p_round_def.extra_slamfire_chance;
_9mm_extra_wedged_amount = _9mm_plus_p_round_def.extra_wedged_amount;
_9mm_spawn_chance = _9mm_plus_p_round_def.spawn_chance;
_9mm_baseVariant = _9mm_plus_p_round_def.baseVariant;
_9mm_cartridge = _9mm_plus_p_round_def.cartridge;
_9mm_clean_name = _9mm_plus_p_round_def.clean_name;
}
if (_9mm_competition_round_def != null)
{
_9mm_comp_extra_rotation_x = _9mm_competition_round_def.extra_rotation_x;
_9mm_comp_extra_rotation_y = _9mm_competition_round_def.extra_rotation_y;
_9mm_comp_extra_recoil_x = _9mm_competition_round_def.extra_recoil_x;
_9mm_comp_extra_recoil_y = _9mm_competition_round_def.extra_recoil_y;
_9mm_comp_extra_stovepipe_chance = _9mm_competition_round_def.extra_stovepipe_chance;
_9mm_comp_extra_doublefeed_chance = _9mm_competition_round_def.extra_doublefeed_chance;
_9mm_comp_extra_ftf_chance = _9mm_competition_round_def.extra_ftf_chance;
_9mm_comp_extra_wrongly_seated_mag_chance = _9mm_competition_round_def.extra_wrongly_seated_mag_chance;
_9mm_comp_extra_slide_fire_speed = _9mm_competition_round_def.extra_slide_fire_speed;
_9mm_comp_extra_out_of_battery_chance = _9mm_competition_round_def.extra_out_of_battery_chance;
_9mm_comp_extra_slamfire_chance = _9mm_competition_round_def.extra_slamfire_chance;
_9mm_comp_extra_wedged_amount = _9mm_competition_round_def.extra_wedged_amount;
_9mm_comp_spawn_chance = _9mm_competition_round_def.spawn_chance;
_9mm_comp_baseVariant = _9mm_competition_round_def.baseVariant;
_9mm_comp_cartridge = _9mm_competition_round_def.cartridge;
_9mm_comp_clean_name = _9mm_competition_round_def.clean_name;
}
if (_38_special_plus_p_round_def != null)
{
_38_special_extra_rotation_x = _38_special_plus_p_round_def.extra_rotation_x;
_38_special_extra_rotation_y = _38_special_plus_p_round_def.extra_rotation_y;
_38_special_extra_recoil_x = _38_special_plus_p_round_def.extra_recoil_x;
_38_special_extra_recoil_y = _38_special_plus_p_round_def.extra_recoil_y;
_38_special_extra_stovepipe_chance = _38_special_plus_p_round_def.extra_stovepipe_chance;
_38_special_extra_doublefeed_chance = _38_special_plus_p_round_def.extra_doublefeed_chance;
_38_special_extra_ftf_chance = _38_special_plus_p_round_def.extra_ftf_chance;
_38_special_extra_wrongly_seated_mag_chance = _38_special_plus_p_round_def.extra_wrongly_seated_mag_chance;
_38_special_extra_out_of_battery_chance = _38_special_plus_p_round_def.extra_out_of_battery_chance;
_38_special_extra_slamfire_chance = _38_special_plus_p_round_def.extra_slamfire_chance;
_38_special_extra_slide_fire_speed = _38_special_plus_p_round_def.extra_slide_fire_speed;
_38_special_extra_wedged_amount = _38_special_plus_p_round_def.extra_wedged_amount;
_38_special_spawn_chance = _38_special_plus_p_round_def.spawn_chance;
_38_special_baseVariant = _38_special_plus_p_round_def.baseVariant;
_38_special_cartridge = _38_special_plus_p_round_def.cartridge;
_38_special_clean_name = _38_special_plus_p_round_def.clean_name;
}
if (_45_acp_plus_p_round_def != null)
{
_45_acp_extra_rotation_x = _45_acp_plus_p_round_def.extra_rotation_x;
_45_acp_extra_rotation_y = _45_acp_plus_p_round_def.extra_rotation_y;
_45_acp_extra_recoil_x = _45_acp_plus_p_round_def.extra_recoil_x;
_45_acp_extra_recoil_y = _45_acp_plus_p_round_def.extra_recoil_y;
_45_acp_extra_stovepipe_chance = _45_acp_plus_p_round_def.extra_stovepipe_chance;
_45_acp_extra_doublefeed_chance = _45_acp_plus_p_round_def.extra_doublefeed_chance;
_45_acp_extra_ftf_chance = _45_acp_plus_p_round_def.extra_ftf_chance;
_45_acp_extra_wrongly_seated_mag_chance = _45_acp_plus_p_round_def.extra_wrongly_seated_mag_chance;
_45_acp_extra_out_of_battery_chance = _45_acp_plus_p_round_def.extra_out_of_battery_chance;
_45_acp_extra_slamfire_chance = _45_acp_plus_p_round_def.extra_slamfire_chance;
_45_acp_extra_slide_fire_speed = _45_acp_plus_p_round_def.extra_slide_fire_speed;
_45_acp_extra_wedged_amount = _45_acp_plus_p_round_def.extra_wedged_amount;
_45_acp_spawn_chance = _45_acp_plus_p_round_def.spawn_chance;
_45_acp_baseVariant = _45_acp_plus_p_round_def.baseVariant;
_45_acp_cartridge = _45_acp_plus_p_round_def.cartridge;
_45_acp_clean_name = _45_acp_plus_p_round_def.clean_name;
}
if (_45_acp_competition_round_def != null)
{
_45_acp_comp_extra_rotation_x = _45_acp_competition_round_def.extra_rotation_x;
_45_acp_comp_extra_rotation_y = _45_acp_competition_round_def.extra_rotation_y;
_45_acp_comp_extra_recoil_x = _45_acp_competition_round_def.extra_recoil_x;
_45_acp_comp_extra_recoil_y = _45_acp_competition_round_def.extra_recoil_y;
_45_acp_comp_extra_stovepipe_chance = _45_acp_competition_round_def.extra_stovepipe_chance;
_45_acp_comp_extra_doublefeed_chance = _45_acp_competition_round_def.extra_doublefeed_chance;
_45_acp_comp_extra_ftf_chance = _45_acp_competition_round_def.extra_ftf_chance;
_45_acp_comp_extra_wrongly_seated_mag_chance = _45_acp_competition_round_def.extra_wrongly_seated_mag_chance;
_45_acp_comp_extra_out_of_battery_chance = _45_acp_competition_round_def.extra_out_of_battery_chance;
_45_acp_comp_extra_slamfire_chance = _45_acp_competition_round_def.extra_slamfire_chance;
_45_acp_comp_extra_slide_fire_speed = _45_acp_competition_round_def.extra_slide_fire_speed;
_45_acp_comp_extra_wedged_amount = _45_acp_competition_round_def.extra_wedged_amount;
_45_acp_comp_spawn_chance = _45_acp_competition_round_def.spawn_chance;
_45_acp_comp_baseVariant = _45_acp_competition_round_def.baseVariant;
_45_acp_comp_cartridge = _45_acp_competition_round_def.cartridge;
_45_acp_comp_clean_name = _45_acp_competition_round_def.clean_name;
}
if (_45_lc_plus_p_round_def != null)
{
_45_lc_extra_rotation_x = _45_lc_plus_p_round_def.extra_rotation_x;
_45_lc_extra_rotation_y = _45_lc_plus_p_round_def.extra_rotation_y;
_45_lc_extra_recoil_x = _45_lc_plus_p_round_def.extra_recoil_x;
_45_lc_extra_recoil_y = _45_lc_plus_p_round_def.extra_recoil_y;
_45_lc_extra_stovepipe_chance = _45_lc_plus_p_round_def.extra_stovepipe_chance;
_45_lc_extra_doublefeed_chance = _45_lc_plus_p_round_def.extra_doublefeed_chance;
_45_lc_extra_ftf_chance = _45_lc_plus_p_round_def.extra_ftf_chance;
_45_lc_extra_wrongly_seated_mag_chance = _45_lc_plus_p_round_def.extra_wrongly_seated_mag_chance;
_45_lc_extra_out_of_battery_chance = _45_lc_plus_p_round_def.extra_out_of_battery_chance;
_45_lc_extra_slamfire_chance = _45_lc_plus_p_round_def.extra_slamfire_chance;
_45_lc_extra_slide_fire_speed = _45_lc_plus_p_round_def.extra_slide_fire_speed;
_45_lc_extra_wedged_amount = _45_lc_plus_p_round_def.extra_wedged_amount;
_45_lc_spawn_chance = _45_lc_plus_p_round_def.spawn_chance;
_45_lc_baseVariant = _45_lc_plus_p_round_def.baseVariant;
_45_lc_cartridge = _45_lc_plus_p_round_def.cartridge;
_45_lc_clean_name = _45_lc_plus_p_round_def.clean_name;
}
if (_50_ae_plus_p_round_def != null)
{
_50_ae_extra_rotation_x = _50_ae_plus_p_round_def.extra_rotation_x;
_50_ae_extra_rotation_y = _50_ae_plus_p_round_def.extra_rotation_y;
_50_ae_extra_recoil_x = _50_ae_plus_p_round_def.extra_recoil_x;
_50_ae_extra_recoil_y = _50_ae_plus_p_round_def.extra_recoil_y;
_50_ae_extra_stovepipe_chance = _50_ae_plus_p_round_def.extra_stovepipe_chance;
_50_ae_extra_doublefeed_chance = _50_ae_plus_p_round_def.extra_doublefeed_chance;
_50_ae_extra_ftf_chance = _50_ae_plus_p_round_def.extra_ftf_chance;
_50_ae_extra_wrongly_seated_mag_chance = _50_ae_plus_p_round_def.extra_wrongly_seated_mag_chance;
_50_ae_extra_out_of_battery_chance = _50_ae_plus_p_round_def.extra_out_of_battery_chance;
_50_ae_extra_slamfire_chance = _50_ae_plus_p_round_def.extra_slamfire_chance;
_50_ae_extra_slide_fire_speed = _50_ae_plus_p_round_def.extra_slide_fire_speed;
_50_ae_extra_wedged_amount = _50_ae_plus_p_round_def.extra_wedged_amount;
_50_ae_spawn_chance = _50_ae_plus_p_round_def.spawn_chance;
_50_ae_baseVariant = _50_ae_plus_p_round_def.baseVariant;
_50_ae_cartridge = _50_ae_plus_p_round_def.cartridge;
_50_ae_clean_name = _50_ae_plus_p_round_def.clean_name;
}
if (_50_ae_competition_round_def != null)
{
_50_ae_comp_extra_rotation_x = _50_ae_competition_round_def.extra_rotation_x;
_50_ae_comp_extra_rotation_y = _50_ae_competition_round_def.extra_rotation_y;
_50_ae_comp_extra_recoil_x = _50_ae_competition_round_def.extra_recoil_x;
_50_ae_comp_extra_recoil_y = _50_ae_competition_round_def.extra_recoil_y;
_50_ae_comp_extra_stovepipe_chance = _50_ae_competition_round_def.extra_stovepipe_chance;
_50_ae_comp_extra_doublefeed_chance = _50_ae_competition_round_def.extra_doublefeed_chance;
_50_ae_comp_extra_ftf_chance = _50_ae_competition_round_def.extra_ftf_chance;
_50_ae_comp_extra_wrongly_seated_mag_chance = _50_ae_competition_round_def.extra_wrongly_seated_mag_chance;
_50_ae_comp_extra_out_of_battery_chance = _50_ae_competition_round_def.extra_out_of_battery_chance;
_50_ae_comp_extra_slamfire_chance = _50_ae_competition_round_def.extra_slamfire_chance;
_50_ae_comp_extra_slide_fire_speed = _50_ae_competition_round_def.extra_slide_fire_speed;
_50_ae_comp_extra_wedged_amount = _50_ae_competition_round_def.extra_wedged_amount;
_50_ae_comp_spawn_chance = _50_ae_competition_round_def.spawn_chance;
_50_ae_comp_baseVariant = _50_ae_competition_round_def.baseVariant;
_50_ae_comp_cartridge = _50_ae_competition_round_def.cartridge;
_50_ae_comp_clean_name = _50_ae_competition_round_def.clean_name;
}
}
public static bool HasUnlockedBearLoad()
{
return ReceiverCoreScript.Instance().PlayerData.win_count > 0;
}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("CiarenceW.PlusPRounds", "+P Rounds", "1.0.0")]
public class PlusPLoader : BaseUnityPlugin
{
private const string k_GUID = "CiarenceW.PlusPRounds";
private const string k_PluginName = "+P Rounds";
private const string k_Version = "1.0.0";
internal const Preset k_45_acp_plus_p = (Preset)(-2);
internal const Preset k_45_acp_competition = (Preset)(-100002);
internal const Preset k_50_ae_plus_p = (Preset)(-6);
internal const Preset k_50_ae_competition = (Preset)(-100006);
internal const Preset k_45_lc_plus_p = (Preset)(-8);
internal const Preset k_9mm_competition = (Preset)(-1);
internal static PlusPAssets assets;
private void Awake()
{
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Expected O, but got Unknown
((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded +P Rounds version 1.0.0");
ModdingKitEvents.AddTaskAtCoreStartup(new StartupAction(InitialisePrefabs));
PlusPSettingsManager.InitialiseConfig(((BaseUnityPlugin)this).Config);
LoreManager.Initialise();
}
private void InitialisePrefabs()
{
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_012f: Unknown result type (might be due to invalid IL or missing references)
//IL_0171: Unknown result type (might be due to invalid IL or missing references)
//IL_01d5: Unknown result type (might be due to invalid IL or missing references)
//IL_0217: Unknown result type (might be due to invalid IL or missing references)
//IL_027b: Unknown result type (might be due to invalid IL or missing references)
//IL_02bc: Unknown result type (might be due to invalid IL or missing references)
//IL_0320: Unknown result type (might be due to invalid IL or missing references)
//IL_0365: Unknown result type (might be due to invalid IL or missing references)
//IL_03c9: Unknown result type (might be due to invalid IL or missing references)
//IL_040e: Unknown result type (might be due to invalid IL or missing references)
//IL_0472: Unknown result type (might be due to invalid IL or missing references)
if (AssetHelper.FindAssetBundle<PlusPAssets>(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), ref assets))
{
DuplicatePrefab((Preset)0, (Preset)1, assets._9mm_plus_p_tex, assets._9mm_casing_plus_p_tex, assets._9mm_tracer_plus_p_tex, "9mm_plus_p_round_prefab");
CustomRoundTypes.RegisterCustomRound(assets._9mm_plus_p_round_def);
DuplicatePrefab((Preset)3, (Preset)4, assets._9mm_plus_p_tex, assets._9mm_casing_plus_p_tex, assets._9mm_tracer_plus_p_tex, "38_special_plus_p_round_object");
CustomRoundTypes.RegisterCustomRound(assets._38_special_plus_p_round_def);
DuplicatePrefab((Preset)2, (Preset)(-2), assets._45_acp_plus_p_tex, assets._45_acp_case_plus_p_tex, assets._45_acp_tracer_plus_p_tex, "45_acp_plus_p_round_object", (CartridgeSpec?)new CartridgeSpec
{
extra_mass = 6f,
mass = 16.52f,
speed = 282f,
diameter = 0.0115f,
density = 11340f,
cylinder_length = 1.4567902E-06f / ((float)Math.PI * Mathf.Pow(0.00575f, 2f))
});
CustomRoundTypes.RegisterCustomRound(assets._45_acp_plus_p_round_def);
DuplicatePrefab((Preset)8, (Preset)(-8), assets._45_lc_plus_p_tex, assets._45_lc_case_plus_p_tex, assets._45_acp_tracer_plus_p_tex, "45_lc_plus_p_round_object", (CartridgeSpec?)new CartridgeSpec
{
extra_mass = 8f,
mass = 21.38f,
speed = 413f,
diameter = 0.0115f,
density = 11340f,
cylinder_length = 1.8853615E-06f / ((float)Math.PI * Mathf.Pow(0.00575f, 2f))
});
CustomRoundTypes.RegisterCustomRound(assets._45_lc_plus_p_round_def);
DuplicatePrefab((Preset)6, (Preset)(-6), assets._45_acp_plus_p_tex, assets._45_acp_case_plus_p_tex, assets._45_acp_tracer_plus_p_tex, "50_ae_plus_p_round_object", (CartridgeSpec?)new CartridgeSpec
{
extra_mass = 24f,
mass = 24.62f,
speed = 550f,
diameter = 0.013f,
density = 11340f,
cylinder_length = 2.171076E-06f / ((float)Math.PI * Mathf.Pow(0.0065f, 2f))
});
CustomRoundTypes.RegisterCustomRound(assets._50_ae_plus_p_round_def);
DuplicatePrefab((Preset)0, (Preset)(-1), assets._9mm_comp_tex, assets._9mm_comp_case_tex, assets._9mm_comp_tracer_tex, "9mm_competition_round_prefab", (CartridgeSpec?)new CartridgeSpec
{
extra_mass = 4.2f,
mass = 3.239f,
speed = 304.8f,
diameter = 0.00901f,
density = 11340f,
cylinder_length = 2.856261E-07f / ((float)Math.PI * Mathf.Pow(0.004505f, 2f))
});
CustomRoundTypes.RegisterCustomRound(assets._9mm_competition_round_def);
DuplicatePrefab((Preset)6, (Preset)(-100006), assets._45_acp_comp_tex, assets._45_acp_comp_case_tex, assets._45_acp_comp_tracer_tex, "50_ae_competition_round_object", (CartridgeSpec?)new CartridgeSpec
{
extra_mass = 24f,
mass = 17.8f,
speed = 396.24f,
diameter = 0.013f,
density = 11340f,
cylinder_length = 1.5696648E-06f / ((float)Math.PI * Mathf.Pow(0.0065f, 2f))
});
CustomRoundTypes.RegisterCustomRound(assets._50_ae_competition_round_def);
DuplicatePrefab((Preset)2, (Preset)(-100002), assets._45_acp_comp_tex, assets._45_acp_comp_case_tex, assets._45_acp_comp_tracer_tex, "45_acp_competition_round_object", (CartridgeSpec?)new CartridgeSpec
{
extra_mass = 6f,
mass = 11.98f,
speed = 228.6f,
diameter = 0.0115f,
density = 11340f,
cylinder_length = 1.0564374E-06f / ((float)Math.PI * Mathf.Pow(0.00575f, 2f))
});
CustomRoundTypes.RegisterCustomRound(assets._45_acp_competition_round_def);
ModHelpEntryManager.entries.Add(assets.plus_p_rounds_entry.name, assets.plus_p_rounds_entry);
ModHelpEntryManager.entries.Add(assets.competition_rounds_entry.name, assets.competition_rounds_entry);
LoreManager.SetupTapes();
}
else
{
((BaseUnityPlugin)this).Logger.LogError((object)"Failed to find PlusPAssets assetbundle!!");
}
}
private static void DuplicatePrefab(Preset original, Preset cartridge_type, Texture2D roundTex, Texture2D casingTex, Texture2D tracerTex, string newInternalName, CartridgeSpec? cartridgeSpec = null)
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Unknown result type (might be due to invalid IL or missing references)
//IL_0052: Unknown result type (might be due to invalid IL or missing references)
//IL_0057: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Expected O, but got Unknown
//IL_0074: Unknown result type (might be due to invalid IL or missing references)
//IL_0079: Unknown result type (might be due to invalid IL or missing references)
//IL_0085: Expected O, but got Unknown
//IL_0096: Unknown result type (might be due to invalid IL or missing references)
//IL_009b: Unknown result type (might be due to invalid IL or missing references)
//IL_00a8: Expected O, but got Unknown
//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
ShellCasingScript val = Object.Instantiate<ShellCasingScript>(ModdingKitCorePlugin.GetRoundPrefab(original), Vector3.one * float.NaN, Quaternion.identity);
((InventoryItem)val).SetInternalName("ciarencew." + newInternalName);
val.cartridge_type = cartridge_type;
((Object)val).name = newInternalName;
((Renderer)val.go_round).sharedMaterial = new Material(((Renderer)val.go_round).sharedMaterial)
{
mainTexture = (Texture)(object)roundTex
};
((Renderer)val.go_casing).sharedMaterial = new Material(((Renderer)val.go_casing).sharedMaterial)
{
mainTexture = (Texture)(object)casingTex
};
((Renderer)val.tracer_model).sharedMaterial = new Material(((Renderer)val.tracer_model).sharedMaterial)
{
mainTexture = (Texture)(object)tracerTex
};
if (cartridgeSpec.HasValue)
{
ModdingKitCorePlugin.AddNewCartridgePreset(cartridge_type, cartridgeSpec.Value);
}
ModdingKitCorePlugin.AddShellCasingScriptPrefab(val);
}
}
public static class LoreManager
{
private static Harmony harmony;
private static readonly string bear_load_subtitles = "1\n00:00:00,000 --> 00:00:03,342\nWhen in the American wilderness,\nit is advised for campers and hikers\n\n2\n00:00:03,342 --> 00:00:06,480\nto be on the lookout for bears,\nto learn bear safety techniques,\n\n3\n00:00:06,480 --> 00:00:08,438\nand to carry bear spray at all times,\n\n4\n00:00:08,964 --> 00:00:11,722\nin order to dissuade any would-be killer bears.\n\n5\n00:00:12,468 --> 00:00:15,337\nBut what if you were a cowboy \nriding through the open prairie\n\n6\n00:00:15,337 --> 00:00:19,285\nand happened to be charged upon \nby a vicious, hungry grizzly bear?\n\n7\n00:00:19,553 --> 00:00:23,003\nFortunately for you, American ammunition \nmanufacturers have considered this\n\n8\n00:00:23,003 --> 00:00:26,004\nexact seemingly recurring problem before,\n\n9\n00:00:26,004 --> 00:00:29,281\nand they've come up with the \nsecond best bear repellent there is:\n\n10\n00:00:29,281 --> 00:00:32,332\nthe .45 Long Colt Bear Load.\n\n11\n00:00:32,332 --> 00:00:36,222\nNot only is the bullet twice as fast, \nit's also twice as heavy as\n\n12\n00:00:36,222 --> 00:00:39,246\nthe standard .45 Long Colt \"Cowboy Load\",\n\n13\n00:00:39,246 --> 00:00:41,436\nmaking it approximately 4 to 5 times\n\n14\n00:00:41,436 --> 00:00:43,920\nmore effective at taking down game;\n\n15\n00:00:43,920 --> 00:00:46,451\nenabling you to take down \na single grizzly bear,\n\n16\n00:00:46,451 --> 00:00:49,324\nor four to five cowboys \nif they stand in a line.";
private static readonly string fbi_load_subtitle = "1\n00:00:00,000 --> 00:00:03,092\nIn the 1950's and 60's, \npostwar America faced an\n\n2\n00:00:03,092 --> 00:00:06,068\nincreased number of \nviolent crimes and armed confrontations\n\n3\n00:00:06,068 --> 00:00:08,428\nbetween gangsters and police officers.\n\n4\n00:00:08,840 --> 00:00:12,638\nContemporary policemen were mainly \nfiring sidearms chambered in .38 Special,\n\n5\n00:00:12,638 --> 00:00:17,318\nwith the standard load being a \n158-grain lead round-nose bullet,\n\n6\n00:00:17,361 --> 00:00:20,544\nwhich had the.. annoying tendency \nto go through whatever\n\n7\n00:00:20,544 --> 00:00:21,431\nor whoever\n\n8\n00:00:21,431 --> 00:00:24,035\nit was fired at, and \ncontinue on through whatever\n\n9\n00:00:24,035 --> 00:00:25,062\nor whoever\n\n10\n00:00:25,062 --> 00:00:27,422\nhappened to be standing \nbehind, all the while\n\n11\n00:00:27,422 --> 00:00:30,433\nfailing to actually stop \nthe intended target.\n\n12\n00:00:31,172 --> 00:00:34,002\nDespite making numerous complaints, \ncries of police unions\n\n13\n00:00:34,002 --> 00:00:36,969\nwent largely unanswered, \nwith a few agencies attempting to\n\n14\n00:00:36,969 --> 00:00:40,460\nintroduce new .38 Special loads \nto combat this problem,\n\n15\n00:00:40,460 --> 00:00:43,643\nsuch as the \n200-grain blunt-nosed \"Super Police\" load,\n\n16\n00:00:43,643 --> 00:00:46,449\nwhich faced the.. opposite problem.\n\n17\n00:00:47,073 --> 00:00:50,866\nSure, the bullet would cause \nMassive Internal Damage to whoever it hit,\n\n18\n00:00:50,866 --> 00:00:54,423\nbut bullets that missed had the \nannoying tendency to ricochet and\n\n19\n00:00:54,423 --> 00:00:58,071\nhit whatever or whoever happened \nto be standing nearby.\n\n20\n00:00:59,042 --> 00:01:02,580\nIn 1972, the Federal Bureau of Investigation unveiled\n\n21\n00:01:02,580 --> 00:01:06,999\ntheir new standard issue +P load, \nlater dubbed the \"FBI Load\".\n\n22\n00:01:07,460 --> 00:01:11,260\nThis load contained more, \nand, more powerful gunpowder, as well as\n\n23\n00:01:11,260 --> 00:01:16,250\na 158-grain unjacketed all-lead \nsemi-wadcutter hollow-point bullet.\n\n24\n00:01:17,213 --> 00:01:20,843\nThese improvements, when fired from \na standard law enforcement revolver,\n\n25\n00:01:20,843 --> 00:01:24,444\nallowed the .38 Special cartridge \nto effectively and consistently\n\n26\n00:01:24,444 --> 00:01:27,204\ntake down whatever or whoever \nit was fired at.\n\n27\n00:01:28,198 --> 00:01:32,510\nThis load was very quickly adopted by \npractically all American police departments,\n\n28\n00:01:32,510 --> 00:01:37,563\nand remained the primary round in use \nby the FBI until the mid 1980's,\n\n29\n00:01:37,563 --> 00:01:41,134\nwhen a slew of tragic and deadly \nshootouts proved the need to switch\n\n30\n00:01:41,134 --> 00:01:44,009\nto higher capacity semi-automatic handguns.";
private static readonly string plus_p_load_subtitle = "1\n00:00:00,000 --> 00:00:04,224\nThe power of a round is determined by \nthe mass and the velocity of its bullet,\n\n2\n00:00:04,224 --> 00:00:06,362\nif you want your shots \nto hit with more force,\n\n3\n00:00:06,362 --> 00:00:10,283\nyou either need to upgrade to a \nbigger caliber, or switch to +P loads.\n\n4\n00:00:11,017 --> 00:00:15,980\nOverpressure, or +P rounds, are rounds \nloaded with a higher concentration of gunpowder,\n\n5\n00:00:15,980 --> 00:00:18,920\nwhich gives the fired \nbullet increased stopping power,\n\n6\n00:00:18,920 --> 00:00:22,855\nbasically guaranteeing that whatever \nyou shoot down, will stay down\n\n7\n00:00:22,855 --> 00:00:25,579\nat least long enough for you \nto safely neutralize your target.\n\n8\n00:00:26,457 --> 00:00:29,349\nAdvantages rarely come without disadvantages however,\n\n9\n00:00:29,349 --> 00:00:31,481\nand +P rounds are no exception.\n\n10\n00:00:32,003 --> 00:00:33,948\nIf you're a novice shooter, \nthe brighter flash and\n\n11\n00:00:33,948 --> 00:00:38,404\nincreased recoil might take you by \nsurprise and cause you to flinch,\n\n12\n00:00:38,404 --> 00:00:40,963\nor the added stress to the firearm's mechanics\n\n13\n00:00:40,963 --> 00:00:43,334\nmight prevent the gun from cycling properly,\n\n14\n00:00:43,334 --> 00:00:46,557\nor the casing might expand too much \nand get stuck in the chamber,\n\n15\n00:00:46,557 --> 00:00:48,027\nmaking it harder to extract.";
internal static void Initialise()
{
harmony = Harmony.CreateAndPatchAll(typeof(LoreManager), (string)null);
}
internal static void SetupTapes()
{
//IL_0166: Unknown result type (might be due to invalid IL or missing references)
//IL_0173: Unknown result type (might be due to invalid IL or missing references)
//IL_017f: Unknown result type (might be due to invalid IL or missing references)
//IL_0265: Unknown result type (might be due to invalid IL or missing references)
//IL_0277: Unknown result type (might be due to invalid IL or missing references)
//IL_0288: Unknown result type (might be due to invalid IL or missing references)
//IL_02c4: Unknown result type (might be due to invalid IL or missing references)
//IL_02ca: Unknown result type (might be due to invalid IL or missing references)
//IL_02d6: Unknown result type (might be due to invalid IL or missing references)
//IL_02dc: Unknown result type (might be due to invalid IL or missing references)
//IL_02e7: Unknown result type (might be due to invalid IL or missing references)
//IL_02ed: Unknown result type (might be due to invalid IL or missing references)
//IL_0329: Unknown result type (might be due to invalid IL or missing references)
//IL_033b: Unknown result type (might be due to invalid IL or missing references)
//IL_034c: Unknown result type (might be due to invalid IL or missing references)
//IL_0382: Unknown result type (might be due to invalid IL or missing references)
//IL_0388: Unknown result type (might be due to invalid IL or missing references)
//IL_0394: Unknown result type (might be due to invalid IL or missing references)
//IL_039a: Unknown result type (might be due to invalid IL or missing references)
//IL_03a5: Unknown result type (might be due to invalid IL or missing references)
//IL_03ab: Unknown result type (might be due to invalid IL or missing references)
//IL_03e7: Unknown result type (might be due to invalid IL or missing references)
//IL_03f9: Unknown result type (might be due to invalid IL or missing references)
//IL_040a: Unknown result type (might be due to invalid IL or missing references)
//IL_0452: Unknown result type (might be due to invalid IL or missing references)
//IL_0458: Unknown result type (might be due to invalid IL or missing references)
//IL_0475: Unknown result type (might be due to invalid IL or missing references)
//IL_047b: Unknown result type (might be due to invalid IL or missing references)
//IL_0498: Unknown result type (might be due to invalid IL or missing references)
//IL_049e: Unknown result type (might be due to invalid IL or missing references)
TapeContent plus_p_tape = PlusPLoader.assets.plus_p_tape;
TapeContent fbi_load_tape = PlusPLoader.assets.fbi_load_tape;
TapeContent bear_load_tape = PlusPLoader.assets.bear_load_tape;
HashSet<string> picked_up_tape_ids_string = ReceiverCoreScript.Instance().PlayerData.picked_up_tape_ids_string;
if (picked_up_tape_ids_string.Contains(plus_p_tape.tape_id_string))
{
plus_p_tape.tape_group_priority = int.MaxValue;
}
if (picked_up_tape_ids_string.Contains(bear_load_tape.tape_id_string))
{
bear_load_tape.tape_group_priority = int.MaxValue;
}
if (picked_up_tape_ids_string.Contains(fbi_load_tape.tape_id_string))
{
fbi_load_tape.tape_group_priority = int.MaxValue;
}
List<TapeContent> modTapes = ReceiverCoreScript.Instance().tape_loadout_asset.GetModTapes();
modTapes.Add(plus_p_tape);
modTapes.Add(fbi_load_tape);
modTapes.Add(bear_load_tape);
List<GameObject> obj = typeof(TapeManager).GetField("tape_prefabs_all", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as List<GameObject>;
obj.Add(((Component)plus_p_tape).gameObject);
obj.Add(((Component)fbi_load_tape).gameObject);
obj.Add(((Component)bear_load_tape).gameObject);
Dictionary<string, TapeContent> obj2 = typeof(TapeManager).GetField("tape_id_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, TapeContent>;
obj2.Add(plus_p_tape.tape_id_string, plus_p_tape);
obj2.Add(fbi_load_tape.tape_id_string, fbi_load_tape);
obj2.Add(bear_load_tape.tape_id_string, bear_load_tape);
Dictionary<TapeID, TapeContent> obj3 = typeof(TapeManager).GetField("tape_enum_id_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, TapeContent>;
obj3.Add(plus_p_tape.tape_id, plus_p_tape);
obj3.Add(fbi_load_tape.tape_id, fbi_load_tape);
obj3.Add(bear_load_tape.tape_id, bear_load_tape);
Dictionary<string, TapeContent> obj4 = typeof(TapeManager).GetField("tape_string_id_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, TapeContent>;
obj4.Add(plus_p_tape.tape_id_string, plus_p_tape);
obj4.Add(fbi_load_tape.tape_id_string, fbi_load_tape);
obj4.Add(bear_load_tape.tape_id_string, bear_load_tape);
Dictionary<string, int> obj5 = typeof(TapeManager).GetField("tape_priority_string_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, int>;
obj5.Add(plus_p_tape.tape_id_string, plus_p_tape.tape_group_priority);
obj5.Add(fbi_load_tape.tape_id_string, fbi_load_tape.tape_group_priority);
obj5.Add(bear_load_tape.tape_id_string, bear_load_tape.tape_group_priority);
Dictionary<TapeID, int> obj6 = typeof(TapeManager).GetField("tape_priority_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, int>;
obj6.Add(plus_p_tape.tape_id, plus_p_tape.tape_group_priority);
obj6.Add(fbi_load_tape.tape_id, fbi_load_tape.tape_group_priority);
obj6.Add(bear_load_tape.tape_id, bear_load_tape.tape_group_priority);
Dictionary<TapeID, TapeType> obj7 = typeof(TapeManager).GetField("tape_type_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, TapeType>;
obj7.Add(plus_p_tape.tape_id, plus_p_tape.tape_type);
obj7.Add(fbi_load_tape.tape_id, fbi_load_tape.tape_type);
obj7.Add(bear_load_tape.tape_id, bear_load_tape.tape_type);
Dictionary<string, TapeType> obj8 = typeof(TapeManager).GetField("tape_type_string_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, TapeType>;
obj8.Add(plus_p_tape.tape_id_string, plus_p_tape.tape_type);
obj8.Add(fbi_load_tape.tape_id_string, fbi_load_tape.tape_type);
obj8.Add(bear_load_tape.tape_id_string, bear_load_tape.tape_type);
Dictionary<TapeID, TapeGroupID> obj9 = typeof(TapeManager).GetField("tape_group_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, TapeGroupID>;
obj9.Add(plus_p_tape.tape_id, plus_p_tape.tape_group);
obj9.Add(fbi_load_tape.tape_id, fbi_load_tape.tape_group);
obj9.Add(bear_load_tape.tape_id, bear_load_tape.tape_group);
Dictionary<string, TapeGroupID> obj10 = typeof(TapeManager).GetField("tape_group_string_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, TapeGroupID>;
obj10.Add(plus_p_tape.tape_id_string, plus_p_tape.tape_group);
obj10.Add(fbi_load_tape.tape_id_string, fbi_load_tape.tape_group);
obj10.Add(bear_load_tape.tape_id_string, bear_load_tape.tape_group);
foreach (TapeGroupList item in typeof(TapeManager).GetField("tape_group_prefabs_all", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as List<TapeGroupList>)
{
if (item.group == plus_p_tape.tape_group)
{
item.tapes_string.Add(plus_p_tape.tape_id_string);
}
else if (item.group == bear_load_tape.tape_group)
{
item.tapes_string.Add(bear_load_tape.tape_id_string);
}
else if (item.group == fbi_load_tape.tape_group)
{
item.tapes_string.Add(fbi_load_tape.tape_id_string);
}
}
string location = typeof(PlusPLoader).Assembly.Location;
plus_p_tape.audio_file_path = Path.Combine(Path.GetDirectoryName(location), plus_p_tape.audio_file_path);
fbi_load_tape.audio_file_path = Path.Combine(Path.GetDirectoryName(location), fbi_load_tape.audio_file_path);
bear_load_tape.audio_file_path = Path.Combine(Path.GetDirectoryName(location), bear_load_tape.audio_file_path);
ReceiverEvents.StartListening((ReceiverEventTypeVoid)13, (UnityAction<ReceiverEventTypeVoid>)SetupLocales);
ReceiverEvents.StartListening((ReceiverEventTypeStr)1, (UnityAction<ReceiverEventTypeStr, string>)OnConsumeTape);
SetupLocales((ReceiverEventTypeVoid)0);
}
private static void OnConsumeTape(ReceiverEventTypeStr _, string id)
{
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_013c: Unknown result type (might be due to invalid IL or missing references)
//IL_01d3: Unknown result type (might be due to invalid IL or missing references)
TapeContent plus_p_tape = PlusPLoader.assets.plus_p_tape;
TapeContent fbi_load_tape = PlusPLoader.assets.fbi_load_tape;
TapeContent bear_load_tape = PlusPLoader.assets.bear_load_tape;
if (id == plus_p_tape.tape_id_string)
{
plus_p_tape.tape_group_priority = int.MaxValue;
Dictionary<string, int> dictionary = typeof(TapeManager).GetField("tape_priority_string_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, int>;
Dictionary<TapeID, int> obj = typeof(TapeManager).GetField("tape_priority_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, int>;
dictionary[plus_p_tape.tape_id_string] = plus_p_tape.tape_group_priority;
obj[plus_p_tape.tape_id] = plus_p_tape.tape_group_priority;
}
else if (id == fbi_load_tape.tape_id_string)
{
fbi_load_tape.tape_group_priority = int.MaxValue;
Dictionary<string, int> dictionary2 = typeof(TapeManager).GetField("tape_priority_string_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, int>;
Dictionary<TapeID, int> obj2 = typeof(TapeManager).GetField("tape_priority_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, int>;
dictionary2[fbi_load_tape.tape_id_string] = fbi_load_tape.tape_group_priority;
obj2[fbi_load_tape.tape_id] = fbi_load_tape.tape_group_priority;
}
else if (id == bear_load_tape.tape_id_string)
{
bear_load_tape.tape_group_priority = int.MaxValue;
Dictionary<string, int> dictionary3 = typeof(TapeManager).GetField("tape_priority_string_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<string, int>;
Dictionary<TapeID, int> obj3 = typeof(TapeManager).GetField("tape_priority_dict", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ReceiverCoreScript.Instance().tape_loadout_asset) as Dictionary<TapeID, int>;
dictionary3[bear_load_tape.tape_id_string] = bear_load_tape.tape_group_priority;
obj3[bear_load_tape.tape_id] = bear_load_tape.tape_group_priority;
}
}
private static void SetupLocales(ReceiverEventTypeVoid _)
{
//IL_0152: Unknown result type (might be due to invalid IL or missing references)
//IL_0157: Unknown result type (might be due to invalid IL or missing references)
//IL_0163: Unknown result type (might be due to invalid IL or missing references)
//IL_016f: Unknown result type (might be due to invalid IL or missing references)
//IL_017a: Unknown result type (might be due to invalid IL or missing references)
//IL_0188: Expected O, but got Unknown
//IL_019a: Unknown result type (might be due to invalid IL or missing references)
//IL_019f: Unknown result type (might be due to invalid IL or missing references)
//IL_01ac: Unknown result type (might be due to invalid IL or missing references)
//IL_01b9: Unknown result type (might be due to invalid IL or missing references)
//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
//IL_01d3: Expected O, but got Unknown
//IL_01e6: Unknown result type (might be due to invalid IL or missing references)
//IL_01eb: Unknown result type (might be due to invalid IL or missing references)
//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
//IL_0205: Unknown result type (might be due to invalid IL or missing references)
//IL_0210: Unknown result type (might be due to invalid IL or missing references)
//IL_021f: Expected O, but got Unknown
string isoid = Locale.active_meta_locale.isoid;
string path = Path.Combine(Application.streamingAssetsPath, "TapeSubtitles", isoid, PlusPLoader.assets.plus_p_tape.tape_id_string + ".srt");
string path2 = Path.Combine(Application.streamingAssetsPath, "TapeSubtitles", isoid, PlusPLoader.assets.fbi_load_tape.tape_id_string + ".srt");
string path3 = Path.Combine(Application.streamingAssetsPath, "TapeSubtitles", isoid, PlusPLoader.assets.bear_load_tape.tape_id_string + ".srt");
using (StreamWriter streamWriter = File.CreateText(path))
{
streamWriter.AutoFlush = false;
streamWriter.Write(plus_p_load_subtitle);
streamWriter.Flush();
streamWriter.Close();
}
using (StreamWriter streamWriter2 = File.CreateText(path2))
{
streamWriter2.AutoFlush = false;
streamWriter2.WriteLine(fbi_load_subtitle);
streamWriter2.Flush();
streamWriter2.Close();
}
using (StreamWriter streamWriter3 = File.CreateText(path3))
{
streamWriter3.AutoFlush = false;
streamWriter3.WriteLine(bear_load_subtitles);
streamWriter3.Flush();
streamWriter3.Close();
}
TapeContent plus_p_tape = PlusPLoader.assets.plus_p_tape;
TapeContent fbi_load_tape = PlusPLoader.assets.fbi_load_tape;
TapeContent bear_load_tape = PlusPLoader.assets.bear_load_tape;
LocaleTapeMenuEntry value = new LocaleTapeMenuEntry
{
id_string = plus_p_tape.tape_id_string,
description = plus_p_tape.text,
name = "Invalid",
title = plus_p_tape.title
};
Locale.active_locale_tape_menu_entries_string.Add(plus_p_tape.tape_id_string, value);
value = new LocaleTapeMenuEntry
{
id_string = bear_load_tape.tape_id_string,
description = bear_load_tape.text,
name = "Invalid",
title = bear_load_tape.title
};
Locale.active_locale_tape_menu_entries_string.Add(bear_load_tape.tape_id_string, value);
value = new LocaleTapeMenuEntry
{
id_string = fbi_load_tape.tape_id_string,
description = fbi_load_tape.text,
name = "Invalid",
title = fbi_load_tape.title
};
Locale.active_locale_tape_menu_entries_string.Add(fbi_load_tape.tape_id_string, value);
}
[HarmonyPatch(typeof(ShellCasingScript), "Consume")]
[HarmonyPostfix]
private static void OnShellPickedUp(ShellCasingScript __instance)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Invalid comparison between Unknown and I4
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Invalid comparison between Unknown and I4
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Invalid comparison between Unknown and I4
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Invalid comparison between Unknown and I4
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_005d: Invalid comparison between Unknown and I4
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Invalid comparison between Unknown and I4
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_006a: Invalid comparison between Unknown and I4
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
if ((int)__instance.cartridge_type == 1 || (int)__instance.cartridge_type == 4 || (int)__instance.cartridge_type == -2 || (int)__instance.cartridge_type == -8 || (int)__instance.cartridge_type == -6)
{
HelpUnlockManager.Instance.Unlock(PlusPLoader.assets.plus_p_rounds_entry.name);
}
if ((int)__instance.cartridge_type == -1 || (int)__instance.cartridge_type == -100002 || (int)__instance.cartridge_type == -100006)
{
HelpUnlockManager.Instance.Unlock(PlusPLoader.assets.competition_rounds_entry.name);
}
}
}
public static class PlusPSettingsManager
{
private static ConfigEntry<bool> EnableInClassicMode { get; set; }
internal static void InitialiseConfig(ConfigFile config)
{
EnableInClassicMode = config.Bind<bool>("General", "enableInClassicMode", true, "Whether or not to spawn the rounds in Classic mode.");
ReceiverEvents.StartListening((ReceiverEventTypeVoid)5, (UnityAction<ReceiverEventTypeVoid>)OnPlayerFadeIn);
}
private static void OnPlayerFadeIn(ReceiverEventTypeVoid _)
{
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Invalid comparison between Unknown and I4
Debug.Log((object)ReceiverCoreScript.Instance().game_mode.GetGameMode());
PlusPAssets assets = PlusPLoader.assets;
if (!EnableInClassicMode.Value && (int)ReceiverCoreScript.Instance().game_mode.GetGameMode() == 4)
{
assets._9mm_competition_round_def.spawn_chance = 0f;
assets._9mm_plus_p_round_def.spawn_chance = 0f;
assets._45_acp_competition_round_def.spawn_chance = 0f;
assets._45_acp_plus_p_round_def.spawn_chance = 0f;
assets._45_lc_plus_p_round_def.spawn_chance = 0f;
assets._38_special_plus_p_round_def.spawn_chance = 0f;
assets._50_ae_competition_round_def.spawn_chance = 0f;
assets._50_ae_plus_p_round_def.spawn_chance = 0f;
return;
}
if (assets._9mm_competition_round_def.spawn_chance == 0f)
{
assets._9mm_competition_round_def.spawn_chance = 0.25f;
}
if (assets._9mm_plus_p_round_def.spawn_chance == 0f)
{
assets._9mm_plus_p_round_def.spawn_chance = 0.25f;
}
if (assets._45_acp_competition_round_def.spawn_chance == 0f)
{
assets._45_acp_competition_round_def.spawn_chance = 0.25f;
}
if (assets._45_acp_plus_p_round_def.spawn_chance == 0f)
{
assets._45_acp_plus_p_round_def.spawn_chance = 0.25f;
}
if (assets._45_lc_plus_p_round_def.spawn_chance == 0f)
{
assets._45_lc_plus_p_round_def.spawn_chance = 0.25f;
}
if (assets._38_special_plus_p_round_def.spawn_chance == 0f)
{
assets._38_special_plus_p_round_def.spawn_chance = 0.25f;
}
if (assets._50_ae_competition_round_def.spawn_chance == 0f)
{
assets._50_ae_competition_round_def.spawn_chance = 0.25f;
}
if (assets._50_ae_plus_p_round_def.spawn_chance == 0f)
{
assets._50_ae_plus_p_round_def.spawn_chance = 0.25f;
}
}
}