Versions in this module Expand all Collapse all v2 v2.4.0 Oct 14, 2020 Changes in this version + func ConvertSteamID32To64(steamID32 uint32) uint64 + func ConvertSteamID64To32(steamID64 uint64) uint32 + func ConvertSteamIDTxtTo32(steamID string) (uint32, error) + type Bomb struct + Carrier *Player + LastOnGroundPosition r3.Vector + func (b *Bomb) Position() r3.Vector + type DemoHeader struct + ClientName string + Filestamp string + GameDirectory string + MapName string + NetworkProtocol int + PlaybackFrames int + PlaybackTicks int + PlaybackTime time.Duration + Protocol int + ServerName string + SignonLength int + func (h *DemoHeader) FrameRate() float64 + func (h *DemoHeader) FrameTime() time.Duration + type Equipment struct + Entity st.Entity + OriginalString string + Owner *Player + Type EquipmentType + func NewEquipment(wep EquipmentType) *Equipment + func (e *Equipment) AmmoInMagazine() int + func (e *Equipment) AmmoReserve() int + func (e *Equipment) AmmoType() int + func (e *Equipment) Class() EquipmentClass + func (e *Equipment) String() string + func (e *Equipment) UniqueID() int64 + func (e *Equipment) ZoomLevel() ZoomLevel + type EquipmentClass int + const EqClassEquipment + const EqClassGrenade + const EqClassHeavy + const EqClassPistols + const EqClassRifle + const EqClassSMG + const EqClassUnknown + type EquipmentType int + const EqAK47 + const EqAUG + const EqAWP + const EqBizon + const EqBomb + const EqCZ + const EqDeagle + const EqDecoy + const EqDefuseKit + const EqDualBerettas + const EqFamas + const EqFiveSeven + const EqFlash + const EqG3SG1 + const EqGalil + const EqGlock + const EqHE + const EqHelmet + const EqIncendiary + const EqKevlar + const EqKnife + const EqM249 + const EqM4A1 + const EqM4A4 + const EqMP5 + const EqMP7 + const EqMP9 + const EqMac10 + const EqMag7 + const EqMolotov + const EqNegev + const EqNova + const EqP2000 + const EqP250 + const EqP90 + const EqRevolver + const EqSG553 + const EqSG556 + const EqSSG08 + const EqSawedOff + const EqScar20 + const EqScout + const EqSmoke + const EqSwag7 + const EqTec9 + const EqUMP + const EqUSP + const EqUnknown + const EqWorld + const EqXM1014 + const EqZeus + func EquipmentAlternative(eq EquipmentType) EquipmentType + func MapEquipment(eqName string) EquipmentType + func (e EquipmentType) Class() EquipmentClass + func (e EquipmentType) String() string + type Fire struct + IsBurning bool + type Fires struct + func (f Fires) Active() Fires + func (f Fires) ConvexHull2D() []r2.Point + func (f Fires) ConvexHull3D() quickhull.ConvexHull + type GamePhase int + const GamePhaseGameEnded + const GamePhaseGameHalfEnded + const GamePhaseGameOver + const GamePhaseInit + const GamePhasePregame + const GamePhaseStaleMate + const GamePhaseStartGamePhase + const GamePhaseTeamSideSwitch + func (r GamePhase) String() string + type GrenadeProjectile struct + Entity st.Entity + Owner *Player + Thrower *Player + Trajectory []r3.Vector + WeaponInstance *Equipment + func NewGrenadeProjectile() *GrenadeProjectile + func (g *GrenadeProjectile) Position() r3.Vector + func (g *GrenadeProjectile) UniqueID() int64 + type Inferno struct + Entity st.Entity + func NewInferno(demoInfoProvider demoInfoProvider, entity st.Entity) *Inferno + func (inf *Inferno) Fires() Fires + func (inf *Inferno) Thrower() *Player + func (inf *Inferno) UniqueID() int64 + type Player struct + AmmoLeft [32]int + Entity st.Entity + EntityID int + FlashDuration float32 + FlashTick int + Inventory map[int]*Equipment + IsBot bool + IsConnected bool + IsDefusing bool + IsPlanting bool + IsReloading bool + IsUnknown bool + LastAlivePosition r3.Vector + Name string + SteamID64 uint64 + Team Team + TeamState *TeamState + UserID int + func NewPlayer(demoInfoProvider demoInfoProvider) *Player + func (p *Player) ActiveWeapon() *Equipment + func (p *Player) Armor() int + func (p *Player) Assists() int + func (p *Player) ClanTag() string + func (p *Player) ControlledBot() *Player + func (p *Player) Deaths() int + func (p *Player) EquipmentValueCurrent() int + func (p *Player) EquipmentValueFreezeTimeEnd() int + func (p *Player) EquipmentValueRoundStart() int + func (p *Player) FlashDurationTime() time.Duration + func (p *Player) FlashDurationTimeRemaining() time.Duration + func (p *Player) HasDefuseKit() bool + func (p *Player) HasHelmet() bool + func (p *Player) HasSpotted(other *Player) bool + func (p *Player) Health() int + func (p *Player) IsAirborne() bool + func (p *Player) IsAlive() bool + func (p *Player) IsBlinded() bool + func (p *Player) IsControllingBot() bool + func (p *Player) IsDucking() bool + func (p *Player) IsInBombZone() bool + func (p *Player) IsInBuyZone() bool + func (p *Player) IsScoped() bool + func (p *Player) IsSpottedBy(other *Player) bool + func (p *Player) IsWalking() bool + func (p *Player) Kills() int + func (p *Player) MVPs() int + func (p *Player) Money() int + func (p *Player) MoneySpentThisRound() int + func (p *Player) MoneySpentTotal() int + func (p *Player) Ping() int + func (p *Player) Position() r3.Vector + func (p *Player) ResourceEntity() st.Entity + func (p *Player) Score() int + func (p *Player) SteamID32() uint32 + func (p *Player) String() string + func (p *Player) Velocity() r3.Vector + func (p *Player) ViewDirectionX() float32 + func (p *Player) ViewDirectionY() float32 + func (p *Player) Weapons() []*Equipment + type Team byte + const TeamCounterTerrorists + const TeamSpectators + const TeamTerrorists + const TeamUnassigned + type TeamState struct + Entity st.Entity + Opponent *TeamState + func NewTeamState(team Team, membersCallback func(Team) []*Player) TeamState + func (ts *TeamState) ClanName() string + func (ts *TeamState) CurrentEquipmentValue() (value int) + func (ts *TeamState) Flag() string + func (ts *TeamState) FreezeTimeEndEquipmentValue() (value int) + func (ts *TeamState) ID() int + func (ts *TeamState) Members() []*Player + func (ts *TeamState) MoneySpentThisRound() (value int) + func (ts *TeamState) MoneySpentTotal() (value int) + func (ts *TeamState) RoundStartEquipmentValue() (value int) + func (ts *TeamState) Score() int + func (ts *TeamState) Team() Team + type ZoomLevel int + const ZoomFull + const ZoomHalf + const ZoomNone