Raised This Month: $ Target: $400
 0% 

user origin 4 (bullet hit)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 10-12-2007 , 21:01   Re: user origin 4 (bullet hit)
Reply With Quote #5

Code:
public plugin_init() {     register_forward( FM_TraceLine, "fwd_TraceLine" ); } public fwd_TraceLine( Float:start[3], Float:end[3], nomonsters, enttoskip, ptr ) {     // start is the starting point of the trace/bullet line     // end is the ending point of the trace/bullet line }

If this doesn't solve your problem, another idea is to shoot a trace and test if it makes it all the way.

By using FM Utilities, you can run:
fm_trace_line( id, fStartOrigin, fEndOrigin, fStop );

Then test if fStop is equal to fEndOrigin. If not, it hit something at fStop (such as a box or wall).
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



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 07:58.


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