csgo

package
v0.0.0-...-4b256dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPID       = 730
	LoginFailed = iota
	LoginSuccess
)

Variables

View Source
var DICT = "ABCDEFGHJKLMNOPQRSTUVWXYZabcdefhijkmnopqrstuvwxyz23456789"

Functions

func AccountId2SteamId

func AccountId2SteamId(accId uint32) uint64

func DecodeSharecode

func DecodeSharecode(code string) (uint64, uint64, uint16, error)

func ReverseString

func ReverseString(numbers []string) []string

func SteamId2AccountId

func SteamId2AccountId(steamId uint64) uint32

Types

type Demo

type Demo struct {
	ShareCode     string
	MatchId       uint64
	Url           string
	DecryptionKey []byte
}

type DemoMatchLoader

type DemoMatchLoader struct {
	GCReady bool

	LoggedIn bool
	// contains filtered or unexported fields
}

func (*DemoMatchLoader) HandleGCPacket

func (dml *DemoMatchLoader) HandleGCPacket(pkg *gamecoordinator.GCPacket)

func (*DemoMatchLoader) IsLoading

func (dml *DemoMatchLoader) IsLoading(demo *Demo) bool

func (*DemoMatchLoader) LoadDemo

func (dml *DemoMatchLoader) LoadDemo(demo *Demo) error

func (*DemoMatchLoader) Setup

func (dml *DemoMatchLoader) Setup(config *DemoMatchLoaderConfig) error

type DemoMatchLoaderConfig

type DemoMatchLoaderConfig struct {
	Username     string
	Password     string
	AuthCode     string
	Sentry       string
	LoginKey     string
	Db           *ent.Client
	Worker       int
	ApiKey       string
	RateLimit    *rate.Limiter
	Cache        *cache.Cache
	SprayTimeout int
	RetryTimeout int
}

type DemoNotFoundError

type DemoNotFoundError struct {
	// contains filtered or unexported fields
}

type DemoParser

type DemoParser struct {
	Done chan *Demo
	// contains filtered or unexported fields
}

func (*DemoParser) MatchPlayerBySteamID

func (dp *DemoParser) MatchPlayerBySteamID(stats []*ent.MatchPlayer, steamId uint64) (*ent.MatchPlayer, error)

func (*DemoParser) ParseDemo

func (dp *DemoParser) ParseDemo(demo *Demo) error

func (*DemoParser) Setup

func (dp *DemoParser) Setup(db *ent.Client, worker int, sprayTimeout int) error

type Encounter

type Encounter struct {
	Spotted           uint64
	TimeToReact       float32
	FirstFrag         bool
	Spray             []*Spray
	CrosshairMovement r2.Point
	Time              time.Duration
}

type Spray

type Spray struct {
	Time  time.Duration
	Spray [][]float32
}

type Sprays

type Sprays struct {
	Sprayer uint64
	Sprays  []*Spray
	Weapon  int
}

func (*Sprays) Add

func (s *Sprays) Add(currentTime time.Duration, sprayPoint []float32, timeout int)

func (*Sprays) Avg

func (s *Sprays) Avg() (avg [][]float32)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL