Raised This Month: $ Target: $400
 0% 

Wall climb


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 09-04-2012 , 00:06   Wall climb
Reply With Quote #1

Hey, I have this code for Ts to climb the wall

Code:
register_forward( FM_Touch,  "Forward_Touch_Pre", 0 );
Code:
public Forward_Touch_Pre( iEnt, id )
    {
        if( !is_user_alive( id ) )
            return FMRES_IGNORED;
        
        new szClassname[ 32 ];
        pev( iEnt, pev_classname, szClassname, charsmax( szClassname ) );
        
        if( equali( szClassname, "worldspawn" ) || equali( szClassname, "func_wall" ) || equali( szClassname, "func_breakable" ) )
            pev( id, pev_origin, g_flWallOrigin[ id ] );
        
        else if( equali( szClassname, "weaponbox" ) || equali( szClassname, "armoury_entity" ) )
        {
            if( cs_get_user_team( id ) == CS_TEAM_T )
                return FMRES_SUPERCEDE;
        }
        
        return FMRES_IGNORED;
    }

At this point it is working, but only while im holding the move buttons. I want it so that if you stop moving but still hold +use key the player will stay kinda "stuck" to the wall until you move. Could anyone help me? Thank you
vitorrossi 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 08:14.


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