Raised This Month: $ Target: $400
 0% 

Smoke events?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-20-2011 , 11:13   Re: Smoke events?
Reply With Quote #1

You can try something like :

Code:
stock getSGExplosionOrigin( const grenade, Float:origin[3] ) {     const m_SGExplosionPos = 115;         for( new i = 0; i < sizeof origin; i++ )     {         origin[ i ] = get_pdata_float( grenade, m_SGExplosionPos + i );     } }

and in your code :

Code:
new Float:smokeOrigin[3]; getSGExplosionOrigin( grenade, smokeOrigin );

Just an example.

Note : grenade is the "grenade" entity index.
__________________

Last edited by Arkshine; 07-20-2011 at 11:48.
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-20-2011 , 11:48   Re: Smoke events?
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
You can try something like :

Code:
stock getSGExplosionOrigin( const grenade, Float:origin[3] ) {     const m_SGExplosionPos = 115;         for( new i = 0; i < sizeof origin; i++ )     {         origin[ 0 ] = get_pdata_float( grenade, m_SGExplosionPos + i );     } }
I dont get it your only retrieving the x-axis value through the offset and not the y-axis or z-axis one?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Reply



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 00:48.


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