Raised This Month: $ Target: $400
 0% 

Ham_EyePosition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 16:53   Ham_EyePosition
Reply With Quote #1

How do i use it?

PHP Code:
new Float:eyes[3];
ExecuteHam(Ham_EyePositionideyes); 
Is crashing my server. If that's the correct usage, can someone reproduce it?
__________________
joaquimandrade is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-29-2009 , 17:20   Re: Ham_EyePosition
Reply With Quote #2

Some ham functions crash, haven't tried this one.

Anyway, you can use : origin + view_ofs if you need float, else use get_user_origin with mode 1.


I'm an idiot, but try this :

PHP Code:
new Float:eyes[3];
eyes ExecuteHam(Ham_EyePositionid); 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 17:21   Re: Ham_EyePosition
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Some ham functions crash, haven't tried this one.

Anyway, you can use : origin + view_ofs if you need float, else use get_user_origin with mode 1.
Ok. Thanks.
__________________
joaquimandrade is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 03-29-2009 , 17:21   Re: Ham_EyePosition
Reply With Quote #4

PHP Code:
     /**
     * Description:        Returns the eye position of the entity.
     * Forward params:    function(this);
     * Return type:        Vector (byref'd in Execute).
     * Execute params:    ExecuteHam(Ham_EyePosition, this, Float:output[3]);
     */
    
Ham_EyePosition
it seems to be correct

edit: connorr was faster :/ anyway i expirienced some crashs with ham too although i ahd the correct syntax.
__________________

Last edited by SchlumPF*; 03-29-2009 at 17:25.
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 17:25   Re: Ham_EyePosition
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Some ham functions crash, haven't tried this one.

Anyway, you can use : origin + view_ofs if you need float, else use get_user_origin with mode 1.


I'm an idiot, but try this :

PHP Code:
new Float:eyes[3];
eyes ExecuteHam(Ham_EyePositionid); 
"eyes = " gives "array must be indexed"


Quote:
Anyway, you can use : origin + view_ofs if you need float
Works nice.


Quote:
Originally Posted by SchlumPF* View Post
PHP Code:
     /**
     * Description:        Returns the eye position of the entity.
     * Forward params:    function(this);
     * Return type:        Vector (byref'd in Execute).
     * Execute params:    ExecuteHam(Ham_EyePosition, this, Float:output[3]);
     */
    
Ham_EyePosition
it seems to be correct

edit: connorr was faster :/ anyway i expirienced some crashs with ham too although i ahd the correct syntax.
It should be broken.
__________________

Last edited by joaquimandrade; 03-29-2009 at 17:27.
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2009 , 17:27   Re: Ham_EyePosition
Reply With Quote #6

Quote:
virtual Vector EyePosition( ) { return pev->origin + pev->view_ofs; }; // position of eyes
Since you are a god joaquimandrade, you can find why some Ham_* crashs.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-29-2009 , 17:27   Re: Ham_EyePosition
Reply With Quote #7

Quote:
Originally Posted by arkshine View Post
Since you are a god joaquimandrade, you can find why some Ham_* crashs.
Would be cool, indeed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 17:28   Re: Ham_EyePosition
Reply With Quote #8

Quote:
Originally Posted by arkshine View Post
Since you are a god joaquimandrade, you can find why some Ham_* crashs.
You want me to find in hamsandwich code why Ham_* crashs?

You meant "good joaquimandrade"?
__________________

Last edited by joaquimandrade; 03-29-2009 at 17:32.
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2009 , 17:33   Re: Ham_EyePosition
Reply With Quote #9

No. God. Anyway, if I'm right, Ham_EyePosition and Ham_Weapon_SendWeaponAnim crash. Since you have a lot of knowledge, maybe you can find the problem.
Arkshine is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 17:35   Re: Ham_EyePosition
Reply With Quote #10

Quote:
Originally Posted by arkshine View Post
No. God. Anyway, if I'm right, Ham_EyePosition and Ham_Weapon_SendWeaponAnim crash. Since you have a lot of knowledge, maybe you can find the problem.
Thanks you. That is very kind. I need to read a C++ book before i can analyze that. To read, will be no problem to me but, i still haven't done it.
__________________
joaquimandrade 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 08:49.


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