PDA

View Full Version : Correction: "Hit by non-melee damage"


haecz
08-16-2008, 09:13 AM
The "Hit by non-melee damage" message is filtered wrong, it currently uses "Other"-filter. Changing the following lines will enable the client to recieve the message correctly.


attack.cpp line 2363
owner->Message_StringID(4,OTHER_HIT_NONMELEE,GetCleanName (),ConvertArray(damage,val1));

to:
owner->Message_StringID(MT_NonMelee,OTHER_HIT_NONMELEE,Ge tCleanName(),ConvertArray(damage,val1));




attack.cpp line 2386
attacker->Message_StringID(4,OTHER_HIT_NONMELEE,GetCleanName (),ConvertArray(damage,val1));

to:
attacker->Message_StringID(MT_NonMelee,OTHER_HIT_NONMELEE,Ge tCleanName(),ConvertArray(damage,val1));

Angelox
08-16-2008, 01:38 PM
Ahh! Finally I got it - I was thinking , what does he mean by 'other'? good work, thanks for the fix! (I'm slow, but eventually i get there :) )