View Single Post
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-21-2015 , 13:47   Re: Parachute 2015 v0.0.4
Reply With Quote #29

Object caps could still use a little optimize.

PHP Code:
public Ham_ObjectCaps_Preindex )
{
    if( !
is_user_aliveindex ) ) return;
    
    if(( 
pevindexpev_button ) & IN_USE 
    && !(  
pevindexpev_flags ) & FL_ONGROUND 
    && !( 
pevindexpev_movetype ) == MOVETYPE_FLY ) )
    {
        if(
g_iPara_Entindex ] <= 0)
        {
            
g_iPara_Entindex ] = CreateParachuteindex );
        }
        else
        {
            
ExecuteParachuteindex );
        }
        return;
    }
    
RemoveParachuteindexg_iPara_Entindex ] );

The rest seems right in my eyes,
Ham_Killed maybe could be removed, because parachute cant be used when dead, and spawn resets it anyway.
__________________
Retired.
Xalus is offline