Skip to content

Commit a45718d

Browse files
committed
added otherdeath struct to events
1 parent 7ca1fd4 commit a45718d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/demoinfocs/events/events.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,15 @@ type RankUpdate struct {
504504
Player *common.Player // may be nil if the player has already disconnected
505505
}
506506

507+
// OtherDeath signals that there has occured a death of something that is not a player.
508+
// For example chickens.
509+
type OtherDeath struct {
510+
Killer *common.Player // May be nil
511+
OtherType string
512+
OtherID int32
513+
OtherPosition r3.Vector
514+
}
515+
507516
// SteamID64 converts SteamID32 to the 64-bit SteamID variant and returns the result.
508517
// See https://developer.valvesoftware.com/wiki/SteamID
509518
func (ru RankUpdate) SteamID64() uint64 {

0 commit comments

Comments
 (0)