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

Ability to toggle certain client side effects #849

Open
ensiform opened this issue Jun 30, 2016 · 2 comments
Open

Ability to toggle certain client side effects #849

ensiform opened this issue Jun 30, 2016 · 2 comments

Comments

@ensiform
Copy link
Member

ensiform commented Jun 30, 2016

I think we should have a bitflagged cvar that allows players to toggle certain client side effects in our mod code that doesn't require using cg_renderToTextureFX 0 to shut off all of them at once.

Like, the push blur, player sphere refraction, cloak refract shader, and repeater orb.

@dusty22
Copy link

dusty22 commented Jul 11, 2016

How can bitflagged cvars be done? I've been wondering this.

@shinyquagsire23
Copy link
Contributor

@dusty22 Usually for a bitflagged anything, something like

#define SOME_FLAG 0x80

or

#define SOME_FLAG BIT(7)

and then

if(some_var_or_something & SOME_FLAG)
{
...
}

usually works pretty OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants