Raised This Month: $79 Target: $400
 19% 

Advanced Parachute


Post New Thread Reply   
 
Thread Tools Display Modes
1ka
Senior Member
Join Date: Jun 2012
Old 04-17-2015 , 07:35   Re: Parachute 2015
Reply With Quote #11

Please translate for him
When u jump then move up (move in the direction of the sky ..) and use parachute stopped move up
this is problem
A very stupid thing to say?
__________________
Sorry for my bad english.

Last edited by 1ka; 04-17-2015 at 07:41.
1ka is offline
Blizzard_87
AlliedModders Donor
Join Date: Oct 2012
Old 04-17-2015 , 08:16   Re: Parachute 2015
Reply With Quote #12

Quote:
Originally Posted by 1ka View Post
Please translate for him
When u jump then move up (move in the direction of the sky ..) and use parachute stopped move up
this is problem
A very stupid thing to say?
I dont get why you would want to use parachute while jumping up...
if you have low gravity on and jumping up... why would you use parachute half way into the lift?

seriously I have no idea what your trying to say. doesn't make sense
__________________
Blizzard_87 is offline
1ka
Senior Member
Join Date: Jun 2012
Old 04-17-2015 , 11:47   Re: Parachute 2015
Reply With Quote #13

move up stopping < this is pointless absurd and so can not be.
the old parachute plugin does not have this problem
Please make this for me?
__________________
Sorry for my bad english.
1ka is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-17-2015 , 15:59   Re: Parachute 2015
Reply With Quote #14

I'm wondering, if you actually need a Player-PreThink. I think you can get the same effect if you play around with Ham_Think and pev_nextthink.

Then, Its pretty useless to make a variable everytime you use pev(id, pev_flags), when you only need to check it once / function.

Also, I'm not sure if Ham_ObjectCaps is better then Emit_Sound, but I would use ObjectCaps.
(Mayb a Approver could give the answer, if its better or not).

PHP Code:
RegisterHam(Ham_ObjectCaps"player""Ham_ObjectCaps_Pre"0)


public 
Ham_ObjectCaps_Pre(id)
{
    if(
is_user_alive(id)
    && 
pev(idpev_flags) & FL_ONGROUND)
    {
        if(
pev(idpev_button) & IN_USE)
        {
            if(!
ParaGet(HasParaid))
            {
                
g_flGravityindex ] = get_user_gravityindex );
                
                
g_iPara_Entindex ] = CreateParachuteindex );
                
                if( !
HasPara EnableHamForward_HamPreThink );
                
                
ParaSetHasParaindex );
            }
            return 
g_iSilentPara FMRES_SUPERCEDE FMRES_IGNORED;
        }
        else if(
ParaGet(HasParaid))
        {
            
Parachute_Player_Reset(id);
            
            return 
g_iSilentPara FMRES_SUPERCEDE FMRES_IGNORED;
        }
    }
    return 
HAM_IGNORED
}

stock Parachute_Player_Reset(const index)
{
    
set_user_gravityindexg_flGravityindex ] );        
    
RemoveParachuteindexg_iPara_Entindex ] );
    
    if( !
HasPara )
        
DisableHamForward_HamPreThink );

__________________
Retired.

Last edited by Xalus; 04-17-2015 at 16:00.
Xalus is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-17-2015 , 19:09   Re: Parachute 2015
Reply With Quote #15

Really nice, this is the best of all parachute plugins!
Syturi0 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-18-2015 , 06:13   Re: Parachute 2015
Reply With Quote #16

Thanks,will test this parachute...
Krtola is offline
Send a message via Skype™ to Krtola
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 04-18-2015 , 12:56   Re: Parachute 2015
Reply With Quote #17

Tested, works flawlessly.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
Blizzard_87
AlliedModders Donor
Join Date: Oct 2012
Old 04-19-2015 , 01:12   Re: Parachute 2015
Reply With Quote #18

Quote:
Originally Posted by Syturi0 View Post
Really nice, this is the best of all parachute plugins!
Thanks.

Quote:
Originally Posted by Krtola View Post
Thanks,will test this parachute...
Did ya end up testing it? what ya think?

Quote:
Originally Posted by bLacK-bLooD View Post
Tested, works flawlessly.
thanks.
__________________
Blizzard_87 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-19-2015 , 02:05   Re: Parachute 2015
Reply With Quote #19

Yes,just now.
This is great = It automaticly disables PreThink after there are no parachutes in use ( thus saving cpu ).
Why did you put include <amxmisc>? Is there any particular reason because it can be compiled without that include?
Krtola is offline
Send a message via Skype™ to Krtola
Blizzard_87
AlliedModders Donor
Join Date: Oct 2012
Old 04-19-2015 , 02:42   Re: Parachute 2015
Reply With Quote #20

Quote:
Originally Posted by Krtola View Post
Yes,just now.
This is great = It automaticly disables PreThink after there are no parachutes in use ( thus saving cpu ).
Why did you put include <amxmisc>? Is there any particular reason because it can be compiled without that include?

Thanks... amxmisc removed in update as its not needed anymore must of forgotten to remove it.

Update - 19/04/2015 16.34 PM
- Cleaned Up RemoveParachute Function.
- Removed amxmisc include ( not needed anymore ).
__________________
Blizzard_87 is offline
Reply


Thread Tools
Display Modes

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 03:44.


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