Raised This Month: $ Target: $400
 0% 

[How to] Detect if player is visible.


Post New Thread Reply   
 
Thread Tools Display Modes
Jhob94
AMX Mod X Moderator
Join Date: Jul 2012
Old 06-06-2025 , 14:52   Re: [How to] Detect if player is visible.
Reply With Quote #11

Quote:
Originally Posted by HamletEagle View Post
How do you get all values ? I mean this:

PHP Code:
#define GENERAL_X_Y_SORROUNDING             18.5         // 16.0 
#define CONSTANT_Z_CROUCH_UP                 31.25         // 32.0 
#define CONSTANT_Z_CROUCH_DOWN                 17.5         // 16.0 
#define CONSTANT_Z_STANDUP_UP                 34.0         // 36.0 
#define CONSTANT_Z_STANDUP_DOWN             35.25         // 36.0 

#define GENERAL_X_Y_SORROUNDING_HALF        9.25         // 8.0 
#define GENERAL_X_Y_SORROUNDING_HALF2        12.0         // 8.0 
#define CONSTANT_Z_CROUCH_UP_HALF             15.5         // 16.0 
#define CONSTANT_Z_CROUCH_DOWN_HALF            8.75         // 8.0 
#define CONSTANT_Z_STANDUP_UP_HALF            17.0         // 18.0 
#define CONSTANT_Z_STANDUP_DOWN_HALF        17.5         // 18.0 

#define ANGLE_COS_HEIGHT_CHECK                0.7071        // cos(45  degrees) 
I know that this theard is from 2009 and the author is inactive, but someone else may answer my question.
I know 11 years passed but why not. After all someone else may need this information.
Those values are not from anywhere, they are simply self made adjustments looking for better accuracy.

The real values are the values after “//“
For example the first value related to X and Y is 16. Why? Because of player size.
Same goes for Z, player’s height is 72 inches, so you go 36 inches up and 36 inches down.
__________________
Jhob94 is offline
Reply


Thread Tools
Display Modes

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 11:18.


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