EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   EVENT_SAY only triggering when right on top of a mob (https://www.eqemulator.org/forums/showthread.php?t=35027)

iluvseq 03-09-2012 04:09 PM

EVENT_SAY only triggering when right on top of a mob
 
Looking at the code, it would appear that EVENT_SAY should have a range of 200, but it only seems to work when I'm within 10.

What am I missing?

Derision 03-09-2012 04:23 PM

If you are looking at the same code as I am, i.e. client.cpp, line 992, then it is using the DistNoRootNoZ function which doesn't use square root (for performance reasons) to get the real distance, so in that context, 200 is equivalent to sqrtf(200) == 14.14 in real distance units.

iluvseq 03-09-2012 04:25 PM

Ah-ha! I didn't dig that deep into it, just assumed the 200 was 'real distance units'. Thanks!


All times are GMT -4. The time now is 01:51 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.