public static void CheatInvicible() { var localPlayerInfo = PlayerHelpers.GetLocalPlayerInfo(); if (localPlayerInfo == null) { Log.Warning("No local player found"); return; } PresentationHelpers.SubmitInput(new SimInputCheatToggleInvincible() { }); }
public static void CheatGiveAllItems() { var localPlayerInfo = PlayerHelpers.GetLocalPlayerInfo(); if (localPlayerInfo == null) { Log.Warning("No local player found"); return; } PresentationHelpers.SubmitInput(new SimInputCheatAddAllItems() { PlayerId = localPlayerInfo.SimPlayerId, }); }
public static void CheatHealSelf(int amount) { var localPlayerInfo = PlayerHelpers.GetLocalPlayerInfo(); if (localPlayerInfo == null) { Log.Warning("No local player found"); return; } PresentationHelpers.SubmitInput(new SimInputCheatDamageSelf() { PlayerId = localPlayerInfo.SimPlayerId, Damage = -amount }); }
public static void CheatSoloPlay(int playerIndex) { var localPlayerInfo = PlayerHelpers.GetLocalPlayerInfo(); if (localPlayerInfo == null) { Log.Warning("No local player found"); return; } PresentationHelpers.SubmitInput(new SimInputCheatSoloPlay() { PlayerId = localPlayerInfo.SimPlayerId, PawnIndex = playerIndex }); }
public static void CheatImpulseSelf(float x, float y) { var localPlayerInfo = PlayerHelpers.GetLocalPlayerInfo(); if (localPlayerInfo == null) { Log.Warning("No local player found"); return; } PresentationHelpers.SubmitInput(new SimInputCheatImpulseSelf() { PlayerId = localPlayerInfo.SimPlayerId, ImpulseValue = new fix2((fix)x, (fix)y) }); }
public static void CheatTeleportAtMouse() { var localPlayerInfo = PlayerHelpers.GetLocalPlayerInfo(); if (localPlayerInfo == null) { Log.Warning("No local player found"); return; } Vector3 destination = Camera.main.ScreenToWorldPoint(Input.mousePosition); PresentationHelpers.SubmitInput(new SimInputCheatTeleport() { PlayerId = localPlayerInfo.SimPlayerId, Destination = new fix2((fix)destination.x, (fix)destination.y) }); }