feature

package
v0.0.0-...-9f6735e Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorModeHealth = iota
	ColorModeTeam   = iota
)
View Source
const (
	Hitbox_Head            = iota
	Hitbox_Neck            = iota
	Hitbox_Pelvis          = iota
	Hitbox_Stomach         = iota
	Hitbox_Chest           = iota
	Hitbox_Lower_Chest     = iota
	Hitbox_Upper_Chest     = iota
	Hitbox_Right_Thigh     = iota
	Hitbox_Left_Thigh      = iota
	Hitbox_Right_Calf      = iota
	Hitbox_Left_Calf       = iota
	Hitbox_Right_Foot      = iota
	Hitbox_Left_Foot       = iota
	Hitbox_Right_Hand      = iota
	Hitbox_Left_Hand       = iota
	Hitbox_Right_Upper_Arm = iota
	Hitbox_Right_Lower_Arm = iota
	Hitbox_Left_Upper_Arm  = iota
	Hitbox_Left_Lower_Arm  = iota
	Hitbox_Last            = iota
)

Variables

This section is empty.

Functions

func BHop

func BHop(mem *memory.Editor, activate bool)

func DrawBones

func DrawBones(canvas *render.DrawingCanvas, ps *PlayerStore, viewMatrix memory.CSMatrix, windowSize types.WindowRect, colorMode int)

func DrawNames

func DrawNames(canvas *render.DrawingCanvas, ps *PlayerStore, vm memory.CSMatrix, colorMode int)

func GetViewMatrix

func GetViewMatrix(editor *memory.Editor) (memory.CSMatrix, error)

func RunConfigEndpoint

func RunConfigEndpoint(masterConfig *Config)

func ServeWebGUI

func ServeWebGUI()

func WatchConfig

func WatchConfig(masterConfig *Config)

func WorldToScreen

func WorldToScreen(world memory.Vector3, w2s [4][4]float32) memory.Vector2

Types

type Config

type Config struct {
	Toggles struct {
		Bhop     bool `json:"bhop"`
		Name     bool `json:"name"`
		Skeleton bool `json:"skeleton"`
	} `json:"toggles"`
	ColorModes struct {
		Name     int `json:"name"`
		Skeleton int `json:"skeleton"`
	} `json:"colorModes"`
	SeeTeammates struct {
		Name     bool `json:"name"`
		Skeleton bool `json:"skeleton"`
	} `json:"seeTeammates"`
}

func InitConfig

func InitConfig() *Config

type FieldValuePair

type FieldValuePair struct {
	Field string
	Value interface{}
}

type Player

type Player struct {
	EntListIndex  int32
	BaseAddr      int32
	Team          int32
	HP            int32
	Position      memory.Vector3
	Name          string
	BonePositions map[uintptr]memory.Vector3 //using Hitbox consts to refer to bones
	IsDormant     bool
}

type PlayerStore

type PlayerStore struct {
	Players []Player
	// contains filtered or unexported fields
}

func NewPlayerStore

func NewPlayerStore(maxPlayers int32) *PlayerStore

func (PlayerStore) UpdateAllPlayers

func (ps PlayerStore) UpdateAllPlayers(editor *memory.Editor)

type Queue

type Queue [3]float32

func (Queue) AllEntriesEqual

func (q Queue) AllEntriesEqual() bool

func (Queue) Push

func (q Queue) Push(f float32) Queue

Jump to

Keyboard shortcuts

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