Raised This Month: $51 Target: $400
 12% 

[INFO] Fakemeta & Ham detailed function descriptions and examples


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 12-10-2009 , 16:25   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #141

Thanks for taking your time teaching us that function
joaquimandrade is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-10-2009 , 16:34   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #142

I actually could find a use out of it
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 12-10-2009 , 16:41   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #143

Quote:
Originally Posted by Exolent[jNr] View Post
I actually could find a use out of it
You are not alone.
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-10-2009 , 16:43   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #144

Quote:
Originally Posted by joropito View Post
I didn't found any example so I have to test by myself and yes, it's a very interesting function.
As code example, you can show a sprite where a grenade will fall. It reminds me the game "Worms".
__________________

Last edited by Arkshine; 12-10-2009 at 16:46.
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 12-10-2009 , 16:45   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #145

Quote:
Originally Posted by joaquimandrade View Post
You are not alone.
But the function exists!!!

Maybe to make some prediction.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 12-10-2009 , 20:35   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #146

i tested this function with this code

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <csx>

public grenade_throw(id,ent,wid)
{
    static 
trFloat:End[3]
    
    
engfunc(EngFunc_TraceToss,ent,0,tr)
    
get_tr2(tr,TR_vecEndPos,End)
    
    
client_print(0,print_chat,"%f %f %f",End[0],End[1],End[2])

Result:

Code:
Grenade Throw: X= 446.208038 Y= 2446.914794 Z= -69.998535
My Origin: X= 448.000000 Y= 2464.000000 Z= -91.9687
Only my origin changes a few units.

this is right?
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 12-10-2009 at 20:46.
Starsailor is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 12-10-2009 , 21:44   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #147

Quote:
Originally Posted by joropito View Post
But the function exists!!!

Maybe to make some prediction.
I think you got me wrong. I meant that the function is useful. And thanks again for explaining it
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-11-2009 , 05:48   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #148

Quote:
Originally Posted by Starsailor View Post
i tested this function with this code

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <csx>

public grenade_throw(id,ent,wid)
{
    static 
trFloat:End[3]
    
    
engfunc(EngFunc_TraceToss,ent,0,tr)
    
get_tr2(tr,TR_vecEndPos,End)
    
    
client_print(0,print_chat,"%f %f %f",End[0],End[1],End[2])

Result:

Code:
Grenade Throw: X= 446.208038 Y= 2446.914794 Z= -69.998535
My Origin: X= 448.000000 Y= 2464.000000 Z= -91.9687
Only my origin changes a few units.

this is right?
Pass the player's id, not 0.
__________________
Arkshine is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 12-11-2009 , 06:14   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #149

Quote:
Originally Posted by Arkshine View Post
Pass the player's id, not 0.
The result will be the same whether you show it to all players or just him o.o

This function seems really nice for tracing a line from the nade start point to the end point (before it actually falls). The bad thing is that the only way of doing a curve is with many lines lol (I think, maybe there is a message for a curve but I've never seen it)
01101101 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-11-2009 , 06:28   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #150

Quote:
The result will be the same whether you show it to all players or just him
What are you talking about...
__________________
Arkshine is offline
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 14:50.


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