Raised This Month: $ Target: $400
 0% 

Flying script?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
twix_p
Member
Join Date: Jul 2011
Old 12-28-2012 , 20:29   Re: Flying script?
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=213777

Jetpack Lite is more simplified.

PHP Code:

public client_PreThink(id) {

    if( !
is_user_alive(id)) {
        return 
PLUGIN_CONTINUE;
    }
    if(!(
get_user_button(id) & IN_JUMP)) {
        return 
PLUGIN_CONTINUE;
    }

    new 
Float:fAim[3] , Float:fVelocity[3];
    
VelocityByAim(id 500 fAim);

    
fVelocity[0] = fAim[0];
    
fVelocity[1] = fAim[1];
    
fVelocity[2] = fAim[2];

    
set_user_velocity(id fVelocity);

    
entity_set_int(id EV_INT_gaitsequence 6);

    
emit_sound(id CHAN_VOICE JP_SOUND 1.0 ATTN_NORM PITCH_NORM);

    if(
frame[id] >= 3) {
        
frame[id] = 0;
        
smoke_effect(id);
        
entity_set_string(id EV_SZ_weaponmodel "models/p_egon.mdl");
    }
    
frame[id]++;

    return 
PLUGIN_CONTINUE;


Last edited by twix_p; 12-28-2012 at 20:30.
twix_p 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 13:40.


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