public override void PostUpdate(HudManager Manager, bool UseEnabled, bool Dead) { if (IsActive) { TimeWarpEffect.ForceSetLastUsedFrom(TimeWarpCooldown); if (TimeWarpEffect.GetKD(false) == 0) { DisableTimeWarp(); } } if (!IsLocalPlayer()) { return; } var Primary = ModActions.Primary; Primary.Active = !Dead; Primary.Update(); var Active = false; foreach (var Task in Player.myTasks) { if (Task.IsComplete) { continue; } Active = true; break; } var Side = ModActions.Side; Side.Active = Active && !Dead; Side.Update(); }
protected override void ResetRuntime() { TimeWarpCooldown.Reset(); TasksCooldown.Reset(); TimeWarpEffect.Reset(); }