private static void Postfix(RopeAnchorPoint __instance) { if (Utils.RollChance(10f)) { //MelonLogger.Log("Rope Anchor Point before: {0}", __instance.m_RopeDeployed); __instance.SetRopeActiveState(!__instance.m_RopeDeployed, false); __instance.m_RopeDeployed = !__instance.m_RopeDeployed; //MelonLogger.Log("Rope Anchor Point after: {0}", __instance.m_RopeDeployed); } }
public static void Prefix(RopeAnchorPoint __instance) { Debug.LogFormat("RopeAnchorPoint::ActionStarted"); __instance.m_ProgressBarDurationSeconds = actionTime; }