Parachute Combine

Сообщения
15
Реакции
4
So I got this parachute plugin wich has a model with open+close sequence but I wana paste over the H.RED plugin's the code from the below ReAPI plugin variant because it hasn't model sequence but I think is more efficient.. -- It's annoying me that part of sequence and I don't know exactly how to replace it corectly.. and that's why I need help.. Thanks!

Код:
#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(playerIndex, var_button) & IN_USE)
    || get_entvar(playerIndex, var_waterlevel) > 0) {
        return;
    }
    new Float:flVelocity[3];
    get_entvar(playerIndex, var_velocity, flVelocity);
    if (flVelocity[2] < 0.0)
    {
        flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
        set_entvar(playerIndex, var_sequence, ACT_WALK);
        set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
        set_pmove(pm_velocity, flVelocity);
        set_movevar(mv_gravity, 80.0);
    }
}
 
Сообщения
270
Реакции
43
Помог
5 раз(а)
try this
amxmodx/modules/parachute_amxx_i386.so
amxmodx/configs/parachute.cfg
in modules.ini whrite parachute
 

Вложения

Сообщения
15
Реакции
4
Thanks but I don't want a module .. for a thing that can be made in a plugin.amxx (And I didn't have the source too) -- I want only that H.RED.ZONE Plugin's in ReAPI variant..
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу