Raised This Month: $ Target: $400
 0% 

C4 Origin & HE Granade Origen


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-07-2009 , 14:21   Re: C4 Origin & HE Granade Origen
Reply With Quote #7

For C4, alternate way :

Code:
    public plugin_init ()     {         register_event( "51", "Event_C4Explosion", "a", "1=9", "2=2", "4=0", "5=527" );     }         public Event_C4Explosion ()     {         new Float:vecC4Origin[ 3 ];         pev( read_data( 3 ), pev_origin, vecC4Origin );                 log_amx ( "vecC4Origin = %f %f %f", vecC4Origin[ 0 ], vecC4Origin[ 1 ], vecC4Origin[ 2 ] );     }

For He, depending your need, you can use that :

Code:
    public plugin_init ()     {         register_event( "23", "Event_HeExplosion", "a", "1=3", "5=136", "6=30", "7=30" );     }     public Event_HeExplosion ()     {         new Float:vecHeOrigin[ 3 ];         read_data( 2, vecHeOrigin[ 0 ] );         read_data( 3, vecHeOrigin[ 1 ] );         read_data( 4, vecHeOrigin[ 2 ] );                 log_amx ( "vecHeOrigin = %f %f %f", vecHeOrigin[ 0 ], vecHeOrigin[ 1 ], vecHeOrigin[ 2 ] );     }

Not really the exact grenade origin, more the explosion end position.

Last edited by Arkshine; 02-07-2009 at 14:25.
Arkshine 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 01:50.


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