Raised This Month: $ Target: $400
 0% 

C4 origin is a bit off


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-25-2013 , 14:30   C4 origin is a bit off
Reply With Quote #1

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.
Backstabnoob is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode