Raised This Month: $ Target: $400
 0% 

Change Veritcal aiming?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-14-2011 , 09:17   Change Veritcal aiming?
Reply With Quote #1

hi, after trying everything without 100% success i came here ^_^


PHP Code:
new Float:P_ANG[33][3]; 
so i
PHP Code:
 entity_get_vector(id,EV_VEC_angles,P_ANG[id]); 
then
PHP Code:
    entity_set_vector(idEV_VEC_anglesP_ANG[id]);
    
entity_set_int(idEV_INT_fixangle1); 
it changes aiming to direction which was saved, but it doesn't restore vertical position e.g. was looking at roof or floor, only at which direction user was looking. so, is it possible to save and then set vertical Aiming position also?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 05-14-2011 at 11:57.
Owyn is offline
Send a message via ICQ to Owyn
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 05-14-2011 , 14:39   Re: Change Veritcal aiming (z axis)?
Reply With Quote #2

Use EV_VEC_v_angle
hlstriker is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-14-2011 , 14:54   Re: Change Veritcal aiming (z axis)?
Reply With Quote #3

Store v_angle et restore to angles.
(Or store angles and restore in v_angle, don't remember).
You can see code in my migraine plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-14-2011 , 16:37   Re: Change Veritcal aiming (z axis)?
Reply With Quote #4

actually i've already tried v_angle and it didn't work + view_ofs and m_iFOV, did save them all and then restore but still got the result i've described (lack of vertical aiming)

>>Migraine
in your plugin you only use PunchAngle
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-14-2011 , 16:49   Re: Change Veritcal aiming?
Reply With Quote #5

Oh, then look in mpbhops, angle si saved when player jump and restore in a private function
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 05-14-2011 , 20:45   Re: Change Veritcal aiming (z axis)?
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Store v_angle et restore to angles.
(Or store angles and restore in v_angle, don't remember)
It is get with v_angle and set with angles. Sorry, I should have specified that in my first post :S
hlstriker is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-15-2011 , 04:38   Re: Change Veritcal aiming (z axis)?
Reply With Quote #7

Quote:
Originally Posted by hlstriker View Post
It is get with v_angle and set with angles. Sorry, I should have specified that in my first post :S
thx for clearing this out ^_^

but mpbhops was usefull also, cuz i replaced my old
PHP Code:
VEC_DUCK_HULL_MAX[3]    = { 16.0,  16.0,  18.0 }; 
with new
PHP Code:
VEC_DUCK_HULL_MAX[3]    = { 16.0,  16.0,  32.0 }; 
hope it's correct..
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode