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 variables for constant first-person model offset #1324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Dec 28, 2021

This can be used to make the first-person weapon model less intrusive (or left-handed, although this isn't ideal as the model itself won't be mirrored).

Preview

Various combinations of /firstpersonside, /firstpersonup and /firstpersondist:

20211228223119

20211228223142

20211228223944

20211228224012

This can be used to make the first-person weapon model less intrusive
(or left-handed, although this isn't ideal as the model itself won't
be mirrored).
Copy link
Member

@qreeves qreeves left a comment

Choose a reason for hiding this comment

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

My only concern here is that the first person arms determine the muzzle location, and it would be possible to set them to a position that would pretty much allow a person to shoot around corners. The position may need to be constrained to the player's width, but I'm not certain if that is enough to mitigate the issue.

trans.add(vec(dirforward).mul(firstpersondist));
trans.add(vec(dirside).mul(firstpersonside));
trans.add(vec(dirup).mul(firstpersonup));
mdl.o.add(trans);
Copy link
Member

Choose a reason for hiding this comment

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

There's not much point to any of the intermediate vec's here.

@q009
Copy link
Member

q009 commented Jun 5, 2022

Any updates on this?

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

Successfully merging this pull request may close these issues.

None yet

3 participants