We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806750c commit 1c012a8Copy full SHA for 1c012a8
sp/src/game/server/hl2/hl2_player.cpp
@@ -4036,7 +4036,10 @@ Vector CHL2_Player::EyeDirection2D( void )
4036
Vector CHL2_Player::EyeDirection3D( void )
4037
{
4038
Vector vecForward;
4039
-
+#ifdef MAPBASE
4040
+ EyeVectors( &vecForward );
4041
+ return vecForward;
4042
+#else
4043
// Return the vehicle angles if we request them
4044
if ( GetVehicle() != NULL )
4045
@@ -4047,6 +4050,7 @@ Vector CHL2_Player::EyeDirection3D( void )
4047
4050
4048
4051
AngleVectors( EyeAngles(), &vecForward );
4049
4052
return vecForward;
4053
+#endif
4054
}
4055
4056
0 commit comments