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

Wilson looks at targets through cameras #283

Open
wants to merge 1 commit into
base: ez2/mapbase
Choose a base branch
from

Conversation

Blixibon
Copy link
Collaborator

@Blixibon Blixibon commented Dec 16, 2024

This PR allows omnipresent Wilson to look at targets through point_wilson_cameras.

This PR also fixes Wilson not being able to use many of his response concepts (fidgeting, etc.)

@Blixibon Blixibon requested a review from 1upD December 16, 2024 15:24
Comment on lines +2314 to +2316
Vector vecOrigin;
QAngle angAngles;
MatrixAngles( matTargetToWilson, angAngles, vecOrigin );

Choose a reason for hiding this comment

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

Suggested change
Vector vecOrigin;
QAngle angAngles;
MatrixAngles( matTargetToWilson, angAngles, vecOrigin );
Vector vecOrigin;
MatrixGetColumn( matTargetToWilson, 3, vecOrigin );

Comment on lines +2303 to +2304
matrix3x4_t matWorldToTarget, matCameraToTarget, matTargetToCamera;
AngleIMatrix( QAngle(), vecTargetPos, matWorldToTarget );

Choose a reason for hiding this comment

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

Suggested change
matrix3x4_t matWorldToTarget, matCameraToTarget, matTargetToCamera;
AngleIMatrix( QAngle(), vecTargetPos, matWorldToTarget );
matrix3x4_t matCameraToTarget, matTargetToCamera;
matrix3x4_t matWorldToTarget(
1.0f, 0.0f, 0.0f, -vecTargetPos.x,
0.0f, 1.0f, 0.0f, -vecTargetPos.y,
0.0f, 0.0f, 1.0f, -vecTargetPos.z );

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.

3 participants