s_interactRange
global · objectlayer
- Address
0x80ae48· 4 bytes, up to0x80ae4b- Type
float- Meaning
- Holds 5.5555553, the NPC interaction range squared into 0xc4c28c
- Confidence
- verified, proof one
- Finding
- net/server#interaction-and-inspect-ranges
Finding: Interaction and inspect ranges in net: server view
The client's own range tests, and the vmangos constants they meet.
| client check | value | vmangos |
|---|---|---|
| NPC click | walks up when farther than 5.5555553 yards | INTERACTION_DISTANCE 5.0 plus both bounding radii (ObjectDefines.h:24, Player.cpp:2556, Object.h:595) |
| inspect | squared distance at most 10² | INSPECT_DISTANCE 10.0 (ObjectDefines.h:26, MiscHandler.cpp:951) |
CheckInteractDistance 1 to 4 | 10, 11.111111 (0x4131c71c, 100/9), 10, 30 | TRADE_DISTANCE 11.11, slightly below the client's value (ObjectDefines.h:27), trade checks center to center (TradeHandler.cpp:272) |
| spirit healer | chosen within 20, kept to 22.0 | not read |
| corpse | within 40 | not read |
The derivation is in the doc.