I just meshed up this lil code to increase the players jump height when he jumps,
I was wondering if this would work (cant test it myself for the moment).
(raising the players jump height with lowering the gravity for him is not an option.)
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Jump height modifier"
#define VERSION "0.0.1"
#define AUTHOR "striker07"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Player_Jump, "player", "fwdPlayerJump");
}
public fwdPlayerJump(id)
{
if(!(pev(id, pev_flags) & FL_ONGROUND))
{
static Float:velocity[3];
pev(id, pev_velocity, velocity);
velocity[2] = velocity[2] * (0.1 * levelvariable)
set_pev(id, pev_velocity, velocity)
}
}
__________________