Raised This Month: $ Target: $400
 0% 

Not work player velocity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-26-2013 , 11:17   Re: Not work player velocity
Reply With Quote #8

Quote:
Originally Posted by MPD View Post
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); }
__________________

Last edited by Black Rose; 07-26-2013 at 11:23.
Black Rose is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode