[HELP] pev_angles Problem
I wanted to make a dizzy plugin. So I'm spinning the players view using pev_angles. The problem is the Y axis (players view up or down) keeps resetting to 0 and I don't know why. I'm storing all current pev_angle information in g_dizzyangle[user][0] and only editing g_dizzyangle[user][2] to spin the view. Still the Y axis keeps resetting itself. I want the player to still be able to look up or down while his world is spinning...
PHP Code:
|
Re: [HELP] pev_angles Problem
pev_angle it's model angle, pev_v_angle it's the view angle, that being said, rotate the pev_v_angle instead.
|
Re: [HELP] pev_angles Problem
Quote:
PHP Code:
|
Re: [HELP] pev_angles Problem
Try removing pev_fixangle from the code.
|
Re: [HELP] pev_angles Problem
alter punchangle instead, view angles are reset by the game
|
Re: [HELP] pev_angles Problem
I got it! In order to make your Y axis angle (up and down view) stay the same you have to multiply it by -3. I'll explain it in detail in case someone needs this as well.
So basically your angle for pev_angles has 3 parts: Angle [0] makes you look up or down. Angle [1] left to right. And angle [2], well let's say you spin in this angle and it'll like you're doing cartwheels. I experimented and made two commands: Check_Angle and Set_Angle, which are both self explanatory. But when I check angle[0] and it returns, let's say 7.0; when I then set angle[0] to 7.0 it gives me a different angle. So I set the angle to -90.0 and when I checked it it was 30.0. Here's the code I used. PHP Code:
Thanks to everyone who replied. Knowing people are ready support you in this site is much appreciated... |
Re: [HELP] pev_angles Problem
Quote:
Also the difference between the pev_v_angle and pev_angles is the origin position for View angel it's the player pos and for angles its the model origin. So I do suggest just to apply a random left and right velocity with changing in punchangles slightly. |
| All times are GMT -4. The time now is 17:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.