parser

package
v0.0.0-...-a679a28 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IN_ATTACK    int32 = (1 << 0)
	IN_JUMP            = (1 << 1)
	IN_DUCK            = (1 << 2)
	IN_FORWARD         = (1 << 3)
	IN_BACK            = (1 << 4)
	IN_USE             = (1 << 5)
	IN_CANCEL          = (1 << 6)
	IN_LEFT            = (1 << 7)
	IN_RIGHT           = (1 << 8)
	IN_MOVELEFT        = (1 << 9)
	IN_MOVERIGHT       = (1 << 10)
	IN_ATTACK2         = (1 << 11)
	IN_RUN             = (1 << 12)
	IN_RELOAD          = (1 << 13)
	IN_ALT1            = (1 << 14)
	IN_ALT2            = (1 << 15)
	IN_SCORE           = (1 << 16) /**< Used by client.dll for when scoreboard is held down */
	IN_SPEED           = (1 << 17) /**< Player is holding the speed key */
	IN_WALK            = (1 << 18) /**< Player holding walk key */
	IN_ZOOM            = (1 << 19) /**< Zoom key for HUD zoom */
	IN_WEAPON1         = (1 << 20) /**< weapon defines these bits */
	IN_WEAPON2         = (1 << 21) /**< weapon defines these bits */
	IN_BULLRUSH        = (1 << 22)
	IN_GRENADE1        = (1 << 23) /**< grenade 1 */
	IN_GRENADE2        = (1 << 24) /**< grenade 2 */
	IN_ATTACK3         = (1 << 25)
)
View Source
const (
	CSWeapon_NONE CSWeaponID = iota
	CSWeapon_P228
	CSWeapon_GLOCK
	CSWeapon_SCOUT
	CSWeapon_HEGRENADE
	CSWeapon_XM1014
	CSWeapon_C4
	CSWeapon_MAC10
	CSWeapon_AUG
	CSWeapon_SMOKEGRENADE
	CSWeapon_ELITE
	CSWeapon_FIVESEVEN
	CSWeapon_UMP45
	CSWeapon_SG550
	CSWeapon_GALIL
	CSWeapon_FAMAS
	CSWeapon_USP
	CSWeapon_AWP
	CSWeapon_MP5NAVY
	CSWeapon_M249
	CSWeapon_M3
	CSWeapon_M4A1
	CSWeapon_TMP
	CSWeapon_G3SG1
	CSWeapon_FLASHBANG
	CSWeapon_DEAGLE
	CSWeapon_SG552
	CSWeapon_AK47
	CSWeapon_KNIFE
	CSWeapon_P90
	CSWeapon_SHIELD
	CSWeapon_KEVLAR
	CSWeapon_ASSAULTSUIT
	CSWeapon_NIGHTVISION //Anything below is CS:GO ONLY
	CSWeapon_GALILAR
	CSWeapon_BIZON
	CSWeapon_MAG7
	CSWeapon_NEGEV
	CSWeapon_SAWEDOFF
	CSWeapon_TEC9
	CSWeapon_TASER
	CSWeapon_HKP2000
	CSWeapon_MP7
	CSWeapon_MP9
	CSWeapon_NOVA
	CSWeapon_P250
	CSWeapon_SCAR17
	CSWeapon_SCAR20
	CSWeapon_SG556
	CSWeapon_SSG08
	CSWeapon_KNIFE_GG
	CSWeapon_MOLOTOV
	CSWeapon_DECOY
	CSWeapon_INCGRENADE
	CSWeapon_DEFUSER
	CSWeapon_HEAVYASSAULTSUIT
	//The rest are actual item definition indexes for CS:GO
	CSWeapon_CUTTERS               = 56
	CSWeapon_HEALTHSHOT            = 57
	CSWeapon_KNIFE_T               = 59
	CSWeapon_M4A1_SILENCER         = 60
	CSWeapon_USP_SILENCER          = 61
	CSWeapon_CZ75A                 = 63
	CSWeapon_REVOLVER              = 64
	CSWeapon_TAGGRENADE            = 68
	CSWeapon_FISTS                 = 69
	CSWeapon_BREACHCHARGE          = 70
	CSWeapon_TABLET                = 72
	CSWeapon_MELEE                 = 74
	CSWeapon_AXE                   = 75
	CSWeapon_HAMMER                = 76
	CSWeapon_SPANNER               = 78
	CSWeapon_KNIFE_GHOST           = 80
	CSWeapon_FIREBOMB              = 81
	CSWeapon_DIVERSION             = 82
	CSWeapon_FRAGGRENADE           = 83
	CSWeapon_SNOWBALL              = 84
	CSWeapon_BUMPMINE              = 85
	CSWeapon_MAX_WEAPONS_NO_KNIFES // Max without the knife item defs, useful when treating all knives as a regular knife.
	CSWeapon_BAYONET               = 500
	CSWeapon_KNIFE_CLASSIC         = 503
	CSWeapon_KNIFE_FLIP            = 505
	CSWeapon_KNIFE_GUT             = 506
	CSWeapon_KNIFE_KARAMBIT        = 507
	CSWeapon_KNIFE_M9_BAYONET      = 508
	CSWeapon_KNIFE_TATICAL         = 509
	CSWeapon_KNIFE_FALCHION        = 512
	CSWeapon_KNIFE_SURVIVAL_BOWIE  = 514
	CSWeapon_KNIFE_BUTTERFLY       = 515
	CSWeapon_KNIFE_PUSH            = 516
	CSWeapon_KNIFE_CORD            = 517
	CSWeapon_KNIFE_CANIS           = 518
	CSWeapon_KNIFE_URSUS           = 519
	CSWeapon_KNIFE_GYPSY_JACKKNIFE = 520
	CSWeapon_KNIFE_OUTDOOR         = 521
	CSWeapon_KNIFE_STILETTO        = 522
	CSWeapon_KNIFE_WIDOWMAKER      = 523
	CSWeapon_KNIFE_SKELETON        = 525
	CSWeapon_MAX_WEAPONS           //THIS MUST BE LAST, EASY WAY TO CREATE LOOPS. When looping, do CS_IsValidWeaponID(i), to check.
)
View Source
const Pi = 3.14159265358979323846

Variables

View Source
var WeaponMap map[string]CSWeaponID

Functions

func ButtonConvert

func ButtonConvert(player *common.Player, addonButton int32) int32

func Start

func Start(filePath string)

Types

type CSWeaponID

type CSWeaponID int32

func WeaponStr2ID

func WeaponStr2ID(weaponName string) CSWeaponID

type TickPlayer

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

Jump to

Keyboard shortcuts

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