Ok I have the peeking somewhat working but still totally not correct..
I am basically changing the default view from 0,0,64 to -21,0,64
When facing North (I think that is the right direction ) works great :)
However when I move for example facing EAST I no longer lean left I lean
back or if im facing SOUTH I am not leaning right...
Which is not correct.
I am using player->SetViewOffset to set the camera view.
I guess my problem is not sure how to be able to SetViewOffset depending on
the direction of the player player.
I had looked at the VectorMA, not sure what info I need to pass to this
however.
I want to lean left / right about 15 - 20 degrees...
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "Hasan Aljudy" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, January 16, 2005 10:02 PM
Subject: Re: [hlcoders] Peeking - Left / Right
it's vector math, if you have a point, and you want a point away from
it at a certain distance in a certain direction you can easily
calculate the new point. The sdk has a funciton called VectorMA which
takes four paramters I believe .. first is the initial point, second
is direction, third is distance, 4th is a pointer to result.
On Sun, 16 Jan 2005 21:15:21 -0500, r00t 3:16 <[EMAIL PROTECTED]>
wrote:
I want to implement this, and I some what have this working, however.
player->SetViewOffset(); Needs to be adjusted depending on the players
position in the world.
For example. if I set the SetViewOffset to -20 x, If I am facing I
believe
North on the map I lean the correct way. However if I turn to the east
and
try to lean the player seems to lean back...
How would I be able to set this depending on the players position?
Or is there a better way to do this?
r00t 3:16
CQC Gaming
www.cqc-gaming.com
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders