Raised This Month: $ Target: $400
 0% 

EV_VEC_view_ofs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 11-07-2005 , 20:57   EV_VEC_view_ofs
Reply With Quote #1

Code:
EV_VEC_view_ofs

How do you set this occording to the model size?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-07-2005 , 21:36  
Reply With Quote #2

According to model size?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 11-07-2005 , 21:39  
Reply With Quote #3

yes
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-07-2005 , 21:41  
Reply With Quote #4

I don't understand.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 11-07-2005 , 21:52  
Reply With Quote #5

Sorry, not good at explaining

Example:

The Onos model from NS. Now I want to change a players model in cs and I want the view to be higher.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-07-2005 , 23:49  
Reply With Quote #6

Code:
entity_set_vector(id,EV_VEC_view_ofs,{0.0,0.0,-120.0});

Adjust the last value. I can't remember what the default is.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 11-08-2005 , 01:09  
Reply With Quote #7

New question:

If this is to set
Code:
entity_set_vector(id,EV_VEC_view_ofs,{0.0,0.0,-120.0})

Would it be possible to get?
Im clueless I need a code it its possible
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 11-08-2005 , 01:46  
Reply With Quote #8

yes do entity_get_vector
Freecode is offline
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 11-08-2005 , 21:58  
Reply With Quote #9

If you want the origin from which the player is looking, just add the EV_VEC_view_ofs to EV_VEC_origin of the player.

Code:
new Float:viewofs[3], Float:origin[3] entity_get_vector( id, EV_VEC_view_ofs, viewofs ) entity_get_vector( id, EV_VEC_view_ofs origin ) //even though only one axis is effected, its just good habit to do them all ;) origin[0] += viewofs[0] origin[1] += viewofs[1] origin[2] += viewofs[2]
KCE is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 11-08-2005 , 22:08  
Reply With Quote #10

thnx for the info
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
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 23:59.


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