I am trying to make a plugin so that if you are falling from a high ledge, you can use this command and have gravity go lower for you. But when ever i press it in the air, nothing happens. when im on the ground, i hop a little
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init(){
register_plugin ("parachute", "1.0", "SuperDuper");
register_clcmd("parachute","parachute")
}
public parachute(id){
if(get_entity_flags(id) & FL_ONGROUND) {
new Float: velocity[3]
entity_get_vector(id,EV_VEC_velocity,velocity)
velocity[2] = 200.0
entity_set_vector(id,EV_VEC_velocity,velocity)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
is velocity the same thing as gravity?
__________________
[Team.Profit] Profit' <LDR>. Our server owns!
CS:CZ or DIE