Skip to content

Commit 2864013

Browse files
committed
common: document Player.ViewDirection{X,Y} (#116)
1 parent 73af0ba commit 2864013

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

common/player.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ type Player struct {
3737
AmmoLeft [32]int // Ammo left for special weapons (e.g. grenades), index corresponds Equipment.AmmoType
3838
Entity st.IEntity
3939
AdditionalPlayerInformation *AdditionalPlayerInformation // Mostly scoreboard information such as kills, deaths, etc.
40-
ViewDirectionX float32
41-
ViewDirectionY float32
42-
FlashDuration float32 // Blindness duration from the flashbang currently affecting the player (seconds)
43-
FlashTick int // In-game tick at which the player was last flashed
44-
TeamState *TeamState // When keeping the reference make sure you notice when the player changes teams
40+
ViewDirectionX float32 // Yaw in degrees, 0 to 360
41+
ViewDirectionY float32 // Pitch in degrees, 270 to 90 (270=-90)
42+
FlashDuration float32 // Blindness duration from the flashbang currently affecting the player (seconds)
43+
FlashTick int // In-game tick at which the player was last flashed
44+
TeamState *TeamState // When keeping the reference make sure you notice when the player changes teams
4545
Team Team
4646
IsBot bool // True if this is a bot-entity. See also IsControllingBot and ControlledBot().
4747
IsConnected bool

0 commit comments

Comments
 (0)