AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   EV_VEC_view_ofs (https://forums.alliedmods.net/showthread.php?t=20404)

Cheap_Suit 11-07-2005 20:57

EV_VEC_view_ofs
 
Code:
EV_VEC_view_ofs

How do you set this occording to the model size?

XxAvalanchexX 11-07-2005 21:36

According to model size?

Cheap_Suit 11-07-2005 21:39

yes

XxAvalanchexX 11-07-2005 21:41

I don't understand.

Cheap_Suit 11-07-2005 21:52

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.

XxAvalanchexX 11-07-2005 23:49

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.

Cheap_Suit 11-08-2005 01:09

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

Freecode 11-08-2005 01:46

yes do entity_get_vector

KCE 11-08-2005 21:58

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]

Cheap_Suit 11-08-2005 22:08

thnx for the info :D


All times are GMT -4. The time now is 23:59.

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