Raised This Month: $ Target: $400
 0% 

Help convert from engine to fakemete


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thezolotoi
Junior Member
Join Date: Apr 2021
Old 04-17-2021 , 08:39   Help convert from engine to fakemete
Reply With Quote #1

Hi, help me pls)
My code:
PHP Code:
//
Plugin init:
    
register_touch("worldspawn""ent_creeper""touch_wall");
    
register_touch("func_brush""ent_creeper""touch_wall");
    
register_touch("func_breakable""ent_creeper""touch_wall");
//
public touch_wall(entityclient)
{
    if(
g_client_jumpdelay[client] < get_gametime())
    {
        
g_client_jumpdelay[client] = (get_gametime() + 1.0)    
        new 
Float:client_origin[3], Float:client_angle[3];
        
pev(clientpev_originclient_origin);
        
client_origin[2] -= 36.0;
        
pev(clientpev_v_angleclient_angle);


        new 
Float:futur_origin[3];
        
origin_infront(client_angleclient_origin17.0futur_origin);

        new 
trace_handle create_tr2();
        
engfunc(EngFunc_TraceLineclient_originfutur_originDONT_IGNORE_MONSTERSclienttrace_handle);
        
get_tr2(trace_handleTR_vecEndPosfutur_origin);

        if(
get_distance_f(client_originfutur_origin) <= 17.0)
        {
            
engfunc(EngFunc_MakeVectorsclient_angle);
            new 
Float:forward_vector[3];
            
get_global_vector(GL_v_forwardforward_vector);

            
client_angle[0] = forward_vector[0] * 200.0;
            
client_angle[1] = forward_vector[1] * 200.0;
            
client_angle[2] = 220.0;

            
set_pev(clientpev_velocityclient_angle);
            
g_bDrop true;
            
set_task(0.2,"task_on");
        }
    }

thezolotoi 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 05:24.


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