Raised This Month: $51 Target: $400
 12% 

entity vector velocity help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 08-25-2005 , 05:14   entity vector velocity help
Reply With Quote #1

K here's a piece of a little code o.O

Code:
			new Float:velocity[3]
			Entvars_Get_Vector(player, EV_VEC_velocity, velocity)
			velocity[2]=750.0
			Entvars_Set_Vector(player, EV_VEC_velocity, velocity)
problem: it doesn't make the person move upward with just that o.O i dunno why.... i've always used it like this hehehe... someone correct me if i typed something wrong o.O its 2am in the morning... but that should set the player up in the air at 750 velocity on the vertical Z coordinate >< cuz when I use it, it doesn't do what its suppose to do along with scorpion lol...
__________________
yang is offline
Send a message via AIM to yang
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-25-2005 , 05:33  
Reply With Quote #2

seems all fine. make sure code is executed.
Freecode is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-25-2005 , 14:34  
Reply With Quote #3

velocity[2] += 750.0
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 08-25-2005 , 15:23  
Reply With Quote #4

thanx for all the help guys. You guys were right, there's nothing wrong with it.

However, there seem to be some sort of conflict with setting the velocity in scorpion that disallow me to set velocity on the victim, i tried that code on myself and it worked fine >< sigh... time to go debugging... o.O

but thanx for verifying it was rightly used code hehe, it helped to narrow down the problem ><
__________________
yang is offline
Send a message via AIM to yang
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-25-2005 , 15:28  
Reply With Quote #5

oops wth was i talkin about forget the + thought you meant something else... rockell users can push against it just set their grav and speed to almost nothing so they can't counter the velcoity set
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 08-26-2005 , 04:20  
Reply With Quote #6

vittu i tried what u said, not working o.O i'm getting desperate here. You wanna maybe look at the code see if you can fix that part if you are not too busy? cuz its sort of the last thign I have to do or maybe u freecode? :p if you want i can send u the code and u can fix that part lol... i seriously can't figure out whats wrong with it. I switched the victim user id with that of the user that has scorpion power and the velocity set works but nooo... it won't work with the victim >< piss me off lol
__________________
yang is offline
Send a message via AIM to yang
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-26-2005 , 04:29  
Reply With Quote #7

try adding velocity[0] = 5.0 to give a little push
Freecode is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-26-2005 , 04:45  
Reply With Quote #8

PM it if you want ill take a look when i get a chance just tell me what area is the issue...
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 08-26-2005 , 04:53  
Reply With Quote #9

i just tried that >< still not working ... i think i'm going mental over this o.O
__________________
yang is offline
Send a message via AIM to yang
Reply



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 03:17.


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