public override void PostUpdate(HudManager Manager, bool UseEnabled, bool Dead) { if (IsActive) { if (Player != null && !IsLocalPlayer()) { Player.Visible = false; } InvisibleEffect.ForceSetLastUsedFrom(InvisibleCooldown); if (InvisibleEffect.GetKD(false) == 0) { DisableInvisibility(); } } if (!IsLocalPlayer()) { return; } Player.myRend.color = IsActive ? HALF_INVISIBLE : Color.white; var Primary = ModActions.Primary; Primary.Active = !Dead; Primary.Update(); var Side = ModActions.Side; Side.Active = !Dead; Side.Update(); }
protected override void ResetRuntime() { InvisibleCooldown.Reset(); InvisibleEffect.Reset(); DisguiseCooldown.Reset(); }