So if I get the C4 and player origin using this snippet:
Code:
new iBomb = find_ent_by_class( -1, "weapon_c4" )
new Float: fPlayerOrigin[ 3 ], Float: fBombOrigin[ 3 ]
entity_get_vector( iBomb, EV_VEC_origin, fBombOrigin )
entity_get_vector( id, EV_VEC_origin, fPlayerOrigin )
The origins don't match when the player is on the same spot as the C4, there is always about (or exactly) 100.0 difference in either X or Y axis for some reason, it almost seems as if the origin of the C4 is the origin of the player at the time they dropped the bomb, but that's just my guess.
I need the origin of a dropped bomb, not a planted one.
Thanks guys.