modelanalyzerdeathmatch

package
v0.0.0-...-bd0fe52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulletFired

type BulletFired struct {
	TimeFired time.Duration
	Hit       bool
	HitGroup  events.HitGroup

	WeaponType    common.EquipmentType
	Weapon        string
	DistanceEnemy float64

	AttackerVelocity float64
	VictimVelocity   float64
}

BulletFired data about a bullet fired

type Game

type Game struct {
	FramesPerSecond int
	Started         bool

	Players map[uint64]*Player

	MapName string
}

Game struct of a game with all the events

func (*Game) Analyze

func (g *Game) Analyze()

Analyze analyze a deathmatch

type Kill

type Kill struct {
	HeadShot bool
	WallBang bool

	Weapon string
}

Kill struct of a kill with all the data

type Player

type Player struct {
	Player *common.Player

	SteamID  uint64
	Username string

	Kills        []*Kill
	BulletsFired []*BulletFired

	WeaponsStats map[common.EquipmentType]*WeaponStats
}

Player struct of a player and its kills, assits, flashes...

type WeaponStats

type WeaponStats struct {
	FirstBulletAccuracy float64
	FirstBulletHS       float64
	BulletAccuracy      float64
	HSPercentage        float64

	NbrBulletFired int
	NbrBulletHit   int
	NbrBulletHS    int

	NbrFirstBulletFired int
	NbrFirstBulletHit   int
	NbrFirstBulletHS    int

	CumulativeVelocityAttacker float64
	AverageVelocityAttacker    float64
}

WeaponStats stats of weapons

Jump to

Keyboard shortcuts

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