csgo

package
v0.0.0-...-5c8b5a8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SENS        float32
	ZOONSENS    float32
	MODIFIER    float32
	GUN_PRE_SET map[string]Gun
	Sound       embed.FS
)
View Source
var (
	MOUSE_STATE = map[events.Message]bool{
		events.WM_LBUTTONDOWN: false,
		events.WM_LBUTTONUP:   false,
	}

	GUN_BY_KEY = map[events.VKCode]string{
		events.VK_F5: "m4a4",
		events.VK_F6: "m4a1-s",
		events.VK_F7: "ak-47",
		events.VK_F8: "galil",
		events.VK_F9: "famas",
	}
)
View Source
var (
	MOUSE_LOCK    = sync.RWMutex{}
	KEYBOARD_LOCK = sync.RWMutex{}
)

Functions

func BotStart

func BotStart()

func Keyboard

func Keyboard()

func Mouse

func Mouse()

func Play

func Play(file string)

func StartRecoil

func StartRecoil(g Gun, mouse device.ProcMouse)

Types

type Gun

type Gun struct {
	Points []Point
	Before time.Duration
}

type Point

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

type Storage

type Storage struct {
	Gun       string
	BtnPress  chan bool
	Mouse     map[events.Message]bool
	MouseLock sync.RWMutex
}
var State *Storage

func (*Storage) Close

func (s *Storage) Close()

func (*Storage) IsLeftKeyDown

func (s *Storage) IsLeftKeyDown() bool

func (*Storage) LeftKeyDown

func (s *Storage) LeftKeyDown()

func (*Storage) LeftKeyUp

func (s *Storage) LeftKeyUp()

func (*Storage) UpdateGun

func (s *Storage) UpdateGun(g string) bool

Jump to

Keyboard shortcuts

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