using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
using LethalLib.Modules;
using Microsoft.CodeAnalysis;
using Unity.Netcode;
using UnityEngine;
using UnityEngine.Rendering.HighDefinition;
using splatana.Behaviors;
using splatana.NetcodePatcher;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("splatana")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("replaces shovel")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("splatana")]
[assembly: AssemblyTitle("splatana")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
[module: NetcodePatchedAssembly]
internal class <Module>
{
static <Module>()
{
}
}
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace splatana
{
[BepInPlugin("splatana", "splatana", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private const string GUID = "Splatana Wiper";
private const string NAME = "Shovel Replacement Test";
private const string VERSION = "0.0.1";
public static ManualLogSource mlsTest;
public static Plugin instance;
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin splatana is loaded!");
mlsTest = ((BaseUnityPlugin)this).Logger;
instance = this;
Type[] types = Assembly.GetExecutingAssembly().GetTypes();
Type[] array = types;
foreach (Type type in array)
{
MethodInfo[] methods = type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic);
MethodInfo[] array2 = methods;
foreach (MethodInfo methodInfo in array2)
{
object[] customAttributes = methodInfo.GetCustomAttributes(typeof(RuntimeInitializeOnLoadMethodAttribute), inherit: false);
if (customAttributes.Length != 0)
{
methodInfo.Invoke(null, null);
}
}
}
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "splatanamod");
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>("Assets/Splatana/SplatanaWiper.asset");
GameObject sprayPaintPrefab = val.LoadAsset<GameObject>("Assets/Splatana/SprayDecal.prefab");
Material sprayMatPart = val.LoadAsset<Material>("Assets/Splatana/SpraypaintParticlePurple.mat");
Material sprayMatTex = val.LoadAsset<Material>("Assets/Splatana/SpraypaintTexPurple.mat");
Wiper.charging = val.LoadAsset<AudioClip>("Assets/Splatana/splatanaCharge.mp3");
Wiper.heavyAttack = val.LoadAsset<AudioClip>("Assets/Splatana/splatanaFull.mp3");
Wiper.lightAttack = val.LoadAsset<AudioClip>("Assets/Splatana/splatanaSwing.mp3");
Wiper.emptyAttack = val.LoadAsset<AudioClip>("Assets/Splatana/splatanaEmpty.mp3");
Wiper wiper = val2.spawnPrefab.AddComponent<Wiper>();
((GrabbableObject)wiper).grabbable = true;
((GrabbableObject)wiper).grabbableToEnemies = false;
((GrabbableObject)wiper).itemProperties = val2;
wiper.sprayPaintPrefab = sprayPaintPrefab;
wiper.sprayMatPart = sprayMatPart;
wiper.sprayMatTex = sprayMatTex;
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
Utilities.FixMixerGroups(val2.spawnPrefab);
Items.RegisterScrap(val2, 0, (LevelTypes)(-1));
TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>();
val3.clearPreviousText = true;
val3.displayText = "Wipe them out.\n";
Items.RegisterShopItem(val2, 500);
((BaseUnityPlugin)this).Logger.LogInfo((object)"Patched Item Tutorial");
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "splatana";
public const string PLUGIN_NAME = "splatana";
public const string PLUGIN_VERSION = "1.0.0";
}
}
namespace splatana.Behaviors
{
internal class Wiper : GrabbableObject
{
public bool reelingUp;
public bool isHoldingButton;
private Coroutine reelingUpCoroutine;
private RaycastHit[] objectsHitByShovel;
private List<RaycastHit> objectsHitByShovelList = new List<RaycastHit>();
public AudioSource shovelAudio;
public static AudioClip lightAttack;
public static AudioClip heavyAttack;
public static AudioClip emptyAttack;
public static AudioClip charging;
private PlayerControllerB previousPlayerHeldBy;
private int shovelMask = 11012424;
private RaycastHit sprayHit;
private int sprayPaintMask = 605030721;
private Vector3 previousSprayPosition;
public static List<GameObject> sprayPaintDecals = new List<GameObject>();
public static int sprayPaintDecalsIndex;
public GameObject sprayPaintPrefab;
private DecalProjector delayedSprayPaintDecal;
public int maxSprayPaintDecals = 1000;
public Material sprayMatPart;
public Material sprayMatTex;
private Stopwatch chargeTimer;
private bool charged = false;
private int battery = 19;
private static float[] chargeLevel = new float[21]
{
0.01f, 0.05f, 0.1f, 0.15f, 0.2f, 0.25f, 0.3f, 0.35f, 0.4f, 0.45f,
0.5f, 0.55f, 0.6f, 0.65f, 0.7f, 0.75f, 0.8f, 0.85f, 0.9f, 0.95f,
1f
};
public override void Start()
{
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
((GrabbableObject)this).Start();
chargeTimer = new Stopwatch();
sprayHit = default(RaycastHit);
shovelAudio = ((Component)this).GetComponent<AudioSource>();
base.insertedBattery.charge = chargeLevel[battery];
}
public override void ChargeBatteries()
{
if ((Object)(object)base.playerHeldBy != (Object)null && base.insertedBattery.charge >= 0.99f)
{
battery = 19;
}
else if (base.insertedBattery.charge < 0.04f)
{
base.insertedBattery.charge = chargeLevel[0];
}
batteryUpdateServerRpc(0);
}
public override void ItemActivate(bool used, bool buttonDown = true)
{
Plugin.mlsTest.LogInfo((object)"MLS LOG ACTIVATED?");
if ((Object)(object)base.playerHeldBy == (Object)null)
{
return;
}
isHoldingButton = buttonDown;
if (!reelingUp && buttonDown)
{
reelingUp = true;
previousPlayerHeldBy = base.playerHeldBy;
if (reelingUpCoroutine != null)
{
((MonoBehaviour)this).StopCoroutine(reelingUpCoroutine);
}
reelingUpCoroutine = ((MonoBehaviour)this).StartCoroutine(reelUpShovel());
}
}
private IEnumerator reelUpShovel()
{
base.playerHeldBy.activatingItem = true;
base.playerHeldBy.twoHanded = true;
base.playerHeldBy.playerBodyAnimator.ResetTrigger("shovelHit");
base.playerHeldBy.playerBodyAnimator.SetBool("reelingUp", true);
ReelUpSFXServerRpc();
yield return (object)new WaitForSeconds(0.35f);
charged = false;
chargeTimer.Start();
PlaySoundServerRpc(3);
yield return (object)new WaitUntil((Func<bool>)(() => !isHoldingButton || !base.isHeld));
chargeTimer.Stop();
if ((chargeTimer.ElapsedMilliseconds > 1000) & (battery >= 2))
{
charged = true;
}
StopSoundServerRpc();
chargeTimer.Reset();
SwingShovel(!base.isHeld);
yield return (object)new WaitForSeconds(0.13f);
yield return (object)new WaitForEndOfFrame();
HitShovel(!base.isHeld);
yield return (object)new WaitForSeconds(0.3f);
reelingUp = false;
reelingUpCoroutine = null;
}
[ServerRpc]
public void ReelUpSFXServerRpc()
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
//IL_00dc: Invalid comparison between Unknown and I4
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: 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_00c2: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Invalid comparison between Unknown and I4
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 1 && (networkManager.IsClient || networkManager.IsHost))
{
if (((NetworkBehaviour)this).OwnerClientId != networkManager.LocalClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
return;
}
ServerRpcParams val = default(ServerRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendServerRpc(3301095311u, val, (RpcDelivery)0);
((NetworkBehaviour)this).__endSendServerRpc(ref val2, 3301095311u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 1 && (networkManager.IsServer || networkManager.IsHost))
{
ReelUpSFXClientRpc();
}
}
[ClientRpc]
public void ReelUpSFXClientRpc()
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
//IL_0096: Invalid comparison between Unknown and I4
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_007c: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 2 && (networkManager.IsServer || networkManager.IsHost))
{
ClientRpcParams val = default(ClientRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendClientRpc(81345443u, val, (RpcDelivery)0);
((NetworkBehaviour)this).__endSendClientRpc(ref val2, 81345443u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 2 && (networkManager.IsClient || networkManager.IsHost) && ((NetworkBehaviour)this).IsOwner)
{
}
}
}
public override void DiscardItem()
{
if ((Object)(object)base.playerHeldBy != (Object)null)
{
base.playerHeldBy.activatingItem = false;
}
((GrabbableObject)this).DiscardItem();
}
public void SwingShovel(bool cancel = false)
{
//IL_002f: 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_0059: Unknown result type (might be due to invalid IL or missing references)
//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
previousPlayerHeldBy.playerBodyAnimator.SetBool("reelingUp", false);
if (!cancel)
{
ShapeModule shape = ((Component)this).gameObject.GetComponent<ParticleSystem>().shape;
if (charged)
{
PlaySoundServerRpc(1);
((ShapeModule)(ref shape)).rotation = new Vector3(25f, 25f, 60f);
particleServerRpc(50);
((Component)this).gameObject.GetComponent<ParticleSystem>().Emit(50);
}
else if (battery >= 1)
{
PlaySoundServerRpc(0);
((ShapeModule)(ref shape)).rotation = new Vector3(25f, 25f, -30f);
particleServerRpc(50);
((Component)this).gameObject.GetComponent<ParticleSystem>().Emit(50);
}
else
{
PlaySoundServerRpc(2);
}
previousPlayerHeldBy.UpdateSpecialAnimationValue(true, (short)((Component)previousPlayerHeldBy).transform.localEulerAngles.y, 0.4f, false);
}
}
public void HitShovel(bool cancel = false)
{
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
//IL_0065: Unknown result type (might be due to invalid IL or missing references)
//IL_006f: Unknown result type (might be due to invalid IL or missing references)
//IL_0074: Unknown result type (might be due to invalid IL or missing references)
//IL_038c: Unknown result type (might be due to invalid IL or missing references)
//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
//IL_0182: Unknown result type (might be due to invalid IL or missing references)
//IL_0187: Unknown result type (might be due to invalid IL or missing references)
//IL_01a5: Unknown result type (might be due to invalid IL or missing references)
//IL_01aa: Unknown result type (might be due to invalid IL or missing references)
//IL_0245: Unknown result type (might be due to invalid IL or missing references)
//IL_024a: 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_01da: Unknown result type (might be due to invalid IL or missing references)
//IL_0267: Unknown result type (might be due to invalid IL or missing references)
//IL_026c: 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_0294: Unknown result type (might be due to invalid IL or missing references)
//IL_0298: Unknown result type (might be due to invalid IL or missing references)
//IL_029d: 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_030c: Unknown result type (might be due to invalid IL or missing references)
//IL_02b9: Unknown result type (might be due to invalid IL or missing references)
//IL_02c6: 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_02cf: Unknown result type (might be due to invalid IL or missing references)
//IL_031d: Unknown result type (might be due to invalid IL or missing references)
if ((Object)(object)previousPlayerHeldBy == (Object)null)
{
return;
}
previousPlayerHeldBy.activatingItem = false;
bool flag = false;
int num = -1;
if (!cancel)
{
previousPlayerHeldBy.twoHanded = false;
objectsHitByShovel = Physics.SphereCastAll(((Component)previousPlayerHeldBy.gameplayCamera).transform.position + ((Component)previousPlayerHeldBy.gameplayCamera).transform.right * -0.35f, (battery < 1) ? 0f : (charged ? 0.8f : 0.6f), ((Component)previousPlayerHeldBy.gameplayCamera).transform.forward, (battery < 1) ? 0f : (charged ? 12f : 8f), shovelMask, (QueryTriggerInteraction)2);
objectsHitByShovelList = objectsHitByShovel.OrderBy((RaycastHit x) => ((RaycastHit)(ref x)).distance).ToList();
batteryUpdateServerRpc((battery >= 1) ? ((!charged) ? 1 : 2) : 0);
Debug.Log((object)("BATTERY IS: " + battery));
if (battery >= 1)
{
TrySpraying();
}
IHittable val2 = default(IHittable);
RaycastHit val3 = default(RaycastHit);
for (int i = 0; i < objectsHitByShovelList.Count; i++)
{
RaycastHit val = objectsHitByShovelList[i];
if (((Component)((RaycastHit)(ref val)).transform).gameObject.layer != 8)
{
val = objectsHitByShovelList[i];
if (((Component)((RaycastHit)(ref val)).transform).gameObject.layer != 11)
{
val = objectsHitByShovelList[i];
if (!((Component)((RaycastHit)(ref val)).transform).TryGetComponent<IHittable>(ref val2))
{
continue;
}
val = objectsHitByShovelList[i];
if ((Object)(object)((RaycastHit)(ref val)).transform == (Object)(object)((Component)previousPlayerHeldBy).transform)
{
continue;
}
val = objectsHitByShovelList[i];
if (!(((RaycastHit)(ref val)).point == Vector3.zero))
{
Vector3 position = ((Component)previousPlayerHeldBy.gameplayCamera).transform.position;
val = objectsHitByShovelList[i];
if (Physics.Linecast(position, ((RaycastHit)(ref val)).point, ref val3, StartOfRound.Instance.collidersAndRoomMaskAndDefault))
{
continue;
}
}
flag = true;
Vector3 forward = ((Component)previousPlayerHeldBy.gameplayCamera).transform.forward;
try
{
val2.Hit((!charged) ? 1 : 2, forward, previousPlayerHeldBy, true, -1);
}
catch (Exception arg)
{
Debug.Log((object)$"Exception caught when hitting object with shovel from player #{previousPlayerHeldBy.playerClientId}: {arg}");
}
continue;
}
}
flag = true;
val = objectsHitByShovelList[i];
string tag = ((Component)((RaycastHit)(ref val)).collider).gameObject.tag;
for (int j = 0; j < StartOfRound.Instance.footstepSurfaces.Length; j++)
{
if (StartOfRound.Instance.footstepSurfaces[j].surfaceTag == tag)
{
num = j;
break;
}
}
}
}
if (flag)
{
Object.FindObjectOfType<RoundManager>().PlayAudibleNoise(((Component)this).transform.position, 17f, 0.8f, 0, false, 0);
base.playerHeldBy.playerBodyAnimator.SetTrigger("shovelHit");
}
}
public bool TrySpraying()
{
//IL_0016: Unknown result type (might be due to invalid IL or missing references)
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_006c: Unknown result type (might be due to invalid IL or missing references)
if (AddSprayPaintLocal(((Component)GameNetworkManager.Instance.localPlayerController.gameplayCamera).transform.position, ((Component)GameNetworkManager.Instance.localPlayerController.gameplayCamera).transform.forward))
{
SprayPaintServerRpc(((Component)GameNetworkManager.Instance.localPlayerController.gameplayCamera).transform.position, ((Component)GameNetworkManager.Instance.localPlayerController.gameplayCamera).transform.forward);
return true;
}
return false;
}
private bool AddSprayPaintLocal(Vector3 sprayPos, Vector3 sprayRot)
{
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: 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_0084: 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_0092: 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_0135: Unknown result type (might be due to invalid IL or missing references)
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Unknown result type (might be due to invalid IL or missing references)
//IL_00e2: 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_00e8: Unknown result type (might be due to invalid IL or missing references)
//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
//IL_00f5: Unknown result type (might be due to invalid IL or missing references)
//IL_051c: Unknown result type (might be due to invalid IL or missing references)
//IL_0412: Unknown result type (might be due to invalid IL or missing references)
//IL_05ac: Unknown result type (might be due to invalid IL or missing references)
//IL_05be: Unknown result type (might be due to invalid IL or missing references)
//IL_05f6: Unknown result type (might be due to invalid IL or missing references)
//IL_05fb: Unknown result type (might be due to invalid IL or missing references)
float num = (charged ? 3f : 2f);
if ((Object)(object)base.playerHeldBy == (Object)null)
{
return false;
}
ToggleSprayCollisionOnHolder(enable: false);
if ((Object)(object)RoundManager.Instance.mapPropsContainer == (Object)null)
{
RoundManager.Instance.mapPropsContainer = GameObject.FindGameObjectWithTag("MapPropsContainer");
}
Ray[] array = (Ray[])(object)new Ray[12];
Vector3 position = ((Component)this).transform.position;
for (int i = 0; i < (charged ? 12 : 8); i++)
{
array[i] = new Ray(sprayPos, sprayRot);
if (!Physics.Raycast(array[i], ref sprayHit, 1f * ((float)i + 1f), sprayPaintMask, (QueryTriggerInteraction)2))
{
position = ((Ray)(ref array[i])).GetPoint(1f * ((float)i + 1f));
array[i] = new Ray(position, Vector3.down);
if (!Physics.Raycast(array[i], ref sprayHit, 12f, sprayPaintMask, (QueryTriggerInteraction)2))
{
ToggleSprayCollisionOnHolder(enable: true);
continue;
}
}
if (Vector3.Distance(((RaycastHit)(ref sprayHit)).point, previousSprayPosition) < 0.125f)
{
ToggleSprayCollisionOnHolder(enable: true);
continue;
}
int num2 = -1;
Transform val;
if (((Component)((RaycastHit)(ref sprayHit)).collider).gameObject.layer == 11 || ((Component)((RaycastHit)(ref sprayHit)).collider).gameObject.layer == 8 || ((Component)((RaycastHit)(ref sprayHit)).collider).gameObject.layer == 0)
{
val = ((!base.isInElevator && !base.playerHeldBy.isInElevator && !StartOfRound.Instance.inShipPhase && !((Object)(object)RoundManager.Instance.mapPropsContainer == (Object)null)) ? RoundManager.Instance.mapPropsContainer.transform : StartOfRound.Instance.elevatorTransform);
}
else
{
if (((Component)((RaycastHit)(ref sprayHit)).collider).tag.StartsWith("PlayerBody"))
{
switch (((Component)((RaycastHit)(ref sprayHit)).collider).tag)
{
case "PlayerBody":
num2 = 0;
break;
case "PlayerBody1":
num2 = 1;
break;
case "PlayerBody2":
num2 = 2;
break;
case "PlayerBody3":
num2 = 3;
break;
}
if (num2 == (int)base.playerHeldBy.playerClientId)
{
ToggleSprayCollisionOnHolder(enable: true);
return false;
}
}
else if (((Component)((RaycastHit)(ref sprayHit)).collider).tag.StartsWith("PlayerRagdoll"))
{
switch (((Component)((RaycastHit)(ref sprayHit)).collider).tag)
{
case "PlayerRagdoll":
num2 = 0;
break;
case "PlayerRagdoll1":
num2 = 1;
break;
case "PlayerRagdoll2":
num2 = 2;
break;
case "PlayerRagdoll3":
num2 = 3;
break;
}
}
val = ((Component)((RaycastHit)(ref sprayHit)).collider).transform;
}
sprayPaintDecalsIndex = (sprayPaintDecalsIndex + 1) % maxSprayPaintDecals;
DecalProjector val2 = null;
GameObject val3;
if (sprayPaintDecals.Count <= sprayPaintDecalsIndex)
{
for (int j = 0; j < 200; j++)
{
if (sprayPaintDecals.Count >= maxSprayPaintDecals)
{
break;
}
val3 = Object.Instantiate<GameObject>(sprayPaintPrefab, val);
val2 = val3.GetComponent<DecalProjector>();
if ((Object)(object)val2.material != (Object)(object)sprayMatTex)
{
val2.material = sprayMatTex;
}
val2.fadeFactor = 1f;
val2.fadeScale = 0f;
val2.ResizeAroundPivot(new Vector3(num, num, num));
sprayPaintDecals.Add(val3);
}
}
if ((Object)(object)sprayPaintDecals[sprayPaintDecalsIndex] == (Object)null)
{
val3 = Object.Instantiate<GameObject>(sprayPaintPrefab, val);
sprayPaintDecals[sprayPaintDecalsIndex] = val3;
}
else
{
if (!sprayPaintDecals[sprayPaintDecalsIndex].activeSelf)
{
sprayPaintDecals[sprayPaintDecalsIndex].SetActive(true);
}
val3 = sprayPaintDecals[sprayPaintDecalsIndex];
}
val2 = val3.GetComponent<DecalProjector>();
if ((Object)(object)val2.material != (Object)(object)sprayMatTex)
{
val2.material = sprayMatTex;
}
val2.fadeFactor = 1f;
val2.fadeScale = 0f;
val2.ResizeAroundPivot(new Vector3(num, num, num));
switch (num2)
{
case 0:
val2.decalLayerMask = (DecalLayerEnum)16;
break;
case 1:
val2.decalLayerMask = (DecalLayerEnum)32;
break;
case 2:
val2.decalLayerMask = (DecalLayerEnum)64;
break;
case 3:
val2.decalLayerMask = (DecalLayerEnum)128;
break;
case -1:
val2.decalLayerMask = (DecalLayerEnum)1;
break;
}
val3.transform.position = ((Ray)(ref array[i])).GetPoint(((RaycastHit)(ref sprayHit)).distance - 0.1f);
val3.transform.forward = sprayRot;
if ((Object)(object)val3.transform.parent != (Object)(object)val)
{
val3.transform.SetParent(val);
}
previousSprayPosition = ((RaycastHit)(ref sprayHit)).point;
delayedSprayPaintDecal = val2;
ToggleSprayCollisionOnHolder(enable: true);
}
return true;
}
[ServerRpc]
public void SprayPaintServerRpc(Vector3 sprayPos, Vector3 sprayRot)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
//IL_00f6: Invalid comparison between Unknown and I4
//IL_011d: Unknown result type (might be due to invalid IL or missing references)
//IL_011e: Unknown result type (might be due to invalid IL or missing references)
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: 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_00dc: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Invalid comparison between Unknown and I4
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 1 && (networkManager.IsClient || networkManager.IsHost))
{
if (((NetworkBehaviour)this).OwnerClientId != networkManager.LocalClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
return;
}
ServerRpcParams val = default(ServerRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendServerRpc(4071669652u, val, (RpcDelivery)0);
((FastBufferWriter)(ref val2)).WriteValueSafe(ref sprayPos);
((FastBufferWriter)(ref val2)).WriteValueSafe(ref sprayRot);
((NetworkBehaviour)this).__endSendServerRpc(ref val2, 4071669652u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 1 && (networkManager.IsServer || networkManager.IsHost))
{
SprayPaintClientRpc(sprayPos, sprayRot);
}
}
[ClientRpc]
public void SprayPaintClientRpc(Vector3 sprayPos, Vector3 sprayRot)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
//IL_00b0: Invalid comparison between Unknown and I4
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_0096: 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_00d8: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 2 && (networkManager.IsServer || networkManager.IsHost))
{
ClientRpcParams val = default(ClientRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendClientRpc(1933545033u, val, (RpcDelivery)0);
((FastBufferWriter)(ref val2)).WriteValueSafe(ref sprayPos);
((FastBufferWriter)(ref val2)).WriteValueSafe(ref sprayRot);
((NetworkBehaviour)this).__endSendClientRpc(ref val2, 1933545033u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 2 && (networkManager.IsClient || networkManager.IsHost))
{
AddSprayPaintLocal(sprayPos, sprayRot);
}
}
}
[ServerRpc]
public void particleServerRpc(int count)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00df: Unknown result type (might be due to invalid IL or missing references)
//IL_00e9: Invalid comparison between Unknown and I4
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: 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_00b7: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Invalid comparison between Unknown and I4
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 1 && (networkManager.IsClient || networkManager.IsHost))
{
if (((NetworkBehaviour)this).OwnerClientId != networkManager.LocalClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
return;
}
ServerRpcParams val = default(ServerRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendServerRpc(635195436u, val, (RpcDelivery)0);
BytePacker.WriteValueBitPacked(val2, count);
((NetworkBehaviour)this).__endSendServerRpc(ref val2, 635195436u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 1 && (networkManager.IsServer || networkManager.IsHost))
{
particleClientRpc(50);
}
}
[ClientRpc]
public void particleClientRpc(int count)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Invalid comparison between Unknown and I4
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0089: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 2 && (networkManager.IsServer || networkManager.IsHost))
{
ClientRpcParams val = default(ClientRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendClientRpc(1423356996u, val, (RpcDelivery)0);
BytePacker.WriteValueBitPacked(val2, count);
((NetworkBehaviour)this).__endSendClientRpc(ref val2, 1423356996u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 2 && (networkManager.IsClient || networkManager.IsHost))
{
((Component)this).gameObject.GetComponent<ParticleSystem>().Emit(count);
}
}
}
private void ToggleSprayCollisionOnHolder(bool enable)
{
if ((Object)(object)base.playerHeldBy == (Object)null)
{
Debug.Log((object)"playerheldby is null!!!!!");
}
else if (!enable)
{
for (int i = 0; i < base.playerHeldBy.bodyPartSpraypaintColliders.Length; i++)
{
base.playerHeldBy.bodyPartSpraypaintColliders[i].enabled = false;
((Component)base.playerHeldBy.bodyPartSpraypaintColliders[i]).gameObject.layer = 2;
}
}
else
{
for (int j = 0; j < base.playerHeldBy.bodyPartSpraypaintColliders.Length; j++)
{
base.playerHeldBy.bodyPartSpraypaintColliders[j].enabled = false;
((Component)base.playerHeldBy.bodyPartSpraypaintColliders[j]).gameObject.layer = 29;
}
}
}
[ServerRpc]
public void batteryUpdateServerRpc(int drain)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00df: Unknown result type (might be due to invalid IL or missing references)
//IL_00e9: Invalid comparison between Unknown and I4
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: 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_00b7: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Invalid comparison between Unknown and I4
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 1 && (networkManager.IsClient || networkManager.IsHost))
{
if (((NetworkBehaviour)this).OwnerClientId != networkManager.LocalClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
return;
}
ServerRpcParams val = default(ServerRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendServerRpc(1122054540u, val, (RpcDelivery)0);
BytePacker.WriteValueBitPacked(val2, drain);
((NetworkBehaviour)this).__endSendServerRpc(ref val2, 1122054540u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 1 && (networkManager.IsServer || networkManager.IsHost))
{
batteryUpdateClientRpc(drain);
}
}
[ClientRpc]
public void batteryUpdateClientRpc(int drain)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Invalid comparison between Unknown and I4
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0089: Unknown result type (might be due to invalid IL or missing references)
//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ef: Expected O, but got Unknown
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 2 && (networkManager.IsServer || networkManager.IsHost))
{
ClientRpcParams val = default(ClientRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendClientRpc(2100788632u, val, (RpcDelivery)0);
BytePacker.WriteValueBitPacked(val2, drain);
((NetworkBehaviour)this).__endSendClientRpc(ref val2, 2100788632u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 2 && (networkManager.IsClient || networkManager.IsHost))
{
battery -= drain;
base.insertedBattery = new Battery(false, chargeLevel[battery]);
}
}
}
[ServerRpc]
public void PlaySoundServerRpc(int id)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00df: Unknown result type (might be due to invalid IL or missing references)
//IL_00e9: Invalid comparison between Unknown and I4
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: 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_00b7: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Invalid comparison between Unknown and I4
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 1 && (networkManager.IsClient || networkManager.IsHost))
{
if (((NetworkBehaviour)this).OwnerClientId != networkManager.LocalClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
return;
}
ServerRpcParams val = default(ServerRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendServerRpc(906119475u, val, (RpcDelivery)0);
BytePacker.WriteValueBitPacked(val2, id);
((NetworkBehaviour)this).__endSendServerRpc(ref val2, 906119475u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 1 && (networkManager.IsServer || networkManager.IsHost))
{
PlaySoundClientRpc(id);
}
}
[ClientRpc]
public void PlaySoundClientRpc(int id)
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Invalid comparison between Unknown and I4
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0089: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 2 && (networkManager.IsServer || networkManager.IsHost))
{
ClientRpcParams val = default(ClientRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendClientRpc(250790546u, val, (RpcDelivery)0);
BytePacker.WriteValueBitPacked(val2, id);
((NetworkBehaviour)this).__endSendClientRpc(ref val2, 250790546u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 2 && (networkManager.IsClient || networkManager.IsHost))
{
switch (id)
{
case 0:
shovelAudio.PlayOneShot(lightAttack);
break;
case 1:
shovelAudio.PlayOneShot(heavyAttack);
break;
case 2:
shovelAudio.PlayOneShot(emptyAttack);
break;
case 3:
shovelAudio.PlayOneShot(charging);
break;
}
}
}
[ServerRpc]
public void StopSoundServerRpc()
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
//IL_00dc: Invalid comparison between Unknown and I4
//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: 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_00c2: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Invalid comparison between Unknown and I4
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 1 && (networkManager.IsClient || networkManager.IsHost))
{
if (((NetworkBehaviour)this).OwnerClientId != networkManager.LocalClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
return;
}
ServerRpcParams val = default(ServerRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendServerRpc(3753576891u, val, (RpcDelivery)0);
((NetworkBehaviour)this).__endSendServerRpc(ref val2, 3753576891u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 1 && (networkManager.IsServer || networkManager.IsHost))
{
StopSoundClientRpc();
}
}
[ClientRpc]
public void StopSoundClientRpc()
{
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Invalid comparison between Unknown and I4
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
//IL_0096: Invalid comparison between Unknown and I4
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_007c: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = ((NetworkBehaviour)this).NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
if ((int)((NetworkBehaviour)this).__rpc_exec_stage != 2 && (networkManager.IsServer || networkManager.IsHost))
{
ClientRpcParams val = default(ClientRpcParams);
FastBufferWriter val2 = ((NetworkBehaviour)this).__beginSendClientRpc(4161697955u, val, (RpcDelivery)0);
((NetworkBehaviour)this).__endSendClientRpc(ref val2, 4161697955u, val, (RpcDelivery)0);
}
if ((int)((NetworkBehaviour)this).__rpc_exec_stage == 2 && (networkManager.IsClient || networkManager.IsHost))
{
shovelAudio.Stop();
}
}
}
protected override void __initializeVariables()
{
((GrabbableObject)this).__initializeVariables();
}
[RuntimeInitializeOnLoadMethod]
internal static void InitializeRPCS_Wiper()
{
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_001b: Expected O, but got Unknown
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Expected O, but got Unknown
//IL_0047: Unknown result type (might be due to invalid IL or missing references)
//IL_0051: Expected O, but got Unknown
//IL_0062: Unknown result type (might be due to invalid IL or missing references)
//IL_006c: Expected O, but got Unknown
//IL_007d: Unknown result type (might be due to invalid IL or missing references)
//IL_0087: Expected O, but got Unknown
//IL_0098: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Expected O, but got Unknown
//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
//IL_00bd: Expected O, but got Unknown
//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Expected O, but got Unknown
//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
//IL_00f3: Expected O, but got Unknown
//IL_0104: Unknown result type (might be due to invalid IL or missing references)
//IL_010e: Expected O, but got Unknown
//IL_011f: Unknown result type (might be due to invalid IL or missing references)
//IL_0129: Expected O, but got Unknown
//IL_013a: Unknown result type (might be due to invalid IL or missing references)
//IL_0144: Expected O, but got Unknown
NetworkManager.__rpc_func_table.Add(3301095311u, new RpcReceiveHandler(__rpc_handler_3301095311));
NetworkManager.__rpc_func_table.Add(81345443u, new RpcReceiveHandler(__rpc_handler_81345443));
NetworkManager.__rpc_func_table.Add(4071669652u, new RpcReceiveHandler(__rpc_handler_4071669652));
NetworkManager.__rpc_func_table.Add(1933545033u, new RpcReceiveHandler(__rpc_handler_1933545033));
NetworkManager.__rpc_func_table.Add(635195436u, new RpcReceiveHandler(__rpc_handler_635195436));
NetworkManager.__rpc_func_table.Add(1423356996u, new RpcReceiveHandler(__rpc_handler_1423356996));
NetworkManager.__rpc_func_table.Add(1122054540u, new RpcReceiveHandler(__rpc_handler_1122054540));
NetworkManager.__rpc_func_table.Add(2100788632u, new RpcReceiveHandler(__rpc_handler_2100788632));
NetworkManager.__rpc_func_table.Add(906119475u, new RpcReceiveHandler(__rpc_handler_906119475));
NetworkManager.__rpc_func_table.Add(250790546u, new RpcReceiveHandler(__rpc_handler_250790546));
NetworkManager.__rpc_func_table.Add(3753576891u, new RpcReceiveHandler(__rpc_handler_3753576891));
NetworkManager.__rpc_func_table.Add(4161697955u, new RpcReceiveHandler(__rpc_handler_4161697955));
}
private static void __rpc_handler_3301095311(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Unknown result type (might be due to invalid IL or missing references)
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Invalid comparison between Unknown and I4
NetworkManager networkManager = target.NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if (rpcParams.Server.Receive.SenderClientId != target.OwnerClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
}
else
{
target.__rpc_exec_stage = (__RpcExecStage)1;
((Wiper)(object)target).ReelUpSFXServerRpc();
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_81345443(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0029: 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)
NetworkManager networkManager = target.NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
target.__rpc_exec_stage = (__RpcExecStage)2;
((Wiper)(object)target).ReelUpSFXClientRpc();
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_4071669652(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0090: 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_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Invalid comparison between Unknown and I4
NetworkManager networkManager = target.NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if (rpcParams.Server.Receive.SenderClientId != target.OwnerClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
}
else
{
Vector3 sprayPos = default(Vector3);
((FastBufferReader)(ref reader)).ReadValueSafe(ref sprayPos);
Vector3 sprayRot = default(Vector3);
((FastBufferReader)(ref reader)).ReadValueSafe(ref sprayRot);
target.__rpc_exec_stage = (__RpcExecStage)1;
((Wiper)(object)target).SprayPaintServerRpc(sprayPos, sprayRot);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_1933545033(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0043: Unknown result type (might be due to invalid IL or missing references)
//IL_004e: 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_0061: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = target.NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
Vector3 sprayPos = default(Vector3);
((FastBufferReader)(ref reader)).ReadValueSafe(ref sprayPos);
Vector3 sprayRot = default(Vector3);
((FastBufferReader)(ref reader)).ReadValueSafe(ref sprayRot);
target.__rpc_exec_stage = (__RpcExecStage)2;
((Wiper)(object)target).SprayPaintClientRpc(sprayPos, sprayRot);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_635195436(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: 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_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Invalid comparison between Unknown and I4
NetworkManager networkManager = target.NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if (rpcParams.Server.Receive.SenderClientId != target.OwnerClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
}
else
{
int count = default(int);
ByteUnpacker.ReadValueBitPacked(reader, ref count);
target.__rpc_exec_stage = (__RpcExecStage)1;
((Wiper)(object)target).particleServerRpc(count);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_1423356996(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = target.NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
int count = default(int);
ByteUnpacker.ReadValueBitPacked(reader, ref count);
target.__rpc_exec_stage = (__RpcExecStage)2;
((Wiper)(object)target).particleClientRpc(count);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_1122054540(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: 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_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Invalid comparison between Unknown and I4
NetworkManager networkManager = target.NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if (rpcParams.Server.Receive.SenderClientId != target.OwnerClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
}
else
{
int drain = default(int);
ByteUnpacker.ReadValueBitPacked(reader, ref drain);
target.__rpc_exec_stage = (__RpcExecStage)1;
((Wiper)(object)target).batteryUpdateServerRpc(drain);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_2100788632(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = target.NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
int drain = default(int);
ByteUnpacker.ReadValueBitPacked(reader, ref drain);
target.__rpc_exec_stage = (__RpcExecStage)2;
((Wiper)(object)target).batteryUpdateClientRpc(drain);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_906119475(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: 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_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Invalid comparison between Unknown and I4
NetworkManager networkManager = target.NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if (rpcParams.Server.Receive.SenderClientId != target.OwnerClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
}
else
{
int id = default(int);
ByteUnpacker.ReadValueBitPacked(reader, ref id);
target.__rpc_exec_stage = (__RpcExecStage)1;
((Wiper)(object)target).PlaySoundServerRpc(id);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_250790546(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
NetworkManager networkManager = target.NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
int id = default(int);
ByteUnpacker.ReadValueBitPacked(reader, ref id);
target.__rpc_exec_stage = (__RpcExecStage)2;
((Wiper)(object)target).PlaySoundClientRpc(id);
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_3753576891(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Unknown result type (might be due to invalid IL or missing references)
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Invalid comparison between Unknown and I4
NetworkManager networkManager = target.NetworkManager;
if (networkManager == null || !networkManager.IsListening)
{
return;
}
if (rpcParams.Server.Receive.SenderClientId != target.OwnerClientId)
{
if ((int)networkManager.LogLevel <= 1)
{
Debug.LogError((object)"Only the owner can invoke a ServerRpc that requires ownership!");
}
}
else
{
target.__rpc_exec_stage = (__RpcExecStage)1;
((Wiper)(object)target).StopSoundServerRpc();
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
private static void __rpc_handler_4161697955(NetworkBehaviour target, FastBufferReader reader, __RpcParams rpcParams)
{
//IL_0029: 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)
NetworkManager networkManager = target.NetworkManager;
if (networkManager != null && networkManager.IsListening)
{
target.__rpc_exec_stage = (__RpcExecStage)2;
((Wiper)(object)target).StopSoundClientRpc();
target.__rpc_exec_stage = (__RpcExecStage)0;
}
}
protected internal override string __getTypeName()
{
return "Wiper";
}
}
}
namespace splatana.NetcodePatcher
{
[AttributeUsage(AttributeTargets.Module)]
internal class NetcodePatchedAssemblyAttribute : Attribute
{
}
}