Skip to content

Commit 6129f1a

Browse files
committed
interface docs: Spotters is not "Line of Sight" / FOV - use TraceRay
1 parent c3c593e commit 6129f1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/demoinfocs/participants_interface.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ type Participants interface {
4343
// Returns nil if not found or if handle == invalidEntityHandle (used when referencing no entity).
4444
FindByHandle(handle int) *common.Player
4545
// SpottersOf returns a list of all players who have spotted the passed player.
46+
// This is NOT "Line of Sight" / FOV - look up "CSGO TraceRay" for that.
47+
// May not behave as expected with multiple spotters.
4648
SpottersOf(spotted *common.Player) (spotters []*common.Player)
4749
// SpottedBy returns a list of all players that the passed player has spotted.
50+
// This is NOT "Line of Sight" / FOV - look up "CSGO TraceRay" for that.
51+
// May not behave as expected with multiple spotters.
4852
SpottedBy(spotter *common.Player) (spotted []*common.Player)
4953
}

0 commit comments

Comments
 (0)