Raised This Month: $51 Target: $400
 12% 

parachute [problem gravity]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ms.itry
Member
Join Date: Apr 2018
Old 06-15-2018 , 06:40   parachute [problem gravity]
Reply With Quote #1

hi, everyone know about parachute when you have gravity and you use parachute the gravity back to normal i have this problem in my server please if anyone can help me to fix

Server 35hp knife ...
ms.itry is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-15-2018 , 11:37   Re: parachute [problem gravity]
Reply With Quote #2

Gravity is not needed for a parachute, it just makes it run smoother.

So either find another parachute plugin that doesn't change users gravity, or at least give us the .sma for your parachute so someone can help you.
__________________
stuff
maqi is offline
ms.itry
Member
Join Date: Apr 2018
Old 06-15-2018 , 18:16   Re: parachute [problem gravity]
Reply With Quote #3

Quote:
Originally Posted by maqi View Post
Gravity is not needed for a parachute, it just makes it run smoother.

So either find another parachute plugin that doesn't change users gravity, or at least give us the .sma for your parachute so someone can help you.
what you think i search for ? if i find parachute plugin that doesn't change users gravity why will i come to alliemods to help ? parachute i use click here

Last edited by ms.itry; 06-15-2018 at 18:17.
ms.itry is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-15-2018 , 18:23   Re: parachute [problem gravity]
Reply With Quote #4

Quote:
Change users gravity when falling to avoid choppiness
This is what im talking about, if you want you can keep using the same plugin you can remove everything related to gravity and it will work, however it WILL be choppy.

Other option is to get players gravity at a certain point and instead of doing set_user_gravity( id, 1.0 ) use set_user_gravity( id, oldGravity ), i don't feel comfortable doing this, so maybe someone else should do it right.
__________________
stuff
maqi is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-16-2018 , 05:22   Re: parachute [problem gravity]
Reply With Quote #5

J u st remove changing the gravity
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-16-2018 at 05:25.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 06-16-2018 , 09:20   Re: parachute [problem gravity]
Reply With Quote #6

I didn't get your post actually, but try this, may it help you
amx_cvar mp_parachute 0.12
Alber9091 is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-16-2018 , 14:17   Re: parachute [problem gravity]
Reply With Quote #7

Quote:
Originally Posted by Alber9091 View Post
I didn't get your post actually, but try this, may it help you
amx_cvar mp_parachute 0.12
His plugin doesn't have that cvar.
__________________
stuff
maqi is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 06-16-2018 , 19:38   Re: parachute [problem gravity]
Reply With Quote #8

Quote:
Originally Posted by maqi View Post
His plugin doesn't have that cvar.
parachute_fallspeed "100" - speed of the fall when you use the parachute

What about changing this value then?
Alber9091 is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-16-2018 , 19:45   Re: parachute [problem gravity]
Reply With Quote #9

It will change the velocity and your parachuting speed, not the gravity, gravity is fixed ( when using a parachute ) to 0.1 and it returns to 1.0 when not.

That is the issue because it returns the user to a hardcoded 1.0 value for gravity, no matter what they had before.

Like i wrote above and is written in the plugin itself, gravity only exists so the parachuting is less choppy, its not how a parachute works.
__________________
stuff

Last edited by maqi; 06-16-2018 at 19:52.
maqi is offline
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 06-17-2018 , 15:55   Re: parachute [problem gravity]
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <engine>

public client_PreThink(id)
{
    if(!
is_user_alive(id)) 
        return

    new 
Float:fallspeed 100.0 * -1.0

    
new button get_user_button(id)
    if(
button IN_USE
    {
        new 
Float:velocity[3]
        
entity_get_vector(idEV_VEC_velocityvelocity)
        if (
velocity[2] < 0.0
        {
            
entity_set_int(idEV_INT_sequence3)
            
entity_set_int(idEV_INT_gaitsequence1)
            
entity_set_float(idEV_FL_frame1.0)
            
entity_set_float(idEV_FL_framerate1.0)

            
velocity[2] = (velocity[2] + 40.0 fallspeed) ? velocity[2] + 40.0 fallspeed
            entity_set_vector
(idEV_VEC_velocityvelocity)
        }
    }

Visinescu is offline
Reply



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 14:21.


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