mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 07:23:20 +00:00
Update includes
This commit is contained in:
parent
f91a3e0502
commit
e6a638de7e
5 changed files with 1547 additions and 875 deletions
|
@ -28,8 +28,8 @@ stock void GetHorizontalPositionFromClient(int client, float units, float finalP
|
|||
GetClientAbsOrigin(client, pos);
|
||||
|
||||
float theta = DegToRad(ang[1]);
|
||||
pos[0] += -150 * Cosine(theta);
|
||||
pos[1] += -150 * Sine(theta);
|
||||
pos[0] += units * Cosine(theta);
|
||||
pos[1] += units * Sine(theta);
|
||||
finalPosition = pos;
|
||||
}
|
||||
// Gets velocity of an entity (ent) toward new origin with speed (fSpeed) - thanks Ryan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue