Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed case when bxt_remove_fps_limit code is active if cheats disabled #359

Merged
merged 4 commits into from Nov 7, 2022

Conversation

SmileyAG
Copy link
Collaborator

No description provided.

BunnymodXT/modules/HwDLL.cpp Outdated Show resolved Hide resolved
}
else if (*reinterpret_cast<byte*>(pHost_FilterTime_FPS_Cap_Byte) == 0xEB)

if (CVars::bxt_remove_fps_limit.GetBool() && ((is_0x7E && CVars::sv_cheats.GetBool()) || is_0x75))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the sv_cheats check only in 0x7E case?

Copy link
Collaborator Author

@SmileyAG SmileyAG Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, let me explain what these two cases do:

  • 0x75 (1712-WON pattern) unlocks a cap for a higher FPS (not needed in sv_cheats tbh)
  • 0x7E (Steam pattern) unlocks a cap for set a <20 FPS if maxplayers > 1 (it really needs sv_cheats as I don't want anyone to use it on normal servers, the reason why I even added this is for funny local sessions with friends in co-op modifications for GoldSrc engine, e.g.: https://www.moddb.com/mods/blue-shift-coop/downloads)

BunnymodXT/modules/HwDLL.cpp Outdated Show resolved Hide resolved
BunnymodXT/modules/HwDLL.cpp Outdated Show resolved Hide resolved
@YaLTeR
Copy link
Owner

YaLTeR commented Nov 7, 2022

Alright, I guess it's good now. Thanks

@YaLTeR YaLTeR merged commit e68934f into YaLTeR:master Nov 7, 2022
@SmileyAG SmileyAG deleted the fix-sv_cheats-check branch November 8, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants