View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-10-2018 , 11:54   Re: Parachute accelerate | Map's Highest Point
Reply With Quote #8

Quote:
Originally Posted by Hey View Post
something like this:
PHP Code:
    if(get_user_button(id) & IN_USE)
    {
        new 
Float:velocity[3];
        
entity_get_vector(idEV_VEC_velocityvelocity);
        if(
velocity[2] < 0.00)
        {
            
set_user_gravity(id0.10);
            new 
var3;
            if (
velocity[2] + 40.00 fallspeed)
            {
                
var3 velocity[2] + 40.00;
            }
            else
            {
                
var3 fallspeed;
            }
            
velocity[2] = var3;
            
entity_set_vector(id2velocity);
        }
        else
        {
            
set_user_gravity(id1.00);
        }
    } 
Gravity has nothing to do with this.
__________________
edon1337 is offline