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

[Help] rotate entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
children
Junior Member
Join Date: Sep 2014
Old 09-27-2014 , 07:13   [Help] rotate entity
Reply With Quote #1

how entity move to the curve
I have some example
//SDK_PreThink
player's angle → change yaw → set velocity

please help me.
Attached Images
File Type: jpg 14118157793200.jpg (50.1 KB, 306 views)

Last edited by children; 10-02-2014 at 08:51.
children is offline
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Old 09-28-2014 , 06:47   Re: [help]Circular motion
Reply With Quote #2

That is something which I use for such things, but idk if it fits your needs.

PHP Code:
new Float:fRadius 200.0;
new 
Float:fLocation[3], Float:fAngles[3];

GetClientEyePosition(iClientfLocation);
GetClientEyeAngles(iClientfAngles);

fLocation[0] = fLocation[0] + fRadius Cosine(DegToRad(fAngles[1]));
fLocation[1] = fLocation[1] + fRadius Sine(DegToRad(fAngles[1]));

TeleportEntity(iEntityfLocationNULL_VECTORNULL_VECTOR); 
__________________
floube 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 18:02.


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