Forum

> > CS2D > Scripts > Weird player rotation angle
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Weird player rotation angle

Keine Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Weird player rotation angle

ize
User Off Offline

Zitieren
Hello, I'm new to cs2d scripting

Is cs2d player value for angle rotation
player(id, "rot")
is allowed you to have a value more than 180 degrees?
When I angle my cursor to the bottom-left, my value is 200+

1
2
CapRotation: -90.727569580078
CS2D Rotation Value: 269.27243041992

I'm using this script to fix the angle position for my script
1
2
3
4
5
6
7
8
9
10
11
function CapRotation(rotation)
  rotation = rotation % 360

  if rotation > 180 then
    rotation = rotation - 360
  elseif rotation < -180 then
    rotation = rotation + 360
  end

  return rotation
end

But, some script that published/uploaded to unreal software is bugged caused by player rotation angle (maybe), for example file cs2d LaserMod

Or is it normal to have more than 180?
Thanks!
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht