Raised This Month: $ Target: $400
 0% 

origins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 01-07-2013 , 09:42   origins
Reply With Quote #1

so i want to do an option that will send you to the enemy and +50 distance from hemm

lets say i look forward and i do this option i want to teleport to hemm so i teleport to hess origin and +50 distance to the side i looked forward
daniel46 is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-07-2013 , 10:33   Re: origins
Reply With Quote #2

I use this code to push players on laserspawn to prevent player's stuck. You can modify the values to do what you need.

PHP Code:
new Float:uOrigin], new Float:laserOrigin];
pevidpev_originuOrigin );
pevlaser_entpev_originlaserOrigin );

uOrigin] = ( uOrigin] - laserOrigin] ) * 13.0;
uOrigin] = ( uOrigin] - laserOrigin] ) * 13.0;
uOrigin] = ( uOrigin] - laserOrigin] ) + 185.0;

set_pevidpev_velocityuOrigin ); 
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
daniel46
Senior Member
Join Date: Dec 2011
Old 01-07-2013 , 10:52   Re: origins
Reply With Quote #3

no you know what i need i have the problem of that i dont know what origin to add to player if its x or y cause i can look forward as y and i can look forward as x and some times when player higher then me z so when i teleport i want to do +50 to the origin of the enemy where i looked so its hard
daniel46 is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-07-2013 , 10:55   Re: origins
Reply With Quote #4

Quote:
Originally Posted by daniel46 View Post
no you know what i need i have the problem of that i dont know what origin to add to player if its x or y cause i can look forward as y and i can look forward as x and some times when player higher then me z so when i teleport i want to do +50 to the origin of the enemy where i looked so its hard
I don't understand what you are trying to say. Please explain it clearly.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
daniel46
Senior Member
Join Date: Dec 2011
Old 01-07-2013 , 15:28   Re: origins
Reply With Quote #5

example:

mt origin is 255 255 50 i look at my ENEMY he is at 305 255 50 so i want to teleport to hemm and +50 to hes origin to make it if i aim at forward so 355 255 50 if i look forward and its on the y[ origin 2] its will be 305 305 50 and like this...
daniel46 is offline
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 13:37.


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