Raised This Month: $32 Target: $400
 8% 

Pm_airmove


Post New Thread Reply   
 
Thread Tools Display Modes
JusTGo
Veteran Member
Join Date: Mar 2013
Old 04-09-2017 , 18:34   Re: Pm_airmove
Reply With Quote #11

Quote:
Originally Posted by joropito View Post
you can't do something that's handled both client+server side
then how you explain this ?

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

public plugin_init()
{
    
register_plugin("[ReAPI] Parachute""1.1""ReHLDS Team");
    
RegisterHookChain(RG_PM_AirMove"PM_AirMove"false);
}

public 
PM_AirMove(const playerIndex)
{
    if (!(
get_entvar(playerIndexvar_button) & IN_USE)
    || 
get_entvar(playerIndexvar_waterlevel) > 0) {
        return;
    }
    new 
Float:flVelocity[3];
    
get_entvar(playerIndexvar_velocityflVelocity);
    if (
flVelocity[2] < 0.0)
    {
        
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
        
set_entvar(playerIndexvar_sequenceACT_WALK);
        
set_entvar(playerIndexvar_gaitsequenceACT_IDLE);
        
set_pmove(pm_velocityflVelocity);
        
set_movevar(mv_gravity80.0);
    }

__________________
JusTGo is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-10-2017 , 07:40   Re: Pm_airmove
Reply With Quote #12

I don't say you can't do anything, I just said you can't modify things handled both client and server side.
Depending what you wanna achieve, you could get good or bad results.

Sometimes you can do things that works but the client side behaviour could be awful.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
JusTGo
Veteran Member
Join Date: Mar 2013
Old 04-10-2017 , 16:30   Re: Pm_airmove
Reply With Quote #13

i just want to hook it, what you think it will be the easier way to do so ?
__________________
JusTGo 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 15:02.


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