#include <amxmodx>
#include <fakemeta_util>
#include <biohazard>
 
#define PLUGIN  "Class: Jumper"
#define AUTHOR  "cheap_suit"
#define VERSION "0.1"
 
new g_class
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        g_class = register_class("Jumper", "Skill: leap")

	if(g_class != -1)
	{
	set_class_data(g_class, DATA_HEALTH, 250.0)
	set_class_data(g_class, DATA_SPEED, 250.0)
	set_class_data(g_class, DATA_GRAVITY, 0.90)
	set_class_data(g_class, DATA_ATTACK, 2.0)
	set_class_data(g_class, DATA_DEFENCE, 0.245)
	set_class_data(g_class, DATA_HEDEFENCE, 1.10)
	set_class_data(g_class, DATA_HITSPEED, 0.95)
	set_class_data(g_class, DATA_HITDELAY, 0.15)
	set_class_data(g_class, DATA_REGENDLY, 0.20)
	set_class_data(g_class, DATA_HITREGENDLY, 2.2)
	set_class_data(g_class, DATA_KNOCKBACK, 1.25)
	}
}

public event_infect(victim, attacker)
        if(get_user_class(victim) == g_class)
                fm_set_user_longjump(victim, true, false)
