This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Ev punch would roll the view but the effect wouldn't be the one
I expect... I've managed to have the effect I want when the player strafes. Here's the
code :
in view.cpp :
pparams->viewangles[ROLL] = V_CalcRoll (pparams->viewangles, pparams->simvel,
cv_strafe_angle->value, cv_strafe_incl_speed->value ) * 4;
where cv_strafe_angle and cv_strafe_incl_speed are client CVAR (default values are 2.5
and 300).
If you want, you can try, I find it nice :)
- Cortex : mapper & coder www.hlalbator.fr.st
----- Original Message -----
From: Commando
To: [EMAIL PROTECTED]
Sent: Monday, February 18, 2002 5:12 AM
Subject: Re: [hlcoders] DMC strafing effect
For some reason, I sent this, but it didn't hit the list. I probably used
a different email address, so here it goes again...
I don't play these mods, so I'm not positive that I know what you mean by
'rolled,' but if by that you mean that the view screen rotates slightly,
then all you need to do is adjust the punch angle slightly on the
client. To do this, adjust ev_punchangle[2] to a positive floating point
value to rotate clockwise, and a negative value to rotate
counter-clockwise. Depending on which file you do this in, you will
probably have to add an extern vec3_t ev_punchangle;
If you need to do it server side, I think that adjusting
m_pPlayer->pev->punchangle.z will do the same thing, but I have not tested
this...
Commando
http://www.tourofdutymod.com
At 02:59 PM 17/02/2002 +0100, you wrote:
>Hello,
>
>in DMC, when you strafe, your view is... rolled. I don't
>know how to explain this... You cans see this effect in DMC
>and in a lot of other mods (Blue-Shift, DOD, etc...). I would
>like to reproduce the same effect in my mod, but I don't know
>where this effect is controled in DMC... I've taken a look to
>dmc/view.cpp but I didn't see anything which looks like
>to do the effect I want.
>
>Anyone knows where I have to search ?
>
>Thx for any replies :)
>
> - Cortex : mapper & coder www.hlalbator.fr.st
_______________________________________________
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