benilla-re systems structs docs

s_interactRange

global · objectlayer

Address
0x80ae48 · 4 bytes, up to 0x80ae4b
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 checkvaluevmangos
NPC clickwalks up when farther than 5.5555553 yardsINTERACTION_DISTANCE 5.0 plus both bounding radii (ObjectDefines.h:24, Player.cpp:2556, Object.h:595)
inspectsquared distance at most 10²INSPECT_DISTANCE 10.0 (ObjectDefines.h:26, MiscHandler.cpp:951)
CheckInteractDistance 1 to 410, 11.111111 (0x4131c71c, 100/9), 10, 30TRADE_DISTANCE 11.11, slightly below the client's value (ObjectDefines.h:27), trade checks center to center (TradeHandler.cpp:272)
spirit healerchosen within 20, kept to 22.0not read
corpsewithin 40not read

The derivation is in the doc.