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

Add a translucent option for weapons #2918

Merged
merged 2 commits into from Feb 9, 2024

Conversation

VReaperV
Copy link
Contributor

@VReaperV VReaperV commented Feb 7, 2024

Adds a cg_drawGun 3 parameter that makes the first-person gun model translucent. Also adds a cg_drawGun 4 that renders both translucent guns and claws. This is a middle ground between not drawing the weapon at all so it doesn't obstruct the screen and still being able to see it.

unvanquished_2024-02-07_151142_000
unvanquished_2024-02-07_151200_000
3rd-person models keep using the non-translucent shaders:
unvanquished_2024-02-07_151354_000

@VReaperV VReaperV changed the title Add translucent option for weapons Add a translucent option for weapons Feb 7, 2024
Adds a cg_drawGun 3 parameter that makes the first-person gun model translucent. Also adds cg_drawGun 4 that renders both translucent guns and claws.
Copy link
Member

@DolceTriade DolceTriade left a comment

Choose a reason for hiding this comment

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

Does this need a corresponding UI change?

@VReaperV
Copy link
Contributor Author

VReaperV commented Feb 7, 2024

Good point, I didn't realize we even had a UI setting for cg_drawGun, heh.

@VReaperV
Copy link
Contributor Author

VReaperV commented Feb 8, 2024

It is now a UI option.

@slipher
Copy link
Contributor

slipher commented Feb 8, 2024

What's the purpose of this? Is it supposed to be used by players or is it a debugging tool?

@VReaperV
Copy link
Contributor Author

VReaperV commented Feb 8, 2024

What's the purpose of this? Is it supposed to be used by players or is it a debugging tool?

For players, to make the weapon less obstructive.

@VReaperV VReaperV merged commit ea28c0d into Unvanquished:master Feb 9, 2024
5 checks passed
@VReaperV VReaperV deleted the weapon-translucent branch February 9, 2024 16:43
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

3 participants