Raised This Month: $ Target: $400
 0% 

FakeMeta Trace_Line help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-24-2007 , 19:54   FakeMeta Trace_Line help
Reply With Quote #1

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

public plugin_init()
{
    
register_forward(FM_PlayerPreThink"forward_prethink")
}

public 
forward_prethink(id)
{
    if(
pevidpev_button ) & IN_USE && !(pevidpev_oldbuttons ) & IN_USE ))
    {
        new 
Index,Body
        get_user_aiming
(id,Index,Body,200)
        
        if(!
Index || !is_user_alive(Index))
            return;
        new 
Float:v1[3]
        new 
Float:v2[3]
        new 
monster
        engfunc
(EngFunc_TraceLine,v1,v2,Index,monster)
        
client_print(idprint_chat"[AMXX TEST] V1: %f-%f-%f V2:%f-%f-%f M:%s"v1[0], v1[1], v1[2], v2[0], v2[1], v2[2], monster)
    }

The line is always 0.000000 0.0000000 0.00000 is alwayas the results. Why?

Note: This is my first Try at this. I followed what was seen in the file.
Code:
EngFunc_TraceLine,					// void )			(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
Thank You

Last edited by Styles; 09-24-2007 at 19:57.
Styles is offline
Send a message via AIM to Styles
 



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 16:05.


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