Quote:
Originally Posted by MPD
Setting velocity right after you get velocity doesn't work.
|
I find this very hard to believe. Will try for myself.
EDIT: No problem at all...
When I set it at 100 instead of 1000 it won't move. When I use 200, it's almost like a normal jump. 100 is simply too low. Problem solved.
Code:
#include <amxmodx>
#include <engine>
public plugin_init() {
register_plugin("Test Plugin 9", "", "");
register_clcmd("megajump", "megajump");
}
public megajump(id) {
new Float:velocity[3];
entity_get_vector(id, EV_VEC_velocity, velocity);
velocity[2] = 1000.0;
entity_set_vector(id, EV_VEC_velocity, velocity);
}
__________________