The Damage message sends the coords also for hegrens, at least in CS...
if my memory is right...
Try this, dunno if it still works, I had it commented out in one of my plugins:
Code:
register_event("Damage", "hedamage_event", "b", "2!0", "4!0", "5!0", "6!0")
Code:
public hedamage_event(id) {
new inflictor = entity_get_edict(id, EV_ENT_dmg_inflictor)
if (inflictor <= MAXPLAYERS)
return PLUGIN_CONTINUE
new classname2[8]
entity_get_string(inflictor, EV_SZ_classname, classname2, 7)
if (!equal(classname2, "grenade"))
return PLUGIN_CONTINUE
new bangorigin[3]
bangorigin[0] = read_data(4)
bangorigin[1] = read_data(5)
bangorigin[2] = read_data(6)
client_print(0, print_chat, "%d got hit by %d which is a %s, from %d, %d, %d", id, inflictor, classname2, bangorigin[0], bangorigin[1], bangorigin[2])
server_print("%d got hit by %d which is a %s, from %d, %d, %d", id, inflictor, classname2, bangorigin[0], bangorigin[1], bangorigin[2])
feathersnsqueek(bangorigin)
return PLUGIN_CONTINUE
}
Now you do the math. :-) Kind of like the feathersnsqueek function name.
I think the coords are used in CS/HL to know where to make the red "hurt" icons you see on screen when you're being shot at.
The coords are integers here, might be a bad thing. Maybe you can get them to be more precise using register_message and reading them as floats.