Documentation
¶
Index ¶
- Constants
- Variables
- func AcceptClientInput(playerSlot int32, inputName string, activatorHandle int32, callerHandle int32, ...)
- func AcceptEntityInput(entityHandle int32, inputName string, activatorHandle int32, ...)
- func AddAdminCommand(name string, adminFlags int64, description string, flags ConVarFlag, ...) bool
- func AddBodyImpulseAtPosition(entityHandle int32, position plugify.Vector3, impulse plugify.Vector3)
- func AddBodyVelocity(entityHandle int32, linearVelocity plugify.Vector3, ...)
- func AddClientEffects(playerSlot int32, effects int32)
- func AddCommandListener(name string, callback CommandCallback, type_ HookMode) bool
- func AddConVarFlags(conVarHandle uint64, flags ConVarFlag)
- func AddConsoleCommand(name string, description string, flags ConVarFlag, callback CommandCallback, ...) bool
- func AddEntityEffects(entityHandle int32, effects int32)
- func AddLoggerTagToChannel(channelID int32, tagName string)
- func AddTransmitInfoTargetSlot(info uintptr, playerSlot int32)
- func AddUserFlags(playerSlot int32, flags uint64)
- func AnglesDiff(angle1 float32, angle2 float32) float32
- func AnglesToVector(angles plugify.Vector3) plugify.Vector3
- func ApplyAbsVelocityImpulseToClient(playerSlot int32, vecImpulse plugify.Vector3)
- func ApplyAbsVelocityImpulseToEntity(entityHandle int32, vecImpulse plugify.Vector3)
- func ApplyLocalAngularVelocityImpulseToClient(playerSlot int32, angImpulse plugify.Vector3)
- func ApplyLocalAngularVelocityImpulseToEntity(entityHandle int32, angImpulse plugify.Vector3)
- func AutoExecConfig(conVarHandles []uint64, autoCreate bool, name string, folder string) bool
- func AxisAngleToQuaternion(axis plugify.Vector3, angle float32) plugify.Vector4
- func BanClient(playerSlot int32, duration float32, kick bool)
- func BanIdentity(steamId uint64, duration float32, kick bool)
- func CalcClosestPointOnEntityOBB(entityHandle int32, position plugify.Vector3) plugify.Vector3
- func CalcDistanceBetweenEntityOBB(entityHandle1 int32, entityHandle2 int32) float32
- func CalcDistanceToLineSegment2D(p plugify.Vector3, vLineA plugify.Vector3, vLineB plugify.Vector3) float32
- func CancelCreatedEvent(event uintptr)
- func ChangeEntityState(entityHandle int32, offset int32, chainOffset int32)
- func ChangeEntityState2(entity uintptr, offset int32, chainOffset int32)
- func ClearTransmitInfoAlways(info uintptr, entityHandle int32)
- func ClearTransmitInfoAlwaysAll(info uintptr)
- func ClearTransmitInfoEntity(info uintptr, entityHandle int32)
- func ClearTransmitInfoEntityAll(info uintptr)
- func ClearTransmitInfoNonPlayer(info uintptr, entityHandle int32)
- func ClearTransmitInfoNonPlayerAll(info uintptr)
- func ClientCommand(playerSlot int32, command string)
- func ClientIndexToPlayerSlot(clientIndex int32) int32
- func ClientPtrToPlayerSlot(client uintptr) int32
- func CloseGameConfigFile(id uint32)
- func ConnectClientOutput(playerSlot int32, output string, functionName string)
- func ConnectEntityOutput(entityHandle int32, output string, functionName string)
- func CreateConVar(name string, defaultValue any, description string, flags ConVarFlag) uint64
- func CreateConVarBool(name string, defaultValue bool, description string, flags ConVarFlag, ...) uint64
- func CreateConVarColor(name string, defaultValue plugify.Vector4, description string, ...) uint64
- func CreateConVarDouble(name string, defaultValue float64, description string, flags ConVarFlag, ...) uint64
- func CreateConVarFloat(name string, defaultValue float32, description string, flags ConVarFlag, ...) uint64
- func CreateConVarInt16(name string, defaultValue int16, description string, flags ConVarFlag, ...) uint64
- func CreateConVarInt32(name string, defaultValue int32, description string, flags ConVarFlag, ...) uint64
- func CreateConVarInt64(name string, defaultValue int64, description string, flags ConVarFlag, ...) uint64
- func CreateConVarQAngle(name string, defaultValue plugify.Vector3, description string, ...) uint64
- func CreateConVarString(name string, defaultValue string, description string, flags ConVarFlag) uint64
- func CreateConVarUInt16(name string, defaultValue uint16, description string, flags ConVarFlag, ...) uint64
- func CreateConVarUInt32(name string, defaultValue uint32, description string, flags ConVarFlag, ...) uint64
- func CreateConVarUInt64(name string, defaultValue uint64, description string, flags ConVarFlag, ...) uint64
- func CreateConVarVector2(name string, defaultValue plugify.Vector2, description string, ...) uint64
- func CreateConVarVector3(name string, defaultValue plugify.Vector3, description string, ...) uint64
- func CreateConVarVector4(name string, defaultValue plugify.Vector4, description string, ...) uint64
- func CreateEntityByName(className string) int32
- func CreateEvent(name string, force bool) uintptr
- func CreateTimer(delay float64, callback TimerCallback, flags TimerFlag, userData []any) uint32
- func CrossVectors(v1 plugify.Vector3, v2 plugify.Vector3) plugify.Vector3
- func DebugBreak()
- func DebugDrawBox(center plugify.Vector3, mins plugify.Vector3, maxs plugify.Vector3, r int32, ...)
- func DebugDrawBoxDirection(center plugify.Vector3, mins plugify.Vector3, maxs plugify.Vector3, ...)
- func DebugDrawCircle(center plugify.Vector3, color plugify.Vector3, alpha float32, radius float32, ...)
- func DebugDrawClear()
- func DebugDrawLine(origin plugify.Vector3, target plugify.Vector3, r int32, g int32, b int32, ...)
- func DebugDrawLine_vCol(start plugify.Vector3, end plugify.Vector3, color plugify.Vector3, zTest bool, ...)
- func DebugDrawScreenTextLine(x float32, y float32, lineOffset int32, text string, r int32, g int32, b int32, ...)
- func DebugDrawSphere(center plugify.Vector3, color plugify.Vector3, alpha float32, radius float32, ...)
- func DebugDrawText(origin plugify.Vector3, text string, viewCheck bool, duration float32)
- func DebugScreenTextPretty(x float32, y float32, lineOffset int32, text string, r int32, g int32, b int32, ...)
- func DebugScriptAssert(assertion bool, message string)
- func DeleteEntityAttribute(entityHandle int32, name string)
- func DetachBodyFromParent(entityHandle int32)
- func DisconnectClientOutput(playerSlot int32, output string, functionName string)
- func DisconnectClientRedirectedOutput(playerSlot int32, output string, functionName string, targetHandle int32)
- func DisconnectEntityOutput(entityHandle int32, output string, functionName string)
- func DisconnectEntityRedirectedOutput(entityHandle int32, output string, functionName string, targetHandle int32)
- func DispatchSpawn(entityHandle int32)
- func DispatchSpawn2(entityHandle int32, keys []string, values []any)
- func DropWeapon(playerSlot int32, weaponHandle int32, target plugify.Vector3, ...)
- func EmitSound(entityHandle int32, sound string, pitch int32, volume float32, delay float32)
- func EmitSoundToClient(playerSlot int32, channel int32, sound string, volume float32, ...)
- func EntHandleToEntIndex(entityHandle int32) int32
- func EntHandleToEntPointer(entityHandle int32) uintptr
- func EntIndexToEntHandle(entityIndex int32) int32
- func EntIndexToEntPointer(entityIndex int32) uintptr
- func EntPointerToEntHandle(entity uintptr) int32
- func EntPointerToEntIndex(entity uintptr) int32
- func EntPointerToPlayerSlot(entity uintptr) int32
- func EraseEntSchemaEnt(entityHandle int32, className string, memberName string, element int32, ...)
- func EraseEntSchemaEnt2(entity uintptr, className string, memberName string, element int32, ...)
- func ExponentDecay(decayTo float32, decayTime float32, dt float32) float32
- func FakeClientCommand(playerSlot int32, command string)
- func FindConVar(name string) uint64
- func FindConVar2(name string, type_ ConVarType) uint64
- func FindEntityByClassname(startFrom int32, classname string) int32
- func FindEntityByClassnameNearest(startFrom int32, classname string, origin plugify.Vector3, maxRadius float32) int32
- func FindEntityByClassnameWithin(startFrom int32, classname string, origin plugify.Vector3, radius float32) int32
- func FindEntityByName(startFrom int32, name string) int32
- func FindEntityByNameNearest(name string, origin plugify.Vector3, maxRadius float32) int32
- func FindEntityByNameWithin(startFrom int32, name string, origin plugify.Vector3, radius float32) int32
- func FindEntityByTarget(startFrom int32, name string) int32
- func FindEntityInSphere(startFrom int32, origin plugify.Vector3, radius float32) int32
- func FindFileAbsoluteList(wildcard string, pathId string) []string
- func FireClientOutput(playerSlot int32, outputName string, activatorHandle int32, callerHandle int32, ...)
- func FireEntityOutput(entityHandle int32, outputName string, activatorHandle int32, ...)
- func FireEvent(event uintptr, dontBroadcast bool)
- func FireEventToClient(event uintptr, playerSlot int32)
- func FollowClient(playerSlot int32, attachmentHandle int32, boneMerge bool)
- func FollowClientMerge(playerSlot int32, attachmentHandle int32, boneOrAttachName string)
- func FollowEntity(entityHandle int32, attachmentHandle int32, boneMerge bool)
- func FollowEntityMerge(entityHandle int32, attachmentHandle int32, boneOrAttachName string)
- func ForcePlayerSuicide(playerSlot int32, explode bool, force bool)
- func GetAllCommands() []string
- func GetAllConCommands(flags ConVarFlag) []string
- func GetAllConVars() []string
- func GetBodySequence(entityHandle int32) int32
- func GetClientAbsAngles(playerSlot int32) plugify.Vector3
- func GetClientAbsOrigin(playerSlot int32) plugify.Vector3
- func GetClientAbsScale(playerSlot int32) float32
- func GetClientAbsVelocity(playerSlot int32) plugify.Vector3
- func GetClientAccountId(playerSlot int32) uint32
- func GetClientActiveWeapon(playerSlot int32) int32
- func GetClientAngRotation(playerSlot int32) plugify.Vector3
- func GetClientAngVelocity(playerSlot int32) plugify.Vector3
- func GetClientArmor(playerSlot int32) int32
- func GetClientAssists(playerSlot int32) int32
- func GetClientAuthId(playerSlot int32) string
- func GetClientBaseVelocity(playerSlot int32) plugify.Vector3
- func GetClientBoundingMaxs(playerSlot int32) plugify.Vector3
- func GetClientBoundingMins(playerSlot int32) plugify.Vector3
- func GetClientButtons(playerSlot int32, buttonIndex int32) uint64
- func GetClientCenter(playerSlot int32) plugify.Vector3
- func GetClientConVarValue(playerSlot int32, convarName string) string
- func GetClientDamage(playerSlot int32) int32
- func GetClientDeaths(playerSlot int32) int32
- func GetClientEffects(playerSlot int32) int32
- func GetClientEyeAngles(playerSlot int32) plugify.Vector3
- func GetClientEyePosition(playerSlot int32) plugify.Vector3
- func GetClientFlags(playerSlot int32) int32
- func GetClientForwardVector(playerSlot int32) plugify.Vector3
- func GetClientFriction(playerSlot int32) float32
- func GetClientGravity(playerSlot int32) float32
- func GetClientGroundEntity(playerSlot int32) int32
- func GetClientHealth(playerSlot int32) int32
- func GetClientIp(playerSlot int32) string
- func GetClientKills(playerSlot int32) int32
- func GetClientLanguage(playerSlot int32) string
- func GetClientLatency(playerSlot int32) float32
- func GetClientLeftVector(playerSlot int32) plugify.Vector3
- func GetClientLocalAngVelocity(playerSlot int32) plugify.Vector3
- func GetClientLocalAngles(playerSlot int32) plugify.Vector3
- func GetClientLocalOrigin(playerSlot int32) plugify.Vector3
- func GetClientLocalScale(playerSlot int32) float32
- func GetClientLocalVelocity(playerSlot int32) plugify.Vector3
- func GetClientMass(playerSlot int32) int32
- func GetClientMaxHealth(playerSlot int32) int32
- func GetClientModel(playerSlot int32) string
- func GetClientMoney(playerSlot int32) int32
- func GetClientName(playerSlot int32) string
- func GetClientOS(playerSlot int32) string
- func GetClientPawn(playerSlot int32) uintptr
- func GetClientRenderColor(playerSlot int32) plugify.Vector4
- func GetClientRightVector(playerSlot int32) plugify.Vector3
- func GetClientSpeed(playerSlot int32) float32
- func GetClientSteamID64(playerSlot int32) uint64
- func GetClientTime(playerSlot int32) float32
- func GetClientTransform(playerSlot int32) plugify.Matrix4x4
- func GetClientUpVector(playerSlot int32) plugify.Vector3
- func GetClientWaterLevel(playerSlot int32) float32
- func GetClientWeapons(playerSlot int32) []int32
- func GetConVar(conVarHandle uint64) any
- func GetConVarBool(conVarHandle uint64) bool
- func GetConVarBounds(conVarHandle uint64, max bool) string
- func GetConVarColor(conVarHandle uint64) plugify.Vector4
- func GetConVarDefault(conVarHandle uint64) string
- func GetConVarDouble(conVarHandle uint64) float64
- func GetConVarFloat(conVarHandle uint64) float32
- func GetConVarInt16(conVarHandle uint64) int16
- func GetConVarInt32(conVarHandle uint64) int32
- func GetConVarInt64(conVarHandle uint64) int64
- func GetConVarQAngle(conVarHandle uint64) plugify.Vector3
- func GetConVarString(conVarHandle uint64) string
- func GetConVarUInt16(conVarHandle uint64) uint16
- func GetConVarUInt32(conVarHandle uint64) uint32
- func GetConVarUInt64(conVarHandle uint64) uint64
- func GetConVarValue(conVarHandle uint64) string
- func GetConVarVector(conVarHandle uint64) plugify.Vector3
- func GetConVarVector2(conVarHandle uint64) plugify.Vector2
- func GetConVarVector4(conVarHandle uint64) plugify.Vector4
- func GetCurrentMap() string
- func GetEconItemSystem() uintptr
- func GetEngineTime() float64
- func GetEntData(entityHandle int32, offset int32, size int32) int64
- func GetEntData2(entity uintptr, offset int32, size int32) int64
- func GetEntDataCString(entityHandle int32, offset int32, size int32) string
- func GetEntDataCString2(entity uintptr, offset int32, size int32) string
- func GetEntDataColor(entityHandle int32, offset int32) plugify.Vector4
- func GetEntDataColor2(entity uintptr, offset int32) plugify.Vector4
- func GetEntDataEnt(entityHandle int32, offset int32) int32
- func GetEntDataEnt2(entity uintptr, offset int32) int32
- func GetEntDataFloat(entityHandle int32, offset int32, size int32) float64
- func GetEntDataFloat2(entity uintptr, offset int32, size int32) float64
- func GetEntDataString(entityHandle int32, offset int32) string
- func GetEntDataString2(entity uintptr, offset int32) string
- func GetEntDataVector2D(entityHandle int32, offset int32) plugify.Vector2
- func GetEntDataVector2D2(entity uintptr, offset int32) plugify.Vector2
- func GetEntDataVector3D(entityHandle int32, offset int32) plugify.Vector3
- func GetEntDataVector3D2(entity uintptr, offset int32) plugify.Vector3
- func GetEntDataVector4D(entityHandle int32, offset int32) plugify.Vector4
- func GetEntDataVector4D2(entity uintptr, offset int32) plugify.Vector4
- func GetEntSchema(entityHandle int32, className string, memberName string, element int32) int64
- func GetEntSchema2(entity uintptr, className string, memberName string, element int32) int64
- func GetEntSchemaArraySize(entityHandle int32, className string, memberName string) int32
- func GetEntSchemaArraySize2(entity uintptr, className string, memberName string) int32
- func GetEntSchemaColor(entityHandle int32, className string, memberName string, element int32) plugify.Vector4
- func GetEntSchemaColor2(entity uintptr, className string, memberName string, element int32) plugify.Vector4
- func GetEntSchemaEnt(entityHandle int32, className string, memberName string, element int32) int32
- func GetEntSchemaEnt2(entity uintptr, className string, memberName string, element int32) int32
- func GetEntSchemaFloat(entityHandle int32, className string, memberName string, element int32) float64
- func GetEntSchemaFloat2(entity uintptr, className string, memberName string, element int32) float64
- func GetEntSchemaString(entityHandle int32, className string, memberName string, element int32) string
- func GetEntSchemaString2(entity uintptr, className string, memberName string, element int32) string
- func GetEntSchemaVector2D(entityHandle int32, className string, memberName string, element int32) plugify.Vector2
- func GetEntSchemaVector2D2(entity uintptr, className string, memberName string, element int32) plugify.Vector2
- func GetEntSchemaVector3D(entityHandle int32, className string, memberName string, element int32) plugify.Vector3
- func GetEntSchemaVector3D2(entity uintptr, className string, memberName string, element int32) plugify.Vector3
- func GetEntSchemaVector4D(entityHandle int32, className string, memberName string, element int32) plugify.Vector4
- func GetEntSchemaVector4D2(entity uintptr, className string, memberName string, element int32) plugify.Vector4
- func GetEntityAbsAngles(entityHandle int32) plugify.Vector3
- func GetEntityAbsOrigin(entityHandle int32) plugify.Vector3
- func GetEntityAbsScale(entityHandle int32) float32
- func GetEntityAbsVelocity(entityHandle int32) plugify.Vector3
- func GetEntityAngRotation(entityHandle int32) plugify.Vector3
- func GetEntityAngVelocity(entityHandle int32) plugify.Vector3
- func GetEntityAttachmentAngles(entityHandle int32, attachmentIndex int32) plugify.Vector3
- func GetEntityAttachmentForward(entityHandle int32, attachmentIndex int32) plugify.Vector3
- func GetEntityAttachmentOrigin(entityHandle int32, attachmentIndex int32) plugify.Vector3
- func GetEntityAttributeFloatValue(entityHandle int32, name string, defaultValue float32) float32
- func GetEntityAttributeIntValue(entityHandle int32, name string, defaultValue int32) int32
- func GetEntityBaseVelocity(entityHandle int32) plugify.Vector3
- func GetEntityBoundingMaxs(entityHandle int32) plugify.Vector3
- func GetEntityBoundingMins(entityHandle int32) plugify.Vector3
- func GetEntityCenter(entityHandle int32) plugify.Vector3
- func GetEntityClassname(entityHandle int32) string
- func GetEntityEffects(entityHandle int32) int32
- func GetEntityEyeAngles(entityHandle int32) plugify.Vector3
- func GetEntityEyePosition(entityHandle int32) plugify.Vector3
- func GetEntityFlags(entityHandle int32) int32
- func GetEntityForwardVector(entityHandle int32) plugify.Vector3
- func GetEntityFriction(entityHandle int32) float32
- func GetEntityGravity(entityHandle int32) float32
- func GetEntityGroundEntity(entityHandle int32) int32
- func GetEntityHealth(entityHandle int32) int32
- func GetEntityLeftVector(entityHandle int32) plugify.Vector3
- func GetEntityLocalAngVelocity(entityHandle int32) plugify.Vector3
- func GetEntityLocalAngles(entityHandle int32) plugify.Vector3
- func GetEntityLocalOrigin(entityHandle int32) plugify.Vector3
- func GetEntityLocalScale(entityHandle int32) float32
- func GetEntityLocalVelocity(entityHandle int32) plugify.Vector3
- func GetEntityMass(entityHandle int32) int32
- func GetEntityMaterialGroupHash(entityHandle int32) uint32
- func GetEntityMaterialGroupMask(entityHandle int32) uint64
- func GetEntityMaxHealth(entityHandle int32) int32
- func GetEntityModel(entityHandle int32) string
- func GetEntityModelScale(entityHandle int32) float32
- func GetEntityName(entityHandle int32) string
- func GetEntityOwner(entityHandle int32) int32
- func GetEntityParent(entityHandle int32) int32
- func GetEntityRenderAlpha(entityHandle int32) int32
- func GetEntityRenderColor(entityHandle int32) plugify.Vector4
- func GetEntityRenderColor2(entityHandle int32) plugify.Vector3
- func GetEntityRightVector(entityHandle int32) plugify.Vector3
- func GetEntityTransform(entityHandle int32) plugify.Matrix4x4
- func GetEntityUpVector(entityHandle int32) plugify.Vector3
- func GetEntityWaterLevel(entityHandle int32) float32
- func GetEventBool(event uintptr, key string) bool
- func GetEventEntity(event uintptr, key string) uintptr
- func GetEventEntityHandle(event uintptr, key string) int32
- func GetEventEntityIndex(event uintptr, key string) int32
- func GetEventFloat(event uintptr, key string) float32
- func GetEventInt(event uintptr, key string) int32
- func GetEventName(event uintptr) string
- func GetEventPlayerController(event uintptr, key string) uintptr
- func GetEventPlayerIndex(event uintptr, key string) int32
- func GetEventPlayerPawn(event uintptr, key string) uintptr
- func GetEventPlayerSlot(event uintptr, key string) int32
- func GetEventPtr(event uintptr, key string) uintptr
- func GetEventString(event uintptr, key string) string
- func GetEventUInt64(event uintptr, key string) uint64
- func GetFirstActiveEntity() int32
- func GetGameConfigAddress(id uint32, name string) uintptr
- func GetGameConfigAddressAll(name string) uintptr
- func GetGameConfigOffset(id uint32, name string) int32
- func GetGameConfigOffsetAll(name string) int32
- func GetGameConfigPatch(id uint32, name string) string
- func GetGameConfigPatchAll(name string) string
- func GetGameConfigSignature(id uint32, name string) uintptr
- func GetGameConfigSignatureAll(name string) uintptr
- func GetGameConfigVTable(id uint32, name string) uintptr
- func GetGameConfigVTableAll(name string) uintptr
- func GetGameDirectory() string
- func GetGameFrameTime() float32
- func GetGamePlayerCount(team int32) int32
- func GetGameRules() uintptr
- func GetGameRulesProxy() uintptr
- func GetGameTeamManager(team int32) uintptr
- func GetGameTeamScore(team int32) int32
- func GetGameTickCount() int32
- func GetGameTime() float32
- func GetGameTotalRoundsPlayed() int32
- func GetLocalAddress(onlyBase bool) string
- func GetLoggerChannelColor(channelID int32) plugify.Vector4
- func GetLoggerChannelFlags(channelID int32) int32
- func GetLoggerChannelVerbosity(channelID int32) int32
- func GetMaxClients() int32
- func GetNextActiveEntity(entityHandle int32) int32
- func GetPrevActiveEntity(entityHandle int32) int32
- func GetPublicAddress(onlyBase bool) string
- func GetSchemaChainOffset(className string) int32
- func GetSchemaClassSize(className string) int32
- func GetSchemaOffset(className string, memberName string) int32
- func GetServerLanguage() string
- func GetSoundDuration(name string) float32
- func GetTickInterval() float64
- func GetTickedTime() float64
- func GetTransmitInfoFullUpdate(info uintptr) bool
- func GetTransmitInfoPlayerSlot(info uintptr) int32
- func GetTransmitInfoTargetSlot(info uintptr, index int32) int32
- func GetTransmitInfoTargetSlotsAll(info uintptr) []int32
- func GetTransmitInfoTargetSlotsCount(info uintptr) int32
- func GetUserFlagBits(playerSlot int32) uint64
- func GetWeaponVData(entityHandle int32) uintptr
- func GetWeaponVDataFromKey(name string) uintptr
- func GiveNamedItem(playerSlot int32, itemName string) int32
- func HasEntityAttribute(entityHandle int32, name string) bool
- func HasLoggerTag(channelID int32, tag string) bool
- func HookConVarChange(conVarHandle uint64, callback ChangeCallback)
- func HookEntityOutput(classname string, output string, callback HookEntityOutputCallback, ...) bool
- func HookUserMessage(messageId int16, callback UserMessageCallback, mode HookMode) bool
- func IsBodyAttachedToParent(entityHandle int32) bool
- func IsClientAlive(playerSlot int32) bool
- func IsClientAuthorized(playerSlot int32) bool
- func IsClientConnected(playerSlot int32) bool
- func IsClientInGame(playerSlot int32) bool
- func IsClientSourceTV(playerSlot int32) bool
- func IsConVarFlagSet(conVarHandle uint64, flag int64) bool
- func IsEntityPlayerController(entityHandle int32) bool
- func IsEntityPlayerPawn(entityHandle int32) bool
- func IsFakeClient(playerSlot int32) bool
- func IsLoggerChannelEnabledBySeverity(channelID int32, severity LoggingSeverity) bool
- func IsLoggerChannelEnabledByVerbosity(channelID int32, verbosity LoggingVerbosity) bool
- func IsMapValid(mapname string) bool
- func IsPrecached(resource string) bool
- func IsSchemaFieldNetworked(className string, memberName string) bool
- func IsServerPaused() bool
- func IsTransmitInfoAlwaysSet(info uintptr, entityHandle int32) bool
- func IsTransmitInfoEntitySet(info uintptr, entityHandle int32) bool
- func IsTransmitInfoNonPlayerSet(info uintptr, entityHandle int32) bool
- func IsValidEntHandle(entityHandle int32) bool
- func IsValidEntPointer(entity uintptr) bool
- func KickClient(playerSlot int32, reason NetworkDisconnectionReason, message string)
- func KillsTimer(timer uint32)
- func Kv1AddSubKey(kv uintptr, subKey uintptr)
- func Kv1Clear(kv uintptr)
- func Kv1Create(setName string) uintptr
- func Kv1CreateKey(kv uintptr, keyName string) uintptr
- func Kv1CreateNewKey(kv uintptr) uintptr
- func Kv1Destroy(kv uintptr)
- func Kv1FindKey(kv uintptr, keyName string) uintptr
- func Kv1FindOrCreateKey(kv uintptr, keyName string) uintptr
- func Kv1GetBool(kv uintptr, keyName string, defaultValue bool) bool
- func Kv1GetColor(kv uintptr, keyName string, defaultValue plugify.Vector4) plugify.Vector4
- func Kv1GetFirstSubKey(kv uintptr) uintptr
- func Kv1GetFloat(kv uintptr, keyName string, defaultValue float32) float32
- func Kv1GetInt(kv uintptr, keyName string, defaultValue int32) int32
- func Kv1GetName(kv uintptr) string
- func Kv1GetNextKey(kv uintptr) uintptr
- func Kv1GetPtr(kv uintptr, keyName string, defaultValue uintptr) uintptr
- func Kv1GetString(kv uintptr, keyName string, defaultValue string) string
- func Kv1IsEmpty(kv uintptr, keyName string) bool
- func Kv1MakeCopy(kv uintptr) uintptr
- func Kv1SetBool(kv uintptr, keyName string, value bool)
- func Kv1SetColor(kv uintptr, keyName string, value plugify.Vector4)
- func Kv1SetFloat(kv uintptr, keyName string, value float32)
- func Kv1SetInt(kv uintptr, keyName string, value int32)
- func Kv1SetName(kv uintptr, name string)
- func Kv1SetPtr(kv uintptr, keyName string, value uintptr)
- func Kv1SetString(kv uintptr, keyName string, value string)
- func Kv3ArrayAddElementToTail(kv uintptr) uintptr
- func Kv3ArrayInsertElementAfter(kv uintptr, elem int32) uintptr
- func Kv3ArrayInsertElementBefore(kv uintptr, elem int32) uintptr
- func Kv3ArrayRemoveElement(kv uintptr, elem int32)
- func Kv3ArraySwapItems(kv uintptr, idx1 int32, idx2 int32)
- func Kv3CopyFrom(kv uintptr, other uintptr)
- func Kv3Create(type_ int32, subtype int32) uintptr
- func Kv3CreateCopy(other uintptr) uintptr
- func Kv3CreateWithCluster(cluster_elem int32, type_ int32, subtype int32) uintptr
- func Kv3DebugPrint(kv uintptr)
- func Kv3Destroy(kv uintptr)
- func Kv3FindMember(kv uintptr, name string) uintptr
- func Kv3FindOrCreateMember(kv uintptr, name string) uintptr
- func Kv3GetAllFlags(kv uintptr) uint8
- func Kv3GetArrayElement(kv uintptr, elem int32) uintptr
- func Kv3GetArrayElementCount(kv uintptr) int32
- func Kv3GetBinaryBlob(kv uintptr) []uint8
- func Kv3GetBinaryBlobSize(kv uintptr) int32
- func Kv3GetBool(kv uintptr, defaultValue bool) bool
- func Kv3GetChar(kv uintptr, defaultValue int8) int8
- func Kv3GetColor(kv uintptr, defaultValue plugify.Vector4) plugify.Vector4
- func Kv3GetContext(kv uintptr) uintptr
- func Kv3GetDouble(kv uintptr, defaultValue float64) float64
- func Kv3GetEHandle(kv uintptr, defaultValue int32) int32
- func Kv3GetFloat(kv uintptr, defaultValue float32) float32
- func Kv3GetInt(kv uintptr, defaultValue int32) int32
- func Kv3GetInt8(kv uintptr, defaultValue int8) int8
- func Kv3GetInt64(kv uintptr, defaultValue int64) int64
- func Kv3GetMatrix3x4(kv uintptr, defaultValue plugify.Matrix4x4) plugify.Matrix4x4
- func Kv3GetMemberBool(kv uintptr, name string, defaultValue bool) bool
- func Kv3GetMemberByIndex(kv uintptr, index int32) uintptr
- func Kv3GetMemberChar(kv uintptr, name string, defaultValue int8) int8
- func Kv3GetMemberColor(kv uintptr, name string, defaultValue plugify.Vector4) plugify.Vector4
- func Kv3GetMemberCount(kv uintptr) int32
- func Kv3GetMemberDouble(kv uintptr, name string, defaultValue float64) float64
- func Kv3GetMemberEHandle(kv uintptr, name string, defaultValue int32) int32
- func Kv3GetMemberFloat(kv uintptr, name string, defaultValue float32) float32
- func Kv3GetMemberInt(kv uintptr, name string, defaultValue int32) int32
- func Kv3GetMemberInt8(kv uintptr, name string, defaultValue int8) int8
- func Kv3GetMemberInt64(kv uintptr, name string, defaultValue int64) int64
- func Kv3GetMemberMatrix3x4(kv uintptr, name string, defaultValue plugify.Matrix4x4) plugify.Matrix4x4
- func Kv3GetMemberName(kv uintptr, index int32) string
- func Kv3GetMemberPointer(kv uintptr, name string, defaultValue uintptr) uintptr
- func Kv3GetMemberQAngle(kv uintptr, name string, defaultValue plugify.Vector3) plugify.Vector3
- func Kv3GetMemberQuaternion(kv uintptr, name string, defaultValue plugify.Vector4) plugify.Vector4
- func Kv3GetMemberShort(kv uintptr, name string, defaultValue int16) int16
- func Kv3GetMemberString(kv uintptr, name string, defaultValue string) string
- func Kv3GetMemberStringToken(kv uintptr, name string, defaultValue uint32) uint32
- func Kv3GetMemberUChar32(kv uintptr, name string, defaultValue uint32) uint32
- func Kv3GetMemberUInt(kv uintptr, name string, defaultValue uint32) uint32
- func Kv3GetMemberUInt8(kv uintptr, name string, defaultValue uint8) uint8
- func Kv3GetMemberUInt64(kv uintptr, name string, defaultValue uint64) uint64
- func Kv3GetMemberUShort(kv uintptr, name string, defaultValue uint16) uint16
- func Kv3GetMemberVector(kv uintptr, name string, defaultValue plugify.Vector3) plugify.Vector3
- func Kv3GetMemberVector2D(kv uintptr, name string, defaultValue plugify.Vector2) plugify.Vector2
- func Kv3GetMemberVector4D(kv uintptr, name string, defaultValue plugify.Vector4) plugify.Vector4
- func Kv3GetMetaData(kv uintptr, ppCtx uintptr) uintptr
- func Kv3GetPointer(kv uintptr, defaultValue uintptr) uintptr
- func Kv3GetQAngle(kv uintptr, defaultValue plugify.Vector3) plugify.Vector3
- func Kv3GetQuaternion(kv uintptr, defaultValue plugify.Vector4) plugify.Vector4
- func Kv3GetShort(kv uintptr, defaultValue int16) int16
- func Kv3GetString(kv uintptr, defaultValue string) string
- func Kv3GetStringToken(kv uintptr, defaultValue uint32) uint32
- func Kv3GetSubType(kv uintptr) uint8
- func Kv3GetSubTypeAsString(kv uintptr) string
- func Kv3GetType(kv uintptr) uint8
- func Kv3GetTypeAsString(kv uintptr) string
- func Kv3GetTypeEx(kv uintptr) uint8
- func Kv3GetUChar32(kv uintptr, defaultValue uint32) uint32
- func Kv3GetUInt(kv uintptr, defaultValue uint32) uint32
- func Kv3GetUInt8(kv uintptr, defaultValue uint8) uint8
- func Kv3GetUInt64(kv uintptr, defaultValue uint64) uint64
- func Kv3GetUShort(kv uintptr, defaultValue uint16) uint16
- func Kv3GetVector(kv uintptr, defaultValue plugify.Vector3) plugify.Vector3
- func Kv3GetVector2D(kv uintptr, defaultValue plugify.Vector2) plugify.Vector2
- func Kv3GetVector4D(kv uintptr, defaultValue plugify.Vector4) plugify.Vector4
- func Kv3HasAnyFlags(kv uintptr) bool
- func Kv3HasFlag(kv uintptr, flag uint8) bool
- func Kv3HasInvalidMemberNames(kv uintptr) bool
- func Kv3HasMember(kv uintptr, name string) bool
- func Kv3IsArray(kv uintptr) bool
- func Kv3IsKV3Array(kv uintptr) bool
- func Kv3IsNull(kv uintptr) bool
- func Kv3IsString(kv uintptr) bool
- func Kv3IsTable(kv uintptr) bool
- func Kv3Load(kv uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
- func Kv3LoadFromBuffer(context uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
- func Kv3LoadFromFile(kv uintptr, error_ *string, filename string, path string, flags uint32) bool
- func Kv3LoadFromFileToContext(context uintptr, error_ *string, filename string, path string, flags uint32) bool
- func Kv3LoadFromJSON(kv uintptr, error_ *string, input string, kv_name string, flags uint32) bool
- func Kv3LoadFromJSONFile(kv uintptr, error_ *string, path string, filename string, flags uint32) bool
- func Kv3LoadFromKV1File(kv uintptr, error_ *string, path string, filename string, esc_behavior uint8, ...) bool
- func Kv3LoadFromKV1Text(kv uintptr, error_ *string, input string, esc_behavior uint8, kv_name string, ...) bool
- func Kv3LoadFromKV1TextTranslated(kv uintptr, error_ *string, input string, esc_behavior uint8, ...) bool
- func Kv3LoadFromKV3OrKV1(kv uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
- func Kv3LoadFromOldSchemaText(kv uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
- func Kv3LoadFromText(kv uintptr, error_ *string, input string, kv_name string, flags uint32) bool
- func Kv3LoadTextNoHeader(kv uintptr, error_ *string, input string, kv_name string, flags uint32) bool
- func Kv3OverlayKeysFrom(kv uintptr, other uintptr, depth bool)
- func Kv3RemoveMember(kv uintptr, name string) bool
- func Kv3Save(kv uintptr, error_ *string, output *[]uint8, flags uint32) bool
- func Kv3SaveAsJSON(kv uintptr, error_ *string, output *[]uint8) bool
- func Kv3SaveAsJSONString(kv uintptr, error_ *string, output *string) bool
- func Kv3SaveAsKV1Text(kv uintptr, error_ *string, output *[]uint8, esc_behavior uint8) bool
- func Kv3SaveAsKV1TextTranslated(kv uintptr, error_ *string, output *[]uint8, esc_behavior uint8, ...) bool
- func Kv3SaveTextNoHeader(kv uintptr, error_ *string, output *string, flags uint32) bool
- func Kv3SaveTextNoHeaderToBuffer(kv uintptr, error_ *string, output *[]uint8, flags uint32) bool
- func Kv3SaveTextToString(kv uintptr, error_ *string, output *string, flags uint32) bool
- func Kv3SaveToFile(kv uintptr, error_ *string, filename string, path string, flags uint32) bool
- func Kv3SetAllFlags(kv uintptr, flags uint8)
- func Kv3SetArrayElementCount(kv uintptr, count int32, type_ uint8, subtype uint8)
- func Kv3SetBool(kv uintptr, value bool)
- func Kv3SetChar(kv uintptr, value int8)
- func Kv3SetColor(kv uintptr, color plugify.Vector4)
- func Kv3SetDouble(kv uintptr, value float64)
- func Kv3SetEHandle(kv uintptr, ehandle int32)
- func Kv3SetFlag(kv uintptr, flag uint8, state bool)
- func Kv3SetFloat(kv uintptr, value float32)
- func Kv3SetHasInvalidMemberNames(kv uintptr, bValue bool)
- func Kv3SetInt(kv uintptr, value int32)
- func Kv3SetInt8(kv uintptr, value int8)
- func Kv3SetInt64(kv uintptr, value int64)
- func Kv3SetMatrix3x4(kv uintptr, matrix plugify.Matrix4x4)
- func Kv3SetMemberBool(kv uintptr, name string, value bool)
- func Kv3SetMemberChar(kv uintptr, name string, value int8)
- func Kv3SetMemberColor(kv uintptr, name string, color plugify.Vector4)
- func Kv3SetMemberDouble(kv uintptr, name string, value float64)
- func Kv3SetMemberEHandle(kv uintptr, name string, ehandle int32)
- func Kv3SetMemberFloat(kv uintptr, name string, value float32)
- func Kv3SetMemberInt(kv uintptr, name string, value int32)
- func Kv3SetMemberInt8(kv uintptr, name string, value int8)
- func Kv3SetMemberInt64(kv uintptr, name string, value int64)
- func Kv3SetMemberMatrix3x4(kv uintptr, name string, matrix plugify.Matrix4x4)
- func Kv3SetMemberPointer(kv uintptr, name string, ptr uintptr)
- func Kv3SetMemberQAngle(kv uintptr, name string, ang plugify.Vector3)
- func Kv3SetMemberQuaternion(kv uintptr, name string, quat plugify.Vector4)
- func Kv3SetMemberShort(kv uintptr, name string, value int16)
- func Kv3SetMemberString(kv uintptr, name string, str string, subtype uint8)
- func Kv3SetMemberStringExternal(kv uintptr, name string, str string, subtype uint8)
- func Kv3SetMemberStringToken(kv uintptr, name string, token uint32)
- func Kv3SetMemberToBinaryBlob(kv uintptr, name string, blob []uint8)
- func Kv3SetMemberToBinaryBlobExternal(kv uintptr, name string, blob []uint8, free_mem bool)
- func Kv3SetMemberToCopyOfValue(kv uintptr, name string, other uintptr)
- func Kv3SetMemberToEmptyArray(kv uintptr, name string)
- func Kv3SetMemberToEmptyTable(kv uintptr, name string)
- func Kv3SetMemberToNull(kv uintptr, name string)
- func Kv3SetMemberUChar32(kv uintptr, name string, value uint32)
- func Kv3SetMemberUInt(kv uintptr, name string, value uint32)
- func Kv3SetMemberUInt8(kv uintptr, name string, value uint8)
- func Kv3SetMemberUInt64(kv uintptr, name string, value uint64)
- func Kv3SetMemberUShort(kv uintptr, name string, value uint16)
- func Kv3SetMemberVector(kv uintptr, name string, vec plugify.Vector3)
- func Kv3SetMemberVector2D(kv uintptr, name string, vec2d plugify.Vector2)
- func Kv3SetMemberVector4D(kv uintptr, name string, vec4d plugify.Vector4)
- func Kv3SetPointer(kv uintptr, ptr uintptr)
- func Kv3SetQAngle(kv uintptr, ang plugify.Vector3)
- func Kv3SetQuaternion(kv uintptr, quat plugify.Vector4)
- func Kv3SetShort(kv uintptr, value int16)
- func Kv3SetString(kv uintptr, str string, subtype uint8)
- func Kv3SetStringExternal(kv uintptr, str string, subtype uint8)
- func Kv3SetStringToken(kv uintptr, token uint32)
- func Kv3SetToBinaryBlob(kv uintptr, blob []uint8)
- func Kv3SetToBinaryBlobExternal(kv uintptr, blob []uint8, free_mem bool)
- func Kv3SetToEmptyKV3Array(kv uintptr)
- func Kv3SetToEmptyTable(kv uintptr)
- func Kv3SetToNull(kv uintptr)
- func Kv3SetUChar32(kv uintptr, value uint32)
- func Kv3SetUInt(kv uintptr, value uint32)
- func Kv3SetUInt8(kv uintptr, value uint8)
- func Kv3SetUInt64(kv uintptr, value uint64)
- func Kv3SetUShort(kv uintptr, value uint16)
- func Kv3SetVector(kv uintptr, vec plugify.Vector3)
- func Kv3SetVector2D(kv uintptr, vec2d plugify.Vector2)
- func Kv3SetVector4D(kv uintptr, vec4d plugify.Vector4)
- func Kv3ToString(kv uintptr, flags uint32) string
- func LerpVectors(start plugify.Vector3, end plugify.Vector3, factor float32) plugify.Vector3
- func LoadEventsFromFile(path string, searchAll bool) int32
- func LoadGameConfigFile(paths []string) uint32
- func Log(channelID int32, severity LoggingSeverity, message string) int32
- func LogColored(channelID int32, severity LoggingSeverity, color plugify.Vector4, ...) int32
- func LogFull(channelID int32, severity LoggingSeverity, file string, line int32, ...) int32
- func LogFullColored(channelID int32, severity LoggingSeverity, file string, line int32, ...) int32
- func LookupBodySequence(entityHandle int32, name string) int32
- func NetworkStateChanged(entityHandle int32, className string, memberName string)
- func NetworkStateChanged2(entity uintptr, className string, memberName string)
- func OnBuildGameSessionManifest_Register(callback OnBuildGameSessionManifestCallback)
- func OnBuildGameSessionManifest_Unregister(callback OnBuildGameSessionManifestCallback)
- func OnClientActive_Register(callback OnClientActiveCallback)
- func OnClientActive_Unregister(callback OnClientActiveCallback)
- func OnClientAuthenticated_Register(callback OnClientAuthenticatedCallback)
- func OnClientAuthenticated_Unregister(callback OnClientAuthenticatedCallback)
- func OnClientConnect_Post_Register(callback OnClientConnect_PostCallback)
- func OnClientConnect_Post_Unregister(callback OnClientConnect_PostCallback)
- func OnClientConnect_Register(callback OnClientConnectCallback)
- func OnClientConnect_Unregister(callback OnClientConnectCallback)
- func OnClientConnected_Register(callback OnClientConnectedCallback)
- func OnClientConnected_Unregister(callback OnClientConnectedCallback)
- func OnClientDisconnect_Post_Register(callback OnClientDisconnect_PostCallback)
- func OnClientDisconnect_Post_Unregister(callback OnClientDisconnect_PostCallback)
- func OnClientDisconnect_Register(callback OnClientDisconnectCallback)
- func OnClientDisconnect_Unregister(callback OnClientDisconnectCallback)
- func OnClientFullyConnect_Register(callback OnClientFullyConnectCallback)
- func OnClientFullyConnect_Unregister(callback OnClientFullyConnectCallback)
- func OnClientPutInServer_Register(callback OnClientPutInServerCallback)
- func OnClientPutInServer_Unregister(callback OnClientPutInServerCallback)
- func OnClientSettingsChanged_Register(callback OnClientSettingsChangedCallback)
- func OnClientSettingsChanged_Unregister(callback OnClientSettingsChangedCallback)
- func OnEntityCreated_Register(callback OnEntityCreatedCallback)
- func OnEntityCreated_Unregister(callback OnEntityCreatedCallback)
- func OnEntityDeleted_Register(callback OnEntityDeletedCallback)
- func OnEntityDeleted_Unregister(callback OnEntityDeletedCallback)
- func OnEntityParentChanged_Register(callback OnEntityParentChangedCallback)
- func OnEntityParentChanged_Unregister(callback OnEntityParentChangedCallback)
- func OnGameFrame_Register(callback OnGameFrameCallback)
- func OnGameFrame_Unregister(callback OnGameFrameCallback)
- func OnMapEnd_Register(callback OnMapEndCallback)
- func OnMapEnd_Unregister(callback OnMapEndCallback)
- func OnMapStart_Register(callback OnMapStartCallback)
- func OnMapStart_Unregister(callback OnMapStartCallback)
- func OnPreWorldUpdate_Register(callback OnPreWorldUpdateCallback)
- func OnPreWorldUpdate_Unregister(callback OnPreWorldUpdateCallback)
- func OnRoundTerminated_Register(callback OnRoundTerminatedCallback)
- func OnRoundTerminated_Unregister(callback OnRoundTerminatedCallback)
- func OnServerActivate_Register(callback OnServerActivateCallback)
- func OnServerActivate_Unregister(callback OnServerActivateCallback)
- func OnServerCheckTransmit_Register(callback OnServerCheckTransmitCallback)
- func OnServerCheckTransmit_Unregister(callback OnServerCheckTransmitCallback)
- func OnServerSpawn_Register(callback OnServerSpawnCallback)
- func OnServerSpawn_Unregister(callback OnServerSpawnCallback)
- func OnServerStarted_Register(callback OnServerStartedCallback)
- func OnServerStarted_Unregister(callback OnServerStartedCallback)
- func OnServerStartup_Register(callback OnServerStartupCallback)
- func OnServerStartup_Unregister(callback OnServerStartupCallback)
- func OnUpdateWhenNotInGame_Register(callback OnUpdateWhenNotInGameCallback)
- func OnUpdateWhenNotInGame_Unregister(callback OnUpdateWhenNotInGameCallback)
- func PanoramaEndVote(reason VoteEndReason)
- func PanoramaIsPlayerInVotePool(playerSlot int32) bool
- func PanoramaIsVoteInProgress() bool
- func PanoramaRedrawVoteToClient(playerSlot int32) bool
- func PanoramaRemovePlayerFromVote(playerSlot int32)
- func PanoramaSendYesNoVote(duration float64, caller int32, voteTitle string, detailStr string, ...) bool
- func PanoramaSendYesNoVoteToAll(duration float64, caller int32, voteTitle string, detailStr string, ...) bool
- func PbAddBool(userMessage uintptr, fieldName string, value bool) bool
- func PbAddColor(userMessage uintptr, fieldName string, value plugify.Vector4) bool
- func PbAddDouble(userMessage uintptr, fieldName string, value float64) bool
- func PbAddEnum(userMessage uintptr, fieldName string, value int32) bool
- func PbAddFloat(userMessage uintptr, fieldName string, value float32) bool
- func PbAddInt32(userMessage uintptr, fieldName string, value int32) bool
- func PbAddInt64(userMessage uintptr, fieldName string, value int64) bool
- func PbAddMessage(userMessage uintptr, fieldName string, value uintptr) bool
- func PbAddQAngle(userMessage uintptr, fieldName string, value plugify.Vector3) bool
- func PbAddString(userMessage uintptr, fieldName string, value string) bool
- func PbAddUInt32(userMessage uintptr, fieldName string, value uint32) bool
- func PbAddUInt64(userMessage uintptr, fieldName string, value uint64) bool
- func PbAddVector2(userMessage uintptr, fieldName string, value plugify.Vector2) bool
- func PbAddVector3(userMessage uintptr, fieldName string, value plugify.Vector3) bool
- func PbAddVector4(userMessage uintptr, fieldName string, value plugify.Vector4) bool
- func PbGetBool(userMessage uintptr, fieldName string, out *bool) bool
- func PbGetColor(userMessage uintptr, fieldName string, out *plugify.Vector4) bool
- func PbGetDouble(userMessage uintptr, fieldName string, out *float64) bool
- func PbGetEnum(userMessage uintptr, fieldName string, out *int32) bool
- func PbGetFloat(userMessage uintptr, fieldName string, out *float32) bool
- func PbGetInt32(userMessage uintptr, fieldName string, out *int32) bool
- func PbGetInt64(userMessage uintptr, fieldName string, out *int64) bool
- func PbGetMessage(userMessage uintptr, fieldName string, out *uintptr) bool
- func PbGetQAngle(userMessage uintptr, fieldName string, out *plugify.Vector3) bool
- func PbGetRepeatedBool(userMessage uintptr, fieldName string, index int32, out *bool) bool
- func PbGetRepeatedColor(userMessage uintptr, fieldName string, index int32, out *plugify.Vector4) bool
- func PbGetRepeatedDouble(userMessage uintptr, fieldName string, index int32, out *float64) bool
- func PbGetRepeatedEnum(userMessage uintptr, fieldName string, index int32, out *int32) bool
- func PbGetRepeatedFloat(userMessage uintptr, fieldName string, index int32, out *float32) bool
- func PbGetRepeatedInt32(userMessage uintptr, fieldName string, index int32, out *int32) bool
- func PbGetRepeatedInt64(userMessage uintptr, fieldName string, index int32, out *int64) bool
- func PbGetRepeatedMessage(userMessage uintptr, fieldName string, index int32, out *uintptr) bool
- func PbGetRepeatedQAngle(userMessage uintptr, fieldName string, index int32, out *plugify.Vector3) bool
- func PbGetRepeatedString(userMessage uintptr, fieldName string, index int32, out *string) bool
- func PbGetRepeatedUInt32(userMessage uintptr, fieldName string, index int32, out *uint32) bool
- func PbGetRepeatedUInt64(userMessage uintptr, fieldName string, index int32, out *uint64) bool
- func PbGetRepeatedVector2(userMessage uintptr, fieldName string, index int32, out *plugify.Vector2) bool
- func PbGetRepeatedVector3(userMessage uintptr, fieldName string, index int32, out *plugify.Vector3) bool
- func PbGetRepeatedVector4(userMessage uintptr, fieldName string, index int32, out *plugify.Vector4) bool
- func PbGetString(userMessage uintptr, fieldName string, out *string) bool
- func PbGetUInt32(userMessage uintptr, fieldName string, out *uint32) bool
- func PbGetUInt64(userMessage uintptr, fieldName string, out *uint64) bool
- func PbGetVector2(userMessage uintptr, fieldName string, out *plugify.Vector2) bool
- func PbGetVector3(userMessage uintptr, fieldName string, out *plugify.Vector3) bool
- func PbGetVector4(userMessage uintptr, fieldName string, out *plugify.Vector4) bool
- func PbReadBool(userMessage uintptr, fieldName string, index int32) bool
- func PbReadColor(userMessage uintptr, fieldName string, index int32) plugify.Vector4
- func PbReadDouble(userMessage uintptr, fieldName string, index int32) float64
- func PbReadEnum(userMessage uintptr, fieldName string, index int32) int32
- func PbReadFloat(userMessage uintptr, fieldName string, index int32) float32
- func PbReadInt32(userMessage uintptr, fieldName string, index int32) int32
- func PbReadInt64(userMessage uintptr, fieldName string, index int32) int64
- func PbReadMessage(userMessage uintptr, fieldName string, index int32) uintptr
- func PbReadQAngle(userMessage uintptr, fieldName string, index int32) plugify.Vector3
- func PbReadString(userMessage uintptr, fieldName string, index int32) string
- func PbReadUInt32(userMessage uintptr, fieldName string, index int32) uint32
- func PbReadUInt64(userMessage uintptr, fieldName string, index int32) uint64
- func PbReadVector2(userMessage uintptr, fieldName string, index int32) plugify.Vector2
- func PbReadVector3(userMessage uintptr, fieldName string, index int32) plugify.Vector3
- func PbReadVector4(userMessage uintptr, fieldName string, index int32) plugify.Vector4
- func PbSetBool(userMessage uintptr, fieldName string, value bool) bool
- func PbSetColor(userMessage uintptr, fieldName string, value plugify.Vector4) bool
- func PbSetDouble(userMessage uintptr, fieldName string, value float64) bool
- func PbSetEnum(userMessage uintptr, fieldName string, value int32) bool
- func PbSetFloat(userMessage uintptr, fieldName string, value float32) bool
- func PbSetInt32(userMessage uintptr, fieldName string, value int32) bool
- func PbSetInt64(userMessage uintptr, fieldName string, value int64) bool
- func PbSetMessage(userMessage uintptr, fieldName string, value uintptr) bool
- func PbSetQAngle(userMessage uintptr, fieldName string, value plugify.Vector3) bool
- func PbSetRepeatedBool(userMessage uintptr, fieldName string, index int32, value bool) bool
- func PbSetRepeatedColor(userMessage uintptr, fieldName string, index int32, value plugify.Vector4) bool
- func PbSetRepeatedDouble(userMessage uintptr, fieldName string, index int32, value float64) bool
- func PbSetRepeatedEnum(userMessage uintptr, fieldName string, index int32, value int32) bool
- func PbSetRepeatedFloat(userMessage uintptr, fieldName string, index int32, value float32) bool
- func PbSetRepeatedInt32(userMessage uintptr, fieldName string, index int32, value int32) bool
- func PbSetRepeatedInt64(userMessage uintptr, fieldName string, index int32, value int64) bool
- func PbSetRepeatedMessage(userMessage uintptr, fieldName string, index int32, value uintptr) bool
- func PbSetRepeatedQAngle(userMessage uintptr, fieldName string, index int32, value plugify.Vector3) bool
- func PbSetRepeatedString(userMessage uintptr, fieldName string, index int32, value string) bool
- func PbSetRepeatedUInt32(userMessage uintptr, fieldName string, index int32, value uint32) bool
- func PbSetRepeatedUInt64(userMessage uintptr, fieldName string, index int32, value uint64) bool
- func PbSetRepeatedVector2(userMessage uintptr, fieldName string, index int32, value plugify.Vector2) bool
- func PbSetRepeatedVector3(userMessage uintptr, fieldName string, index int32, value plugify.Vector3) bool
- func PbSetRepeatedVector4(userMessage uintptr, fieldName string, index int32, value plugify.Vector4) bool
- func PbSetString(userMessage uintptr, fieldName string, value string) bool
- func PbSetUInt32(userMessage uintptr, fieldName string, value uint32) bool
- func PbSetUInt64(userMessage uintptr, fieldName string, value uint64) bool
- func PbSetVector2(userMessage uintptr, fieldName string, value plugify.Vector2) bool
- func PbSetVector3(userMessage uintptr, fieldName string, value plugify.Vector3) bool
- func PbSetVector4(userMessage uintptr, fieldName string, value plugify.Vector4) bool
- func PlayerServicesToPlayerSlot(service uintptr) int32
- func PlayerSlotToClientIndex(playerSlot int32) int32
- func PlayerSlotToClientPtr(playerSlot int32) uintptr
- func PlayerSlotToEntHandle(playerSlot int32) int32
- func PlayerSlotToEntPointer(playerSlot int32) uintptr
- func Precache(resource string)
- func PrintAlertText(playerSlot int32, message string)
- func PrintAlertTextAll(message string)
- func PrintCenterText(playerSlot int32, message string)
- func PrintCenterTextAll(message string)
- func PrintCentreHtml(playerSlot int32, message string, duration int32)
- func PrintCentreHtmlAll(message string, duration int32)
- func PrintToChat(playerSlot int32, message string)
- func PrintToChatAll(message string)
- func PrintToChatColored(playerSlot int32, message string)
- func PrintToChatColoredAll(message string)
- func PrintToConsole(playerSlot int32, message string)
- func PrintToConsoleAll(message string)
- func PrintToServer(msg string)
- func ProcessTargetString(caller int32, target string) []int32
- func PushEntSchemaEnt(entityHandle int32, className string, memberName string, value int32, ...)
- func PushEntSchemaEnt2(entity uintptr, className string, memberName string, value int32, ...)
- func QSlerp(fromAngle plugify.Vector3, toAngle plugify.Vector3, time float32) plugify.Vector3
- func QueryClientConVar(playerSlot int32, convarName string, callback CvarValueCallback, data []any) int32
- func QueryInterface(module string, name string) uintptr
- func QueueTaskForNextFrame(callback TaskCallback, userData []any)
- func QueueTaskForNextWorldUpdate(callback TaskCallback, userData []any)
- func RandomFlt(min float32, max float32) float32
- func RandomInt(min int32, max int32) int32
- func ReadFileVPK(localFileName string, pathId string) string
- func RedirectClientOutput(playerSlot int32, output string, functionName string, targetHandle int32)
- func RedirectEntityOutput(entityHandle int32, output string, functionName string, targetHandle int32)
- func RegisterLoggingChannel(name string, flags int32, verbosity LoggingVerbosity, color plugify.Vector4) int32
- func RemoveClientEffects(playerSlot int32, effects int32)
- func RemoveCommand(name string, callback CommandCallback) bool
- func RemoveCommandListener(name string, callback CommandCallback, type_ HookMode) bool
- func RemoveConVarFlags(conVarHandle uint64, flags ConVarFlag)
- func RemoveEntity(entityHandle int32)
- func RemoveEntityEffects(entityHandle int32, effects int32)
- func RemoveTransmitInfoTargetSlot(info uintptr, index int32)
- func RemoveTransmitInfoTargetSlotsAll(info uintptr)
- func RemoveUserFlags(playerSlot int32, flags uint64)
- func RemoveWeapon(playerSlot int32, weaponHandle int32)
- func RemoveWeapons(playerSlot int32, removeSuit bool)
- func ReplyToCommand(context CommandCallingContext, playerSlot int32, message string)
- func RescheduleTimer(timer uint32, newDaly float64)
- func RespawnClient(playerSlot int32)
- func RotateOrientation(a1 plugify.Vector3, a2 plugify.Vector3) plugify.Vector3
- func RotatePosition(rotationOrigin plugify.Vector3, rotationAngle plugify.Vector3, ...) plugify.Vector3
- func RotateQuaternionByAxisAngle(q plugify.Vector4, axis plugify.Vector3, angle float32) plugify.Vector4
- func RotationDelta(src plugify.Vector3, dest plugify.Vector3) plugify.Vector3
- func RotationDeltaAsAngularVelocity(a1 plugify.Vector3, a2 plugify.Vector3) plugify.Vector3
- func ScriptLookupAttachment(entityHandle int32, attachmentName string) int32
- func SelectWeapon(playerSlot int32, weaponHandle int32)
- func SendConVarValue(playerSlot int32, conVarHandle uint64, value string)
- func SendConVarValue2(conVarHandle uint64, playerSlot int32, value string)
- func ServerCommand(command string)
- func ServerCommandEx(command string) string
- func SetBodyAngularVelocity(entityHandle int32, angVelocity plugify.Vector3)
- func SetBodyMaterialGroup(entityHandle int32, materialGroup string)
- func SetBodySequenceDuration(entityHandle int32, sequenceName string) float32
- func SetBodyVelocity(entityHandle int32, velocity plugify.Vector3)
- func SetClientAbsAngles(playerSlot int32, angle plugify.Vector3)
- func SetClientAbsOrigin(playerSlot int32, origin plugify.Vector3)
- func SetClientAbsScale(playerSlot int32, scale float32)
- func SetClientAbsVelocity(playerSlot int32, velocity plugify.Vector3)
- func SetClientAngRotation(playerSlot int32, rotation plugify.Vector3)
- func SetClientAngVelocity(playerSlot int32, velocity plugify.Vector3)
- func SetClientArmor(playerSlot int32, armor int32)
- func SetClientAssists(playerSlot int32, assists int32)
- func SetClientDamage(playerSlot int32, damage int32)
- func SetClientDeaths(playerSlot int32, deaths int32)
- func SetClientFlags(playerSlot int32, flags int32)
- func SetClientForwardVector(playerSlot int32, forward plugify.Vector3)
- func SetClientFriction(playerSlot int32, friction float32)
- func SetClientGravity(playerSlot int32, gravity float32)
- func SetClientHealth(playerSlot int32, health int32)
- func SetClientKills(playerSlot int32, kills int32)
- func SetClientLocalAngles(playerSlot int32, angle plugify.Vector3)
- func SetClientLocalOrigin(playerSlot int32, origin plugify.Vector3)
- func SetClientLocalScale(playerSlot int32, scale float32)
- func SetClientMass(playerSlot int32, mass int32)
- func SetClientMaxHealth(playerSlot int32, maxHealth int32)
- func SetClientModel(playerSlot int32, model string)
- func SetClientMoney(playerSlot int32, money int32)
- func SetClientMoveType(playerSlot int32, moveType MoveType)
- func SetClientRenderColor(playerSlot int32, color plugify.Vector4)
- func SetClientRenderMode(playerSlot int32, renderMode RenderMode)
- func SetClientSpeed(playerSlot int32, speed float32)
- func SetClientTeam(playerSlot int32, team CSTeam)
- func SetConVar(conVarHandle uint64, value any, replicate bool, notify bool)
- func SetConVarBool(conVarHandle uint64, value bool, replicate bool, notify bool)
- func SetConVarBounds(conVarHandle uint64, max bool, value string)
- func SetConVarColor(conVarHandle uint64, value plugify.Vector4, replicate bool, notify bool)
- func SetConVarDouble(conVarHandle uint64, value float64, replicate bool, notify bool)
- func SetConVarFloat(conVarHandle uint64, value float32, replicate bool, notify bool)
- func SetConVarInt16(conVarHandle uint64, value int16, replicate bool, notify bool)
- func SetConVarInt32(conVarHandle uint64, value int32, replicate bool, notify bool)
- func SetConVarInt64(conVarHandle uint64, value int64, replicate bool, notify bool)
- func SetConVarQAngle(conVarHandle uint64, value plugify.Vector3, replicate bool, notify bool)
- func SetConVarString(conVarHandle uint64, value string, replicate bool, notify bool)
- func SetConVarUInt16(conVarHandle uint64, value uint16, replicate bool, notify bool)
- func SetConVarUInt32(conVarHandle uint64, value uint32, replicate bool, notify bool)
- func SetConVarUInt64(conVarHandle uint64, value uint64, replicate bool, notify bool)
- func SetConVarValue(conVarHandle uint64, value string, replicate bool, notify bool)
- func SetConVarVector2(conVarHandle uint64, value plugify.Vector2, replicate bool, notify bool)
- func SetConVarVector3(conVarHandle uint64, value plugify.Vector3, replicate bool, notify bool)
- func SetConVarVector4(conVarHandle uint64, value plugify.Vector4, replicate bool, notify bool)
- func SetEntData(entityHandle int32, offset int32, value int64, size int32, changeState bool, ...)
- func SetEntData2(entity uintptr, offset int32, value int64, size int32, changeState bool, ...)
- func SetEntDataCString(entityHandle int32, offset int32, value string, size int32, changeState bool, ...)
- func SetEntDataCString2(entity uintptr, offset int32, value string, size int32, changeState bool, ...)
- func SetEntDataColor(entityHandle int32, offset int32, value plugify.Vector4, changeState bool, ...)
- func SetEntDataColor2(entity uintptr, offset int32, value plugify.Vector4, changeState bool, ...)
- func SetEntDataEnt(entityHandle int32, offset int32, value int32, changeState bool, ...)
- func SetEntDataEnt2(entity uintptr, offset int32, value int32, changeState bool, chainOffset int32)
- func SetEntDataFloat(entityHandle int32, offset int32, value float64, size int32, changeState bool, ...)
- func SetEntDataFloat2(entity uintptr, offset int32, value float64, size int32, changeState bool, ...)
- func SetEntDataString(entityHandle int32, offset int32, value string, changeState bool, ...)
- func SetEntDataString2(entity uintptr, offset int32, value string, changeState bool, ...)
- func SetEntDataVector2D(entityHandle int32, offset int32, value plugify.Vector2, changeState bool, ...)
- func SetEntDataVector2D2(entity uintptr, offset int32, value plugify.Vector2, changeState bool, ...)
- func SetEntDataVector3D(entityHandle int32, offset int32, value plugify.Vector3, changeState bool, ...)
- func SetEntDataVector3D2(entity uintptr, offset int32, value plugify.Vector3, changeState bool, ...)
- func SetEntDataVector4D(entityHandle int32, offset int32, value plugify.Vector4, changeState bool, ...)
- func SetEntDataVector4D2(entity uintptr, offset int32, value plugify.Vector4, changeState bool, ...)
- func SetEntSchema(entityHandle int32, className string, memberName string, value int64, ...)
- func SetEntSchema2(entity uintptr, className string, memberName string, value int64, ...)
- func SetEntSchemaColor(entityHandle int32, className string, memberName string, value plugify.Vector4, ...)
- func SetEntSchemaColor2(entity uintptr, className string, memberName string, value plugify.Vector4, ...)
- func SetEntSchemaEnt(entityHandle int32, className string, memberName string, value int32, ...)
- func SetEntSchemaEnt2(entity uintptr, className string, memberName string, value int32, ...)
- func SetEntSchemaFloat(entityHandle int32, className string, memberName string, value float64, ...)
- func SetEntSchemaFloat2(entity uintptr, className string, memberName string, value float64, ...)
- func SetEntSchemaString(entityHandle int32, className string, memberName string, value string, ...)
- func SetEntSchemaString2(entity uintptr, className string, memberName string, value string, ...)
- func SetEntSchemaVector2D(entityHandle int32, className string, memberName string, value plugify.Vector2, ...)
- func SetEntSchemaVector2D2(entity uintptr, className string, memberName string, value plugify.Vector2, ...)
- func SetEntSchemaVector3D(entityHandle int32, className string, memberName string, value plugify.Vector3, ...)
- func SetEntSchemaVector3D2(entity uintptr, className string, memberName string, value plugify.Vector3, ...)
- func SetEntSchemaVector4D(entityHandle int32, className string, memberName string, value plugify.Vector4, ...)
- func SetEntSchemaVector4D2(entity uintptr, className string, memberName string, value plugify.Vector4, ...)
- func SetEntityAbsAngles(entityHandle int32, angle plugify.Vector3)
- func SetEntityAbsOrigin(entityHandle int32, origin plugify.Vector3)
- func SetEntityAbsScale(entityHandle int32, scale float32)
- func SetEntityAbsVelocity(entityHandle int32, velocity plugify.Vector3)
- func SetEntityAngRotation(entityHandle int32, rotation plugify.Vector3)
- func SetEntityAngVelocity(entityHandle int32, velocity plugify.Vector3)
- func SetEntityAttributeFloatValue(entityHandle int32, name string, value float32)
- func SetEntityAttributeIntValue(entityHandle int32, name string, value int32)
- func SetEntityBodygroup(entityHandle int32, group int32, value int32)
- func SetEntityBodygroupByName(entityHandle int32, name string, value int32)
- func SetEntityFlags(entityHandle int32, flags int32)
- func SetEntityForwardVector(entityHandle int32, forward plugify.Vector3)
- func SetEntityFriction(entityHandle int32, friction float32)
- func SetEntityGravity(entityHandle int32, gravity float32)
- func SetEntityHealth(entityHandle int32, health int32)
- func SetEntityLightGroup(entityHandle int32, lightGroup string)
- func SetEntityLocalAngles(entityHandle int32, angle plugify.Vector3)
- func SetEntityLocalOrigin(entityHandle int32, origin plugify.Vector3)
- func SetEntityLocalScale(entityHandle int32, scale float32)
- func SetEntityMass(entityHandle int32, mass int32)
- func SetEntityMaterialGroup(entityHandle int32, materialGroup string)
- func SetEntityMaterialGroupHash(entityHandle int32, hash uint32)
- func SetEntityMaterialGroupMask(entityHandle int32, mask uint64)
- func SetEntityMaxHealth(entityHandle int32, maxHealth int32)
- func SetEntityModel(entityHandle int32, model string)
- func SetEntityModelScale(entityHandle int32, scale float32)
- func SetEntityMoveType(entityHandle int32, moveType MoveType)
- func SetEntityName(entityHandle int32, name string)
- func SetEntityOwner(entityHandle int32, ownerHandle int32)
- func SetEntityParent(entityHandle int32, parentHandle int32)
- func SetEntityParentAttachment(entityHandle int32, parentHandle int32, attachmentName string)
- func SetEntityRenderAlpha(entityHandle int32, alpha int32)
- func SetEntityRenderColor(entityHandle int32, color plugify.Vector4)
- func SetEntityRenderColor2(entityHandle int32, r int32, g int32, b int32)
- func SetEntityRenderMode(entityHandle int32, renderMode RenderMode)
- func SetEntityRenderMode2(entityHandle int32, mode int32)
- func SetEntitySingleMeshGroup(entityHandle int32, meshGroupName string)
- func SetEntitySize(entityHandle int32, mins plugify.Vector3, maxs plugify.Vector3)
- func SetEntitySkin(entityHandle int32, skin int32)
- func SetEntityTeam(entityHandle int32, team CSTeam)
- func SetEventBool(event uintptr, key string, value bool)
- func SetEventBroadcast(event uintptr, dontBroadcast bool)
- func SetEventEntity(event uintptr, key string, value uintptr)
- func SetEventEntityHandle(event uintptr, key string, value int32)
- func SetEventEntityIndex(event uintptr, key string, value int32)
- func SetEventFloat(event uintptr, key string, value float32)
- func SetEventInt(event uintptr, key string, value int32)
- func SetEventPlayerController(event uintptr, key string, value uintptr)
- func SetEventPlayerIndex(event uintptr, key string, value int32)
- func SetEventPlayerSlot(event uintptr, key string, value int32)
- func SetEventPtr(event uintptr, key string, value uintptr)
- func SetEventString(event uintptr, key string, value string)
- func SetEventUInt64(event uintptr, key string, value uint64)
- func SetFakeClientConVarValue(playerSlot int32, convarName string, convarValue string)
- func SetLoggerChannelColor(channelID int32, color plugify.Vector4)
- func SetLoggerChannelFlags(channelID int32, eFlags LoggingChannelFlags)
- func SetLoggerChannelVerbosity(channelID int32, verbosity LoggingVerbosity)
- func SetLoggerChannelVerbosityByName(channelID int32, name string, verbosity LoggingVerbosity)
- func SetLoggerChannelVerbosityByTag(channelID int32, tag string, verbosity LoggingVerbosity)
- func SetTransmitInfoAlways(info uintptr, entityHandle int32)
- func SetTransmitInfoAlwaysAll(info uintptr)
- func SetTransmitInfoEntity(info uintptr, entityHandle int32)
- func SetTransmitInfoEntityAll(info uintptr)
- func SetTransmitInfoFullUpdate(info uintptr, fullUpdate bool)
- func SetTransmitInfoNonPlayer(info uintptr, entityHandle int32)
- func SetTransmitInfoNonPlayerAll(info uintptr)
- func SetTransmitInfoPlayerSlot(info uintptr, playerSlot int32)
- func SetUserFlagBits(playerSlot int32, flags uint64)
- func SpawnEntityByName(className string) int32
- func SplineQuaternions(q0 plugify.Vector4, q1 plugify.Vector4, t float32) plugify.Vector4
- func SplineVectors(v0 plugify.Vector3, v1 plugify.Vector3, t float32) plugify.Vector3
- func StopSound(entityHandle int32, sound string)
- func SwitchClientTeam(playerSlot int32, team CSTeam)
- func SwitchWeapon(playerSlot int32, weaponHandle int32)
- func TakeClientDamage(playerSlot int32, inflictorSlot int32, attackerSlot int32, ...) int32
- func TakeEntityDamage(entityHandle int32, inflictorHandle int32, attackerHandle int32, ...) int32
- func TeleportClient(playerSlot int32, origin plugify.Vector3, angles plugify.Vector3, ...)
- func TeleportEntity(entityHandle int32, origin plugify.Vector3, angles plugify.Vector3, ...)
- func TerminateRound(delay float32, reason CSRoundEndReason)
- func TraceCollideable(start plugify.Vector3, end plugify.Vector3, entityHandle int32, ...) bool
- func TraceCollideable2(start plugify.Vector3, end plugify.Vector3, entityHandle int32, mins uintptr, ...) bool
- func TraceHull(start plugify.Vector3, end plugify.Vector3, min plugify.Vector3, ...) bool
- func TraceLine(startPos plugify.Vector3, endPos plugify.Vector3, mask int32, ...) bool
- func TransformPointClientToWorld(playerSlot int32, point plugify.Vector3) plugify.Vector3
- func TransformPointEntityToWorld(entityHandle int32, point plugify.Vector3) plugify.Vector3
- func TransformPointWorldToClient(playerSlot int32, point plugify.Vector3) plugify.Vector3
- func TransformPointWorldToEntity(entityHandle int32, point plugify.Vector3) plugify.Vector3
- func UnhookConVarChange(conVarHandle uint64, callback ChangeCallback)
- func UnhookEntityOutput(classname string, output string, callback HookEntityOutputCallback, ...) bool
- func UnhookUserMessage(messageId int16, callback UserMessageCallback, mode HookMode) bool
- func UserMessageAddAllPlayers(userMessage uintptr)
- func UserMessageAddRecipient(userMessage uintptr, playerSlot int32)
- func UserMessageCreateFromId(messageId int16) uintptr
- func UserMessageCreateFromName(messageName string) uintptr
- func UserMessageCreateFromSerializable(msgSerializable uintptr, message uintptr, recipientMask uint64) uintptr
- func UserMessageDestroy(userMessage uintptr)
- func UserMessageFindMessageIdByName(messageName string) int16
- func UserMessageGetDebugString(userMessage uintptr) string
- func UserMessageGetMessageID(userMessage uintptr) int16
- func UserMessageGetMessageName(userMessage uintptr) string
- func UserMessageGetProtobufMessage(userMessage uintptr) uintptr
- func UserMessageGetRecipientMask(userMessage uintptr) uint64
- func UserMessageGetRepeatedFieldCount(userMessage uintptr, fieldName string) int32
- func UserMessageGetSerializableMessage(userMessage uintptr) uintptr
- func UserMessageHasField(userMessage uintptr, fieldName string) bool
- func UserMessageRemoveAllRecipient(userMessage uintptr)
- func UserMessageRemoveRepeatedFieldValue(userMessage uintptr, fieldName string, index int32) bool
- func UserMessageSend(userMessage uintptr)
- func UserMessageSetRecipientMask(userMessage uintptr, mask uint64)
- func VectorToAngles(input plugify.Vector3) plugify.Vector3
- type CSRoundEndReason
- type CSTeam
- type CSWeaponCategory
- type CSWeaponType
- type ChangeCallback
- type CheckTransmitInfo
- func (w *CheckTransmitInfo) AddTargetSlot(playerSlot int32) error
- func (w *CheckTransmitInfo) ClearAlways(entityHandle int32) error
- func (w *CheckTransmitInfo) ClearAlwaysAll() error
- func (w *CheckTransmitInfo) ClearEntity(entityHandle int32) error
- func (w *CheckTransmitInfo) ClearEntityAll() error
- func (w *CheckTransmitInfo) ClearNonPlayer(entityHandle int32) error
- func (w *CheckTransmitInfo) ClearNonPlayerAll() error
- func (w *CheckTransmitInfo) Get() uintptr
- func (w *CheckTransmitInfo) GetFullUpdate() (bool, error)
- func (w *CheckTransmitInfo) GetPlayerSlot() (int32, error)
- func (w *CheckTransmitInfo) GetTargetSlot(index int32) (int32, error)
- func (w *CheckTransmitInfo) GetTargetSlotsAll() ([]int32, error)
- func (w *CheckTransmitInfo) GetTargetSlotsCount() (int32, error)
- func (w *CheckTransmitInfo) IsAlwaysSet(entityHandle int32) (bool, error)
- func (w *CheckTransmitInfo) IsEntitySet(entityHandle int32) (bool, error)
- func (w *CheckTransmitInfo) IsNonPlayerSet(entityHandle int32) (bool, error)
- func (w *CheckTransmitInfo) IsValid() bool
- func (w *CheckTransmitInfo) Release() uintptr
- func (w *CheckTransmitInfo) RemoveTargetSlot(index int32) error
- func (w *CheckTransmitInfo) RemoveTargetSlotsAll() error
- func (w *CheckTransmitInfo) Reset()
- func (w *CheckTransmitInfo) SetAlways(entityHandle int32) error
- func (w *CheckTransmitInfo) SetAlwaysAll() error
- func (w *CheckTransmitInfo) SetEntity(entityHandle int32) error
- func (w *CheckTransmitInfo) SetEntityAll() error
- func (w *CheckTransmitInfo) SetFullUpdate(fullUpdate bool) error
- func (w *CheckTransmitInfo) SetNonPlayer(entityHandle int32) error
- func (w *CheckTransmitInfo) SetNonPlayerAll() error
- func (w *CheckTransmitInfo) SetPlayerSlot(playerSlot int32) error
- type CommandCallback
- type CommandCallingContext
- type ConVar
- func NewConVar(handle uint64) *ConVar
- func NewConVarCreateConVar(name string, defaultValue any, description string, flags ConVarFlag) *ConVar
- func NewConVarCreateConVarBool(name string, defaultValue bool, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarDouble(name string, defaultValue float64, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarFloat(name string, defaultValue float32, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarInt16(name string, defaultValue int16, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarInt32(name string, defaultValue int32, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarInt64(name string, defaultValue int64, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarString(name string, defaultValue string, description string, flags ConVarFlag) *ConVar
- func NewConVarCreateConVarUInt16(name string, defaultValue uint16, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarUInt32(name string, defaultValue uint32, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarUInt64(name string, defaultValue uint64, description string, flags ConVarFlag, ...) *ConVar
- func NewConVarCreateConVarVector2(name string, defaultValue plugify.Vector2, description string, ...) *ConVar
- func NewConVarCreateConVarVector3(name string, defaultValue plugify.Vector3, description string, ...) *ConVar
- func NewConVarCreateConVarVector4(name string, defaultValue plugify.Vector4, description string, ...) *ConVar
- func (w *ConVar) AddFlags(flags ConVarFlag) error
- func (w *ConVar) Find(name string) *ConVar
- func (w *ConVar) Find2(name string, type_ ConVarType) *ConVar
- func (w *ConVar) Get() uint64
- func (w *ConVar) GetBool() (bool, error)
- func (w *ConVar) GetBounds(max bool) (string, error)
- func (w *ConVar) GetClientValue(playerSlot int32, convarName string) string
- func (w *ConVar) GetColor() (plugify.Vector4, error)
- func (w *ConVar) GetDefault() (string, error)
- func (w *ConVar) GetDouble() (float64, error)
- func (w *ConVar) GetFlags() (ConVarFlag, error)
- func (w *ConVar) GetFloat() (float32, error)
- func (w *ConVar) GetInt16() (int16, error)
- func (w *ConVar) GetInt32() (int32, error)
- func (w *ConVar) GetInt64() (int64, error)
- func (w *ConVar) GetObject() (any, error)
- func (w *ConVar) GetQAngle() (plugify.Vector3, error)
- func (w *ConVar) GetString() (string, error)
- func (w *ConVar) GetUInt16() (uint16, error)
- func (w *ConVar) GetUInt32() (uint32, error)
- func (w *ConVar) GetUInt64() (uint64, error)
- func (w *ConVar) GetValue() (string, error)
- func (w *ConVar) GetVector() (plugify.Vector3, error)
- func (w *ConVar) GetVector2() (plugify.Vector2, error)
- func (w *ConVar) GetVector4() (plugify.Vector4, error)
- func (w *ConVar) HookChange(callback ChangeCallback) error
- func (w *ConVar) IsFlagSet(flag int64) (bool, error)
- func (w *ConVar) IsValid() bool
- func (w *ConVar) Release() uint64
- func (w *ConVar) RemoveFlags(flags ConVarFlag) error
- func (w *ConVar) Reset()
- func (w *ConVar) SendValue(playerSlot int32, value string) error
- func (w *ConVar) Set(value any, replicate bool, notify bool) error
- func (w *ConVar) SetBool(value bool, replicate bool, notify bool) error
- func (w *ConVar) SetBounds(max bool, value string) error
- func (w *ConVar) SetColor(value plugify.Vector4, replicate bool, notify bool) error
- func (w *ConVar) SetDouble(value float64, replicate bool, notify bool) error
- func (w *ConVar) SetFakeClientValue(playerSlot int32, convarName string, convarValue string)
- func (w *ConVar) SetFloat(value float32, replicate bool, notify bool) error
- func (w *ConVar) SetInt16(value int16, replicate bool, notify bool) error
- func (w *ConVar) SetInt32(value int32, replicate bool, notify bool) error
- func (w *ConVar) SetInt64(value int64, replicate bool, notify bool) error
- func (w *ConVar) SetQAngle(value plugify.Vector3, replicate bool, notify bool) error
- func (w *ConVar) SetString(value string, replicate bool, notify bool) error
- func (w *ConVar) SetUInt16(value uint16, replicate bool, notify bool) error
- func (w *ConVar) SetUInt32(value uint32, replicate bool, notify bool) error
- func (w *ConVar) SetUInt64(value uint64, replicate bool, notify bool) error
- func (w *ConVar) SetValue(value string, replicate bool, notify bool) error
- func (w *ConVar) SetVector2(value plugify.Vector2, replicate bool, notify bool) error
- func (w *ConVar) SetVector3(value plugify.Vector3, replicate bool, notify bool) error
- func (w *ConVar) SetVector4(value plugify.Vector4, replicate bool, notify bool) error
- func (w *ConVar) UnhookChange(callback ChangeCallback) error
- type ConVarFlag
- type ConVarType
- type CvarValueCallback
- type CvarValueStatus
- type DamageTypes
- type EventCallback
- type EventHookError
- type EventInfo
- func (w *EventInfo) Cancel() error
- func (w *EventInfo) Fire(dontBroadcast bool) error
- func (w *EventInfo) FireToClient(playerSlot int32) error
- func (w *EventInfo) Get() uintptr
- func (w *EventInfo) GetBool(key string) (bool, error)
- func (w *EventInfo) GetEntity(key string) (uintptr, error)
- func (w *EventInfo) GetEntityHandle(key string) (int32, error)
- func (w *EventInfo) GetEntityIndex(key string) (int32, error)
- func (w *EventInfo) GetFloat(key string) (float32, error)
- func (w *EventInfo) GetInt(key string) (int32, error)
- func (w *EventInfo) GetName() (string, error)
- func (w *EventInfo) GetPlayerController(key string) (uintptr, error)
- func (w *EventInfo) GetPlayerIndex(key string) (int32, error)
- func (w *EventInfo) GetPlayerPawn(key string) (uintptr, error)
- func (w *EventInfo) GetPlayerSlot(key string) (int32, error)
- func (w *EventInfo) GetPtr(key string) (uintptr, error)
- func (w *EventInfo) GetString(key string) (string, error)
- func (w *EventInfo) GetUInt64(key string) (uint64, error)
- func (w *EventInfo) IsValid() bool
- func (w *EventInfo) Release() uintptr
- func (w *EventInfo) Reset()
- func (w *EventInfo) SetBool(key string, value bool) error
- func (w *EventInfo) SetBroadcast(dontBroadcast bool) error
- func (w *EventInfo) SetEntity(key string, value uintptr) error
- func (w *EventInfo) SetEntityHandle(key string, value int32) error
- func (w *EventInfo) SetEntityIndex(key string, value int32) error
- func (w *EventInfo) SetFloat(key string, value float32) error
- func (w *EventInfo) SetInt(key string, value int32) error
- func (w *EventInfo) SetPlayerController(key string, value uintptr) error
- func (w *EventInfo) SetPlayerIndex(key string, value int32) error
- func (w *EventInfo) SetPlayerSlot(key string, value int32) error
- func (w *EventInfo) SetPtr(key string, value uintptr) error
- func (w *EventInfo) SetString(key string, value string) error
- func (w *EventInfo) SetUInt64(key string, value uint64) error
- type FieldType
- type GameConfig
- func (w *GameConfig) Close()
- func (w *GameConfig) Get() uint32
- func (w *GameConfig) GetAddress(name string) (uintptr, error)
- func (w *GameConfig) GetOffset(name string) (int32, error)
- func (w *GameConfig) GetPatch(name string) (string, error)
- func (w *GameConfig) GetSignature(name string) (uintptr, error)
- func (w *GameConfig) GetVTable(name string) (uintptr, error)
- func (w *GameConfig) IsValid() bool
- func (w *GameConfig) Release() uint32
- func (w *GameConfig) Reset()
- type GearSlot
- type HookEntityOutputCallback
- type HookMode
- type KeyValues1
- func (w *KeyValues1) AddSubKey(subKey *KeyValues1) error
- func (w *KeyValues1) Clear() error
- func (w *KeyValues1) Close()
- func (w *KeyValues1) CreateKey(keyName string) (*KeyValues1, error)
- func (w *KeyValues1) CreateNewKey() (*KeyValues1, error)
- func (w *KeyValues1) FindKey(keyName string) (*KeyValues1, error)
- func (w *KeyValues1) FindOrCreateKey(keyName string) (*KeyValues1, error)
- func (w *KeyValues1) Get() uintptr
- func (w *KeyValues1) GetBool(keyName string, defaultValue bool) (bool, error)
- func (w *KeyValues1) GetColor(keyName string, defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues1) GetFirstSubKey() (*KeyValues1, error)
- func (w *KeyValues1) GetFloat(keyName string, defaultValue float32) (float32, error)
- func (w *KeyValues1) GetInt(keyName string, defaultValue int32) (int32, error)
- func (w *KeyValues1) GetName() (string, error)
- func (w *KeyValues1) GetNextKey() (*KeyValues1, error)
- func (w *KeyValues1) GetPtr(keyName string, defaultValue uintptr) (uintptr, error)
- func (w *KeyValues1) GetString(keyName string, defaultValue string) (string, error)
- func (w *KeyValues1) IsEmpty(keyName string) (bool, error)
- func (w *KeyValues1) IsValid() bool
- func (w *KeyValues1) Release() uintptr
- func (w *KeyValues1) Reset()
- func (w *KeyValues1) SetBool(keyName string, value bool) error
- func (w *KeyValues1) SetColor(keyName string, value plugify.Vector4) error
- func (w *KeyValues1) SetFloat(keyName string, value float32) error
- func (w *KeyValues1) SetInt(keyName string, value int32) error
- func (w *KeyValues1) SetName(name string) error
- func (w *KeyValues1) SetPtr(keyName string, value uintptr) error
- func (w *KeyValues1) SetString(keyName string, value string) error
- type KeyValues3
- func NewKeyValues3Borrowed(handle uintptr) *KeyValues3
- func NewKeyValues3Kv3Create(type_ int32, subtype int32) *KeyValues3
- func NewKeyValues3Kv3CreateCopy(other uintptr) *KeyValues3
- func NewKeyValues3Kv3CreateWithCluster(cluster_elem int32, type_ int32, subtype int32) *KeyValues3
- func NewKeyValues3Owned(handle uintptr) *KeyValues3
- func (w *KeyValues3) ArrayAddElementToTail() (*KeyValues3, error)
- func (w *KeyValues3) ArrayInsertElementAfter(elem int32) (*KeyValues3, error)
- func (w *KeyValues3) ArrayInsertElementBefore(elem int32) (*KeyValues3, error)
- func (w *KeyValues3) ArrayRemoveElement(elem int32) error
- func (w *KeyValues3) ArraySwapItems(idx1 int32, idx2 int32) error
- func (w *KeyValues3) Close()
- func (w *KeyValues3) CopyFrom(other *KeyValues3) error
- func (w *KeyValues3) DebugPrint() error
- func (w *KeyValues3) FindMember(name string) (*KeyValues3, error)
- func (w *KeyValues3) FindOrCreateMember(name string) (*KeyValues3, error)
- func (w *KeyValues3) Get() uintptr
- func (w *KeyValues3) GetAllFlags() (uint8, error)
- func (w *KeyValues3) GetArrayElement(elem int32) (*KeyValues3, error)
- func (w *KeyValues3) GetArrayElementCount() (int32, error)
- func (w *KeyValues3) GetBinaryBlob() ([]uint8, error)
- func (w *KeyValues3) GetBinaryBlobSize() (int32, error)
- func (w *KeyValues3) GetBool(defaultValue bool) (bool, error)
- func (w *KeyValues3) GetChar(defaultValue int8) (int8, error)
- func (w *KeyValues3) GetColor(defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues3) GetContext() (uintptr, error)
- func (w *KeyValues3) GetDouble(defaultValue float64) (float64, error)
- func (w *KeyValues3) GetEHandle(defaultValue int32) (int32, error)
- func (w *KeyValues3) GetFloat(defaultValue float32) (float32, error)
- func (w *KeyValues3) GetInt(defaultValue int32) (int32, error)
- func (w *KeyValues3) GetInt8(defaultValue int8) (int8, error)
- func (w *KeyValues3) GetInt64(defaultValue int64) (int64, error)
- func (w *KeyValues3) GetMatrix3x4(defaultValue plugify.Matrix4x4) (plugify.Matrix4x4, error)
- func (w *KeyValues3) GetMemberBool(name string, defaultValue bool) (bool, error)
- func (w *KeyValues3) GetMemberByIndex(index int32) (*KeyValues3, error)
- func (w *KeyValues3) GetMemberChar(name string, defaultValue int8) (int8, error)
- func (w *KeyValues3) GetMemberColor(name string, defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues3) GetMemberCount() (int32, error)
- func (w *KeyValues3) GetMemberDouble(name string, defaultValue float64) (float64, error)
- func (w *KeyValues3) GetMemberEHandle(name string, defaultValue int32) (int32, error)
- func (w *KeyValues3) GetMemberFloat(name string, defaultValue float32) (float32, error)
- func (w *KeyValues3) GetMemberInt(name string, defaultValue int32) (int32, error)
- func (w *KeyValues3) GetMemberInt8(name string, defaultValue int8) (int8, error)
- func (w *KeyValues3) GetMemberInt64(name string, defaultValue int64) (int64, error)
- func (w *KeyValues3) GetMemberMatrix3x4(name string, defaultValue plugify.Matrix4x4) (plugify.Matrix4x4, error)
- func (w *KeyValues3) GetMemberName(index int32) (string, error)
- func (w *KeyValues3) GetMemberPointer(name string, defaultValue uintptr) (uintptr, error)
- func (w *KeyValues3) GetMemberQAngle(name string, defaultValue plugify.Vector3) (plugify.Vector3, error)
- func (w *KeyValues3) GetMemberQuaternion(name string, defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues3) GetMemberShort(name string, defaultValue int16) (int16, error)
- func (w *KeyValues3) GetMemberString(name string, defaultValue string) (string, error)
- func (w *KeyValues3) GetMemberStringToken(name string, defaultValue uint32) (uint32, error)
- func (w *KeyValues3) GetMemberUChar32(name string, defaultValue uint32) (uint32, error)
- func (w *KeyValues3) GetMemberUInt(name string, defaultValue uint32) (uint32, error)
- func (w *KeyValues3) GetMemberUInt8(name string, defaultValue uint8) (uint8, error)
- func (w *KeyValues3) GetMemberUInt64(name string, defaultValue uint64) (uint64, error)
- func (w *KeyValues3) GetMemberUShort(name string, defaultValue uint16) (uint16, error)
- func (w *KeyValues3) GetMemberVector(name string, defaultValue plugify.Vector3) (plugify.Vector3, error)
- func (w *KeyValues3) GetMemberVector2D(name string, defaultValue plugify.Vector2) (plugify.Vector2, error)
- func (w *KeyValues3) GetMemberVector4D(name string, defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues3) GetMetaData(ppCtx uintptr) (uintptr, error)
- func (w *KeyValues3) GetPointer(defaultValue uintptr) (uintptr, error)
- func (w *KeyValues3) GetQAngle(defaultValue plugify.Vector3) (plugify.Vector3, error)
- func (w *KeyValues3) GetQuaternion(defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues3) GetShort(defaultValue int16) (int16, error)
- func (w *KeyValues3) GetString(defaultValue string) (string, error)
- func (w *KeyValues3) GetStringToken(defaultValue uint32) (uint32, error)
- func (w *KeyValues3) GetSubType() (uint8, error)
- func (w *KeyValues3) GetSubTypeAsString() (string, error)
- func (w *KeyValues3) GetType() (uint8, error)
- func (w *KeyValues3) GetTypeAsString() (string, error)
- func (w *KeyValues3) GetTypeEx() (uint8, error)
- func (w *KeyValues3) GetUChar32(defaultValue uint32) (uint32, error)
- func (w *KeyValues3) GetUInt(defaultValue uint32) (uint32, error)
- func (w *KeyValues3) GetUInt8(defaultValue uint8) (uint8, error)
- func (w *KeyValues3) GetUInt64(defaultValue uint64) (uint64, error)
- func (w *KeyValues3) GetUShort(defaultValue uint16) (uint16, error)
- func (w *KeyValues3) GetVector(defaultValue plugify.Vector3) (plugify.Vector3, error)
- func (w *KeyValues3) GetVector2D(defaultValue plugify.Vector2) (plugify.Vector2, error)
- func (w *KeyValues3) GetVector4D(defaultValue plugify.Vector4) (plugify.Vector4, error)
- func (w *KeyValues3) HasAnyFlags() (bool, error)
- func (w *KeyValues3) HasFlag(flag uint8) (bool, error)
- func (w *KeyValues3) HasInvalidMemberNames() (bool, error)
- func (w *KeyValues3) HasMember(name string) (bool, error)
- func (w *KeyValues3) IsArray() (bool, error)
- func (w *KeyValues3) IsKV3Array() (bool, error)
- func (w *KeyValues3) IsNull() (bool, error)
- func (w *KeyValues3) IsString() (bool, error)
- func (w *KeyValues3) IsTable() (bool, error)
- func (w *KeyValues3) IsValid() bool
- func (w *KeyValues3) Load(error_ *string, input []uint8, kv_name string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromFile(error_ *string, filename string, path string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromJSON(error_ *string, input string, kv_name string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromJSONFile(error_ *string, path string, filename string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromKV1File(error_ *string, path string, filename string, esc_behavior uint8, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromKV1Text(error_ *string, input string, esc_behavior uint8, kv_name string, unk bool, ...) (bool, error)
- func (w *KeyValues3) LoadFromKV1TextTranslated(error_ *string, input string, esc_behavior uint8, translation uintptr, ...) (bool, error)
- func (w *KeyValues3) LoadFromKV3OrKV1(error_ *string, input []uint8, kv_name string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromOldSchemaText(error_ *string, input []uint8, kv_name string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadFromText(error_ *string, input string, kv_name string, flags uint32) (bool, error)
- func (w *KeyValues3) LoadTextNoHeader(error_ *string, input string, kv_name string, flags uint32) (bool, error)
- func (w *KeyValues3) OverlayKeysFrom(other *KeyValues3, depth bool) error
- func (w *KeyValues3) Release() uintptr
- func (w *KeyValues3) RemoveMember(name string) (bool, error)
- func (w *KeyValues3) Reset()
- func (w *KeyValues3) Save(error_ *string, output *[]uint8, flags uint32) (bool, error)
- func (w *KeyValues3) SaveAsJSON(error_ *string, output *[]uint8) (bool, error)
- func (w *KeyValues3) SaveAsJSONString(error_ *string, output *string) (bool, error)
- func (w *KeyValues3) SaveAsKV1Text(error_ *string, output *[]uint8, esc_behavior uint8) (bool, error)
- func (w *KeyValues3) SaveAsKV1TextTranslated(error_ *string, output *[]uint8, esc_behavior uint8, translation uintptr, ...) (bool, error)
- func (w *KeyValues3) SaveTextNoHeader(error_ *string, output *string, flags uint32) (bool, error)
- func (w *KeyValues3) SaveTextNoHeaderToBuffer(error_ *string, output *[]uint8, flags uint32) (bool, error)
- func (w *KeyValues3) SaveTextToString(error_ *string, output *string, flags uint32) (bool, error)
- func (w *KeyValues3) SaveToFile(error_ *string, filename string, path string, flags uint32) (bool, error)
- func (w *KeyValues3) SetAllFlags(flags uint8) error
- func (w *KeyValues3) SetArrayElementCount(count int32, type_ uint8, subtype uint8) error
- func (w *KeyValues3) SetBool(value bool) error
- func (w *KeyValues3) SetChar(value int8) error
- func (w *KeyValues3) SetColor(color plugify.Vector4) error
- func (w *KeyValues3) SetDouble(value float64) error
- func (w *KeyValues3) SetEHandle(ehandle int32) error
- func (w *KeyValues3) SetFlag(flag uint8, state bool) error
- func (w *KeyValues3) SetFloat(value float32) error
- func (w *KeyValues3) SetHasInvalidMemberNames(bValue bool) error
- func (w *KeyValues3) SetInt(value int32) error
- func (w *KeyValues3) SetInt8(value int8) error
- func (w *KeyValues3) SetInt64(value int64) error
- func (w *KeyValues3) SetMatrix3x4(matrix plugify.Matrix4x4) error
- func (w *KeyValues3) SetMemberBool(name string, value bool) error
- func (w *KeyValues3) SetMemberChar(name string, value int8) error
- func (w *KeyValues3) SetMemberColor(name string, color plugify.Vector4) error
- func (w *KeyValues3) SetMemberDouble(name string, value float64) error
- func (w *KeyValues3) SetMemberEHandle(name string, ehandle int32) error
- func (w *KeyValues3) SetMemberFloat(name string, value float32) error
- func (w *KeyValues3) SetMemberInt(name string, value int32) error
- func (w *KeyValues3) SetMemberInt8(name string, value int8) error
- func (w *KeyValues3) SetMemberInt64(name string, value int64) error
- func (w *KeyValues3) SetMemberMatrix3x4(name string, matrix plugify.Matrix4x4) error
- func (w *KeyValues3) SetMemberPointer(name string, ptr uintptr) error
- func (w *KeyValues3) SetMemberQAngle(name string, ang plugify.Vector3) error
- func (w *KeyValues3) SetMemberQuaternion(name string, quat plugify.Vector4) error
- func (w *KeyValues3) SetMemberShort(name string, value int16) error
- func (w *KeyValues3) SetMemberString(name string, str string, subtype uint8) error
- func (w *KeyValues3) SetMemberStringExternal(name string, str string, subtype uint8) error
- func (w *KeyValues3) SetMemberStringToken(name string, token uint32) error
- func (w *KeyValues3) SetMemberToBinaryBlob(name string, blob []uint8) error
- func (w *KeyValues3) SetMemberToBinaryBlobExternal(name string, blob []uint8, free_mem bool) error
- func (w *KeyValues3) SetMemberToCopyOfValue(name string, other uintptr) error
- func (w *KeyValues3) SetMemberToEmptyArray(name string) error
- func (w *KeyValues3) SetMemberToEmptyTable(name string) error
- func (w *KeyValues3) SetMemberToNull(name string) error
- func (w *KeyValues3) SetMemberUChar32(name string, value uint32) error
- func (w *KeyValues3) SetMemberUInt(name string, value uint32) error
- func (w *KeyValues3) SetMemberUInt8(name string, value uint8) error
- func (w *KeyValues3) SetMemberUInt64(name string, value uint64) error
- func (w *KeyValues3) SetMemberUShort(name string, value uint16) error
- func (w *KeyValues3) SetMemberVector(name string, vec plugify.Vector3) error
- func (w *KeyValues3) SetMemberVector2D(name string, vec2d plugify.Vector2) error
- func (w *KeyValues3) SetMemberVector4D(name string, vec4d plugify.Vector4) error
- func (w *KeyValues3) SetPointer(ptr uintptr) error
- func (w *KeyValues3) SetQAngle(ang plugify.Vector3) error
- func (w *KeyValues3) SetQuaternion(quat plugify.Vector4) error
- func (w *KeyValues3) SetShort(value int16) error
- func (w *KeyValues3) SetString(str string, subtype uint8) error
- func (w *KeyValues3) SetStringExternal(str string, subtype uint8) error
- func (w *KeyValues3) SetStringToken(token uint32) error
- func (w *KeyValues3) SetToBinaryBlob(blob []uint8) error
- func (w *KeyValues3) SetToBinaryBlobExternal(blob []uint8, free_mem bool) error
- func (w *KeyValues3) SetToEmptyKV3Array() error
- func (w *KeyValues3) SetToEmptyTable() error
- func (w *KeyValues3) SetToNull() error
- func (w *KeyValues3) SetUChar32(value uint32) error
- func (w *KeyValues3) SetUInt(value uint32) error
- func (w *KeyValues3) SetUInt8(value uint8) error
- func (w *KeyValues3) SetUInt64(value uint64) error
- func (w *KeyValues3) SetUShort(value uint16) error
- func (w *KeyValues3) SetVector(vec plugify.Vector3) error
- func (w *KeyValues3) SetVector2D(vec2d plugify.Vector2) error
- func (w *KeyValues3) SetVector4D(vec4d plugify.Vector4) error
- func (w *KeyValues3) ToString(flags uint32) (string, error)
- type LoggingChannelFlags
- type LoggingSeverity
- type LoggingVerbosity
- type MoveType
- type NetworkDisconnectionReason
- type OnBuildGameSessionManifestCallback
- type OnClientActiveCallback
- type OnClientAuthenticatedCallback
- type OnClientConnectCallback
- type OnClientConnect_PostCallback
- type OnClientConnectedCallback
- type OnClientDisconnectCallback
- type OnClientDisconnect_PostCallback
- type OnClientFullyConnectCallback
- type OnClientPutInServerCallback
- type OnClientSettingsChangedCallback
- type OnEntityCreatedCallback
- type OnEntityDeletedCallback
- type OnEntityParentChangedCallback
- type OnGameFrameCallback
- type OnMapEndCallback
- type OnMapStartCallback
- type OnPreWorldUpdateCallback
- type OnRoundTerminatedCallback
- type OnServerActivateCallback
- type OnServerCheckTransmitCallback
- type OnServerSpawnCallback
- type OnServerStartedCallback
- type OnServerStartupCallback
- type OnUpdateWhenNotInGameCallback
- type RenderMode
- type ResultType
- type TaskCallback
- type TimerCallback
- type TimerFlag
- type UserMessage
- func NewUserMessageBorrowed(handle uintptr) *UserMessage
- func NewUserMessageOwned(handle uintptr) *UserMessage
- func NewUserMessageUserMessageCreateFromId(messageId int16) *UserMessage
- func NewUserMessageUserMessageCreateFromName(messageName string) *UserMessage
- func NewUserMessageUserMessageCreateFromSerializable(msgSerializable uintptr, message uintptr, recipientMask uint64) *UserMessage
- func (w *UserMessage) AddAllPlayers() error
- func (w *UserMessage) AddBool(fieldName string, value bool) (bool, error)
- func (w *UserMessage) AddColor(fieldName string, value plugify.Vector4) (bool, error)
- func (w *UserMessage) AddDouble(fieldName string, value float64) (bool, error)
- func (w *UserMessage) AddEnum(fieldName string, value int32) (bool, error)
- func (w *UserMessage) AddFloat(fieldName string, value float32) (bool, error)
- func (w *UserMessage) AddInt32(fieldName string, value int32) (bool, error)
- func (w *UserMessage) AddInt64(fieldName string, value int64) (bool, error)
- func (w *UserMessage) AddMessage(fieldName string, value uintptr) (bool, error)
- func (w *UserMessage) AddQAngle(fieldName string, value plugify.Vector3) (bool, error)
- func (w *UserMessage) AddRecipient(playerSlot int32) error
- func (w *UserMessage) AddString(fieldName string, value string) (bool, error)
- func (w *UserMessage) AddUInt32(fieldName string, value uint32) (bool, error)
- func (w *UserMessage) AddUInt64(fieldName string, value uint64) (bool, error)
- func (w *UserMessage) AddVector2(fieldName string, value plugify.Vector2) (bool, error)
- func (w *UserMessage) AddVector3(fieldName string, value plugify.Vector3) (bool, error)
- func (w *UserMessage) AddVector4(fieldName string, value plugify.Vector4) (bool, error)
- func (w *UserMessage) Close()
- func (w *UserMessage) FindMessageIdByName(messageName string) int16
- func (w *UserMessage) Get() uintptr
- func (w *UserMessage) GetBool(fieldName string, out *bool) (bool, error)
- func (w *UserMessage) GetColor(fieldName string, out *plugify.Vector4) (bool, error)
- func (w *UserMessage) GetDebugString() (string, error)
- func (w *UserMessage) GetDouble(fieldName string, out *float64) (bool, error)
- func (w *UserMessage) GetEnum(fieldName string, out *int32) (bool, error)
- func (w *UserMessage) GetFloat(fieldName string, out *float32) (bool, error)
- func (w *UserMessage) GetInt32(fieldName string, out *int32) (bool, error)
- func (w *UserMessage) GetInt64(fieldName string, out *int64) (bool, error)
- func (w *UserMessage) GetMessage(fieldName string, out *uintptr) (bool, error)
- func (w *UserMessage) GetMessageID() (int16, error)
- func (w *UserMessage) GetMessageName() (string, error)
- func (w *UserMessage) GetProtobufMessage() (uintptr, error)
- func (w *UserMessage) GetQAngle(fieldName string, out *plugify.Vector3) (bool, error)
- func (w *UserMessage) GetRecipientMask() (uint64, error)
- func (w *UserMessage) GetRepeatedBool(fieldName string, index int32, out *bool) (bool, error)
- func (w *UserMessage) GetRepeatedColor(fieldName string, index int32, out *plugify.Vector4) (bool, error)
- func (w *UserMessage) GetRepeatedDouble(fieldName string, index int32, out *float64) (bool, error)
- func (w *UserMessage) GetRepeatedEnum(fieldName string, index int32, out *int32) (bool, error)
- func (w *UserMessage) GetRepeatedFieldCount(fieldName string) (int32, error)
- func (w *UserMessage) GetRepeatedFloat(fieldName string, index int32, out *float32) (bool, error)
- func (w *UserMessage) GetRepeatedInt32(fieldName string, index int32, out *int32) (bool, error)
- func (w *UserMessage) GetRepeatedInt64(fieldName string, index int32, out *int64) (bool, error)
- func (w *UserMessage) GetRepeatedMessage(fieldName string, index int32, out *uintptr) (bool, error)
- func (w *UserMessage) GetRepeatedQAngle(fieldName string, index int32, out *plugify.Vector3) (bool, error)
- func (w *UserMessage) GetRepeatedString(fieldName string, index int32, out *string) (bool, error)
- func (w *UserMessage) GetRepeatedUInt32(fieldName string, index int32, out *uint32) (bool, error)
- func (w *UserMessage) GetRepeatedUInt64(fieldName string, index int32, out *uint64) (bool, error)
- func (w *UserMessage) GetRepeatedVector2(fieldName string, index int32, out *plugify.Vector2) (bool, error)
- func (w *UserMessage) GetRepeatedVector3(fieldName string, index int32, out *plugify.Vector3) (bool, error)
- func (w *UserMessage) GetRepeatedVector4(fieldName string, index int32, out *plugify.Vector4) (bool, error)
- func (w *UserMessage) GetSerializableMessage() (uintptr, error)
- func (w *UserMessage) GetString(fieldName string, out *string) (bool, error)
- func (w *UserMessage) GetUInt32(fieldName string, out *uint32) (bool, error)
- func (w *UserMessage) GetUInt64(fieldName string, out *uint64) (bool, error)
- func (w *UserMessage) GetVector2(fieldName string, out *plugify.Vector2) (bool, error)
- func (w *UserMessage) GetVector3(fieldName string, out *plugify.Vector3) (bool, error)
- func (w *UserMessage) GetVector4(fieldName string, out *plugify.Vector4) (bool, error)
- func (w *UserMessage) HasField(fieldName string) (bool, error)
- func (w *UserMessage) IsValid() bool
- func (w *UserMessage) ReadBool(fieldName string, index int32) (bool, error)
- func (w *UserMessage) ReadColor(fieldName string, index int32) (plugify.Vector4, error)
- func (w *UserMessage) ReadDouble(fieldName string, index int32) (float64, error)
- func (w *UserMessage) ReadEnum(fieldName string, index int32) (int32, error)
- func (w *UserMessage) ReadFloat(fieldName string, index int32) (float32, error)
- func (w *UserMessage) ReadInt32(fieldName string, index int32) (int32, error)
- func (w *UserMessage) ReadInt64(fieldName string, index int32) (int64, error)
- func (w *UserMessage) ReadMessage(fieldName string, index int32) (uintptr, error)
- func (w *UserMessage) ReadQAngle(fieldName string, index int32) (plugify.Vector3, error)
- func (w *UserMessage) ReadString(fieldName string, index int32) (string, error)
- func (w *UserMessage) ReadUInt32(fieldName string, index int32) (uint32, error)
- func (w *UserMessage) ReadUInt64(fieldName string, index int32) (uint64, error)
- func (w *UserMessage) ReadVector2(fieldName string, index int32) (plugify.Vector2, error)
- func (w *UserMessage) ReadVector3(fieldName string, index int32) (plugify.Vector3, error)
- func (w *UserMessage) ReadVector4(fieldName string, index int32) (plugify.Vector4, error)
- func (w *UserMessage) Release() uintptr
- func (w *UserMessage) RemoveRepeatedFieldValue(fieldName string, index int32) (bool, error)
- func (w *UserMessage) Reset()
- func (w *UserMessage) Send() error
- func (w *UserMessage) SetBool(fieldName string, value bool) (bool, error)
- func (w *UserMessage) SetColor(fieldName string, value plugify.Vector4) (bool, error)
- func (w *UserMessage) SetDouble(fieldName string, value float64) (bool, error)
- func (w *UserMessage) SetEnum(fieldName string, value int32) (bool, error)
- func (w *UserMessage) SetFloat(fieldName string, value float32) (bool, error)
- func (w *UserMessage) SetInt32(fieldName string, value int32) (bool, error)
- func (w *UserMessage) SetInt64(fieldName string, value int64) (bool, error)
- func (w *UserMessage) SetMessage(fieldName string, value uintptr) (bool, error)
- func (w *UserMessage) SetQAngle(fieldName string, value plugify.Vector3) (bool, error)
- func (w *UserMessage) SetRecipientMask(mask uint64) error
- func (w *UserMessage) SetRepeatedBool(fieldName string, index int32, value bool) (bool, error)
- func (w *UserMessage) SetRepeatedColor(fieldName string, index int32, value plugify.Vector4) (bool, error)
- func (w *UserMessage) SetRepeatedDouble(fieldName string, index int32, value float64) (bool, error)
- func (w *UserMessage) SetRepeatedEnum(fieldName string, index int32, value int32) (bool, error)
- func (w *UserMessage) SetRepeatedFloat(fieldName string, index int32, value float32) (bool, error)
- func (w *UserMessage) SetRepeatedInt32(fieldName string, index int32, value int32) (bool, error)
- func (w *UserMessage) SetRepeatedInt64(fieldName string, index int32, value int64) (bool, error)
- func (w *UserMessage) SetRepeatedMessage(fieldName string, index int32, value uintptr) (bool, error)
- func (w *UserMessage) SetRepeatedQAngle(fieldName string, index int32, value plugify.Vector3) (bool, error)
- func (w *UserMessage) SetRepeatedString(fieldName string, index int32, value string) (bool, error)
- func (w *UserMessage) SetRepeatedUInt32(fieldName string, index int32, value uint32) (bool, error)
- func (w *UserMessage) SetRepeatedUInt64(fieldName string, index int32, value uint64) (bool, error)
- func (w *UserMessage) SetRepeatedVector2(fieldName string, index int32, value plugify.Vector2) (bool, error)
- func (w *UserMessage) SetRepeatedVector3(fieldName string, index int32, value plugify.Vector3) (bool, error)
- func (w *UserMessage) SetRepeatedVector4(fieldName string, index int32, value plugify.Vector4) (bool, error)
- func (w *UserMessage) SetString(fieldName string, value string) (bool, error)
- func (w *UserMessage) SetUInt32(fieldName string, value uint32) (bool, error)
- func (w *UserMessage) SetUInt64(fieldName string, value uint64) (bool, error)
- func (w *UserMessage) SetVector2(fieldName string, value plugify.Vector2) (bool, error)
- func (w *UserMessage) SetVector3(fieldName string, value plugify.Vector3) (bool, error)
- func (w *UserMessage) SetVector4(fieldName string, value plugify.Vector4) (bool, error)
- type UserMessageCallback
- type VoteAction
- type VoteCreateFailed
- type VoteEndReason
- type WeaponDefIndex
- type YesNoVoteHandler
- type YesNoVoteResult
Constants ¶
const ( Owned ownership = true Borrowed ownership = false )
Variables ¶
var (
CheckTransmitInfoErrEmptyHandle = errors.New("CheckTransmitInfo: empty handle")
)
var (
ConVarErrEmptyHandle = errors.New("ConVar: empty handle")
)
var (
EventInfoErrEmptyHandle = errors.New("EventInfo: empty handle")
)
var (
GameConfigErrEmptyHandle = errors.New("GameConfig: empty handle")
)
var (
KeyValues1ErrEmptyHandle = errors.New("KeyValues1: empty handle")
)
var (
KeyValues3ErrEmptyHandle = errors.New("KeyValues3: empty handle")
)
var (
UserMessageErrEmptyHandle = errors.New("UserMessage: empty handle")
)
Functions ¶
func AcceptClientInput ¶
func AcceptClientInput(playerSlot int32, inputName string, activatorHandle int32, callerHandle int32, value any, type_ FieldType, outputId int32)
AcceptClientInput
@brief Invokes a named input method on a specified client. @param playerSlot: The handle of the target client that will receive the input. @param inputName: The name of the input action to invoke. @param activatorHandle: The index of the player's slot that initiated the sequence of actions. @param callerHandle: The index of the player's slot sending this event. Use -1 to specify @param value: The value associated with the input action. @param type_: The type or classification of the value. @param outputId: An identifier for tracking the output of this operation.
func AcceptEntityInput ¶
func AcceptEntityInput(entityHandle int32, inputName string, activatorHandle int32, callerHandle int32, value any, type_ FieldType, outputId int32)
AcceptEntityInput
@brief Invokes a named input method on a specified entity. @param entityHandle: The handle of the target entity that will receive the input. @param inputName: The name of the input action to invoke. @param activatorHandle: The handle of the entity that initiated the sequence of actions. @param callerHandle: The handle of the entity sending this event. @param value: The value associated with the input action. @param type_: The type or classification of the value. @param outputId: An identifier for tracking the output of this operation.
func AddAdminCommand ¶
func AddAdminCommand(name string, adminFlags int64, description string, flags ConVarFlag, callback CommandCallback, type_ HookMode) bool
AddAdminCommand
@brief Creates a console command as an administrative command. @param name: The name of the console command. @param adminFlags: The admin flags that indicate which admin level can use this command. @param description: A brief description of what the command does. @param flags: Command flags that define the behavior of the command. @param callback: A callback function that is invoked when the command is executed. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return true if the command was successfully created; otherwise, false.
func AddBodyImpulseAtPosition ¶
func AddBodyImpulseAtPosition(entityHandle int32, position plugify.Vector3, impulse plugify.Vector3)
AddBodyImpulseAtPosition
@brief Applies an impulse to an entity at a specific world position. @param entityHandle: The handle of the entity. @param position: The world position where the impulse will be applied. @param impulse: The impulse vector to apply.
func AddBodyVelocity ¶
func AddBodyVelocity(entityHandle int32, linearVelocity plugify.Vector3, angularVelocity plugify.Vector3)
AddBodyVelocity
@brief Adds linear and angular velocity to the entity's physics object. @param entityHandle: The handle of the entity. @param linearVelocity: The linear velocity vector to add. @param angularVelocity: The angular velocity vector to add.
func AddClientEffects ¶
AddClientEffects
@brief Adds the render effect flag to an client. @param playerSlot: The index of the player's slot to modify @param effects: Render effect flags to add
func AddCommandListener ¶
func AddCommandListener(name string, callback CommandCallback, type_ HookMode) bool
AddCommandListener
@brief Adds a callback that will fire when a command is sent to the server. @param name: The name of the command. @param callback: The callback function that will be invoked when the command is executed. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return Returns true if the callback was successfully added, false otherwise.
func AddConVarFlags ¶
func AddConVarFlags(conVarHandle uint64, flags ConVarFlag)
AddConVarFlags
@brief Adds flags to a console variable. @param conVarHandle: The handle to the console variable data. @param flags: The flags to be added.
func AddConsoleCommand ¶
func AddConsoleCommand(name string, description string, flags ConVarFlag, callback CommandCallback, type_ HookMode) bool
AddConsoleCommand
@brief Creates a console command or hooks an already existing one. @param name: The name of the console command. @param description: A brief description of what the command does. @param flags: Command flags that define the behavior of the command. @param callback: A callback function that is invoked when the command is executed. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return true if the command was successfully created; otherwise, false.
func AddEntityEffects ¶
AddEntityEffects
@brief Adds the render effect flag to an entity. @param entityHandle: The handle of the entity to modify @param effects: Render effect flags to add
func AddLoggerTagToChannel ¶
AddLoggerTagToChannel
@brief Adds a tag to a specified logging channel. @param channelID: The ID of the logging channel to which the tag will be added. @param tagName: The name of the tag to add to the channel.
func AddTransmitInfoTargetSlot ¶
AddTransmitInfoTargetSlot
@brief Adds a player slot to the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @param playerSlot: The player slot value to add.
func AddUserFlags ¶
AddUserFlags
@brief Adds access flags to a client. @param playerSlot: The index of the player's slot. @param flags: Bitmask representing the flags to be added.
func AnglesDiff ¶
AnglesDiff
@brief Returns angular difference in degrees @param angle1: First angle in degrees @param angle2: Second angle in degrees @return Angular difference in degrees
func AnglesToVector ¶
AnglesToVector
@brief Converts QAngle to directional Vector @param angles: The QAngle to convert @return Directional vector
func ApplyAbsVelocityImpulseToClient ¶
ApplyAbsVelocityImpulseToClient
@brief Apply an absolute velocity impulse to an client. @param playerSlot: The index of the player's slot to apply impulse to @param vecImpulse: Velocity impulse vector to apply
func ApplyAbsVelocityImpulseToEntity ¶
ApplyAbsVelocityImpulseToEntity
@brief Apply an absolute velocity impulse to an entity. @param entityHandle: The handle of the entity to apply impulse to @param vecImpulse: Velocity impulse vector to apply
func ApplyLocalAngularVelocityImpulseToClient ¶
ApplyLocalAngularVelocityImpulseToClient
@brief Apply a local angular velocity impulse to an client. @param playerSlot: The index of the player's slot to apply impulse to @param angImpulse: Angular velocity impulse vector to apply
func ApplyLocalAngularVelocityImpulseToEntity ¶
ApplyLocalAngularVelocityImpulseToEntity
@brief Apply a local angular velocity impulse to an entity. @param entityHandle: The handle of the entity to apply impulse to @param angImpulse: Angular velocity impulse vector to apply
func AutoExecConfig ¶
AutoExecConfig
@brief Specifies that the given config file should be executed. @param conVarHandles: List of handles to the console variable data. @param autoCreate: If true, and the config file does not exist, such a config file will be automatically created and populated with information from the plugin's registered cvars. @param name: Name of the config file, excluding the .cfg extension. Cannot be empty. @param folder: Folder under cfg/ to use. By default this is "plugify." Can be empty. @return True on success, false otherwise.
func AxisAngleToQuaternion ¶
AxisAngleToQuaternion
@brief Converts axis-angle representation to quaternion @param axis: Rotation axis (should be normalized) @param angle: Rotation angle in radians @return Resulting quaternion
func BanClient ¶
BanClient
@brief Bans a client for a specified duration. @param playerSlot: The index of the player's slot to be banned. @param duration: Duration of the ban in seconds. @param kick: If true, the client will be kicked immediately after being banned.
func BanIdentity ¶
BanIdentity
@brief Bans an identity (either an IP address or a Steam authentication string). @param steamId: The Steam ID to ban. @param duration: Duration of the ban in seconds. @param kick: If true, the client will be kicked immediately after being banned.
func CalcClosestPointOnEntityOBB ¶
CalcClosestPointOnEntityOBB
@brief Computes closest point on an entity's oriented bounding box (OBB) @param entityHandle: Handle of the entity @param position: Position to find closest point from @return Closest point on the entity's OBB, or vec3_origin if entity is invalid
func CalcDistanceBetweenEntityOBB ¶
CalcDistanceBetweenEntityOBB
@brief Computes distance between two entities' oriented bounding boxes (OBBs) @param entityHandle1: Handle of the first entity @param entityHandle2: Handle of the second entity @return Distance between OBBs, or -1.0f if either entity is invalid
func CalcDistanceToLineSegment2D ¶
func CalcDistanceToLineSegment2D(p plugify.Vector3, vLineA plugify.Vector3, vLineB plugify.Vector3) float32
CalcDistanceToLineSegment2D
@brief Computes shortest 2D distance from a point to a line segment @param p: The point @param vLineA: First endpoint of the line segment @param vLineB: Second endpoint of the line segment @return Shortest 2D distance
func CancelCreatedEvent ¶
func CancelCreatedEvent(event uintptr)
CancelCreatedEvent
@brief Cancels a previously created game event that has not been fired. @param event: A pointer to the IGameEvent object of the event to cancel.
func ChangeEntityState ¶
ChangeEntityState
@brief Updates the networked state of a schema field for a given entity handle. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func ChangeEntityState2 ¶
ChangeEntityState2
@brief Updates the networked state of a schema field for a given entity pointer. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func ClearTransmitInfoAlways ¶
ClearTransmitInfoAlways
@brief Clears a bit in the TransmitAlways bitvec, unmarking an entity from always transmit. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to unmark from always transmit.
func ClearTransmitInfoAlwaysAll ¶
func ClearTransmitInfoAlwaysAll(info uintptr)
ClearTransmitInfoAlwaysAll
@brief Clears all bits in the TransmitAlways bitvec, unmarking all entities from always transmit. @param info: Pointer to the CCheckTransmitInfo structure.
func ClearTransmitInfoEntity ¶
ClearTransmitInfoEntity
@brief Clears a bit in the TransmitEntity bitvec, marking an entity as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to mark as not transmittable.
func ClearTransmitInfoEntityAll ¶
func ClearTransmitInfoEntityAll(info uintptr)
ClearTransmitInfoEntityAll
@brief Clears all bits in the TransmitEntity bitvec, marking all entities as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func ClearTransmitInfoNonPlayer ¶
ClearTransmitInfoNonPlayer
@brief Clears a bit in the TransmitNonPlayers bitvec, marking a non-player entity as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The index of the non-player entity to mark as not transmittable.
func ClearTransmitInfoNonPlayerAll ¶
func ClearTransmitInfoNonPlayerAll(info uintptr)
ClearTransmitInfoNonPlayerAll
@brief Clears all bits in the TransmitNonPlayers bitvec, marking all non-player entities as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func ClientCommand ¶
ClientCommand
@brief Executes a client command. @param playerSlot: The index of the client executing the command. @param command: The command to execute on the client.
func ClientIndexToPlayerSlot ¶
ClientIndexToPlayerSlot
@brief Retrieves the player slot from a given client index. @param clientIndex: The index of the client. @return The player slot if valid, otherwise -1.
func ClientPtrToPlayerSlot ¶
ClientPtrToPlayerSlot
@brief Retrieves the index of a given client object. @param client: A pointer to the client object (CServerSideClient*). @return The player slot if found, otherwise -1.
func CloseGameConfigFile ¶
func CloseGameConfigFile(id uint32)
CloseGameConfigFile
@brief Closes a game configuration file. @param id: An id to the game configuration to be closed.
func ConnectClientOutput ¶
ConnectClientOutput
@brief Connects a script function to an player output. @param playerSlot: The handle of the player. @param output: The name of the output to connect to. @param functionName: The name of the script function to call.
func ConnectEntityOutput ¶
ConnectEntityOutput
@brief Connects a script function to an entity output. @param entityHandle: The handle of the entity. @param output: The name of the output to connect to. @param functionName: The name of the script function to call.
func CreateConVar ¶
func CreateConVar(name string, defaultValue any, description string, flags ConVarFlag) uint64
CreateConVar
@brief Creates a new console variable. @param name: The name of the console variable. @param defaultValue: The default value of the console variable. @param description: A description of the console variable's purpose. @param flags: Additional flags for the console variable. @return A handle to the created console variable.
func CreateConVarBool ¶
func CreateConVarBool(name string, defaultValue bool, description string, flags ConVarFlag, hasMin bool, min bool, hasMax bool, max bool) uint64
CreateConVarBool
@brief Creates a new boolean console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarColor ¶
func CreateConVarColor(name string, defaultValue plugify.Vector4, description string, flags ConVarFlag, hasMin bool, min plugify.Vector4, hasMax bool, max plugify.Vector4) uint64
CreateConVarColor
@brief Creates a new color console variable. @param name: The name of the console variable. @param defaultValue: The default color value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum color value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum color value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarDouble ¶
func CreateConVarDouble(name string, defaultValue float64, description string, flags ConVarFlag, hasMin bool, min float64, hasMax bool, max float64) uint64
CreateConVarDouble
@brief Creates a new double-precision console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarFloat ¶
func CreateConVarFloat(name string, defaultValue float32, description string, flags ConVarFlag, hasMin bool, min float32, hasMax bool, max float32) uint64
CreateConVarFloat
@brief Creates a new floating-point console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarInt16 ¶
func CreateConVarInt16(name string, defaultValue int16, description string, flags ConVarFlag, hasMin bool, min int16, hasMax bool, max int16) uint64
CreateConVarInt16
@brief Creates a new 16-bit signed integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarInt32 ¶
func CreateConVarInt32(name string, defaultValue int32, description string, flags ConVarFlag, hasMin bool, min int32, hasMax bool, max int32) uint64
CreateConVarInt32
@brief Creates a new 32-bit signed integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarInt64 ¶
func CreateConVarInt64(name string, defaultValue int64, description string, flags ConVarFlag, hasMin bool, min int64, hasMax bool, max int64) uint64
CreateConVarInt64
@brief Creates a new 64-bit signed integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarQAngle ¶
func CreateConVarQAngle(name string, defaultValue plugify.Vector3, description string, flags ConVarFlag, hasMin bool, min plugify.Vector3, hasMax bool, max plugify.Vector3) uint64
CreateConVarQAngle
@brief Creates a new quaternion angle console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarString ¶
func CreateConVarString(name string, defaultValue string, description string, flags ConVarFlag) uint64
CreateConVarString
@brief Creates a new string console variable. @param name: The name of the console variable. @param defaultValue: The default value of the console variable. @param description: A description of the console variable's purpose. @param flags: Additional flags for the console variable. @return A handle to the created console variable.
func CreateConVarUInt16 ¶
func CreateConVarUInt16(name string, defaultValue uint16, description string, flags ConVarFlag, hasMin bool, min uint16, hasMax bool, max uint16) uint64
CreateConVarUInt16
@brief Creates a new 16-bit unsigned integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarUInt32 ¶
func CreateConVarUInt32(name string, defaultValue uint32, description string, flags ConVarFlag, hasMin bool, min uint32, hasMax bool, max uint32) uint64
CreateConVarUInt32
@brief Creates a new 32-bit unsigned integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarUInt64 ¶
func CreateConVarUInt64(name string, defaultValue uint64, description string, flags ConVarFlag, hasMin bool, min uint64, hasMax bool, max uint64) uint64
CreateConVarUInt64
@brief Creates a new 64-bit unsigned integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarVector2 ¶
func CreateConVarVector2(name string, defaultValue plugify.Vector2, description string, flags ConVarFlag, hasMin bool, min plugify.Vector2, hasMax bool, max plugify.Vector2) uint64
CreateConVarVector2
@brief Creates a new 2D vector console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarVector3 ¶
func CreateConVarVector3(name string, defaultValue plugify.Vector3, description string, flags ConVarFlag, hasMin bool, min plugify.Vector3, hasMax bool, max plugify.Vector3) uint64
CreateConVarVector3
@brief Creates a new 3D vector console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateConVarVector4 ¶
func CreateConVarVector4(name string, defaultValue plugify.Vector4, description string, flags ConVarFlag, hasMin bool, min plugify.Vector4, hasMax bool, max plugify.Vector4) uint64
CreateConVarVector4
@brief Creates a new 4D vector console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true. @return A handle to the created console variable data.
func CreateEntityByName ¶
CreateEntityByName
@brief Creates an entity by string name but does not spawn it. @param className: The class name of the entity to create. @return The entity handle of the created entity, or INVALID_EHANDLE_INDEX if the entity could not be created.
func CreateEvent ¶
CreateEvent
@brief Creates a game event to be fired later. @param name: The name of the event to create. @param force: A boolean indicating whether to force the creation of the event. @return A pointer to the created IGameEvent object.
func CreateTimer ¶
func CreateTimer(delay float64, callback TimerCallback, flags TimerFlag, userData []any) uint32
CreateTimer
@brief Creates a new timer that executes a callback function at specified delays. @param delay: The time delay in seconds between each callback execution. @param callback: The function to be called when the timer expires. @param flags: Flags that modify the behavior of the timer (e.g., no-map change, repeating). @param userData: An array intended to hold user-related data, allowing for elements of any type. @return A id to the newly created Timer object, or -1 if the timer could not be created.
func CrossVectors ¶
CrossVectors
@brief Computes cross product of two vectors @param v1: First vector @param v2: Second vector @return Cross product vector (v1 × v2)
func DebugDrawBox ¶
func DebugDrawBox(center plugify.Vector3, mins plugify.Vector3, maxs plugify.Vector3, r int32, g int32, b int32, a int32, duration float32)
DebugDrawBox
@brief Draws a debug overlay box. @param center: Center of the box in world space. @param mins: Minimum bounds relative to the center. @param maxs: Maximum bounds relative to the center. @param r: Red color value. @param g: Green color value. @param b: Blue color value. @param a: Alpha (transparency) value. @param duration: Duration (in seconds) to display the box.
func DebugDrawBoxDirection ¶
func DebugDrawBoxDirection(center plugify.Vector3, mins plugify.Vector3, maxs plugify.Vector3, forward plugify.Vector3, color plugify.Vector3, alpha float32, duration float32)
DebugDrawBoxDirection
@brief Draws a debug box oriented in the direction of a forward vector. @param center: Center of the box. @param mins: Minimum bounds. @param maxs: Maximum bounds. @param forward: Forward direction vector. @param color: RGB color vector. @param alpha: Alpha transparency. @param duration: Duration (in seconds) to display the box.
func DebugDrawCircle ¶
func DebugDrawCircle(center plugify.Vector3, color plugify.Vector3, alpha float32, radius float32, zTest bool, duration float32)
DebugDrawCircle
@brief Draws a debug circle. @param center: Center of the circle. @param color: RGB color vector. @param alpha: Alpha transparency. @param radius: Circle radius. @param zTest: Whether to perform depth testing. @param duration: Duration (in seconds) to display the circle.
func DebugDrawLine ¶
func DebugDrawLine(origin plugify.Vector3, target plugify.Vector3, r int32, g int32, b int32, zTest bool, duration float32)
DebugDrawLine
@brief Draws a debug overlay line. @param origin: Start point of the line. @param target: End point of the line. @param r: Red color value. @param g: Green color value. @param b: Blue color value. @param zTest: Whether to perform depth testing. @param duration: Duration (in seconds) to display the line.
func DebugDrawLine_vCol ¶
func DebugDrawLine_vCol(start plugify.Vector3, end plugify.Vector3, color plugify.Vector3, zTest bool, duration float32)
DebugDrawLine_vCol
@brief Draws a debug line using a color vector. @param start: Start point of the line. @param end: End point of the line. @param color: RGB color vector. @param zTest: Whether to perform depth testing. @param duration: Duration (in seconds) to display the line.
func DebugDrawScreenTextLine ¶
func DebugDrawScreenTextLine(x float32, y float32, lineOffset int32, text string, r int32, g int32, b int32, a int32, duration float32)
DebugDrawScreenTextLine
@brief Draws text at a specified screen position with line offset. @param x: X coordinate in screen space. @param y: Y coordinate in screen space. @param lineOffset: Line offset value. @param text: The text string to display. @param r: Red color value. @param g: Green color value. @param b: Blue color value. @param a: Alpha transparency value. @param duration: Duration (in seconds) to display the text.
func DebugDrawSphere ¶
func DebugDrawSphere(center plugify.Vector3, color plugify.Vector3, alpha float32, radius float32, zTest bool, duration float32)
DebugDrawSphere
@brief Draws a debug sphere. @param center: Center of the sphere. @param color: RGB color vector. @param alpha: Alpha transparency. @param radius: Radius of the sphere. @param zTest: Whether to perform depth testing. @param duration: Duration (in seconds) to display the sphere.
func DebugDrawText ¶
DebugDrawText
@brief Draws text in 3D space. @param origin: World-space position to draw the text at. @param text: The text string to display. @param viewCheck: If true, only draws when visible to camera. @param duration: Duration (in seconds) to display the text.
func DebugScreenTextPretty ¶
func DebugScreenTextPretty(x float32, y float32, lineOffset int32, text string, r int32, g int32, b int32, a int32, duration float32, font string, size int32, bold bool)
DebugScreenTextPretty
@brief Draws styled debug text on screen. @param x: X coordinate. @param y: Y coordinate. @param lineOffset: Line offset value. @param text: Text string. @param r: Red color value. @param g: Green color value. @param b: Blue color value. @param a: Alpha transparency. @param duration: Duration (in seconds) to display the text. @param font: Font name. @param size: Font size. @param bold: Whether text should be bold.
func DebugScriptAssert ¶
DebugScriptAssert
@brief Performs an assertion and logs a message if the assertion fails. @param assertion: Boolean value to test. @param message: Message to display if the assertion fails.
func DeleteEntityAttribute ¶
DeleteEntityAttribute
@brief Deletes an attribute from an entity. @param entityHandle: The handle of the entity. @param name: The name of the attribute to delete.
func DetachBodyFromParent ¶
func DetachBodyFromParent(entityHandle int32)
DetachBodyFromParent
@brief Detaches the entity from its parent. @param entityHandle: The handle of the entity.
func DisconnectClientOutput ¶
DisconnectClientOutput
@brief Disconnects a script function from an player output. @param playerSlot: The handle of the player. @param output: The name of the output. @param functionName: The name of the script function to disconnect.
func DisconnectClientRedirectedOutput ¶
func DisconnectClientRedirectedOutput(playerSlot int32, output string, functionName string, targetHandle int32)
DisconnectClientRedirectedOutput
@brief Disconnects a script function from an I/O event on a different player. @param playerSlot: The handle of the calling player. @param output: The name of the output. @param functionName: The function name to disconnect. @param targetHandle: The handle of the entity whose output is being disconnected.
func DisconnectEntityOutput ¶
DisconnectEntityOutput
@brief Disconnects a script function from an entity output. @param entityHandle: The handle of the entity. @param output: The name of the output. @param functionName: The name of the script function to disconnect.
func DisconnectEntityRedirectedOutput ¶
func DisconnectEntityRedirectedOutput(entityHandle int32, output string, functionName string, targetHandle int32)
DisconnectEntityRedirectedOutput
@brief Disconnects a script function from an I/O event on a different entity. @param entityHandle: The handle of the calling entity. @param output: The name of the output. @param functionName: The function name to disconnect. @param targetHandle: The handle of the entity whose output is being disconnected.
func DispatchSpawn ¶
func DispatchSpawn(entityHandle int32)
DispatchSpawn
@brief Spawns an entity into the game. @param entityHandle: The handle of the entity to spawn.
func DispatchSpawn2 ¶
DispatchSpawn2
@brief Spawns an entity into the game with key-value properties. @param entityHandle: The handle of the entity to spawn. @param keys: A vector of keys representing the property names to set on the entity. @param values: A vector of values corresponding to the keys, representing the property values to set on the entity.
func DropWeapon ¶
func DropWeapon(playerSlot int32, weaponHandle int32, target plugify.Vector3, velocity plugify.Vector3)
DropWeapon
@brief Forces a player to drop their weapon. @param playerSlot: The index of the player's slot. @param weaponHandle: The handle of weapon to drop. @param target: Target direction. @param velocity: Velocity to toss weapon or zero to just drop weapon.
func EmitSound ¶
EmitSound
@brief Emits a sound from a specified entity. @param entityHandle: The handle of the entity that will emit the sound. @param sound: The name of the sound to emit. @param pitch: The pitch of the sound. @param volume: The volume of the sound. @param delay: The delay before the sound is played.
func EmitSoundToClient ¶
func EmitSoundToClient(playerSlot int32, channel int32, sound string, volume float32, soundLevel int32, flags int32, pitch int32, origin plugify.Vector3, soundTime float32)
EmitSoundToClient
@brief Emits a sound to a specific client. @param playerSlot: The index of the client to whom the sound will be emitted. @param channel: The channel through which the sound will be played. @param sound: The name of the sound to emit. @param volume: The volume of the sound. @param soundLevel: The level of the sound. @param flags: Additional flags for sound playback. @param pitch: The pitch of the sound. @param origin: The origin of the sound in 3D space. @param soundTime: The time at which the sound should be played.
func EntHandleToEntIndex ¶
EntHandleToEntIndex
@brief Retrieves the entity index from an entity handle. @param entityHandle: The entity handle from which to retrieve the index. @return The index of the entity, or -1 if the handle is invalid.
func EntHandleToEntPointer ¶
EntHandleToEntPointer
@brief Retrieves the entity pointer from an entity handle. @param entityHandle: The entity handle to convert. @return A pointer to the entity instance, or nullptr if the handle is invalid.
func EntIndexToEntHandle ¶
EntIndexToEntHandle
@brief Converts an entity index into an entity handle. @param entityIndex: The index of the entity to convert. @return The entity handle as an integer, or -1 if the entity index is invalid.
func EntIndexToEntPointer ¶
EntIndexToEntPointer
@brief Converts an entity index into an entity pointer. @param entityIndex: The index of the entity to convert. @return A pointer to the entity instance, or nullptr if the entity does not exist.
func EntPointerToEntHandle ¶
EntPointerToEntHandle
@brief Converts an entity pointer into an entity handle. @param entity: A pointer to the entity to convert. @return The entity handle as an integer, or INVALID_EHANDLE_INDEX if the entity is nullptr.
func EntPointerToEntIndex ¶
EntPointerToEntIndex
@brief Retrieves the entity index from an entity pointer. @param entity: A pointer to the entity whose index is to be retrieved. @return The index of the entity, or -1 if the entity is nullptr.
func EntPointerToPlayerSlot ¶
EntPointerToPlayerSlot
@brief Retrieves the player slot from a given entity pointer. @param entity: A pointer to the entity (CBaseEntity*). @return The player slot if valid, otherwise -1.
func EraseEntSchemaEnt ¶ added in v2.5.1
func EraseEntSchemaEnt(entityHandle int32, className string, memberName string, element int32, changeState bool)
EraseEntSchemaEnt
@brief Erases an entity handle from an entity's schema collection by index. @param entityHandle: The handle of the entity whose schema collection is modified. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element index to erase (starting from 0). @param changeState: If true, change will be sent over the network.
func EraseEntSchemaEnt2 ¶ added in v2.5.1
func EraseEntSchemaEnt2(entity uintptr, className string, memberName string, element int32, changeState bool)
EraseEntSchemaEnt2
@brief Erases an entity handle from an entity's schema collection by index. @param entity: Pointer to the instance of the class where the value is to be erased. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element index to erase (starting from 0). @param changeState: If true, change will be sent over the network.
func ExponentDecay ¶
ExponentDecay
@brief Smooth exponential decay function @param decayTo: Target value to decay towards @param decayTime: Time constant for decay @param dt: Delta time @return Decay factor
func FakeClientCommand ¶
FakeClientCommand
@brief Executes a client command on the server without network communication. @param playerSlot: The index of the client. @param command: The command to be executed by the client.
func FindConVar ¶
FindConVar
@brief Searches for a console variable. @param name: The name of the console variable to search for. @return A handle to the console variable data if found; otherwise, nullptr.
func FindConVar2 ¶
func FindConVar2(name string, type_ ConVarType) uint64
FindConVar2
@brief Searches for a console variable of a specific type. @param name: The name of the console variable to search for. @param type_: The type of the console variable to search for. @return A handle to the console variable data if found; otherwise, nullptr.
func FindEntityByClassname ¶
FindEntityByClassname
@brief Finds an entity by classname with iteration. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param classname: The class name to search for. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityByClassnameNearest ¶
func FindEntityByClassnameNearest(startFrom int32, classname string, origin plugify.Vector3, maxRadius float32) int32
FindEntityByClassnameNearest
@brief Finds the nearest entity by classname to a point. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param classname: The class name to search for. @param origin: The center point to search around. @param maxRadius: Maximum search radius. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityByClassnameWithin ¶
func FindEntityByClassnameWithin(startFrom int32, classname string, origin plugify.Vector3, radius float32) int32
FindEntityByClassnameWithin
@brief Finds an entity by classname within a radius with iteration. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param classname: The class name to search for. @param origin: The center of the search sphere. @param radius: The search radius. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityByName ¶
FindEntityByName
@brief Finds an entity by name with iteration. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param name: The targetname to search for. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityByNameNearest ¶
FindEntityByNameNearest
@brief Finds the nearest entity by name to a point. @param name: The targetname to search for. @param origin: The point to search around. @param maxRadius: Maximum search radius. @return The handle of the nearest entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityByNameWithin ¶
func FindEntityByNameWithin(startFrom int32, name string, origin plugify.Vector3, radius float32) int32
FindEntityByNameWithin
@brief Finds an entity by name within a radius with iteration. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param name: The targetname to search for. @param origin: The center of the search sphere. @param radius: The search radius. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityByTarget ¶
FindEntityByTarget
@brief Finds an entity by targetname with iteration. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param name: The targetname to search for. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindEntityInSphere ¶
FindEntityInSphere
@brief Finds an entity within a sphere with iteration. @param startFrom: The handle of the entity to start from, or INVALID_EHANDLE_INDEX to start fresh. @param origin: The center of the search sphere. @param radius: The search radius. @return The handle of the found entity, or INVALID_EHANDLE_INDEX if none found.
func FindFileAbsoluteList ¶ added in v2.4.0
FindFileAbsoluteList
@brief Finds all files matching the given wildcard and path ID. @param wildcard: The wildcard pattern to match. @param pathId: The filesystem search path ID (e.g., "GAME"). If empty, uses "GAME". @return The list of absolute file paths matching the wildcard.
func FireClientOutput ¶
func FireClientOutput(playerSlot int32, outputName string, activatorHandle int32, callerHandle int32, value any, type_ FieldType, delay float32)
FireClientOutput
@brief Fires an player output. @param playerSlot: The handle of the player firing the output. @param outputName: The name of the output to fire. @param activatorHandle: The entity activating the output. @param callerHandle: The entity that called the output. @param value: The value associated with the input action. @param type_: The type or classification of the value. @param delay: Delay in seconds before firing the output.
func FireEntityOutput ¶
func FireEntityOutput(entityHandle int32, outputName string, activatorHandle int32, callerHandle int32, value any, type_ FieldType, delay float32)
FireEntityOutput
@brief Fires an entity output. @param entityHandle: The handle of the entity firing the output. @param outputName: The name of the output to fire. @param activatorHandle: The entity activating the output. @param callerHandle: The entity that called the output. @param value: The value associated with the input action. @param type_: The type or classification of the value. @param delay: Delay in seconds before firing the output.
func FireEvent ¶
FireEvent
@brief Fires a game event. @param event: A pointer to the IGameEvent object containing event data. @param dontBroadcast: A boolean indicating whether to broadcast the event.
func FireEventToClient ¶
FireEventToClient
@brief Fires a game event to a specific client. @param event: A pointer to the IGameEvent object containing event data. @param playerSlot: The index of the client to fire the event to.
func FollowClient ¶
FollowClient
@brief Makes an client follow another client with optional bone merging. @param playerSlot: The index of the player's slot that will follow @param attachmentHandle: The index of the player's slot to follow @param boneMerge: If true, bones will be merged between entities
func FollowClientMerge ¶
FollowClientMerge
@brief Makes an client follow another client and merge with a specific bone or attachment. @param playerSlot: The index of the player's slot that will follow @param attachmentHandle: The index of the player's slot to follow @param boneOrAttachName: Name of the bone or attachment point to merge with
func FollowEntity ¶
FollowEntity
@brief Makes an entity follow another entity with optional bone merging. @param entityHandle: The handle of the entity that will follow @param attachmentHandle: The handle of the entity to follow @param boneMerge: If true, bones will be merged between entities
func FollowEntityMerge ¶
FollowEntityMerge
@brief Makes an entity follow another entity and merge with a specific bone or attachment. @param entityHandle: The handle of the entity that will follow @param attachmentHandle: The handle of the entity to follow @param boneOrAttachName: Name of the bone or attachment point to merge with
func ForcePlayerSuicide ¶
ForcePlayerSuicide
@brief Forces a player to commit suicide. @param playerSlot: The index of the player's slot. @param explode: If true, the client will explode upon death. @param force: If true, the suicide will be forced.
func GetAllCommands ¶
func GetAllCommands() []string
GetAllCommands
@brief Returns all console commands registered by this plugin. @return The vector of ConCommand names.
func GetAllConCommands ¶
func GetAllConCommands(flags ConVarFlag) []string
GetAllConCommands
@brief Returns the names of all registered console commands and cvars. @param flags: Additional flags for the console variable. @return The vector of command/cvar names.
func GetAllConVars ¶
func GetAllConVars() []string
GetAllConVars
@brief Returns all console variables registered by this plugin @return The vector of ConVar names.
func GetBodySequence ¶
GetBodySequence
@brief Retrieves the currently active sequence of the entity. @param entityHandle: The handle of the entity. @return The sequence ID of the active sequence, or -1 if invalid.
func GetClientAbsAngles ¶
GetClientAbsAngles
@brief Retrieves the angular rotation of an client. @param playerSlot: The index of the player's slot whose angular rotation is to be retrieved. @return A QAngle where the angular rotation will be stored.
func GetClientAbsOrigin ¶
GetClientAbsOrigin
@brief Retrieves the absolute origin of an client. @param playerSlot: The index of the player's slot whose absolute origin is to be retrieved. @return A vector where the absolute origin will be stored.
func GetClientAbsScale ¶
GetClientAbsScale
@brief Retrieves the absolute scale of an client. @param playerSlot: The index of the player's slot whose absolute scale is to be retrieved. @return A vector where the absolute scale will be stored.
func GetClientAbsVelocity ¶
GetClientAbsVelocity
@brief Retrieves the absolute velocity of an client. @param playerSlot: The index of the player's slot whose absolute velocity is to be retrieved. @return A vector where the absolute velocity will be stored.
func GetClientAccountId ¶
GetClientAccountId
@brief Returns the client's Steam account ID, a unique number identifying a given Steam account. @param playerSlot: The index of the player's slot. @return uint32_t The client's steam account ID.
func GetClientActiveWeapon ¶
GetClientActiveWeapon
@brief Retrieves the handle of the client's currently active weapon. @param playerSlot: The index of the player's slot. @return The entity handle of the active weapon, or INVALID_EHANDLE_INDEX if the client is invalid or has no active weapon.
func GetClientAngRotation ¶
GetClientAngRotation
@brief Retrieves the angular rotation of an client. @param playerSlot: The index of the player's slot whose angular rotation is to be retrieved. @return A vector where the angular rotation will be stored.
func GetClientAngVelocity ¶
GetClientAngVelocity
@brief Retrieves the angular velocity of an client. @param playerSlot: The index of the player's slot whose angular velocity is to be retrieved. @return A vector where the angular velocity will be stored.
func GetClientArmor ¶
GetClientArmor
@brief Returns the client's armor value. @param playerSlot: The index of the player's slot. @return The armor value of the client.
func GetClientAssists ¶
GetClientAssists
@brief Retrieves the number of assists for a client. @param playerSlot: The index of the player's slot. @return The number of assists the client has, or 0 if the player slot is invalid.
func GetClientAuthId ¶
GetClientAuthId
@brief Retrieves a client's authentication string (SteamID). @param playerSlot: The index of the player's slot whose authentication string is being retrieved. @return The authentication string.
func GetClientBaseVelocity ¶
GetClientBaseVelocity
@brief Retrieves the base velocity of an client. @param playerSlot: The index of the player's slot whose base velocity is to be retrieved. @return A vector where the base velocity will be stored.
func GetClientBoundingMaxs ¶
GetClientBoundingMaxs
@brief Get a vector containing max bounds, centered on object. @param playerSlot: The index of the player's slot to query @return Vector containing the maximum bounds of the client's bounding box
func GetClientBoundingMins ¶
GetClientBoundingMins
@brief Get a vector containing min bounds, centered on object. @param playerSlot: The index of the player's slot to query @return Vector containing the minimum bounds of the client's bounding box
func GetClientButtons ¶
GetClientButtons
@brief Retrieves the state of a specific button for a client. @param playerSlot: The index of the player's slot. @param buttonIndex: The index of the button (0-2). @return uint64_t The state of the specified button, or 0 if the client or button index is invalid.
func GetClientCenter ¶
GetClientCenter
@brief Get vector to center of object - absolute coords. @param playerSlot: The index of the player's slot to query @return Vector pointing to the center of the client in absolute/world coordinates
func GetClientConVarValue ¶
GetClientConVarValue
@brief Retrieves the value of a client's console variable and stores it in the output string. @param playerSlot: The index of the client whose console variable value is being retrieved. @param convarName: The name of the console variable to retrieve. @return The output string to store the client's console variable value.
func GetClientDamage ¶
GetClientDamage
@brief Retrieves the total damage dealt by a client. @param playerSlot: The index of the player's slot. @return The total damage dealt by the client, or 0 if the player slot is invalid.
func GetClientDeaths ¶
GetClientDeaths
@brief Retrieves the number of deaths for a client. @param playerSlot: The index of the player's slot. @return The number of deaths the client has, or 0 if the player slot is invalid.
func GetClientEffects ¶
GetClientEffects
@brief Retrieves the effects of an client. @param playerSlot: The index of the player's slot whose effects are to be retrieved. @return The effect flags of the client, or 0 if the client is invalid.
func GetClientEyeAngles ¶
GetClientEyeAngles
@brief Get the qangles that this client is looking at. @param playerSlot: The index of the player's slot @return Eye angles as a vector (pitch, yaw, roll)
func GetClientEyePosition ¶
GetClientEyePosition
@brief Get vector to eye position - absolute coords. @param playerSlot: The index of the player's slot @return Eye position in absolute/world coordinates
func GetClientFlags ¶
GetClientFlags
@brief Retrieves the flags of an client. @param playerSlot: The index of the player's slot whose flags are to be retrieved. @return The flags of the client, or 0 if the client is invalid.
func GetClientForwardVector ¶
GetClientForwardVector
@brief Get the forward vector of the client. @param playerSlot: The index of the player's slot to query @return Forward-facing direction vector of the client
func GetClientFriction ¶
GetClientFriction
@brief Retrieves the friction of an client. @param playerSlot: The index of the player's slot whose friction is to be retrieved. @return The friction of the client, or 0 if the client is invalid.
func GetClientGravity ¶
GetClientGravity
@brief Retrieves the gravity scale of an client. @param playerSlot: The index of the player's slot whose gravity scale is to be retrieved. @return The gravity scale of the client, or 0.0f if the client is invalid.
func GetClientGroundEntity ¶
GetClientGroundEntity
@brief Retrieves the ground client of an client. @param playerSlot: The index of the player's slot whose ground client is to be retrieved. @return The handle of the ground client, or INVALID_EHANDLE_INDEX if the client is invalid.
func GetClientHealth ¶
GetClientHealth
@brief Retrieves the health of an client. @param playerSlot: The index of the player's slot whose health is to be retrieved. @return The health of the client, or 0 if the client is invalid.
func GetClientIp ¶
GetClientIp
@brief Retrieves a client's IP address. @param playerSlot: The index of the player's slot. @return The client's IP address.
func GetClientKills ¶
GetClientKills
@brief Retrieves the number of kills for a client. @param playerSlot: The index of the player's slot. @return The number of kills the client has, or 0 if the player slot is invalid.
func GetClientLanguage ¶
GetClientLanguage
@brief Retrieves a client's language. @param playerSlot: The index of the player's slot. @return The client's language.
func GetClientLatency ¶
GetClientLatency
@brief Returns the client's current latency (RTT). @param playerSlot: The index of the player's slot. @return float Latency value.
func GetClientLeftVector ¶
GetClientLeftVector
@brief Get the left vector of the client. @param playerSlot: The index of the player's slot to query @return Left-facing direction vector of the client (aligned with the y axis)
func GetClientLocalAngVelocity ¶
GetClientLocalAngVelocity
@brief Retrieves the local angular velocity of an client. @param playerSlot: The index of the player's slot whose local angular velocity is to be retrieved. @return A vector where the local angular velocity will be stored.
func GetClientLocalAngles ¶
GetClientLocalAngles
@brief Retrieves the angular rotation of an client. @param playerSlot: The index of the player's slot whose angular rotation is to be retrieved. @return A QAngle where the angular rotation will be stored.
func GetClientLocalOrigin ¶
GetClientLocalOrigin
@brief Retrieves the local origin of an client. @param playerSlot: The index of the player's slot whose local origin is to be retrieved. @return A vector where the local origin will be stored.
func GetClientLocalScale ¶
GetClientLocalScale
@brief Retrieves the local scale of an client. @param playerSlot: The index of the player's slot whose local scale is to be retrieved. @return A vector where the local scale will be stored.
func GetClientLocalVelocity ¶
GetClientLocalVelocity
@brief Retrieves the local velocity of an client. @param playerSlot: The index of the player's slot whose local velocity is to be retrieved. @return A vector where the local velocity will be stored.
func GetClientMass ¶
GetClientMass
@brief Retrieves the mass of an client. @param playerSlot: The index of the player's slot whose mass is to be retrieved. @return The mass of the client, or 0 if the client is invalid.
func GetClientMaxHealth ¶
GetClientMaxHealth
@brief Retrieves the max health of an client. @param playerSlot: The index of the player's slot whose max health is to be retrieved. @return The max health of the client, or 0 if the client is invalid.
func GetClientModel ¶
GetClientModel
@brief Retrieves the model name of an client. @param playerSlot: The index of the player's slot whose model name is to be retrieved. @return A string where the model name will be stored.
func GetClientMoney ¶
GetClientMoney
@brief Retrieves the amount of money a client has. @param playerSlot: The index of the player's slot. @return The amount of money the client has, or 0 if the player slot is invalid.
func GetClientName ¶
GetClientName
@brief Returns the client's name. @param playerSlot: The index of the player's slot. @return The client's name.
func GetClientOS ¶
GetClientOS
@brief Retrieves a client's operating system. @param playerSlot: The index of the player's slot. @return The client's operating system.
func GetClientPawn ¶
GetClientPawn
@brief Retrieves the pawn entity pointer associated with a client. @param playerSlot: The index of the player's slot. @return A pointer to the client's pawn entity, or nullptr if the client or controller is invalid.
func GetClientRenderColor ¶
GetClientRenderColor
@brief Retrieves the render color of an client. @param playerSlot: The index of the player's slot whose render color is to be retrieved. @return The raw color value of the client's render color, or 0 if the client is invalid.
func GetClientRightVector ¶
GetClientRightVector
@brief Get the right vector of the client. @param playerSlot: The index of the player's slot to query @return Right-facing direction vector of the client
func GetClientSpeed ¶
GetClientSpeed
@brief Returns the client's speed value. @param playerSlot: The index of the player's slot. @return The speed value of the client.
func GetClientSteamID64 ¶
GetClientSteamID64
@brief Returns the client's SteamID64 — a unique 64-bit identifier of a Steam account. @param playerSlot: The index of the player's slot. @return uint64_t The client's SteamID64.
func GetClientTime ¶
GetClientTime
@brief Returns the client's connection time in seconds. @param playerSlot: The index of the player's slot. @return float Connection time in seconds.
func GetClientTransform ¶
GetClientTransform
@brief Get the client-to-world transformation matrix. @param playerSlot: The index of the player's slot to query @return 4x4 transformation matrix representing client's position, rotation, and scale in world space
func GetClientUpVector ¶
GetClientUpVector
@brief Get the up vector of the client. @param playerSlot: The index of the player's slot to query @return Up-facing direction vector of the client
func GetClientWaterLevel ¶
GetClientWaterLevel
@brief Retrieves the water level of an client. @param playerSlot: The index of the player's slot whose water level is to be retrieved. @return The water level of the client, or 0.0f if the client is invalid.
func GetClientWeapons ¶
GetClientWeapons
@brief Retrieves a list of weapon handles owned by the client. @param playerSlot: The index of the player's slot. @return A vector of entity handles for the client's weapons, or an empty vector if the client is invalid or has no weapons.
func GetConVar ¶
GetConVar
@brief Retrieves the current value of a console variable and stores it in the output. @param conVarHandle: The handle to the console variable data. @return The output value.
func GetConVarBool ¶
GetConVarBool
@brief Retrieves the current value of a boolean console variable. @param conVarHandle: The handle to the console variable data. @return The current boolean value of the console variable.
func GetConVarBounds ¶
GetConVarBounds
@brief Gets the specified bound (max or min) of a console variable and stores it in the output string. @param conVarHandle: The handle to the console variable data. @param max: Indicates whether to get the maximum (true) or minimum (false) bound. @return The bound value.
func GetConVarColor ¶
GetConVarColor
@brief Retrieves the current value of a Color console variable. @param conVarHandle: The handle to the console variable data. @return The current Color value of the console variable.
func GetConVarDefault ¶
GetConVarDefault
@brief Retrieves the default value of a console variable and stores it in the output string. @param conVarHandle: The handle to the console variable data. @return The output value in string format.
func GetConVarDouble ¶
GetConVarDouble
@brief Retrieves the current value of a double console variable. @param conVarHandle: The handle to the console variable data. @return The current double value of the console variable.
func GetConVarFloat ¶
GetConVarFloat
@brief Retrieves the current value of a float console variable. @param conVarHandle: The handle to the console variable data. @return The current float value of the console variable.
func GetConVarInt16 ¶
GetConVarInt16
@brief Retrieves the current value of a signed 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current int16_t value of the console variable.
func GetConVarInt32 ¶
GetConVarInt32
@brief Retrieves the current value of a signed 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current int32_t value of the console variable.
func GetConVarInt64 ¶
GetConVarInt64
@brief Retrieves the current value of a signed 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current int64_t value of the console variable.
func GetConVarQAngle ¶
GetConVarQAngle
@brief Retrieves the current value of a QAngle console variable. @param conVarHandle: The handle to the console variable data. @return The current QAngle value of the console variable.
func GetConVarString ¶
GetConVarString
@brief Retrieves the current value of a string console variable. @param conVarHandle: The handle to the console variable data. @return The current string value of the console variable.
func GetConVarUInt16 ¶
GetConVarUInt16
@brief Retrieves the current value of an unsigned 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current uint16_t value of the console variable.
func GetConVarUInt32 ¶
GetConVarUInt32
@brief Retrieves the current value of an unsigned 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current uint32_t value of the console variable.
func GetConVarUInt64 ¶
GetConVarUInt64
@brief Retrieves the current value of an unsigned 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current uint64_t value of the console variable.
func GetConVarValue ¶
GetConVarValue
@brief Retrieves the current value of a console variable and stores it in the output string. @param conVarHandle: The handle to the console variable data. @return The output value in string format.
func GetConVarVector ¶
GetConVarVector
@brief Retrieves the current value of a Vector console variable. @param conVarHandle: The handle to the console variable data. @return The current Vector value of the console variable.
func GetConVarVector2 ¶
GetConVarVector2
@brief Retrieves the current value of a Vector2D console variable. @param conVarHandle: The handle to the console variable data. @return The current Vector2D value of the console variable.
func GetConVarVector4 ¶
GetConVarVector4
@brief Retrieves the current value of a Vector4D console variable. @param conVarHandle: The handle to the console variable data. @return The current Vector4D value of the console variable.
func GetCurrentMap ¶
func GetCurrentMap() string
GetCurrentMap
@brief Returns the current map name. @return A reference to a string where the current map name will be stored.
func GetEconItemSystem ¶
func GetEconItemSystem() uintptr
GetEconItemSystem
@brief Returns a pointer to the Economy Item System. @return A pointer to the Econ Item System.
func GetEngineTime ¶
func GetEngineTime() float64
GetEngineTime
@brief Returns a high-precision time value for profiling the engine. @return A high-precision time value.
func GetEntData ¶
GetEntData
@brief Peeks into an entity's object schema and retrieves the integer value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param size: Number of bytes to read (valid values are 1, 2, 4 or 8). @return The integer value at the given memory location.
func GetEntData2 ¶
GetEntData2
@brief Peeks into an entity's object schema and retrieves the integer value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param size: Number of bytes to read (valid values are 1, 2, 4 or 8). @return The integer value at the given memory location.
func GetEntDataCString ¶ added in v2.7.0
GetEntDataCString
@brief Peeks into an entity's object schema and retrieves the string value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param size: Number of bytes to read. @return The string value at the given memory location.
func GetEntDataCString2 ¶ added in v2.7.0
GetEntDataCString2
@brief Peeks into an entity's object schema and retrieves the string value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param size: Number of bytes to read. @return The string value at the given memory location.
func GetEntDataColor ¶
GetEntDataColor
@brief Peeks into an entity's object schema and retrieves the color value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @return The color value at the given memory location.
func GetEntDataColor2 ¶
GetEntDataColor2
@brief Peeks into an entity's object schema and retrieves the color value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @return The color value at the given memory location.
func GetEntDataEnt ¶
GetEntDataEnt
@brief Peeks into an entity's object data and retrieves the entity handle at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @return The entity handle at the given memory location.
func GetEntDataEnt2 ¶
GetEntDataEnt2
@brief Peeks into an entity's object data and retrieves the entity handle at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @return The entity handle at the given memory location.
func GetEntDataFloat ¶
GetEntDataFloat
@brief Peeks into an entity's object schema and retrieves the float value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param size: Number of bytes to read (valid values are 1, 2, 4 or 8). @return The float value at the given memory location.
func GetEntDataFloat2 ¶
GetEntDataFloat2
@brief Peeks into an entity's object schema and retrieves the float value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param size: Number of bytes to read (valid values are 1, 2, 4 or 8). @return The float value at the given memory location.
func GetEntDataString ¶
GetEntDataString
@brief Peeks into an entity's object schema and retrieves the string value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @return The string value at the given memory location.
func GetEntDataString2 ¶
GetEntDataString2
@brief Peeks into an entity's object schema and retrieves the string value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @return The string value at the given memory location.
func GetEntDataVector2D ¶ added in v2.7.0
GetEntDataVector2D
@brief Peeks into an entity's object schema and retrieves the vector value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @return The vector value at the given memory location.
func GetEntDataVector2D2 ¶ added in v2.7.0
GetEntDataVector2D2
@brief Peeks into an entity's object schema and retrieves the vector value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @return The vector value at the given memory location.
func GetEntDataVector3D ¶ added in v2.7.0
GetEntDataVector3D
@brief Peeks into an entity's object schema and retrieves the vector value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @return The vector value at the given memory location.
func GetEntDataVector3D2 ¶ added in v2.7.0
GetEntDataVector3D2
@brief Peeks into an entity's object schema and retrieves the vector value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @return The vector value at the given memory location.
func GetEntDataVector4D ¶ added in v2.7.0
GetEntDataVector4D
@brief Peeks into an entity's object schema and retrieves the vector value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @return The vector value at the given memory location.
func GetEntDataVector4D2 ¶ added in v2.7.0
GetEntDataVector4D2
@brief Peeks into an entity's object schema and retrieves the vector value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @return The vector value at the given memory location.
func GetEntSchema ¶
GetEntSchema
@brief Retrieves an integer value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return An integer value at the given schema offset.
func GetEntSchema2 ¶
GetEntSchema2
@brief Retrieves an integer value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return An integer value at the given schema offset.
func GetEntSchemaArraySize ¶
GetEntSchemaArraySize
@brief Retrieves the count of values that an entity schema's array can store. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @return Size of array (in elements) or 0 if schema is not an array.
func GetEntSchemaArraySize2 ¶
GetEntSchemaArraySize2
@brief Retrieves the count of values that an entity schema's array can store. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @return Size of array (in elements) or 0 if schema is not an array.
func GetEntSchemaColor ¶
func GetEntSchemaColor(entityHandle int32, className string, memberName string, element int32) plugify.Vector4
GetEntSchemaColor
@brief Retrieves a color value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A color value at the given schema offset.
func GetEntSchemaColor2 ¶
func GetEntSchemaColor2(entity uintptr, className string, memberName string, element int32) plugify.Vector4
GetEntSchemaColor2
@brief Retrieves a color value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A color value at the given schema offset.
func GetEntSchemaEnt ¶
GetEntSchemaEnt
@brief Retrieves an entity handle from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaEnt2 ¶
GetEntSchemaEnt2
@brief Retrieves an entity handle from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaFloat ¶
func GetEntSchemaFloat(entityHandle int32, className string, memberName string, element int32) float64
GetEntSchemaFloat
@brief Retrieves a float value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A float value at the given schema offset.
func GetEntSchemaFloat2 ¶
GetEntSchemaFloat2
@brief Retrieves a float value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A float value at the given schema offset.
func GetEntSchemaString ¶
func GetEntSchemaString(entityHandle int32, className string, memberName string, element int32) string
GetEntSchemaString
@brief Retrieves a string value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaString2 ¶
GetEntSchemaString2
@brief Retrieves a string value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaVector2D ¶
func GetEntSchemaVector2D(entityHandle int32, className string, memberName string, element int32) plugify.Vector2
GetEntSchemaVector2D
@brief Retrieves a vector value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaVector2D2 ¶
func GetEntSchemaVector2D2(entity uintptr, className string, memberName string, element int32) plugify.Vector2
GetEntSchemaVector2D2
@brief Retrieves a vector value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A vector value at the given schema offset.
func GetEntSchemaVector3D ¶
func GetEntSchemaVector3D(entityHandle int32, className string, memberName string, element int32) plugify.Vector3
GetEntSchemaVector3D
@brief Retrieves a vector value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaVector3D2 ¶
func GetEntSchemaVector3D2(entity uintptr, className string, memberName string, element int32) plugify.Vector3
GetEntSchemaVector3D2
@brief Retrieves a vector value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A vector value at the given schema offset.
func GetEntSchemaVector4D ¶
func GetEntSchemaVector4D(entityHandle int32, className string, memberName string, element int32) plugify.Vector4
GetEntSchemaVector4D
@brief Retrieves a vector value from an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A string value at the given schema offset.
func GetEntSchemaVector4D2 ¶
func GetEntSchemaVector4D2(entity uintptr, className string, memberName string, element int32) plugify.Vector4
GetEntSchemaVector4D2
@brief Retrieves a vector value from an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param element: Element # (starting from 0) if schema is an array. @return A vector value at the given schema offset.
func GetEntityAbsAngles ¶
GetEntityAbsAngles
@brief Retrieves the angular rotation of an entity. @param entityHandle: The handle of the entity whose angular rotation is to be retrieved. @return A QAngle where the angular rotation will be stored.
func GetEntityAbsOrigin ¶
GetEntityAbsOrigin
@brief Retrieves the absolute origin of an entity. @param entityHandle: The handle of the entity whose absolute origin is to be retrieved. @return A vector where the absolute origin will be stored.
func GetEntityAbsScale ¶
GetEntityAbsScale
@brief Retrieves the absolute scale of an entity. @param entityHandle: The handle of the entity whose absolute scale is to be retrieved. @return A vector where the absolute scale will be stored.
func GetEntityAbsVelocity ¶
GetEntityAbsVelocity
@brief Retrieves the absolute velocity of an entity. @param entityHandle: The handle of the entity whose absolute velocity is to be retrieved. @return A vector where the absolute velocity will be stored.
func GetEntityAngRotation ¶
GetEntityAngRotation
@brief Retrieves the angular rotation of an entity. @param entityHandle: The handle of the entity whose angular rotation is to be retrieved. @return A vector where the angular rotation will be stored.
func GetEntityAngVelocity ¶
GetEntityAngVelocity
@brief Retrieves the angular velocity of an entity. @param entityHandle: The handle of the entity whose angular velocity is to be retrieved. @return A vector where the angular velocity will be stored.
func GetEntityAttachmentAngles ¶
GetEntityAttachmentAngles
@brief Retrieves the attachment angles of an entity. @param entityHandle: The handle of the entity whose attachment angles are to be retrieved. @param attachmentIndex: The attachment index. @return A vector representing the attachment angles (pitch, yaw, roll).
func GetEntityAttachmentForward ¶
GetEntityAttachmentForward
@brief Retrieves the forward vector of an entity's attachment. @param entityHandle: The handle of the entity whose attachment forward vector is to be retrieved. @param attachmentIndex: The attachment index. @return A vector representing the forward direction of the attachment.
func GetEntityAttachmentOrigin ¶
GetEntityAttachmentOrigin
@brief Retrieves the origin vector of an entity's attachment. @param entityHandle: The handle of the entity whose attachment origin is to be retrieved. @param attachmentIndex: The attachment index. @return A vector representing the origin of the attachment.
func GetEntityAttributeFloatValue ¶
GetEntityAttributeFloatValue
@brief Retrieves a float attribute value from an entity. @param entityHandle: The handle of the entity. @param name: The name of the attribute. @param defaultValue: The default value to return if the attribute does not exist. @return The float value of the attribute, or the default value if missing or invalid.
func GetEntityAttributeIntValue ¶
GetEntityAttributeIntValue
@brief Retrieves an integer attribute value from an entity. @param entityHandle: The handle of the entity. @param name: The name of the attribute. @param defaultValue: The default value to return if the attribute does not exist. @return The integer value of the attribute, or the default value if missing or invalid.
func GetEntityBaseVelocity ¶
GetEntityBaseVelocity
@brief Retrieves the base velocity of an entity. @param entityHandle: The handle of the entity whose base velocity is to be retrieved. @return A vector where the base velocity will be stored.
func GetEntityBoundingMaxs ¶
GetEntityBoundingMaxs
@brief Get a vector containing max bounds, centered on object. @param entityHandle: The handle of the entity to query @return Vector containing the maximum bounds of the entity's bounding box
func GetEntityBoundingMins ¶
GetEntityBoundingMins
@brief Get a vector containing min bounds, centered on object. @param entityHandle: The handle of the entity to query @return Vector containing the minimum bounds of the entity's bounding box
func GetEntityCenter ¶
GetEntityCenter
@brief Get vector to center of object - absolute coords. @param entityHandle: The handle of the entity to query @return Vector pointing to the center of the entity in absolute/world coordinates
func GetEntityClassname ¶
GetEntityClassname
@brief Retrieves the class name of an entity. @param entityHandle: The handle of the entity whose class name is to be retrieved. @return A string where the class name will be stored.
func GetEntityEffects ¶
GetEntityEffects
@brief Retrieves the effects of an entity. @param entityHandle: The handle of the entity whose effects are to be retrieved. @return The effect flags of the entity, or 0 if the entity is invalid.
func GetEntityEyeAngles ¶
GetEntityEyeAngles
@brief Get the qangles that this entity is looking at. @param entityHandle: The handle of the entity @return Eye angles as a vector (pitch, yaw, roll)
func GetEntityEyePosition ¶
GetEntityEyePosition
@brief Get vector to eye position - absolute coords. @param entityHandle: The handle of the entity @return Eye position in absolute/world coordinates
func GetEntityFlags ¶
GetEntityFlags
@brief Retrieves the flags of an entity. @param entityHandle: The handle of the entity whose flags are to be retrieved. @return The flags of the entity, or 0 if the entity is invalid.
func GetEntityForwardVector ¶
GetEntityForwardVector
@brief Get the forward vector of the entity. @param entityHandle: The handle of the entity to query @return Forward-facing direction vector of the entity
func GetEntityFriction ¶
GetEntityFriction
@brief Retrieves the friction of an entity. @param entityHandle: The handle of the entity whose friction is to be retrieved. @return The friction of the entity, or 0 if the entity is invalid.
func GetEntityGravity ¶
GetEntityGravity
@brief Retrieves the gravity scale of an entity. @param entityHandle: The handle of the entity whose gravity scale is to be retrieved. @return The gravity scale of the entity, or 0.0f if the entity is invalid.
func GetEntityGroundEntity ¶
GetEntityGroundEntity
@brief Retrieves the ground entity of an entity. @param entityHandle: The handle of the entity whose ground entity is to be retrieved. @return The handle of the ground entity, or INVALID_EHANDLE_INDEX if the entity is invalid.
func GetEntityHealth ¶
GetEntityHealth
@brief Retrieves the health of an entity. @param entityHandle: The handle of the entity whose health is to be retrieved. @return The health of the entity, or 0 if the entity is invalid.
func GetEntityLeftVector ¶
GetEntityLeftVector
@brief Get the left vector of the entity. @param entityHandle: The handle of the entity to query @return Left-facing direction vector of the entity (aligned with the y axis)
func GetEntityLocalAngVelocity ¶
GetEntityLocalAngVelocity
@brief Retrieves the local angular velocity of an entity. @param entityHandle: The handle of the entity whose local angular velocity is to be retrieved. @return A vector where the local angular velocity will be stored.
func GetEntityLocalAngles ¶
GetEntityLocalAngles
@brief Retrieves the angular rotation of an entity. @param entityHandle: The handle of the entity whose angular rotation is to be retrieved. @return A QAngle where the angular rotation will be stored.
func GetEntityLocalOrigin ¶
GetEntityLocalOrigin
@brief Retrieves the local origin of an entity. @param entityHandle: The handle of the entity whose local origin is to be retrieved. @return A vector where the local origin will be stored.
func GetEntityLocalScale ¶
GetEntityLocalScale
@brief Retrieves the local scale of an entity. @param entityHandle: The handle of the entity whose local scale is to be retrieved. @return A vector where the local scale will be stored.
func GetEntityLocalVelocity ¶
GetEntityLocalVelocity
@brief Retrieves the local velocity of an entity. @param entityHandle: The handle of the entity whose local velocity is to be retrieved. @return A vector where the local velocity will be stored.
func GetEntityMass ¶
GetEntityMass
@brief Retrieves the mass of an entity. @param entityHandle: The handle of the entity whose mass is to be retrieved. @return The mass of the entity, or 0 if the entity is invalid.
func GetEntityMaterialGroupHash ¶
GetEntityMaterialGroupHash
@brief Retrieves the material group hash of an entity. @param entityHandle: The handle of the entity. @return The material group hash.
func GetEntityMaterialGroupMask ¶
GetEntityMaterialGroupMask
@brief Retrieves the material group mask of an entity. @param entityHandle: The handle of the entity. @return The mesh group mask.
func GetEntityMaxHealth ¶
GetEntityMaxHealth
@brief Retrieves the max health of an entity. @param entityHandle: The handle of the entity whose max health is to be retrieved. @return The max health of the entity, or 0 if the entity is invalid.
func GetEntityModel ¶
GetEntityModel
@brief Retrieves the model name of an entity. @param entityHandle: The handle of the entity whose model name is to be retrieved. @return A string where the model name will be stored.
func GetEntityModelScale ¶
GetEntityModelScale
@brief Retrieves the model scale of an entity. @param entityHandle: The handle of the entity. @return The model scale factor.
func GetEntityName ¶
GetEntityName
@brief Retrieves the name of an entity. @param entityHandle: The handle of the entity whose name is to be retrieved.
func GetEntityOwner ¶
GetEntityOwner
@brief Retrieves the owner of an entity. @param entityHandle: The handle of the entity whose owner is to be retrieved. @return The handle of the owner entity, or INVALID_EHANDLE_INDEX if the entity is invalid.
func GetEntityParent ¶
GetEntityParent
@brief Retrieves the parent of an entity. @param entityHandle: The handle of the entity whose parent is to be retrieved. @return The handle of the parent entity, or INVALID_EHANDLE_INDEX if the entity is invalid.
func GetEntityRenderAlpha ¶
GetEntityRenderAlpha
@brief Retrieves the render alpha of an entity. @param entityHandle: The handle of the entity. @return The alpha modulation value.
func GetEntityRenderColor ¶
GetEntityRenderColor
@brief Retrieves the render color of an entity. @param entityHandle: The handle of the entity whose render color is to be retrieved. @return The raw color value of the entity's render color, or 0 if the entity is invalid.
func GetEntityRenderColor2 ¶
GetEntityRenderColor2
@brief Retrieves the render color of an entity. @param entityHandle: The handle of the entity. @return A vector representing the render color (R, G, B).
func GetEntityRightVector ¶
GetEntityRightVector
@brief Get the right vector of the entity. @param entityHandle: The handle of the entity to query @return Right-facing direction vector of the entity
func GetEntityTransform ¶
GetEntityTransform
@brief Get the entity-to-world transformation matrix. @param entityHandle: The handle of the entity to query @return 4x4 transformation matrix representing entity's position, rotation, and scale in world space
func GetEntityUpVector ¶
GetEntityUpVector
@brief Get the up vector of the entity. @param entityHandle: The handle of the entity to query @return Up-facing direction vector of the entity
func GetEntityWaterLevel ¶
GetEntityWaterLevel
@brief Retrieves the water level of an entity. @param entityHandle: The handle of the entity whose water level is to be retrieved. @return The water level of the entity, or 0.0f if the entity is invalid.
func GetEventBool ¶
GetEventBool
@brief Retrieves the boolean value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the boolean value. @return The boolean value associated with the key.
func GetEventEntity ¶
GetEventEntity
@brief Retrieves the entity address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the entity address. @return A pointer to the entity associated with the key.
func GetEventEntityHandle ¶
GetEventEntityHandle
@brief Retrieves the entity handle of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the entity handle. @return The entity handle associated with the key.
func GetEventEntityIndex ¶
GetEventEntityIndex
@brief Retrieves the entity index of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the entity index. @return The entity index associated with the key.
func GetEventFloat ¶
GetEventFloat
@brief Retrieves the float value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the float value. @return The float value associated with the key.
func GetEventInt ¶
GetEventInt
@brief Retrieves the integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the integer value. @return The integer value associated with the key.
func GetEventName ¶
GetEventName
@brief Retrieves the name of a game event. @param event: A pointer to the IGameEvent object containing event data. @return A string where the result will be stored.
func GetEventPlayerController ¶
GetEventPlayerController
@brief Retrieves the player controller address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player controller address. @return A pointer to the player controller associated with the key.
func GetEventPlayerIndex ¶
GetEventPlayerIndex
@brief Retrieves the player index of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player index. @return The player index associated with the key.
Deprecated: Use GetEventPlayerSlot instead. Will be removed soon
func GetEventPlayerPawn ¶
GetEventPlayerPawn
@brief Retrieves the player pawn address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player pawn address. @return A pointer to the player pawn associated with the key.
func GetEventPlayerSlot ¶
GetEventPlayerSlot
@brief Retrieves the player slot of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player index. @return The player slot associated with the key.
func GetEventPtr ¶
GetEventPtr
@brief Retrieves the pointer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the pointer value. @return The pointer value associated with the key.
func GetEventString ¶
GetEventString
@brief Retrieves the string value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the string value. @return A string where the result will be stored.
func GetEventUInt64 ¶
GetEventUInt64
@brief Retrieves the long integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the long integer value. @return The long integer value associated with the key.
func GetFirstActiveEntity ¶
func GetFirstActiveEntity() int32
GetFirstActiveEntity
@brief Retrieves the pointer to the first active entity. @return A handle to the first active entity.
func GetGameConfigAddress ¶
GetGameConfigAddress
@brief Retrieves the address associated with a name from the game configuration. @param id: An id to the game configuration from which to retrieve the address. @param name: The name whose address is to be retrieved. @return A pointer to the address associated with the specified name.
func GetGameConfigAddressAll ¶
GetGameConfigAddressAll
@brief Retrieves an address by scanning all loaded game configurations. @param name: The name whose address is to be retrieved. @return A pointer to the address associated with the specified name, or nullptr if not found.
func GetGameConfigOffset ¶
GetGameConfigOffset
@brief Retrieves the offset associated with a name from the game configuration. @param id: An id to the game configuration from which to retrieve the offset. @param name: The name whose offset is to be retrieved. @return The offset associated with the specified name.
func GetGameConfigOffsetAll ¶
GetGameConfigOffsetAll
@brief Retrieves an offset by scanning all loaded game configurations. @param name: The name whose offset is to be retrieved. @return The offset associated with the specified name, or -1 if not found.
func GetGameConfigPatch ¶
GetGameConfigPatch
@brief Retrieves a patch associated with the game configuration. @param id: An id to the game configuration from which to retrieve the patch. @param name: The name of the patch to be retrieved. @return A string where the patch will be stored.
func GetGameConfigPatchAll ¶
GetGameConfigPatchAll
@brief Retrieves a patch by scanning all loaded game configurations. @param name: The name of the patch to be retrieved. @return A string containing the patch, or an empty string if not found.
func GetGameConfigSignature ¶
GetGameConfigSignature
@brief Retrieves the signature associated with a name from the game configuration. @param id: An id to the game configuration from which to retrieve the signature. @param name: The name whose signature is to be resolved and retrieved. @return A pointer to the signature associated with the specified name.
func GetGameConfigSignatureAll ¶
GetGameConfigSignatureAll
@brief Retrieves a signature by scanning all loaded game configurations. @param name: The name whose signature is to be resolved and retrieved. @return A pointer to the signature associated with the specified name, or nullptr if not found.
func GetGameConfigVTable ¶
GetGameConfigVTable
@brief Retrieves a vtable associated with the game configuration. @param id: An id to the game configuration from which to retrieve the vtable. @param name: The name of the vtable to be retrieved. @return A pointer to the vtable associated with the specified name
func GetGameConfigVTableAll ¶
GetGameConfigVTableAll
@brief Retrieves a vtable by scanning all loaded game configurations. @param name: The name of the vtable to be retrieved. @return A pointer to the vtable associated with the specified name, or nullptr if not found.
func GetGameDirectory ¶
func GetGameDirectory() string
GetGameDirectory
@brief Returns the path of the game's directory. @return A reference to a string where the game directory path will be stored.
func GetGameFrameTime ¶
func GetGameFrameTime() float32
GetGameFrameTime
@brief Returns the time the game took processing the last frame. @return The frame time of the last processed frame.
func GetGamePlayerCount ¶
GetGamePlayerCount
@brief Retrieves the number of players on a specified team. @param team: The numeric identifier of the team (e.g., CS_TEAM_T, CS_TEAM_CT, CS_TEAM_SPECTATOR). @return The number of players on the team, or -1 if game rules are unavailable.
func GetGameRules ¶
func GetGameRules() uintptr
GetGameRules
@brief Retrieves the pointer to the current game rules instance. @return A pointer to the game rules object.
func GetGameRulesProxy ¶
func GetGameRulesProxy() uintptr
GetGameRulesProxy
@brief Retrieves the pointer to the current game rules proxy instance. @return A pointer to the game rules entity instance.
func GetGameTeamManager ¶
GetGameTeamManager
@brief Retrieves the team manager instance for a specified team. @param team: The numeric identifier of the team. @return A pointer to the corresponding CTeam instance, or nullptr if the team was not found.
func GetGameTeamScore ¶
GetGameTeamScore
@brief Retrieves the current score of a specified team. @param team: The numeric identifier of the team. @return The current score of the team, or -1 if the team could not be found.
func GetGameTickCount ¶
func GetGameTickCount() int32
GetGameTickCount
@brief Returns the game's internal tick count. @return The current tick count of the game.
func GetGameTime ¶
func GetGameTime() float32
GetGameTime
@brief Returns the game time based on the game tick. @return The current game time.
func GetGameTotalRoundsPlayed ¶
func GetGameTotalRoundsPlayed() int32
GetGameTotalRoundsPlayed
@brief Returns the total number of rounds played in the current match. @return The total number of rounds played, or -1 if the game rules are unavailable.
func GetLocalAddress ¶ added in v2.3.22
GetLocalAddress
@brief Returns the local network address of the host. @param onlyBase: If true, omits port, otherwise returning only the base address. @return A string representation of the local address.
func GetLoggerChannelColor ¶
GetLoggerChannelColor
@brief Retrieves the color setting of a logging channel. @param channelID: The ID of the logging channel. @return The color value of the specified logging channel.
func GetLoggerChannelFlags ¶
GetLoggerChannelFlags
@brief Retrieves the flags of a logging channel. @param channelID: The ID of the logging channel. @return The flags of the specified logging channel.
func GetLoggerChannelVerbosity ¶
GetLoggerChannelVerbosity
@brief Retrieves the verbosity level of a logging channel. @param channelID: The ID of the logging channel. @return The verbosity level of the specified logging channel.
func GetMaxClients ¶
func GetMaxClients() int32
GetMaxClients
@brief Returns the maximum number of clients that can connect to the server. @return The maximum client count, or -1 if global variables are not initialized.
func GetNextActiveEntity ¶
GetNextActiveEntity
@brief Retrieves the next active entity. @return Handle to the next entity.
func GetPrevActiveEntity ¶
GetPrevActiveEntity
@brief Retrieves the previous active entity. @return Handle to the previous entity.
func GetPublicAddress ¶ added in v2.3.22
GetPublicAddress
@brief Returns the public network address of the host. @param onlyBase: If true, omits port, otherwise returning only the base address. @return A string representation of the public address.
func GetSchemaChainOffset ¶
GetSchemaChainOffset
@brief Get the offset of a chain in a given schema class. @param className: The name of the class. @return The offset of the chain entity in the class (-2 for non-entity classes).
func GetSchemaClassSize ¶
GetSchemaClassSize
@brief Get the size of a schema class. @param className: The name of the class. @return The size of the class in bytes, or -1 if the class is not found.
func GetSchemaOffset ¶
GetSchemaOffset
@brief Get the offset of a member in a given schema class. @param className: The name of the class. @param memberName: The name of the member whose offset is to be retrieved. @return The offset of the member in the class.
func GetServerLanguage ¶
func GetServerLanguage() string
GetServerLanguage
@brief Returns the current server language. @return The server language as a string.
func GetSoundDuration ¶
GetSoundDuration
@brief Returns the duration of a specified sound. @param name: The name of the sound to check. @return The duration of the sound in seconds.
func GetTickInterval ¶
func GetTickInterval() float64
GetTickInterval
@brief Returns the number of seconds in between game server ticks. @return The tick interval value.
func GetTickedTime ¶
func GetTickedTime() float64
GetTickedTime
@brief Returns the simulated game time. @return The ticked time value.
func GetTransmitInfoFullUpdate ¶
GetTransmitInfoFullUpdate
@brief Gets the full update flag from the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @return True if full update is enabled, false otherwise.
func GetTransmitInfoPlayerSlot ¶
GetTransmitInfoPlayerSlot
@brief Gets the player slot value from the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @return The player slot value, or -1 if info is null.
func GetTransmitInfoTargetSlot ¶
GetTransmitInfoTargetSlot
@brief Gets a player slot value at a specific index in the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @param index: The index in the target slots vector. @return The player slot value, or -1 if the index is invalid or info is null.
func GetTransmitInfoTargetSlotsAll ¶
GetTransmitInfoTargetSlotsAll
@brief Gets the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @return The player slots array.
func GetTransmitInfoTargetSlotsCount ¶
GetTransmitInfoTargetSlotsCount
@brief Gets the count of target player slots. @param info: Pointer to the CCheckTransmitInfo structure. @return The number of target player slots, or 0 if the info pointer is null.
func GetUserFlagBits ¶
GetUserFlagBits
@brief Returns the client's access flags. @param playerSlot: The index of the player's slot. @return uint64 Access flags as a bitmask.
func GetWeaponVData ¶
GetWeaponVData
@brief Retrieves the weapon VData for a given weapon. @param entityHandle: The handle of the entity from which to retrieve the weapon VData. @return A pointer to the `CCSWeaponBaseVData` if the entity handle is valid and represents a player weapon; otherwise, nullptr.
func GetWeaponVDataFromKey ¶
GetWeaponVDataFromKey
@brief Retrieves the weapon VData for a given weapon name. @param name: The name of the weapon. @return A pointer to the `CCSWeaponBaseVData` if the entity handle is valid and represents a player weapon; otherwise, nullptr.
func GiveNamedItem ¶
GiveNamedItem
@brief Gives a named item (e.g., weapon) to a client. @param playerSlot: The index of the player's slot. @param itemName: The name of the item to give. @return The entity handle of the created item, or INVALID_EHANDLE_INDEX if the client or item is invalid.
func HasEntityAttribute ¶
HasEntityAttribute
@brief Checks if an entity has a specific attribute. @param entityHandle: The handle of the entity. @param name: The name of the attribute to check. @return True if the attribute exists, false otherwise.
func HasLoggerTag ¶
HasLoggerTag
@brief Checks if a specified tag exists in a logging channel. @param channelID: The ID of the logging channel. @param tag: The name of the tag to check for. @return True if the tag exists in the channel, otherwise false.
func HookConVarChange ¶
func HookConVarChange(conVarHandle uint64, callback ChangeCallback)
HookConVarChange
@brief Creates a hook for when a console variable's value is changed. @param conVarHandle: TThe handle to the console variable data. @param callback: The callback function to be executed when the variable's value changes.
func HookEntityOutput ¶
func HookEntityOutput(classname string, output string, callback HookEntityOutputCallback, type_ HookMode) bool
HookEntityOutput
@brief Adds an entity output hook on a specified entity class name. @param classname: The class name of the entity to hook the output for. @param output: The output event name to hook. @param callback: The callback function to invoke when the output is fired. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return True if the hook was successfully added, false otherwise.
func HookUserMessage ¶
func HookUserMessage(messageId int16, callback UserMessageCallback, mode HookMode) bool
HookUserMessage
@brief Hooks a user message with a callback. @param messageId: The ID of the message to hook. @param callback: The callback function to invoke when the message is received. @param mode: Whether to hook the message in the post mode (after processing) or pre mode (before processing). @return True if the hook was successfully added, false otherwise.
func IsBodyAttachedToParent ¶
IsBodyAttachedToParent
@brief Checks whether the entity is attached to a parent. @param entityHandle: The handle of the entity. @return True if attached to a parent, false otherwise.
func IsClientAlive ¶
IsClientAlive
@brief Checks if the client is alive or dead. @param playerSlot: The index of the player's slot. @return true if the client is alive, false if dead.
func IsClientAuthorized ¶
IsClientAuthorized
@brief Checks if a certain player has been authenticated. @param playerSlot: The index of the player's slot. @return true if the player is authenticated, false otherwise.
func IsClientConnected ¶
IsClientConnected
@brief Checks if a certain player is connected. @param playerSlot: The index of the player's slot. @return true if the player is connected, false otherwise.
func IsClientInGame ¶
IsClientInGame
@brief Checks if a certain player has entered the game. @param playerSlot: The index of the player's slot. @return true if the player is in the game, false otherwise.
func IsClientSourceTV ¶
IsClientSourceTV
@brief Checks if a certain player is the SourceTV bot. @param playerSlot: The index of the player's slot. @return true if the client is the SourceTV bot, false otherwise.
func IsConVarFlagSet ¶
IsConVarFlagSet
@brief Checks if a specific flag is set for a console variable. @param conVarHandle: The handle to the console variable data. @param flag: The flag to check against the console variable. @return True if the flag is set; otherwise, false.
func IsEntityPlayerController ¶
IsEntityPlayerController
@brief Checks if an entity is a player controller. @param entityHandle: The handle of the entity. @return True if the entity is a player controller, false otherwise.
func IsEntityPlayerPawn ¶
IsEntityPlayerPawn
@brief Checks if an entity is a player pawn. @param entityHandle: The handle of the entity. @return True if the entity is a player pawn, false otherwise.
func IsFakeClient ¶
IsFakeClient
@brief Checks if a certain player is a fake client. @param playerSlot: The index of the player's slot. @return true if the client is a fake client, false otherwise.
func IsLoggerChannelEnabledBySeverity ¶
func IsLoggerChannelEnabledBySeverity(channelID int32, severity LoggingSeverity) bool
IsLoggerChannelEnabledBySeverity
@brief Checks if a logging channel is enabled based on severity. @param channelID: The ID of the logging channel. @param severity: The severity of a logging operation. @return True if the channel is enabled for the specified severity, otherwise false.
func IsLoggerChannelEnabledByVerbosity ¶
func IsLoggerChannelEnabledByVerbosity(channelID int32, verbosity LoggingVerbosity) bool
IsLoggerChannelEnabledByVerbosity
@brief Checks if a logging channel is enabled based on verbosity. @param channelID: The ID of the logging channel. @param verbosity: The verbosity level to check. @return True if the channel is enabled for the specified verbosity, otherwise false.
func IsMapValid ¶
IsMapValid
@brief Returns whether a specified map is valid or not. @param mapname: The name of the map to check for validity. @return True if the map is valid, false otherwise.
func IsPrecached ¶
IsPrecached
@brief Checks if a specified file is precached. @param resource: The name of the file to check.
func IsSchemaFieldNetworked ¶
IsSchemaFieldNetworked
@brief Check if a schema field is networked. @param className: The name of the class. @param memberName: The name of the member to check. @return True if the member is networked, false otherwise.
func IsServerPaused ¶
func IsServerPaused() bool
IsServerPaused
@brief Checks if the server is currently paused. @return True if the server is paused, false otherwise.
func IsTransmitInfoAlwaysSet ¶
IsTransmitInfoAlwaysSet
@brief Checks if a bit is set in the TransmitAlways bitvec. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to check. @return True if the entity is marked to always transmit, false otherwise.
func IsTransmitInfoEntitySet ¶
IsTransmitInfoEntitySet
@brief Checks if a bit is set in the TransmitEntity bitvec. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to check. @return True if the entity is marked as transmittable, false otherwise.
func IsTransmitInfoNonPlayerSet ¶
IsTransmitInfoNonPlayerSet
@brief Checks if a bit is set in the TransmitNonPlayers bitvec. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The index of the non-player entity to check. @return True if the entity is marked as transmittable, false otherwise.
func IsValidEntHandle ¶
IsValidEntHandle
@brief Checks if the provided entity handle is valid. @param entityHandle: The entity handle to check. @return True if the entity handle is valid, false otherwise.
func IsValidEntPointer ¶
IsValidEntPointer
@brief Checks if the provided entity pointer is valid. @param entity: The entity pointer to check. @return True if the entity pointer is valid, false otherwise.
func KickClient ¶
func KickClient(playerSlot int32, reason NetworkDisconnectionReason, message string)
KickClient
@brief Disconnects a client from the server as soon as the next frame starts. @param playerSlot: The index of the player's slot to be kicked. @param reason: The network-level reason code describing why the client is being disconnected. @param message: The optional internal diagnostic message. If empty, no message is passed to the engine.
func KillsTimer ¶
func KillsTimer(timer uint32)
KillsTimer
@brief Stops and removes an existing timer. @param timer: A id of the Timer object to be stopped and removed.
func Kv1AddSubKey ¶
Kv1AddSubKey
@brief Adds a subkey to this KeyValues instance @param kv: Pointer to the parent KeyValues object @param subKey: Pointer to the KeyValues object to add as a child
func Kv1Clear ¶
func Kv1Clear(kv uintptr)
Kv1Clear
@brief Clears all subkeys and the current value @param kv: Pointer to the KeyValues object to clear
func Kv1Create ¶
Kv1Create
@brief Creates a new KeyValues instance @param setName: The name to assign to this KeyValues instance @return Pointer to the newly created KeyValues object
func Kv1CreateKey ¶
Kv1CreateKey
@brief Creates a new subkey with the specified name @param kv: Pointer to the parent KeyValues object @param keyName: The name for the new key @return Pointer to the newly created KeyValues subkey
func Kv1CreateNewKey ¶
Kv1CreateNewKey
@brief Creates a new subkey with an autogenerated name @param kv: Pointer to the parent KeyValues object @return Pointer to the newly created KeyValues subkey
func Kv1Destroy ¶
func Kv1Destroy(kv uintptr)
Kv1Destroy
@brief Destroys a KeyValues instance @param kv: Pointer to the KeyValues object to destroy
func Kv1FindKey ¶
Kv1FindKey
@brief Finds a key by name @param kv: Pointer to the KeyValues object to search in @param keyName: The name of the key to find @return Pointer to the found KeyValues subkey, or NULL if not found
func Kv1FindOrCreateKey ¶
Kv1FindOrCreateKey
@brief Finds a key by name or creates it if it doesn't exist @param kv: Pointer to the KeyValues object to search in @param keyName: The name of the key to find or create @return Pointer to the found or newly created KeyValues subkey (never NULL)
func Kv1GetBool ¶
Kv1GetBool
@brief Gets a boolean value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the boolean from @param defaultValue: The default value to return if the key is not found @return The boolean value associated with the key, or defaultValue if not found
func Kv1GetColor ¶
Kv1GetColor
@brief Gets a color value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the color from @param defaultValue: The default color value to return if the key is not found @return The color value as a 32-bit integer (RGBA)
func Kv1GetFirstSubKey ¶
Kv1GetFirstSubKey
@brief Gets the first subkey in the list @param kv: Pointer to the parent KeyValues object @return Pointer to the first subkey, or NULL if there are no children
func Kv1GetFloat ¶
Kv1GetFloat
@brief Gets a float value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the float from @param defaultValue: The default value to return if the key is not found @return The float value associated with the key, or defaultValue if not found
func Kv1GetInt ¶
Kv1GetInt
@brief Gets an integer value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the integer from @param defaultValue: The default value to return if the key is not found @return The integer value associated with the key, or defaultValue if not found
func Kv1GetName ¶
Kv1GetName
@brief Gets the section name of a KeyValues instance @param kv: Pointer to the KeyValues object @return The name of the KeyValues section
func Kv1GetNextKey ¶
Kv1GetNextKey
@brief Gets the next sibling key in the list @param kv: Pointer to the current KeyValues object @return Pointer to the next sibling key, or NULL if this is the last sibling
func Kv1GetPtr ¶
Kv1GetPtr
@brief Gets a pointer value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the pointer from @param defaultValue: The default pointer to return if the key is not found @return The pointer value associated with the key, or defaultValue if not found
func Kv1GetString ¶
Kv1GetString
@brief Gets a string value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the string from @param defaultValue: The default string to return if the key is not found @return The string value associated with the key, or defaultValue if not found
func Kv1IsEmpty ¶
Kv1IsEmpty
@brief Checks if a key exists and has no value or subkeys @param kv: Pointer to the KeyValues object @param keyName: The name of the key to check @return true if the key exists and is empty, false otherwise
func Kv1MakeCopy ¶
Kv1MakeCopy
@brief Makes a deep copy of a KeyValues tree @param kv: Pointer to the KeyValues object to copy @return Pointer to the newly allocated copy of the KeyValues tree
func Kv1SetBool ¶
Kv1SetBool
@brief Sets a boolean value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the boolean for @param value: The boolean value to set
func Kv1SetColor ¶
Kv1SetColor
@brief Sets a color value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the color for @param value: The color value as a 32-bit integer (RGBA)
func Kv1SetFloat ¶
Kv1SetFloat
@brief Sets a float value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the float for @param value: The float value to set
func Kv1SetInt ¶
Kv1SetInt
@brief Sets an integer value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the integer for @param value: The integer value to set
func Kv1SetName ¶
Kv1SetName
@brief Sets the section name of a KeyValues instance @param kv: Pointer to the KeyValues object @param name: The new name to assign to this KeyValues section
func Kv1SetPtr ¶
Kv1SetPtr
@brief Sets a pointer value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the pointer for @param value: The pointer value to set
func Kv1SetString ¶
Kv1SetString
@brief Sets a string value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the string for @param value: The string value to set
func Kv3ArrayAddElementToTail ¶
Kv3ArrayAddElementToTail
@brief Adds a new element to the end of the array @param kv: Pointer to the KeyValues3 object @return Pointer to the newly added element, or nullptr if invalid
func Kv3ArrayInsertElementAfter ¶
Kv3ArrayInsertElementAfter
@brief Inserts a new element after the specified index @param kv: Pointer to the KeyValues3 object @param elem: Index after which to insert @return Pointer to the newly inserted element, or nullptr if invalid
func Kv3ArrayInsertElementBefore ¶
Kv3ArrayInsertElementBefore
@brief Inserts a new element before the specified index @param kv: Pointer to the KeyValues3 object @param elem: Index before which to insert @return Pointer to the newly inserted element, or nullptr if invalid
func Kv3ArrayRemoveElement ¶
Kv3ArrayRemoveElement
@brief Removes an element from the array @param kv: Pointer to the KeyValues3 object @param elem: Index of the element to remove
func Kv3ArraySwapItems ¶
Kv3ArraySwapItems
@brief Swaps two array elements @param kv: Pointer to the KeyValues3 object @param idx1: Index of the first element @param idx2: Index of the second element
func Kv3CopyFrom ¶
Kv3CopyFrom
@brief Copies data from another KeyValues3 object @param kv: Pointer to the destination KeyValues3 object @param other: Pointer to the source KeyValues3 object
func Kv3Create ¶
Kv3Create
@brief Creates a new KeyValues3 object with specified type and subtype @param type_: The KV3 type enumeration value @param subtype: The KV3 subtype enumeration value @return Pointer to the newly created KeyValues3 object
func Kv3CreateCopy ¶
Kv3CreateCopy
@brief Creates a copy of an existing KeyValues3 object @param other: Pointer to the KeyValues3 object to copy @return Pointer to the newly created copy, or nullptr if other is null
func Kv3CreateWithCluster ¶
Kv3CreateWithCluster
@brief Creates a new KeyValues3 object with cluster element, type, and subtype @param cluster_elem: The cluster element index @param type_: The KV3 type enumeration value @param subtype: The KV3 subtype enumeration value @return Pointer to the newly created KeyValues3 object
func Kv3DebugPrint ¶
func Kv3DebugPrint(kv uintptr)
Kv3DebugPrint
@brief Prints debug information about the KeyValues3 object @param kv: Pointer to the KeyValues3 object
func Kv3Destroy ¶
func Kv3Destroy(kv uintptr)
Kv3Destroy
@brief Destroys a KeyValues3 object and frees its memory @param kv: Pointer to the KeyValues3 object to destroy
func Kv3FindMember ¶
Kv3FindMember
@brief Finds a member by name @param kv: Pointer to the KeyValues3 object @param name: Name of the member to find @return Pointer to the member KeyValues3 object, or nullptr if not found
func Kv3FindOrCreateMember ¶
Kv3FindOrCreateMember
@brief Finds a member by name, or creates it if it doesn't exist @param kv: Pointer to the KeyValues3 object @param name: Name of the member to find or create @return Pointer to the member KeyValues3 object, or nullptr if kv is null
func Kv3GetAllFlags ¶
Kv3GetAllFlags
@brief Gets all flags as a bitmask @param kv: Pointer to the KeyValues3 object @return Bitmask of all flags, or 0 if kv is null
func Kv3GetArrayElement ¶
Kv3GetArrayElement
@brief Gets an array element at the specified index @param kv: Pointer to the KeyValues3 object @param elem: Index of the element to get @return Pointer to the element KeyValues3 object, or nullptr if invalid
func Kv3GetArrayElementCount ¶
Kv3GetArrayElementCount
@brief Gets the number of elements in the array @param kv: Pointer to the KeyValues3 object @return Number of array elements, or 0 if kv is null or not an array
func Kv3GetBinaryBlob ¶
Kv3GetBinaryBlob
@brief Gets the binary blob from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return Vector containing the binary blob data, or empty vector if kv is null
func Kv3GetBinaryBlobSize ¶
Kv3GetBinaryBlobSize
@brief Gets the size of the binary blob in the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return Size of the binary blob in bytes, or 0 if kv is null
func Kv3GetBool ¶
Kv3GetBool
@brief Gets the boolean value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Boolean value or defaultValue
func Kv3GetChar ¶
Kv3GetChar
@brief Gets the char value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Char value or defaultValue
func Kv3GetColor ¶
Kv3GetColor
@brief Gets the color value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default color value to return if kv is null @return Color value as vec4 or defaultValue
func Kv3GetContext ¶
Kv3GetContext
@brief Gets the context associated with a KeyValues3 object @param kv: Pointer to the KeyValues3 object @return Pointer to the CKV3Arena, or nullptr if kv is null
func Kv3GetDouble ¶
Kv3GetDouble
@brief Gets the double value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Double value or defaultValue
func Kv3GetEHandle ¶
Kv3GetEHandle
@brief Gets the entity handle value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default entity handle value to return if kv is null @return Entity handle as int32_t or defaultValue
func Kv3GetFloat ¶
Kv3GetFloat
@brief Gets the float value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Float value or defaultValue
func Kv3GetInt ¶
Kv3GetInt
@brief Gets the signed 32-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int32_t value or defaultValue
func Kv3GetInt8 ¶
Kv3GetInt8
@brief Gets the signed 8-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int8_t value or defaultValue
func Kv3GetInt64 ¶
Kv3GetInt64
@brief Gets the signed 64-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int64_t value or defaultValue
func Kv3GetMatrix3x4 ¶
Kv3GetMatrix3x4
@brief Gets the 3x4 matrix value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default matrix to return if kv is null @return 3x4 matrix as mat4x4 or defaultValue
func Kv3GetMemberBool ¶
Kv3GetMemberBool
@brief Gets a boolean value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Boolean value or defaultValue
func Kv3GetMemberByIndex ¶
Kv3GetMemberByIndex
@brief Gets a member by index @param kv: Pointer to the KeyValues3 object @param index: Index of the member to get @return Pointer to the member KeyValues3 object, or nullptr if invalid
func Kv3GetMemberChar ¶
Kv3GetMemberChar
@brief Gets a char value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Char value or defaultValue
func Kv3GetMemberColor ¶
Kv3GetMemberColor
@brief Gets a color value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default color value to return if member not found @return Color value as vec4 or defaultValue
func Kv3GetMemberCount ¶
Kv3GetMemberCount
@brief Gets the number of members in the table @param kv: Pointer to the KeyValues3 object @return Number of table members, or 0 if kv is null or not a table
func Kv3GetMemberDouble ¶
Kv3GetMemberDouble
@brief Gets a double value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Double value or defaultValue
func Kv3GetMemberEHandle ¶
Kv3GetMemberEHandle
@brief Gets an entity handle value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default entity handle value to return if member not found @return Entity handle as int32_t or defaultValue
func Kv3GetMemberFloat ¶
Kv3GetMemberFloat
@brief Gets a float value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Float value or defaultValue
func Kv3GetMemberInt ¶
Kv3GetMemberInt
@brief Gets a signed 32-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int32_t value or defaultValue
func Kv3GetMemberInt8 ¶
Kv3GetMemberInt8
@brief Gets a signed 8-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int8_t value or defaultValue
func Kv3GetMemberInt64 ¶
Kv3GetMemberInt64
@brief Gets a signed 64-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int64_t value or defaultValue
func Kv3GetMemberMatrix3x4 ¶
func Kv3GetMemberMatrix3x4(kv uintptr, name string, defaultValue plugify.Matrix4x4) plugify.Matrix4x4
Kv3GetMemberMatrix3x4
@brief Gets a 3x4 matrix value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default matrix to return if member not found @return 3x4 matrix as mat4x4 or defaultValue
func Kv3GetMemberName ¶
Kv3GetMemberName
@brief Gets the name of a member at the specified index @param kv: Pointer to the KeyValues3 object @param index: Index of the member @return Name of the member, or empty string if invalid
func Kv3GetMemberPointer ¶
Kv3GetMemberPointer
@brief Gets a pointer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Pointer value as uintptr_t or defaultValue
func Kv3GetMemberQAngle ¶
Kv3GetMemberQAngle
@brief Gets an angle (QAngle) value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default angle to return if member not found @return QAngle as vec3 or defaultValue
func Kv3GetMemberQuaternion ¶
Kv3GetMemberQuaternion
@brief Gets a quaternion value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default quaternion to return if member not found @return Quaternion as vec4 or defaultValue
func Kv3GetMemberShort ¶
Kv3GetMemberShort
@brief Gets a signed 16-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int16_t value or defaultValue
func Kv3GetMemberString ¶
Kv3GetMemberString
@brief Gets a string value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default string to return if member not found @return String value or defaultValue
func Kv3GetMemberStringToken ¶
Kv3GetMemberStringToken
@brief Gets a string token value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default token value to return if member not found @return String token hash code or defaultValue
func Kv3GetMemberUChar32 ¶
Kv3GetMemberUChar32
@brief Gets a 32-bit Unicode character value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return 32-bit Unicode character value or defaultValue
func Kv3GetMemberUInt ¶
Kv3GetMemberUInt
@brief Gets an unsigned 32-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint32_t value or defaultValue
func Kv3GetMemberUInt8 ¶
Kv3GetMemberUInt8
@brief Gets an unsigned 8-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint8_t value or defaultValue
func Kv3GetMemberUInt64 ¶
Kv3GetMemberUInt64
@brief Gets an unsigned 64-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint64_t value or defaultValue
func Kv3GetMemberUShort ¶
Kv3GetMemberUShort
@brief Gets an unsigned 16-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint16_t value or defaultValue
func Kv3GetMemberVector ¶
Kv3GetMemberVector
@brief Gets a 3D vector value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default vector to return if member not found @return 3D vector or defaultValue
func Kv3GetMemberVector2D ¶
Kv3GetMemberVector2D
@brief Gets a 2D vector value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default 2D vector to return if member not found @return 2D vector or defaultValue
func Kv3GetMemberVector4D ¶
Kv3GetMemberVector4D
@brief Gets a 4D vector value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default 4D vector to return if member not found @return 4D vector or defaultValue
func Kv3GetMetaData ¶
Kv3GetMetaData
@brief Gets the metadata associated with a KeyValues3 object @param kv: Pointer to the KeyValues3 object @param ppCtx: Pointer to store the context pointer @return Pointer to the KV3MetaData_t structure, or nullptr if kv is null
func Kv3GetPointer ¶
Kv3GetPointer
@brief Gets the pointer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null @return Pointer value as uintptr_t or defaultValue
func Kv3GetQAngle ¶
Kv3GetQAngle
@brief Gets the angle (QAngle) value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default angle to return if kv is null @return QAngle as vec3 or defaultValue
func Kv3GetQuaternion ¶
Kv3GetQuaternion
@brief Gets the quaternion value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default quaternion to return if kv is null @return Quaternion as vec4 or defaultValue
func Kv3GetShort ¶
Kv3GetShort
@brief Gets the signed 16-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int16_t value or defaultValue
func Kv3GetString ¶
Kv3GetString
@brief Gets the string value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default string to return if kv is null or value is empty @return String value or defaultValue
func Kv3GetStringToken ¶
Kv3GetStringToken
@brief Gets the string token value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default token value to return if kv is null @return String token hash code or defaultValue
func Kv3GetSubType ¶
Kv3GetSubType
@brief Gets the subtype of the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return The subtype enumeration value, or 0 if kv is null
func Kv3GetSubTypeAsString ¶
Kv3GetSubTypeAsString
@brief Gets the subtype as a string representation @param kv: Pointer to the KeyValues3 object @return String representation of the subtype, or empty string if kv is null
func Kv3GetType ¶
Kv3GetType
@brief Gets the basic type of the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return The type enumeration value, or 0 if kv is null
func Kv3GetTypeAsString ¶
Kv3GetTypeAsString
@brief Gets the type as a string representation @param kv: Pointer to the KeyValues3 object @return String representation of the type, or empty string if kv is null
func Kv3GetTypeEx ¶
Kv3GetTypeEx
@brief Gets the extended type of the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return The extended type enumeration value, or 0 if kv is null
func Kv3GetUChar32 ¶
Kv3GetUChar32
@brief Gets the 32-bit Unicode character value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return 32-bit Unicode character value or defaultValue
func Kv3GetUInt ¶
Kv3GetUInt
@brief Gets the unsigned 32-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint32_t value or defaultValue
func Kv3GetUInt8 ¶
Kv3GetUInt8
@brief Gets the unsigned 8-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint8_t value or defaultValue
func Kv3GetUInt64 ¶
Kv3GetUInt64
@brief Gets the unsigned 64-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint64_t value or defaultValue
func Kv3GetUShort ¶
Kv3GetUShort
@brief Gets the unsigned 16-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint16_t value or defaultValue
func Kv3GetVector ¶
Kv3GetVector
@brief Gets the 3D vector value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default vector to return if kv is null @return 3D vector or defaultValue
func Kv3GetVector2D ¶
Kv3GetVector2D
@brief Gets the 2D vector value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default 2D vector to return if kv is null @return 2D vector or defaultValue
func Kv3GetVector4D ¶
Kv3GetVector4D
@brief Gets the 4D vector value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default 4D vector to return if kv is null @return 4D vector or defaultValue
func Kv3HasAnyFlags ¶
Kv3HasAnyFlags
@brief Checks if any flags are set @param kv: Pointer to the KeyValues3 object @return true if any flags are set, false otherwise
func Kv3HasFlag ¶
Kv3HasFlag
@brief Checks if a specific flag is set @param kv: Pointer to the KeyValues3 object @param flag: The flag to check @return true if the flag is set, false otherwise
func Kv3HasInvalidMemberNames ¶
Kv3HasInvalidMemberNames
@brief Checks if the object has invalid member names @param kv: Pointer to the KeyValues3 object @return true if invalid member names exist, false otherwise
func Kv3HasMember ¶
Kv3HasMember
@brief Checks if a member with the specified name exists @param kv: Pointer to the KeyValues3 object @param name: Name of the member to check @return true if the member exists, false otherwise
func Kv3IsArray ¶
Kv3IsArray
@brief Checks if the KeyValues3 object is an array @param kv: Pointer to the KeyValues3 object @return true if the object is an array, false otherwise
func Kv3IsKV3Array ¶
Kv3IsKV3Array
@brief Checks if the KeyValues3 object is a KV3 array @param kv: Pointer to the KeyValues3 object @return true if the object is a KV3 array, false otherwise
func Kv3IsNull ¶
Kv3IsNull
@brief Checks if the KeyValues3 object is null @param kv: Pointer to the KeyValues3 object @return true if the object is null or the pointer is null, false otherwise
func Kv3IsString ¶
Kv3IsString
@brief Checks if the KeyValues3 object is a string @param kv: Pointer to the KeyValues3 object @return true if the object is a string, false otherwise
func Kv3IsTable ¶
Kv3IsTable
@brief Checks if the KeyValues3 object is a table @param kv: Pointer to the KeyValues3 object @return true if the object is a table, false otherwise
func Kv3Load ¶
Kv3Load
@brief Loads KeyValues3 data from a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromBuffer ¶
func Kv3LoadFromBuffer(context uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
Kv3LoadFromBuffer
@brief Loads KeyValues3 data from a buffer into a context @param context: Pointer to the KeyValues3 context @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromFile ¶
Kv3LoadFromFile
@brief Loads KeyValues3 data from a file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param filename: Name of the file to load @param path: Path to the file @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromFileToContext ¶
func Kv3LoadFromFileToContext(context uintptr, error_ *string, filename string, path string, flags uint32) bool
Kv3LoadFromFileToContext
@brief Loads KeyValues3 data from a file into a context @param context: Pointer to the KeyValues3 context @param error_: Output string for error messages @param filename: Name of the file to load @param path: Path to the file @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromJSON ¶
Kv3LoadFromJSON
@brief Loads KeyValues3 data from a JSON string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: JSON string @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromJSONFile ¶
func Kv3LoadFromJSONFile(kv uintptr, error_ *string, path string, filename string, flags uint32) bool
Kv3LoadFromJSONFile
@brief Loads KeyValues3 data from a JSON file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param path: Path to the file @param filename: Name of the file to load @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromKV1File ¶
func Kv3LoadFromKV1File(kv uintptr, error_ *string, path string, filename string, esc_behavior uint8, flags uint32) bool
Kv3LoadFromKV1File
@brief Loads KeyValues3 data from a KeyValues1 file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param path: Path to the file @param filename: Name of the file to load @param esc_behavior: Escape sequence behavior for KV1 text @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromKV1Text ¶
func Kv3LoadFromKV1Text(kv uintptr, error_ *string, input string, esc_behavior uint8, kv_name string, unk bool, flags uint32) bool
Kv3LoadFromKV1Text
@brief Loads KeyValues3 data from a KeyValues1 text string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: KV1 text string @param esc_behavior: Escape sequence behavior for KV1 text @param kv_name: Name for the KeyValues3 object @param unk: Unknown boolean parameter @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromKV1TextTranslated ¶
func Kv3LoadFromKV1TextTranslated(kv uintptr, error_ *string, input string, esc_behavior uint8, translation uintptr, unk1 int32, kv_name string, unk2 bool, flags uint32) bool
Kv3LoadFromKV1TextTranslated
@brief Loads KeyValues3 data from a KeyValues1 text string with translation @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: KV1 text string @param esc_behavior: Escape sequence behavior for KV1 text @param translation: Pointer to translation table @param unk1: Unknown integer parameter @param kv_name: Name for the KeyValues3 object @param unk2: Unknown boolean parameter @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromKV3OrKV1 ¶
func Kv3LoadFromKV3OrKV1(kv uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
Kv3LoadFromKV3OrKV1
@brief Loads data from a buffer that may be KV3 or KV1 format @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromOldSchemaText ¶
func Kv3LoadFromOldSchemaText(kv uintptr, error_ *string, input []uint8, kv_name string, flags uint32) bool
Kv3LoadFromOldSchemaText
@brief Loads KeyValues3 data from old schema text format @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadFromText ¶
Kv3LoadFromText
@brief Loads KeyValues3 data from a text string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Text string containing KV3 data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3LoadTextNoHeader ¶
func Kv3LoadTextNoHeader(kv uintptr, error_ *string, input string, kv_name string, flags uint32) bool
Kv3LoadTextNoHeader
@brief Loads KeyValues3 text without a header @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Text string containing KV3 data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func Kv3OverlayKeysFrom ¶
Kv3OverlayKeysFrom
@brief Overlays keys from another KeyValues3 object @param kv: Pointer to the destination KeyValues3 object @param other: Pointer to the source KeyValues3 object @param depth: Whether to perform a deep overlay
func Kv3RemoveMember ¶
Kv3RemoveMember
@brief Removes a member from the table @param kv: Pointer to the KeyValues3 object @param name: Name of the member to remove @return true if the member was removed, false otherwise
func Kv3Save ¶
Kv3Save
@brief Saves KeyValues3 data to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output buffer data @param flags: Saving flags @return true if successful, false otherwise
func Kv3SaveAsJSON ¶
Kv3SaveAsJSON
@brief Saves KeyValues3 data as JSON to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output JSON data @return true if successful, false otherwise
func Kv3SaveAsJSONString ¶
Kv3SaveAsJSONString
@brief Saves KeyValues3 data as a JSON string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: String to store the JSON output @return true if successful, false otherwise
func Kv3SaveAsKV1Text ¶
Kv3SaveAsKV1Text
@brief Saves KeyValues3 data as KeyValues1 text to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output KV1 text data @param esc_behavior: Escape sequence behavior for KV1 text @return true if successful, false otherwise
func Kv3SaveAsKV1TextTranslated ¶
func Kv3SaveAsKV1TextTranslated(kv uintptr, error_ *string, output *[]uint8, esc_behavior uint8, translation uintptr, unk int32) bool
Kv3SaveAsKV1TextTranslated
@brief Saves KeyValues3 data as KeyValues1 text with translation to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output KV1 text data @param esc_behavior: Escape sequence behavior for KV1 text @param translation: Pointer to translation table @param unk: Unknown integer parameter @return true if successful, false otherwise
func Kv3SaveTextNoHeader ¶
Kv3SaveTextNoHeader
@brief Saves KeyValues3 text without a header to a string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: String to store the text output @param flags: Saving flags @return true if successful, false otherwise
func Kv3SaveTextNoHeaderToBuffer ¶
Kv3SaveTextNoHeaderToBuffer
@brief Saves KeyValues3 text without a header to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output text data @param flags: Saving flags @return true if successful, false otherwise
func Kv3SaveTextToString ¶
Kv3SaveTextToString
@brief Saves KeyValues3 text to a string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: String to store the text output @param flags: Saving flags @return true if successful, false otherwise
func Kv3SaveToFile ¶
Kv3SaveToFile
@brief Saves KeyValues3 data to a file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param filename: Name of the file to save @param path: Path to save the file @param flags: Saving flags @return true if successful, false otherwise
func Kv3SetAllFlags ¶
Kv3SetAllFlags
@brief Sets all flags from a bitmask @param kv: Pointer to the KeyValues3 object @param flags: Bitmask of flags to set
func Kv3SetArrayElementCount ¶
Kv3SetArrayElementCount
@brief Sets the number of elements in the array @param kv: Pointer to the KeyValues3 object @param count: Number of elements to set @param type_: Type of array elements @param subtype: Subtype of array elements
func Kv3SetBool ¶
Kv3SetBool
@brief Sets the KeyValues3 object to a boolean value @param kv: Pointer to the KeyValues3 object @param value: Boolean value to set
func Kv3SetChar ¶
Kv3SetChar
@brief Sets the KeyValues3 object to a char value @param kv: Pointer to the KeyValues3 object @param value: Char value to set
func Kv3SetColor ¶
Kv3SetColor
@brief Sets the KeyValues3 object to a color value @param kv: Pointer to the KeyValues3 object @param color: Color value as vec4 to set
func Kv3SetDouble ¶
Kv3SetDouble
@brief Sets the KeyValues3 object to a double value @param kv: Pointer to the KeyValues3 object @param value: Double value to set
func Kv3SetEHandle ¶
Kv3SetEHandle
@brief Sets the KeyValues3 object to an entity handle value @param kv: Pointer to the KeyValues3 object @param ehandle: Entity handle value to set
func Kv3SetFlag ¶
Kv3SetFlag
@brief Sets or clears a specific flag @param kv: Pointer to the KeyValues3 object @param flag: The flag to modify @param state: true to set the flag, false to clear it
func Kv3SetFloat ¶
Kv3SetFloat
@brief Sets the KeyValues3 object to a float value @param kv: Pointer to the KeyValues3 object @param value: Float value to set
func Kv3SetHasInvalidMemberNames ¶
Kv3SetHasInvalidMemberNames
@brief Sets the invalid member names flag @param kv: Pointer to the KeyValues3 object @param bValue: true to mark as having invalid member names, false otherwise
func Kv3SetInt ¶
Kv3SetInt
@brief Sets the KeyValues3 object to a signed 32-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int32_t value to set
func Kv3SetInt8 ¶
Kv3SetInt8
@brief Sets the KeyValues3 object to a signed 8-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int8_t value to set
func Kv3SetInt64 ¶
Kv3SetInt64
@brief Sets the KeyValues3 object to a signed 64-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int64_t value to set
func Kv3SetMatrix3x4 ¶
Kv3SetMatrix3x4
@brief Sets the KeyValues3 object to a 3x4 matrix value @param kv: Pointer to the KeyValues3 object @param matrix: 3x4 matrix to set (as mat4x4)
func Kv3SetMemberBool ¶
Kv3SetMemberBool
@brief Sets a table member to a boolean value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Boolean value to set
func Kv3SetMemberChar ¶
Kv3SetMemberChar
@brief Sets a table member to a char value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Char value to set
func Kv3SetMemberColor ¶
Kv3SetMemberColor
@brief Sets a table member to a color value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param color: Color value as vec4 to set
func Kv3SetMemberDouble ¶
Kv3SetMemberDouble
@brief Sets a table member to a double value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Double value to set
func Kv3SetMemberEHandle ¶
Kv3SetMemberEHandle
@brief Sets a table member to an entity handle value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param ehandle: Entity handle value to set
func Kv3SetMemberFloat ¶
Kv3SetMemberFloat
@brief Sets a table member to a float value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Float value to set
func Kv3SetMemberInt ¶
Kv3SetMemberInt
@brief Sets a table member to a signed 32-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int32_t value to set
func Kv3SetMemberInt8 ¶
Kv3SetMemberInt8
@brief Sets a table member to a signed 8-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int8_t value to set
func Kv3SetMemberInt64 ¶
Kv3SetMemberInt64
@brief Sets a table member to a signed 64-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int64_t value to set
func Kv3SetMemberMatrix3x4 ¶
Kv3SetMemberMatrix3x4
@brief Sets a table member to a 3x4 matrix value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param matrix: 3x4 matrix to set (as mat4x4)
func Kv3SetMemberPointer ¶
Kv3SetMemberPointer
@brief Sets a table member to a pointer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param ptr: Pointer value as uintptr_t to set
func Kv3SetMemberQAngle ¶
Kv3SetMemberQAngle
@brief Sets a table member to an angle (QAngle) value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param ang: QAngle to set (as vec3)
func Kv3SetMemberQuaternion ¶
Kv3SetMemberQuaternion
@brief Sets a table member to a quaternion value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param quat: Quaternion to set (as vec4)
func Kv3SetMemberShort ¶
Kv3SetMemberShort
@brief Sets a table member to a signed 16-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int16_t value to set
func Kv3SetMemberString ¶
Kv3SetMemberString
@brief Sets a table member to a string value (copies the string) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param str: String value to set @param subtype: String subtype enumeration value
func Kv3SetMemberStringExternal ¶
Kv3SetMemberStringExternal
@brief Sets a table member to an external string value (does not copy) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param str: External string value to reference @param subtype: String subtype enumeration value
func Kv3SetMemberStringToken ¶
Kv3SetMemberStringToken
@brief Sets a table member to a string token value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param token: String token hash code to set
func Kv3SetMemberToBinaryBlob ¶
Kv3SetMemberToBinaryBlob
@brief Sets a table member to a binary blob (copies the data) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param blob: Vector containing the binary blob data
func Kv3SetMemberToBinaryBlobExternal ¶
Kv3SetMemberToBinaryBlobExternal
@brief Sets a table member to an external binary blob (does not copy) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param blob: Vector containing the external binary blob data @param free_mem: Whether to free the memory when the object is destroyed
func Kv3SetMemberToCopyOfValue ¶
Kv3SetMemberToCopyOfValue
@brief Sets a table member to a copy of another KeyValues3 value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param other: Pointer to the KeyValues3 object to copy
func Kv3SetMemberToEmptyArray ¶
Kv3SetMemberToEmptyArray
@brief Sets a table member to an empty array @param kv: Pointer to the KeyValues3 object @param name: Name of the member
func Kv3SetMemberToEmptyTable ¶
Kv3SetMemberToEmptyTable
@brief Sets a table member to an empty table @param kv: Pointer to the KeyValues3 object @param name: Name of the member
func Kv3SetMemberToNull ¶
Kv3SetMemberToNull
@brief Sets a table member to null @param kv: Pointer to the KeyValues3 object @param name: Name of the member
func Kv3SetMemberUChar32 ¶
Kv3SetMemberUChar32
@brief Sets a table member to a 32-bit Unicode character value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: 32-bit Unicode character value to set
func Kv3SetMemberUInt ¶
Kv3SetMemberUInt
@brief Sets a table member to an unsigned 32-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint32_t value to set
func Kv3SetMemberUInt8 ¶
Kv3SetMemberUInt8
@brief Sets a table member to an unsigned 8-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint8_t value to set
func Kv3SetMemberUInt64 ¶
Kv3SetMemberUInt64
@brief Sets a table member to an unsigned 64-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint64_t value to set
func Kv3SetMemberUShort ¶
Kv3SetMemberUShort
@brief Sets a table member to an unsigned 16-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint16_t value to set
func Kv3SetMemberVector ¶
Kv3SetMemberVector
@brief Sets a table member to a 3D vector value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param vec: 3D vector to set
func Kv3SetMemberVector2D ¶
Kv3SetMemberVector2D
@brief Sets a table member to a 2D vector value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param vec2d: 2D vector to set
func Kv3SetMemberVector4D ¶
Kv3SetMemberVector4D
@brief Sets a table member to a 4D vector value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param vec4d: 4D vector to set
func Kv3SetPointer ¶
Kv3SetPointer
@brief Sets the KeyValues3 object to a pointer value @param kv: Pointer to the KeyValues3 object @param ptr: Pointer value as uintptr_t to set
func Kv3SetQAngle ¶
Kv3SetQAngle
@brief Sets the KeyValues3 object to an angle (QAngle) value @param kv: Pointer to the KeyValues3 object @param ang: QAngle to set (as vec3)
func Kv3SetQuaternion ¶
Kv3SetQuaternion
@brief Sets the KeyValues3 object to a quaternion value @param kv: Pointer to the KeyValues3 object @param quat: Quaternion to set (as vec4)
func Kv3SetShort ¶
Kv3SetShort
@brief Sets the KeyValues3 object to a signed 16-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int16_t value to set
func Kv3SetString ¶
Kv3SetString
@brief Sets the KeyValues3 object to a string value (copies the string) @param kv: Pointer to the KeyValues3 object @param str: String value to set @param subtype: String subtype enumeration value
func Kv3SetStringExternal ¶
Kv3SetStringExternal
@brief Sets the KeyValues3 object to an external string value (does not copy) @param kv: Pointer to the KeyValues3 object @param str: External string value to reference @param subtype: String subtype enumeration value
func Kv3SetStringToken ¶
Kv3SetStringToken
@brief Sets the KeyValues3 object to a string token value @param kv: Pointer to the KeyValues3 object @param token: String token hash code to set
func Kv3SetToBinaryBlob ¶
Kv3SetToBinaryBlob
@brief Sets the KeyValues3 object to a binary blob (copies the data) @param kv: Pointer to the KeyValues3 object @param blob: Vector containing the binary blob data
func Kv3SetToBinaryBlobExternal ¶
Kv3SetToBinaryBlobExternal
@brief Sets the KeyValues3 object to an external binary blob (does not copy) @param kv: Pointer to the KeyValues3 object @param blob: Vector containing the external binary blob data @param free_mem: Whether to free the memory when the object is destroyed
func Kv3SetToEmptyKV3Array ¶
func Kv3SetToEmptyKV3Array(kv uintptr)
Kv3SetToEmptyKV3Array
@brief Sets the KeyValues3 object to an empty KV3 array @param kv: Pointer to the KeyValues3 object
func Kv3SetToEmptyTable ¶
func Kv3SetToEmptyTable(kv uintptr)
Kv3SetToEmptyTable
@brief Sets the KeyValues3 object to an empty table @param kv: Pointer to the KeyValues3 object
func Kv3SetToNull ¶
func Kv3SetToNull(kv uintptr)
Kv3SetToNull
@brief Sets the KeyValues3 object to null @param kv: Pointer to the KeyValues3 object
func Kv3SetUChar32 ¶
Kv3SetUChar32
@brief Sets the KeyValues3 object to a 32-bit Unicode character value @param kv: Pointer to the KeyValues3 object @param value: 32-bit Unicode character value to set
func Kv3SetUInt ¶
Kv3SetUInt
@brief Sets the KeyValues3 object to an unsigned 32-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint32_t value to set
func Kv3SetUInt8 ¶
Kv3SetUInt8
@brief Sets the KeyValues3 object to an unsigned 8-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint8_t value to set
func Kv3SetUInt64 ¶
Kv3SetUInt64
@brief Sets the KeyValues3 object to an unsigned 64-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint64_t value to set
func Kv3SetUShort ¶
Kv3SetUShort
@brief Sets the KeyValues3 object to an unsigned 16-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint16_t value to set
func Kv3SetVector ¶
Kv3SetVector
@brief Sets the KeyValues3 object to a 3D vector value @param kv: Pointer to the KeyValues3 object @param vec: 3D vector to set
func Kv3SetVector2D ¶
Kv3SetVector2D
@brief Sets the KeyValues3 object to a 2D vector value @param kv: Pointer to the KeyValues3 object @param vec2d: 2D vector to set
func Kv3SetVector4D ¶
Kv3SetVector4D
@brief Sets the KeyValues3 object to a 4D vector value @param kv: Pointer to the KeyValues3 object @param vec4d: 4D vector to set
func Kv3ToString ¶
Kv3ToString
@brief Converts the KeyValues3 object to a string representation @param kv: Pointer to the KeyValues3 object @param flags: Formatting flags for the string conversion @return String representation of the object, or empty string if kv is null
func LerpVectors ¶
LerpVectors
@brief Linear interpolation between two vectors @param start: Starting vector @param end: Ending vector @param factor: Interpolation factor (0.0 to 1.0) @return Interpolated vector
func LoadEventsFromFile ¶
LoadEventsFromFile
@brief Load game event descriptions from a file (e.g., "resource/gameevents.res"). @param path: The path to the file containing event descriptions. @param searchAll: A boolean indicating whether to search all paths for the file. @return An integer indicating the result of the loading operation.
func LoadGameConfigFile ¶
LoadGameConfigFile
@brief Loads a game configuration file. @param paths: The paths to the game configuration file to be loaded. @return A id to the loaded game configuration object, or -1 if loading fails.
func Log ¶
func Log(channelID int32, severity LoggingSeverity, message string) int32
Log
@brief Logs a message to a specified channel with a severity level. @param channelID: The ID of the logging channel. @param severity: The severity level for the log message. @param message: The message to log. @return An integer indicating the result of the logging operation.
func LogColored ¶
func LogColored(channelID int32, severity LoggingSeverity, color plugify.Vector4, message string) int32
LogColored
@brief Logs a colored message to a specified channel with a severity level. @param channelID: The ID of the logging channel. @param severity: The severity level for the log message. @param color: The color for the log message. @param message: The message to log. @return An integer indicating the result of the logging operation.
func LogFull ¶
func LogFull(channelID int32, severity LoggingSeverity, file string, line int32, function string, message string) int32
LogFull
@brief Logs a detailed message to a specified channel, including source code info. @param channelID: The ID of the logging channel. @param severity: The severity level for the log message. @param file: The file name where the log call occurred. @param line: The line number where the log call occurred. @param function: The name of the function where the log call occurred. @param message: The message to log. @return An integer indicating the result of the logging operation.
func LogFullColored ¶
func LogFullColored(channelID int32, severity LoggingSeverity, file string, line int32, function string, color plugify.Vector4, message string) int32
LogFullColored
@brief Logs a detailed colored message to a specified channel, including source code info. @param channelID: The ID of the logging channel. @param severity: The severity level for the log message. @param file: The file name where the log call occurred. @param line: The line number where the log call occurred. @param function: The name of the function where the log call occurred. @param color: The color for the log message. @param message: The message to log. @return An integer indicating the result of the logging operation.
func LookupBodySequence ¶
LookupBodySequence
@brief Looks up a sequence ID by its name. @param entityHandle: The handle of the entity. @param name: The name of the sequence. @return The sequence ID, or -1 if not found.
func NetworkStateChanged ¶
NetworkStateChanged
@brief Updates the networked state of a schema field for a given entity handle. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class that contains the member. @param memberName: The name of the member to be set.
func NetworkStateChanged2 ¶
NetworkStateChanged2
@brief Updates the networked state of a schema field for a given entity pointer. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class that contains the member. @param memberName: The name of the member to be set.
func OnBuildGameSessionManifest_Register ¶ added in v2.4.0
func OnBuildGameSessionManifest_Register(callback OnBuildGameSessionManifestCallback)
OnBuildGameSessionManifest_Register
@brief Register callback to event. @param callback: Function callback.
func OnBuildGameSessionManifest_Unregister ¶ added in v2.4.0
func OnBuildGameSessionManifest_Unregister(callback OnBuildGameSessionManifestCallback)
OnBuildGameSessionManifest_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientActive_Register ¶
func OnClientActive_Register(callback OnClientActiveCallback)
OnClientActive_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientActive_Unregister ¶
func OnClientActive_Unregister(callback OnClientActiveCallback)
OnClientActive_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientAuthenticated_Register ¶
func OnClientAuthenticated_Register(callback OnClientAuthenticatedCallback)
OnClientAuthenticated_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientAuthenticated_Unregister ¶
func OnClientAuthenticated_Unregister(callback OnClientAuthenticatedCallback)
OnClientAuthenticated_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientConnect_Post_Register ¶
func OnClientConnect_Post_Register(callback OnClientConnect_PostCallback)
OnClientConnect_Post_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientConnect_Post_Unregister ¶
func OnClientConnect_Post_Unregister(callback OnClientConnect_PostCallback)
OnClientConnect_Post_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientConnect_Register ¶
func OnClientConnect_Register(callback OnClientConnectCallback)
OnClientConnect_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientConnect_Unregister ¶
func OnClientConnect_Unregister(callback OnClientConnectCallback)
OnClientConnect_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientConnected_Register ¶
func OnClientConnected_Register(callback OnClientConnectedCallback)
OnClientConnected_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientConnected_Unregister ¶
func OnClientConnected_Unregister(callback OnClientConnectedCallback)
OnClientConnected_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientDisconnect_Post_Register ¶
func OnClientDisconnect_Post_Register(callback OnClientDisconnect_PostCallback)
OnClientDisconnect_Post_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientDisconnect_Post_Unregister ¶
func OnClientDisconnect_Post_Unregister(callback OnClientDisconnect_PostCallback)
OnClientDisconnect_Post_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientDisconnect_Register ¶
func OnClientDisconnect_Register(callback OnClientDisconnectCallback)
OnClientDisconnect_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientDisconnect_Unregister ¶
func OnClientDisconnect_Unregister(callback OnClientDisconnectCallback)
OnClientDisconnect_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientFullyConnect_Register ¶
func OnClientFullyConnect_Register(callback OnClientFullyConnectCallback)
OnClientFullyConnect_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientFullyConnect_Unregister ¶
func OnClientFullyConnect_Unregister(callback OnClientFullyConnectCallback)
OnClientFullyConnect_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientPutInServer_Register ¶
func OnClientPutInServer_Register(callback OnClientPutInServerCallback)
OnClientPutInServer_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientPutInServer_Unregister ¶
func OnClientPutInServer_Unregister(callback OnClientPutInServerCallback)
OnClientPutInServer_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnClientSettingsChanged_Register ¶
func OnClientSettingsChanged_Register(callback OnClientSettingsChangedCallback)
OnClientSettingsChanged_Register
@brief Register callback to event. @param callback: Function callback.
func OnClientSettingsChanged_Unregister ¶
func OnClientSettingsChanged_Unregister(callback OnClientSettingsChangedCallback)
OnClientSettingsChanged_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnEntityCreated_Register ¶
func OnEntityCreated_Register(callback OnEntityCreatedCallback)
OnEntityCreated_Register
@brief Register callback to event. @param callback: Function callback.
func OnEntityCreated_Unregister ¶
func OnEntityCreated_Unregister(callback OnEntityCreatedCallback)
OnEntityCreated_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnEntityDeleted_Register ¶
func OnEntityDeleted_Register(callback OnEntityDeletedCallback)
OnEntityDeleted_Register
@brief Register callback to event. @param callback: Function callback.
func OnEntityDeleted_Unregister ¶
func OnEntityDeleted_Unregister(callback OnEntityDeletedCallback)
OnEntityDeleted_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnEntityParentChanged_Register ¶
func OnEntityParentChanged_Register(callback OnEntityParentChangedCallback)
OnEntityParentChanged_Register
@brief Register callback to event. @param callback: Function callback.
func OnEntityParentChanged_Unregister ¶
func OnEntityParentChanged_Unregister(callback OnEntityParentChangedCallback)
OnEntityParentChanged_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnGameFrame_Register ¶
func OnGameFrame_Register(callback OnGameFrameCallback)
OnGameFrame_Register
@brief Register callback to event. @param callback: Function callback.
func OnGameFrame_Unregister ¶
func OnGameFrame_Unregister(callback OnGameFrameCallback)
OnGameFrame_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnMapEnd_Register ¶
func OnMapEnd_Register(callback OnMapEndCallback)
OnMapEnd_Register
@brief Register callback to event. @param callback: Function callback.
func OnMapEnd_Unregister ¶
func OnMapEnd_Unregister(callback OnMapEndCallback)
OnMapEnd_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnMapStart_Register ¶
func OnMapStart_Register(callback OnMapStartCallback)
OnMapStart_Register
@brief Register callback to event. @param callback: Function callback.
func OnMapStart_Unregister ¶
func OnMapStart_Unregister(callback OnMapStartCallback)
OnMapStart_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnPreWorldUpdate_Register ¶
func OnPreWorldUpdate_Register(callback OnPreWorldUpdateCallback)
OnPreWorldUpdate_Register
@brief Register callback to event. @param callback: Function callback.
func OnPreWorldUpdate_Unregister ¶
func OnPreWorldUpdate_Unregister(callback OnPreWorldUpdateCallback)
OnPreWorldUpdate_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnRoundTerminated_Register ¶
func OnRoundTerminated_Register(callback OnRoundTerminatedCallback)
OnRoundTerminated_Register
@brief Register callback to event. @param callback: Function callback.
func OnRoundTerminated_Unregister ¶
func OnRoundTerminated_Unregister(callback OnRoundTerminatedCallback)
OnRoundTerminated_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnServerActivate_Register ¶
func OnServerActivate_Register(callback OnServerActivateCallback)
OnServerActivate_Register
@brief Register callback to event. @param callback: Function callback.
func OnServerActivate_Unregister ¶
func OnServerActivate_Unregister(callback OnServerActivateCallback)
OnServerActivate_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnServerCheckTransmit_Register ¶
func OnServerCheckTransmit_Register(callback OnServerCheckTransmitCallback)
OnServerCheckTransmit_Register
@brief Register callback to event. @param callback: Function callback.
func OnServerCheckTransmit_Unregister ¶
func OnServerCheckTransmit_Unregister(callback OnServerCheckTransmitCallback)
OnServerCheckTransmit_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnServerSpawn_Register ¶
func OnServerSpawn_Register(callback OnServerSpawnCallback)
OnServerSpawn_Register
@brief Register callback to event. @param callback: Function callback.
func OnServerSpawn_Unregister ¶
func OnServerSpawn_Unregister(callback OnServerSpawnCallback)
OnServerSpawn_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnServerStarted_Register ¶
func OnServerStarted_Register(callback OnServerStartedCallback)
OnServerStarted_Register
@brief Register callback to event. @param callback: Function callback.
func OnServerStarted_Unregister ¶
func OnServerStarted_Unregister(callback OnServerStartedCallback)
OnServerStarted_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnServerStartup_Register ¶
func OnServerStartup_Register(callback OnServerStartupCallback)
OnServerStartup_Register
@brief Register callback to event. @param callback: Function callback.
func OnServerStartup_Unregister ¶
func OnServerStartup_Unregister(callback OnServerStartupCallback)
OnServerStartup_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func OnUpdateWhenNotInGame_Register ¶
func OnUpdateWhenNotInGame_Register(callback OnUpdateWhenNotInGameCallback)
OnUpdateWhenNotInGame_Register
@brief Register callback to event. @param callback: Function callback.
func OnUpdateWhenNotInGame_Unregister ¶
func OnUpdateWhenNotInGame_Unregister(callback OnUpdateWhenNotInGameCallback)
OnUpdateWhenNotInGame_Unregister
@brief Unregister callback to event. @param callback: Function callback.
func PanoramaEndVote ¶
func PanoramaEndVote(reason VoteEndReason)
PanoramaEndVote
@brief Ends the current vote with a specified reason. @param reason: The reason for ending the vote.
func PanoramaIsPlayerInVotePool ¶
PanoramaIsPlayerInVotePool
@brief Checks if a player is in the vote pool. @param playerSlot: The slot/index of the player to check. @return true if the player is in the vote pool, false otherwise.
func PanoramaIsVoteInProgress ¶
func PanoramaIsVoteInProgress() bool
PanoramaIsVoteInProgress
@brief Checks if a vote is currently in progress. @return true if a vote is active, false otherwise.
func PanoramaRedrawVoteToClient ¶
PanoramaRedrawVoteToClient
@brief Redraws the vote UI to a specific player client. @param playerSlot: The slot/index of the player to update. @return true if the vote UI was successfully redrawn, false otherwise.
func PanoramaRemovePlayerFromVote ¶
func PanoramaRemovePlayerFromVote(playerSlot int32)
PanoramaRemovePlayerFromVote
@brief Removes a player from the current vote. @param playerSlot: The slot/index of the player to remove from the vote.
func PanoramaSendYesNoVote ¶
func PanoramaSendYesNoVote(duration float64, caller int32, voteTitle string, detailStr string, votePassTitle string, detailPassStr string, failReason VoteCreateFailed, filter uint64, result YesNoVoteResult, handler YesNoVoteHandler) bool
PanoramaSendYesNoVote
@brief Start a new Yes/No vote @param duration: Maximum time to leave vote active for @param caller: Player slot of the vote caller. Use VOTE_CALLER_SERVER for 'Server'. @param voteTitle: Translation string to use as the vote message. (Only '#SFUI_vote' or '#Panorama_vote' strings) @param detailStr: Extra string used in some vote translation strings. @param votePassTitle: Translation string to use as the vote message. (Only '#SFUI_vote' or '#Panorama_vote' strings) @param detailPassStr: Extra string used in some vote translation strings when the vote passes. @param failReason: Reason for the vote to fail, used in some translation strings. @param filter: Recipient filter with all the clients who are allowed to participate in the vote. @param result: Called when a menu action is completed. @param handler: Called when the vote has finished.
func PanoramaSendYesNoVoteToAll ¶
func PanoramaSendYesNoVoteToAll(duration float64, caller int32, voteTitle string, detailStr string, votePassTitle string, detailPassStr string, failReason VoteCreateFailed, result YesNoVoteResult, handler YesNoVoteHandler) bool
PanoramaSendYesNoVoteToAll
@brief Start a new Yes/No vote with all players included @param duration: Maximum time to leave vote active for @param caller: Player slot of the vote caller. Use VOTE_CALLER_SERVER for 'Server'. @param voteTitle: Translation string to use as the vote message. (Only '#SFUI_vote' or '#Panorama_vote' strings) @param detailStr: Extra string used in some vote translation strings. @param votePassTitle: Translation string to use as the vote message. (Only '#SFUI_vote' or '#Panorama_vote' strings) @param detailPassStr: Extra string used in some vote translation strings when the vote passes. @param failReason: Reason for the vote to fail, used in some translation strings. @param result: Called when a menu action is completed. @param handler: Called when the vote has finished.
func PbAddBool ¶
PbAddBool
@brief Adds a bool value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddColor ¶
PbAddColor
@brief Adds a color value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddDouble ¶
PbAddDouble
@brief Adds a double value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddEnum ¶
PbAddEnum
@brief Adds a enum value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddFloat ¶
PbAddFloat
@brief Adds a float value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddInt32 ¶
PbAddInt32
@brief Adds a 32-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddInt64 ¶
PbAddInt64
@brief Adds a 64-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddMessage ¶ added in v2.3.28
PbAddMessage
@brief Adds a Message value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddQAngle ¶
PbAddQAngle
@brief Adds a QAngle value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddString ¶
PbAddString
@brief Adds a string value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddUInt32 ¶
PbAddUInt32
@brief Adds an unsigned 32-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddUInt64 ¶
PbAddUInt64
@brief Adds an unsigned 64-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddVector2 ¶
PbAddVector2
@brief Adds a Vector2 value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddVector3 ¶
PbAddVector3
@brief Adds a Vector3 value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbAddVector4 ¶
PbAddVector4
@brief Adds a Vector4 value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func PbGetBool ¶
PbGetBool
@brief Gets a bool value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetColor ¶
PbGetColor
@brief Gets a color value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func PbGetDouble ¶
PbGetDouble
@brief Gets a double value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetEnum ¶
PbGetEnum
@brief Gets a enum value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetFloat ¶
PbGetFloat
@brief Gets a float value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetInt32 ¶
PbGetInt32
@brief Gets a 32-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetInt64 ¶
PbGetInt64
@brief Gets a 64-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetMessage ¶ added in v2.3.28
PbGetMessage
@brief Gets a Message value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output message. @return True if the field was successfully retrieved, false otherwise.
func PbGetQAngle ¶
PbGetQAngle
@brief Gets a QAngle value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedBool ¶
PbGetRepeatedBool
@brief Gets a repeated bool value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedColor ¶
func PbGetRepeatedColor(userMessage uintptr, fieldName string, index int32, out *plugify.Vector4) bool
PbGetRepeatedColor
@brief Gets a repeated color value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output color. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedDouble ¶
PbGetRepeatedDouble
@brief Gets a repeated double value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedEnum ¶
PbGetRepeatedEnum
@brief Gets a repeated enum value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedFloat ¶
PbGetRepeatedFloat
@brief Gets a repeated float value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedInt32 ¶
PbGetRepeatedInt32
@brief Gets a repeated int32_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedInt64 ¶
PbGetRepeatedInt64
@brief Gets a repeated int64_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedMessage ¶ added in v2.3.28
PbGetRepeatedMessage
@brief Gets a repeated Message value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output message. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedQAngle ¶
func PbGetRepeatedQAngle(userMessage uintptr, fieldName string, index int32, out *plugify.Vector3) bool
PbGetRepeatedQAngle
@brief Gets a repeated QAngle value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedString ¶
PbGetRepeatedString
@brief Gets a repeated string value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedUInt32 ¶
PbGetRepeatedUInt32
@brief Gets a repeated uint32_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedUInt64 ¶
PbGetRepeatedUInt64
@brief Gets a repeated uint64_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedVector2 ¶
func PbGetRepeatedVector2(userMessage uintptr, fieldName string, index int32, out *plugify.Vector2) bool
PbGetRepeatedVector2
@brief Gets a repeated Vector2 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedVector3 ¶
func PbGetRepeatedVector3(userMessage uintptr, fieldName string, index int32, out *plugify.Vector3) bool
PbGetRepeatedVector3
@brief Gets a repeated Vector3 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func PbGetRepeatedVector4 ¶
func PbGetRepeatedVector4(userMessage uintptr, fieldName string, index int32, out *plugify.Vector4) bool
PbGetRepeatedVector4
@brief Gets a repeated Vector4 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func PbGetString ¶
PbGetString
@brief Gets a string value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func PbGetUInt32 ¶
PbGetUInt32
@brief Gets an unsigned 32-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetUInt64 ¶
PbGetUInt64
@brief Gets an unsigned 64-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func PbGetVector2 ¶
PbGetVector2
@brief Gets a Vector2 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func PbGetVector3 ¶
PbGetVector3
@brief Gets a Vector3 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func PbGetVector4 ¶
PbGetVector4
@brief Gets a Vector4 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func PbReadBool ¶
PbReadBool
@brief Reads a boolean value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The boolean value read, or false if invalid.
func PbReadColor ¶
PbReadColor
@brief Reads a color value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The color value read, or an empty value if invalid.
func PbReadDouble ¶
PbReadDouble
@brief Reads a double-precision floating-point value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The double value read, or 0.0 if invalid.
func PbReadEnum ¶
PbReadEnum
@brief Reads an enum value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The integer representation of the enum value, or 0 if invalid.
func PbReadFloat ¶
PbReadFloat
@brief Reads a floating-point value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The float value read, or 0.0 if invalid.
func PbReadInt32 ¶
PbReadInt32
@brief Reads a 32-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The int32_t value read, or 0 if invalid.
func PbReadInt64 ¶
PbReadInt64
@brief Reads a 64-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The int64_t value read, or 0 if invalid.
func PbReadMessage ¶ added in v2.3.28
PbReadMessage
@brief Reads a Message from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The Message value read, or an empty value if invalid.
func PbReadQAngle ¶
PbReadQAngle
@brief Reads a QAngle (rotation vector) from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The QAngle value read, or an empty value if invalid.
func PbReadString ¶
PbReadString
@brief Reads a string from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The string value read, or an empty string if invalid.
func PbReadUInt32 ¶
PbReadUInt32
@brief Reads an unsigned 32-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The uint32_t value read, or 0 if invalid.
func PbReadUInt64 ¶
PbReadUInt64
@brief Reads an unsigned 64-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The uint64_t value read, or 0 if invalid.
func PbReadVector2 ¶
PbReadVector2
@brief Reads a 2D vector from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The 2D vector value read, or an empty value if invalid.
func PbReadVector3 ¶
PbReadVector3
@brief Reads a 3D vector from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The 3D vector value read, or an empty value if invalid.
func PbReadVector4 ¶
PbReadVector4
@brief Reads a 4D vector from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The 4D vector value read, or an empty value if invalid.
func PbSetBool ¶
PbSetBool
@brief Sets a bool value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetColor ¶
PbSetColor
@brief Sets a color value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetDouble ¶
PbSetDouble
@brief Sets a double value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetEnum ¶
PbSetEnum
@brief Sets a enum value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetFloat ¶
PbSetFloat
@brief Sets a float value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetInt32 ¶
PbSetInt32
@brief Sets a 32-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetInt64 ¶
PbSetInt64
@brief Sets a 64-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetMessage ¶ added in v2.3.28
PbSetMessage
@brief Sets a Message value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetQAngle ¶
PbSetQAngle
@brief Sets a QAngle value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedBool ¶
PbSetRepeatedBool
@brief Sets a repeated bool value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedColor ¶
func PbSetRepeatedColor(userMessage uintptr, fieldName string, index int32, value plugify.Vector4) bool
PbSetRepeatedColor
@brief Sets a repeated color value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedDouble ¶
PbSetRepeatedDouble
@brief Sets a repeated double value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedEnum ¶
PbSetRepeatedEnum
@brief Sets a repeated enum value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedFloat ¶
PbSetRepeatedFloat
@brief Sets a repeated float value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedInt32 ¶
PbSetRepeatedInt32
@brief Sets a repeated int32_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedInt64 ¶
PbSetRepeatedInt64
@brief Sets a repeated int64_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedMessage ¶ added in v2.3.28
PbSetRepeatedMessage
@brief Sets a repeated Message value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedQAngle ¶
func PbSetRepeatedQAngle(userMessage uintptr, fieldName string, index int32, value plugify.Vector3) bool
PbSetRepeatedQAngle
@brief Sets a repeated QAngle value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedString ¶
PbSetRepeatedString
@brief Sets a repeated string value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedUInt32 ¶
PbSetRepeatedUInt32
@brief Sets a repeated uint32_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedUInt64 ¶
PbSetRepeatedUInt64
@brief Sets a repeated uint64_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedVector2 ¶
func PbSetRepeatedVector2(userMessage uintptr, fieldName string, index int32, value plugify.Vector2) bool
PbSetRepeatedVector2
@brief Sets a repeated Vector2 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedVector3 ¶
func PbSetRepeatedVector3(userMessage uintptr, fieldName string, index int32, value plugify.Vector3) bool
PbSetRepeatedVector3
@brief Sets a repeated Vector3 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetRepeatedVector4 ¶
func PbSetRepeatedVector4(userMessage uintptr, fieldName string, index int32, value plugify.Vector4) bool
PbSetRepeatedVector4
@brief Sets a repeated Vector4 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetString ¶
PbSetString
@brief Sets a string value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetUInt32 ¶
PbSetUInt32
@brief Sets an unsigned 32-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetUInt64 ¶
PbSetUInt64
@brief Sets an unsigned 64-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetVector2 ¶
PbSetVector2
@brief Sets a Vector2 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetVector3 ¶
PbSetVector3
@brief Sets a Vector3 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PbSetVector4 ¶
PbSetVector4
@brief Sets a Vector3 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func PlayerServicesToPlayerSlot ¶
PlayerServicesToPlayerSlot
@brief Retrieves the player slot from a given player service. @param service: The service pointer. Like CCSPlayer_ItemServices, CCSPlayer_WeaponServices ect. @return The player slot if valid, otherwise -1.
func PlayerSlotToClientIndex ¶
PlayerSlotToClientIndex
@brief Returns the entity index for a given player slot. @param playerSlot: The index of the player's slot. @return The entity index if valid, otherwise 0.
func PlayerSlotToClientPtr ¶
PlayerSlotToClientPtr
@brief Retrieves the client object from a given player slot. @param playerSlot: The index of the player's slot (0-based). @return A pointer to the client object if found, otherwise nullptr.
func PlayerSlotToEntHandle ¶
PlayerSlotToEntHandle
@brief Returns the entity handle associated with a player slot index. @param playerSlot: Index of the player slot. @return The index of the entity, or -1 if the handle is invalid.
func PlayerSlotToEntPointer ¶
PlayerSlotToEntPointer
@brief Returns a pointer to the entity instance by player slot index. @param playerSlot: Index of the player slot. @return Pointer to the entity instance, or nullptr if the slot is invalid.
func Precache ¶
func Precache(resource string)
Precache
@brief Precaches a given file. @param resource: The name of the resource to be precached.
func PrintAlertText ¶
PrintAlertText
@brief Prints a message to a specific client with an alert box. @param playerSlot: The index of the player's slot to whom the message will be sent. @param message: The message to be printed in the alert box.
func PrintAlertTextAll ¶
func PrintAlertTextAll(message string)
PrintAlertTextAll
@brief Prints a message to all clients with an alert box. @param message: The message to be printed in an alert box for all clients.
func PrintCenterText ¶
PrintCenterText
@brief Prints a message to a specific client in the center of the screen. @param playerSlot: The index of the player's slot to whom the message will be sent. @param message: The message to be printed in the center of the screen.
func PrintCenterTextAll ¶
func PrintCenterTextAll(message string)
PrintCenterTextAll
@brief Prints a message to all clients in the center of the screen. @param message: The message to be printed in the center of the screen for all clients.
func PrintCentreHtml ¶
PrintCentreHtml
@brief Prints a html message to a specific client in the center of the screen. @param playerSlot: The index of the player's slot to whom the message will be sent. @param message: The HTML-formatted message to be printed. @param duration: The duration of the message in seconds.
func PrintCentreHtmlAll ¶
PrintCentreHtmlAll
@brief Prints a html message to all clients in the center of the screen. @param message: The HTML-formatted message to be printed in the center of the screen for all clients. @param duration: The duration of the message in seconds.
func PrintToChat ¶
PrintToChat
@brief Prints a message to a specific client in the chat area. @param playerSlot: The index of the player's slot to whom the message will be sent. @param message: The message to be printed in the chat area.
func PrintToChatAll ¶
func PrintToChatAll(message string)
PrintToChatAll
@brief Prints a message to all clients in the chat area. @param message: The message to be printed in the chat area for all clients.
func PrintToChatColored ¶
PrintToChatColored
@brief Prints a colored message to a specific client in the chat area. @param playerSlot: The index of the player's slot to whom the message will be sent. @param message: The message to be printed in the chat area with color.
func PrintToChatColoredAll ¶
func PrintToChatColoredAll(message string)
PrintToChatColoredAll
@brief Prints a colored message to all clients in the chat area. @param message: The colored message to be printed in the chat area for all clients.
func PrintToConsole ¶
PrintToConsole
@brief Sends a message to a client's console. @param playerSlot: The index of the player's slot to whom the message will be sent. @param message: The message to be sent to the client's console.
func PrintToConsoleAll ¶
func PrintToConsoleAll(message string)
PrintToConsoleAll
@brief Sends a message to every client's console. @param message: The message to be sent to all clients' consoles.
func PrintToServer ¶
func PrintToServer(msg string)
PrintToServer
@brief Sends a message to the server console. @param msg: The message to be sent to the server console.
func ProcessTargetString ¶
ProcessTargetString
@brief Processes the target string to determine if one user can target another. @param caller: The index of the player's slot making the target request. @param target: The target string specifying the player or players to be targeted. @return A vector where the result of the targeting operation will be stored.
func PushEntSchemaEnt ¶ added in v2.5.1
func PushEntSchemaEnt(entityHandle int32, className string, memberName string, value int32, changeState bool)
PushEntSchemaEnt
@brief Pushes an entity handle into an entity's schema collection. @param entityHandle: The handle of the entity whose schema collection is modified. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The entity handle to push. @param changeState: If true, change will be sent over the network.
func PushEntSchemaEnt2 ¶ added in v2.5.1
func PushEntSchemaEnt2(entity uintptr, className string, memberName string, value int32, changeState bool)
PushEntSchemaEnt2
@brief Pushes an entity handle into an entity's schema collection. @param entity: Pointer to the instance of the class where the value is to be pushed. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The entity handle to push. @param changeState: If true, change will be sent over the network.
func QSlerp ¶
QSlerp
@brief Quaternion spherical linear interpolation for angles @param fromAngle: Starting angle @param toAngle: Ending angle @param time: Interpolation time (0.0 to 1.0) @return Interpolated angle
func QueryClientConVar ¶
func QueryClientConVar(playerSlot int32, convarName string, callback CvarValueCallback, data []any) int32
QueryClientConVar
@brief Starts a query to retrieve the value of a client's console variable. @param playerSlot: The index of the player's slot to query the value from. @param convarName: The name of client convar to query. @param callback: A function to use as a callback when the query has finished. @param data: Optional values to pass to the callback function. @return A cookie that uniquely identifies the query. Returns -1 on failure, such as when used on a bot.
func QueryInterface ¶
QueryInterface
@brief Queries an interface from a specified module. @param module: The name of the module to query the interface from. @param name: The name of the interface to find. @return A pointer to the queried interface.
func QueueTaskForNextFrame ¶
func QueueTaskForNextFrame(callback TaskCallback, userData []any)
QueueTaskForNextFrame
@brief Queues a task to be executed on the next frame. @param callback: A callback function to be executed on the next frame. @param userData: An array intended to hold user-related data, allowing for elements of any type.
func QueueTaskForNextWorldUpdate ¶
func QueueTaskForNextWorldUpdate(callback TaskCallback, userData []any)
QueueTaskForNextWorldUpdate
@brief Queues a task to be executed on the next world update. @param callback: A callback function to be executed on the next world update. @param userData: An array intended to hold user-related data, allowing for elements of any type.
func RandomFlt ¶
RandomFlt
@brief Returns random float between min and max @param min: Minimum value (inclusive) @param max: Maximum value (inclusive) @return Random float in range [min, max]
func RandomInt ¶
RandomInt
@brief Returns random integer between min and max (inclusive) @param min: Minimum value (inclusive) @param max: Maximum value (inclusive) @return Random integer in range [min, max]
func ReadFileVPK ¶ added in v2.4.0
ReadFileVPK
@brief Reads a file and returns its contents as a string. @param localFileName: The relative path of the file to read. @param pathId: The filesystem search path ID (e.g., "GAME"). If empty, uses "GAME". @return The file contents, or an empty string on failure.
func RedirectClientOutput ¶
RedirectClientOutput
@brief Redirects an player output to call a function on another player. @param playerSlot: The handle of the player whose output is being redirected. @param output: The name of the output to redirect. @param functionName: The function name to call on the target player. @param targetHandle: The handle of the entity that will receive the output call.
func RedirectEntityOutput ¶
func RedirectEntityOutput(entityHandle int32, output string, functionName string, targetHandle int32)
RedirectEntityOutput
@brief Redirects an entity output to call a function on another entity. @param entityHandle: The handle of the entity whose output is being redirected. @param output: The name of the output to redirect. @param functionName: The function name to call on the target entity. @param targetHandle: The handle of the entity that will receive the output call.
func RegisterLoggingChannel ¶
func RegisterLoggingChannel(name string, flags int32, verbosity LoggingVerbosity, color plugify.Vector4) int32
RegisterLoggingChannel
@brief Registers a new logging channel with specified properties. @param name: The name of the logging channel. @param flags: Flags associated with the logging channel. @param verbosity: The verbosity level for the logging channel. @param color: The color for messages logged to this channel. @return The ID of the newly created logging channel.
func RemoveClientEffects ¶
RemoveClientEffects
@brief Removes the render effect flag from an client. @param playerSlot: The index of the player's slot to modify @param effects: Render effect flags to remove
func RemoveCommand ¶
func RemoveCommand(name string, callback CommandCallback) bool
RemoveCommand
@brief Removes a console command from the system. @param name: The name of the command to be removed. @param callback: The callback function associated with the command to be removed. @return true if the command was successfully removed; otherwise, false.
func RemoveCommandListener ¶
func RemoveCommandListener(name string, callback CommandCallback, type_ HookMode) bool
RemoveCommandListener
@brief Removes a callback that fires when a command is sent to the server. @param name: The name of the command. @param callback: The callback function to be removed. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return Returns true if the callback was successfully removed, false otherwise.
func RemoveConVarFlags ¶
func RemoveConVarFlags(conVarHandle uint64, flags ConVarFlag)
RemoveConVarFlags
@brief Removes flags from a console variable. @param conVarHandle: The handle to the console variable data. @param flags: The flags to be removed.
func RemoveEntity ¶
func RemoveEntity(entityHandle int32)
RemoveEntity
@brief Marks an entity for deletion. @param entityHandle: The handle of the entity to be deleted.
func RemoveEntityEffects ¶
RemoveEntityEffects
@brief Removes the render effect flag from an entity. @param entityHandle: The handle of the entity to modify @param effects: Render effect flags to remove
func RemoveTransmitInfoTargetSlot ¶
RemoveTransmitInfoTargetSlot
@brief Removes a player slot from the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @param index: Index within the target slots vector to remove.
func RemoveTransmitInfoTargetSlotsAll ¶
func RemoveTransmitInfoTargetSlotsAll(info uintptr)
RemoveTransmitInfoTargetSlotsAll
@brief Clears all target player slots from the vector. @param info: Pointer to the CCheckTransmitInfo structure.
func RemoveUserFlags ¶
RemoveUserFlags
@brief Removes access flags from a client. @param playerSlot: The index of the player's slot. @param flags: Bitmask representing the flags to be removed.
func RemoveWeapon ¶
RemoveWeapon
@brief Removes a player's weapon. @param playerSlot: The index of the player's slot. @param weaponHandle: The handle of weapon to remove.
func RemoveWeapons ¶
RemoveWeapons
@brief Removes all weapons from a client, with an option to remove the suit as well. @param playerSlot: The index of the player's slot. @param removeSuit: A boolean indicating whether to also remove the client's suit.
func ReplyToCommand ¶
func ReplyToCommand(context CommandCallingContext, playerSlot int32, message string)
ReplyToCommand
@brief Sends a reply message to a player or to the server console depending on the command context. @param context: The context from which the command was called (e.g., Console or Chat). @param playerSlot: The slot/index of the player receiving the message. @param message: The message string to be sent as a reply.
func RescheduleTimer ¶
RescheduleTimer
@brief Reschedules an existing timer with a new delay. @param timer: A id of the Timer object to be stopped and removed. @param newDaly: The new delay in seconds between each callback execution.
func RespawnClient ¶
func RespawnClient(playerSlot int32)
RespawnClient
@brief Respawns a player. @param playerSlot: The index of the player's slot to respawn.
func RotateOrientation ¶
RotateOrientation
@brief Rotate one QAngle by another @param a1: Base orientation @param a2: Rotation to apply @return Rotated orientation
func RotatePosition ¶
func RotatePosition(rotationOrigin plugify.Vector3, rotationAngle plugify.Vector3, vectorToRotate plugify.Vector3) plugify.Vector3
RotatePosition
@brief Rotate a vector around a point by specified angle @param rotationOrigin: Origin point of rotation @param rotationAngle: Angle to rotate by @param vectorToRotate: Vector to be rotated @return Rotated vector
func RotateQuaternionByAxisAngle ¶
func RotateQuaternionByAxisAngle(q plugify.Vector4, axis plugify.Vector3, angle float32) plugify.Vector4
RotateQuaternionByAxisAngle
@brief Rotates quaternion by axis-angle representation @param q: Quaternion to rotate @param axis: Rotation axis @param angle: Rotation angle in radians @return Rotated quaternion
func RotationDelta ¶
RotationDelta
@brief Finds angular delta between two QAngles @param src: Source angle @param dest: Destination angle @return Delta angle from src to dest
func RotationDeltaAsAngularVelocity ¶
RotationDeltaAsAngularVelocity
@brief Converts delta QAngle to angular velocity vector @param a1: First angle @param a2: Second angle @return Angular velocity vector
func ScriptLookupAttachment ¶
ScriptLookupAttachment
@brief Retrieves an attachment index by name. @param entityHandle: The handle of the entity. @param attachmentName: The name of the attachment. @return The attachment index, or -1 if not found.
func SelectWeapon ¶
SelectWeapon
@brief Selects a player's weapon. @param playerSlot: The index of the player's slot. @param weaponHandle: The handle of weapon to bump.
func SendConVarValue ¶
SendConVarValue
@brief Replicates a console variable value to a specific client. This does not change the actual console variable value. @param playerSlot: The index of the client to replicate the value to. @param conVarHandle: The handle to the console variable data. @param value: The value to send to the client.
func SendConVarValue2 ¶
SendConVarValue2
@brief Replicates a console variable value to a specific client. This does not change the actual console variable value. @param conVarHandle: The handle to the console variable data. @param playerSlot: The index of the client to replicate the value to. @param value: The value to send to the client.
func ServerCommand ¶
func ServerCommand(command string)
ServerCommand
@brief Executes a server command as if it were run on the server console or through RCON. @param command: The command to execute on the server.
func ServerCommandEx ¶
ServerCommandEx
@brief Executes a server command as if it were on the server console (or RCON) and stores the printed text into buffer. @param command: The command to execute on the server. @return String to store command result into.
func SetBodyAngularVelocity ¶
SetBodyAngularVelocity
@brief Sets the angular velocity of the entity. @param entityHandle: The handle of the entity. @param angVelocity: The new angular velocity vector.
func SetBodyMaterialGroup ¶
SetBodyMaterialGroup
@brief Sets the material group of the entity. @param entityHandle: The handle of the entity. @param materialGroup: The material group token to assign.
func SetBodySequenceDuration ¶
SetBodySequenceDuration
@brief Retrieves the duration of a specified sequence. @param entityHandle: The handle of the entity. @param sequenceName: The name of the sequence. @return The duration of the sequence in seconds, or 0 if invalid.
func SetBodyVelocity ¶
SetBodyVelocity
@brief Sets the linear velocity of the entity. @param entityHandle: The handle of the entity. @param velocity: The new velocity vector.
func SetClientAbsAngles ¶
SetClientAbsAngles
@brief Sets the angular rotation of an client. @param playerSlot: The index of the player's slot whose angular rotation is to be set. @param angle: The new angular rotation to set for the client.
func SetClientAbsOrigin ¶
SetClientAbsOrigin
@brief Sets the absolute origin of an client. @param playerSlot: The index of the player's slot whose absolute origin is to be set. @param origin: The new absolute origin to set for the client.
func SetClientAbsScale ¶
SetClientAbsScale
@brief Sets the absolute scale of an client. @param playerSlot: The index of the player's slot whose absolute scale is to be set. @param scale: The new absolute scale to set for the client.
func SetClientAbsVelocity ¶
SetClientAbsVelocity
@brief Sets the absolute velocity of an client. @param playerSlot: The index of the player's slot whose absolute velocity is to be set. @param velocity: The new absolute velocity to set for the client.
func SetClientAngRotation ¶
SetClientAngRotation
@brief Sets the angular rotation of an client. @param playerSlot: The index of the player's slot whose angular rotation is to be set. @param rotation: The new angular rotation to set for the client.
func SetClientAngVelocity ¶
SetClientAngVelocity
@brief Sets the angular velocity of an client. @param playerSlot: The index of the player's slot whose angular velocity is to be set. @param velocity: The new angular velocity to set for the client.
func SetClientArmor ¶
SetClientArmor
@brief Sets the client's armor value. @param playerSlot: The index of the player's slot. @param armor: The armor value to set.
func SetClientAssists ¶
SetClientAssists
@brief Sets the number of assists for a client. @param playerSlot: The index of the player's slot. @param assists: The number of assists to set.
func SetClientDamage ¶
SetClientDamage
@brief Sets the total damage dealt by a client. @param playerSlot: The index of the player's slot. @param damage: The amount of damage to set.
func SetClientDeaths ¶
SetClientDeaths
@brief Sets the number of deaths for a client. @param playerSlot: The index of the player's slot. @param deaths: The number of deaths to set.
func SetClientFlags ¶
SetClientFlags
@brief Sets the flags of an client. @param playerSlot: The index of the player's slot whose flags are to be set. @param flags: The new flags to set for the client.
func SetClientForwardVector ¶
SetClientForwardVector
@brief Sets the forward velocity of an client. @param playerSlot: The index of the player's slot whose forward velocity is to be set.
func SetClientFriction ¶
SetClientFriction
@brief Sets the friction of an client. @param playerSlot: The index of the player's slot whose friction is to be set. @param friction: The new friction value to set for the client.
func SetClientGravity ¶
SetClientGravity
@brief Sets the gravity scale of an client. @param playerSlot: The index of the player's slot whose gravity scale is to be set. @param gravity: The new gravity scale to set for the client.
func SetClientHealth ¶
SetClientHealth
@brief Sets the health of an client. @param playerSlot: The index of the player's slot whose health is to be set. @param health: The new health value to set for the client.
func SetClientKills ¶
SetClientKills
@brief Sets the number of kills for a client. @param playerSlot: The index of the player's slot. @param kills: The number of kills to set.
func SetClientLocalAngles ¶
SetClientLocalAngles
@brief Sets the angular rotation of an client. @param playerSlot: The index of the player's slot whose angular rotation is to be set. @param angle: The new angular rotation to set for the client.
func SetClientLocalOrigin ¶
SetClientLocalOrigin
@brief Sets the local origin of an client. @param playerSlot: The index of the player's slot whose local origin is to be set. @param origin: The new local origin to set for the client.
func SetClientLocalScale ¶
SetClientLocalScale
@brief Sets the local scale of an client. @param playerSlot: The index of the player's slot whose local scale is to be set. @param scale: The new local scale to set for the client.
func SetClientMass ¶
SetClientMass
@brief Sets the mass of an client. @param playerSlot: The index of the player's slot whose mass is to be set. @param mass: The new mass value to set for the client.
func SetClientMaxHealth ¶
SetClientMaxHealth
@brief Sets the max health of an client. @param playerSlot: The index of the player's slot whose max health is to be set. @param maxHealth: The new max health value to set for the client.
func SetClientModel ¶
SetClientModel
@brief Sets the model name of an client. @param playerSlot: The index of the player's slot whose model name is to be set. @param model: The new model name to set for the client.
func SetClientMoney ¶
SetClientMoney
@brief Sets the amount of money for a client. @param playerSlot: The index of the player's slot. @param money: The amount of money to set.
func SetClientMoveType ¶
SetClientMoveType
@brief Sets the movement type of an client. @param playerSlot: The index of the player's slot whose movement type is to be set. @param moveType: The movement type of the entity, or 0 if the entity is invalid.
func SetClientRenderColor ¶
SetClientRenderColor
@brief Sets the render color of an client. @param playerSlot: The index of the player's slot whose render color is to be set. @param color: The new raw color value to set for the client's render color.
func SetClientRenderMode ¶
func SetClientRenderMode(playerSlot int32, renderMode RenderMode)
SetClientRenderMode
@brief Sets the render mode of an client. @param playerSlot: The index of the player's slot whose render mode is to be set. @param renderMode: The new render mode to set for the client.
func SetClientSpeed ¶
SetClientSpeed
@brief Sets the client's speed value. @param playerSlot: The index of the player's slot. @param speed: The speed value to set.
func SetClientTeam ¶
SetClientTeam
@brief Sets the team number of an client. @param playerSlot: The index of the player's slot whose team number is to be set. @param team: The new team number to set for the client.
func SetConVar ¶
SetConVar
@brief Sets the value of a console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarBool ¶
SetConVarBool
@brief Sets the value of a boolean console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarBounds ¶
SetConVarBounds
@brief Sets the specified bound (max or min) for a console variable. @param conVarHandle: The handle to the console variable data. @param max: Indicates whether to set the maximum (true) or minimum (false) bound. @param value: The value to set as the bound.
func SetConVarColor ¶
SetConVarColor
@brief Sets the value of a color console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarDouble ¶
SetConVarDouble
@brief Sets the value of a double-precision floating-point console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarFloat ¶
SetConVarFloat
@brief Sets the value of a floating-point console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarInt16 ¶
SetConVarInt16
@brief Sets the value of a signed 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarInt32 ¶
SetConVarInt32
@brief Sets the value of a signed 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarInt64 ¶
SetConVarInt64
@brief Sets the value of a signed 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarQAngle ¶
SetConVarQAngle
@brief Sets the value of a quaternion angle console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarString ¶
SetConVarString
@brief Sets the value of a string console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarUInt16 ¶
SetConVarUInt16
@brief Sets the value of an unsigned 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarUInt32 ¶
SetConVarUInt32
@brief Sets the value of an unsigned 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarUInt64 ¶
SetConVarUInt64
@brief Sets the value of an unsigned 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarValue ¶
SetConVarValue
@brief Sets the value of a console variable. @param conVarHandle: The handle to the console variable data. @param value: The string value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarVector2 ¶
SetConVarVector2
@brief Sets the value of a 2D vector console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarVector3 ¶
SetConVarVector3
@brief Sets the value of a 3D vector console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetConVarVector4 ¶
SetConVarVector4
@brief Sets the value of a 4D vector console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func SetEntData ¶
func SetEntData(entityHandle int32, offset int32, value int64, size int32, changeState bool, chainOffset int32)
SetEntData
@brief Peeks into an entity's object data and sets the integer value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The integer value to set. @param size: Number of bytes to write (valid values are 1, 2, 4 or 8). @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntData2 ¶
func SetEntData2(entity uintptr, offset int32, value int64, size int32, changeState bool, chainOffset int32)
SetEntData2
@brief Peeks into an entity's object data and sets the integer value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The integer value to set. @param size: Number of bytes to write (valid values are 1, 2, 4 or 8). @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataCString ¶ added in v2.7.0
func SetEntDataCString(entityHandle int32, offset int32, value string, size int32, changeState bool, chainOffset int32)
SetEntDataCString
@brief Peeks into an entity's object data and sets the string at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The string value to set. @param size: Number of bytes to write. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataCString2 ¶ added in v2.7.0
func SetEntDataCString2(entity uintptr, offset int32, value string, size int32, changeState bool, chainOffset int32)
SetEntDataCString2
@brief Peeks into an entity's object data and sets the string at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The string value to set. @param size: Number of bytes to write. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataColor ¶
func SetEntDataColor(entityHandle int32, offset int32, value plugify.Vector4, changeState bool, chainOffset int32)
SetEntDataColor
@brief Peeks into an entity's object data and sets the color at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The color value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataColor2 ¶
func SetEntDataColor2(entity uintptr, offset int32, value plugify.Vector4, changeState bool, chainOffset int32)
SetEntDataColor2
@brief Peeks into an entity's object data and sets the color at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The color value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataEnt ¶
func SetEntDataEnt(entityHandle int32, offset int32, value int32, changeState bool, chainOffset int32)
SetEntDataEnt
@brief Peeks into an entity's object data and sets the entity handle at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The entity handle to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataEnt2 ¶
SetEntDataEnt2
@brief Peeks into an entity's object data and sets the entity handle at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The entity handle to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataFloat ¶
func SetEntDataFloat(entityHandle int32, offset int32, value float64, size int32, changeState bool, chainOffset int32)
SetEntDataFloat
@brief Peeks into an entity's object data and sets the float value at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The float value to set. @param size: Number of bytes to write (valid values are 1, 2, 4 or 8). @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataFloat2 ¶
func SetEntDataFloat2(entity uintptr, offset int32, value float64, size int32, changeState bool, chainOffset int32)
SetEntDataFloat2
@brief Peeks into an entity's object data and sets the float value at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The float value to set. @param size: Number of bytes to write (valid values are 1, 2, 4 or 8). @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataString ¶
func SetEntDataString(entityHandle int32, offset int32, value string, changeState bool, chainOffset int32)
SetEntDataString
@brief Peeks into an entity's object data and sets the string at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The string value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataString2 ¶
func SetEntDataString2(entity uintptr, offset int32, value string, changeState bool, chainOffset int32)
SetEntDataString2
@brief Peeks into an entity's object data and sets the string at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The string value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataVector2D ¶ added in v2.7.0
func SetEntDataVector2D(entityHandle int32, offset int32, value plugify.Vector2, changeState bool, chainOffset int32)
SetEntDataVector2D
@brief Peeks into an entity's object data and sets the vector at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataVector2D2 ¶ added in v2.7.0
func SetEntDataVector2D2(entity uintptr, offset int32, value plugify.Vector2, changeState bool, chainOffset int32)
SetEntDataVector2D2
@brief Peeks into an entity's object data and sets the vector at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataVector3D ¶ added in v2.7.0
func SetEntDataVector3D(entityHandle int32, offset int32, value plugify.Vector3, changeState bool, chainOffset int32)
SetEntDataVector3D
@brief Peeks into an entity's object data and sets the vector at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataVector3D2 ¶ added in v2.7.0
func SetEntDataVector3D2(entity uintptr, offset int32, value plugify.Vector3, changeState bool, chainOffset int32)
SetEntDataVector3D2
@brief Peeks into an entity's object data and sets the vector at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataVector4D ¶ added in v2.7.0
func SetEntDataVector4D(entityHandle int32, offset int32, value plugify.Vector4, changeState bool, chainOffset int32)
SetEntDataVector4D
@brief Peeks into an entity's object data and sets the vector at the given offset. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param offset: The offset of the schema to use. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntDataVector4D2 ¶ added in v2.7.0
func SetEntDataVector4D2(entity uintptr, offset int32, value plugify.Vector4, changeState bool, chainOffset int32)
SetEntDataVector4D2
@brief Peeks into an entity's object data and sets the vector at the given offset. @param entity: Pointer to the instance of the class where the value is to be set. @param offset: The offset of the schema to use. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param chainOffset: The offset of the chain entity in the class (-2 for non-entity classes).
func SetEntSchema ¶
func SetEntSchema(entityHandle int32, className string, memberName string, value int64, changeState bool, element int32)
SetEntSchema
@brief Sets an integer value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The integer value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchema2 ¶
func SetEntSchema2(entity uintptr, className string, memberName string, value int64, changeState bool, element int32)
SetEntSchema2
@brief Sets an integer value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The integer value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaColor ¶
func SetEntSchemaColor(entityHandle int32, className string, memberName string, value plugify.Vector4, changeState bool, element int32)
SetEntSchemaColor
@brief Sets a color value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The color value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaColor2 ¶
func SetEntSchemaColor2(entity uintptr, className string, memberName string, value plugify.Vector4, changeState bool, element int32)
SetEntSchemaColor2
@brief Sets a color value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The color value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaEnt ¶
func SetEntSchemaEnt(entityHandle int32, className string, memberName string, value int32, changeState bool, element int32)
SetEntSchemaEnt
@brief Sets an entity handle in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The entity handle to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaEnt2 ¶
func SetEntSchemaEnt2(entity uintptr, className string, memberName string, value int32, changeState bool, element int32)
SetEntSchemaEnt2
@brief Sets an entity handle in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The entity handle to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaFloat ¶
func SetEntSchemaFloat(entityHandle int32, className string, memberName string, value float64, changeState bool, element int32)
SetEntSchemaFloat
@brief Sets a float value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The float value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaFloat2 ¶
func SetEntSchemaFloat2(entity uintptr, className string, memberName string, value float64, changeState bool, element int32)
SetEntSchemaFloat2
@brief Sets a float value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The float value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaString ¶
func SetEntSchemaString(entityHandle int32, className string, memberName string, value string, changeState bool, element int32)
SetEntSchemaString
@brief Sets a string value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The string value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaString2 ¶
func SetEntSchemaString2(entity uintptr, className string, memberName string, value string, changeState bool, element int32)
SetEntSchemaString2
@brief Sets a string value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The string value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaVector2D ¶
func SetEntSchemaVector2D(entityHandle int32, className string, memberName string, value plugify.Vector2, changeState bool, element int32)
SetEntSchemaVector2D
@brief Sets a vector value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaVector2D2 ¶
func SetEntSchemaVector2D2(entity uintptr, className string, memberName string, value plugify.Vector2, changeState bool, element int32)
SetEntSchemaVector2D2
@brief Sets a vector value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaVector3D ¶
func SetEntSchemaVector3D(entityHandle int32, className string, memberName string, value plugify.Vector3, changeState bool, element int32)
SetEntSchemaVector3D
@brief Sets a vector value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaVector3D2 ¶
func SetEntSchemaVector3D2(entity uintptr, className string, memberName string, value plugify.Vector3, changeState bool, element int32)
SetEntSchemaVector3D2
@brief Sets a vector value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaVector4D ¶
func SetEntSchemaVector4D(entityHandle int32, className string, memberName string, value plugify.Vector4, changeState bool, element int32)
SetEntSchemaVector4D
@brief Sets a vector value in an entity's schema. @param entityHandle: The handle of the entity from which the value is to be retrieved. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntSchemaVector4D2 ¶
func SetEntSchemaVector4D2(entity uintptr, className string, memberName string, value plugify.Vector4, changeState bool, element int32)
SetEntSchemaVector4D2
@brief Sets a vector value in an entity's schema. @param entity: Pointer to the instance of the class where the value is to be set. @param className: The name of the class. @param memberName: The name of the schema member. @param value: The vector value to set. @param changeState: If true, change will be sent over the network. @param element: Element # (starting from 0) if schema is an array.
func SetEntityAbsAngles ¶
SetEntityAbsAngles
@brief Sets the angular rotation of an entity. @param entityHandle: The handle of the entity whose angular rotation is to be set. @param angle: The new angular rotation to set for the entity.
func SetEntityAbsOrigin ¶
SetEntityAbsOrigin
@brief Sets the absolute origin of an entity. @param entityHandle: The handle of the entity whose absolute origin is to be set. @param origin: The new absolute origin to set for the entity.
func SetEntityAbsScale ¶
SetEntityAbsScale
@brief Sets the absolute scale of an entity. @param entityHandle: The handle of the entity whose absolute scale is to be set. @param scale: The new absolute scale to set for the entity.
func SetEntityAbsVelocity ¶
SetEntityAbsVelocity
@brief Sets the absolute velocity of an entity. @param entityHandle: The handle of the entity whose absolute velocity is to be set. @param velocity: The new absolute velocity to set for the entity.
func SetEntityAngRotation ¶
SetEntityAngRotation
@brief Sets the angular rotation of an entity. @param entityHandle: The handle of the entity whose angular rotation is to be set. @param rotation: The new angular rotation to set for the entity.
func SetEntityAngVelocity ¶
SetEntityAngVelocity
@brief Sets the angular velocity of an entity. @param entityHandle: The handle of the entity whose angular velocity is to be set. @param velocity: The new angular velocity to set for the entity.
func SetEntityAttributeFloatValue ¶
SetEntityAttributeFloatValue
@brief Sets a float attribute value on an entity. @param entityHandle: The handle of the entity. @param name: The name of the attribute. @param value: The float value to assign to the attribute.
func SetEntityAttributeIntValue ¶
SetEntityAttributeIntValue
@brief Sets an integer attribute value on an entity. @param entityHandle: The handle of the entity. @param name: The name of the attribute. @param value: The integer value to assign to the attribute.
func SetEntityBodygroup ¶
SetEntityBodygroup
@brief Sets a bodygroup value by index. @param entityHandle: The handle of the entity. @param group: The bodygroup index. @param value: The new value to set for the bodygroup.
func SetEntityBodygroupByName ¶
SetEntityBodygroupByName
@brief Sets a bodygroup value by name. @param entityHandle: The handle of the entity. @param name: The bodygroup name. @param value: The new value to set for the bodygroup.
func SetEntityFlags ¶
SetEntityFlags
@brief Sets the flags of an entity. @param entityHandle: The handle of the entity whose flags are to be set. @param flags: The new flags to set for the entity.
func SetEntityForwardVector ¶
SetEntityForwardVector
@brief Sets the forward velocity of an entity. @param entityHandle: The handle of the entity whose forward velocity is to be set.
func SetEntityFriction ¶
SetEntityFriction
@brief Sets the friction of an entity. @param entityHandle: The handle of the entity whose friction is to be set. @param friction: The new friction value to set for the entity.
func SetEntityGravity ¶
SetEntityGravity
@brief Sets the gravity scale of an entity. @param entityHandle: The handle of the entity whose gravity scale is to be set. @param gravity: The new gravity scale to set for the entity.
func SetEntityHealth ¶
SetEntityHealth
@brief Sets the health of an entity. @param entityHandle: The handle of the entity whose health is to be set. @param health: The new health value to set for the entity.
func SetEntityLightGroup ¶
SetEntityLightGroup
@brief Sets the light group of an entity. @param entityHandle: The handle of the entity. @param lightGroup: The light group name.
func SetEntityLocalAngles ¶
SetEntityLocalAngles
@brief Sets the angular rotation of an entity. @param entityHandle: The handle of the entity whose angular rotation is to be set. @param angle: The new angular rotation to set for the entity.
func SetEntityLocalOrigin ¶
SetEntityLocalOrigin
@brief Sets the local origin of an entity. @param entityHandle: The handle of the entity whose local origin is to be set. @param origin: The new local origin to set for the entity.
func SetEntityLocalScale ¶
SetEntityLocalScale
@brief Sets the local scale of an entity. @param entityHandle: The handle of the entity whose local scale is to be set. @param scale: The new local scale to set for the entity.
func SetEntityMass ¶
SetEntityMass
@brief Sets the mass of an entity. @param entityHandle: The handle of the entity whose mass is to be set. @param mass: The new mass value to set for the entity.
func SetEntityMaterialGroup ¶
SetEntityMaterialGroup
@brief Sets the material group of an entity. @param entityHandle: The handle of the entity. @param materialGroup: The material group name.
func SetEntityMaterialGroupHash ¶
SetEntityMaterialGroupHash
@brief Sets the material group hash of an entity. @param entityHandle: The handle of the entity. @param hash: The new material group hash to set.
func SetEntityMaterialGroupMask ¶
SetEntityMaterialGroupMask
@brief Sets the material group mask of an entity. @param entityHandle: The handle of the entity. @param mask: The new mesh group mask to set.
func SetEntityMaxHealth ¶
SetEntityMaxHealth
@brief Sets the max health of an entity. @param entityHandle: The handle of the entity whose max health is to be set. @param maxHealth: The new max health value to set for the entity.
func SetEntityModel ¶
SetEntityModel
@brief Sets the model name of an entity. @param entityHandle: The handle of the entity whose model name is to be set. @param model: The new model name to set for the entity.
func SetEntityModelScale ¶
SetEntityModelScale
@brief Sets the model scale of an entity. @param entityHandle: The handle of the entity. @param scale: The new scale factor.
func SetEntityMoveType ¶
SetEntityMoveType
@brief Sets the movement type of an entity. @param entityHandle: The handle of the entity whose movement type is to be set. @param moveType: The new movement type to set for the entity.
func SetEntityName ¶
SetEntityName
@brief Sets the name of an entity. @param entityHandle: The handle of the entity whose name is to be set. @param name: The new name to set for the entity.
func SetEntityOwner ¶
SetEntityOwner
@brief Sets the owner of an entity. @param entityHandle: The handle of the entity whose owner is to be set. @param ownerHandle: The handle of the new owner entity.
func SetEntityParent ¶
SetEntityParent
@brief Sets the parent of an entity. @param entityHandle: The handle of the entity whose parent is to be set. @param parentHandle: The handle of the new parent entity. (Can be invalid to clean parent)
func SetEntityParentAttachment ¶
SetEntityParentAttachment
@brief Sets the parent of an entity to attachment by name. @param entityHandle: The handle of the entity whose parent is to be set. @param parentHandle: The handle of the new parent entity. @param attachmentName: The name of the entity's attachment.
func SetEntityRenderAlpha ¶
SetEntityRenderAlpha
@brief Sets the render alpha of an entity. @param entityHandle: The handle of the entity. @param alpha: The new alpha value (0–255).
func SetEntityRenderColor ¶
SetEntityRenderColor
@brief Sets the render color of an entity. @param entityHandle: The handle of the entity whose render color is to be set. @param color: The new raw color value to set for the entity's render color.
func SetEntityRenderColor2 ¶
SetEntityRenderColor2
@brief Sets the render color of an entity. @param entityHandle: The handle of the entity. @param r: The red component (0–255). @param g: The green component (0–255). @param b: The blue component (0–255).
func SetEntityRenderMode ¶
func SetEntityRenderMode(entityHandle int32, renderMode RenderMode)
SetEntityRenderMode
@brief Sets the render mode of an entity. @param entityHandle: The handle of the entity whose render mode is to be set. @param renderMode: The new render mode to set for the entity.
func SetEntityRenderMode2 ¶
SetEntityRenderMode2
@brief Sets the render mode of an entity. @param entityHandle: The handle of the entity. @param mode: The new render mode value.
func SetEntitySingleMeshGroup ¶
SetEntitySingleMeshGroup
@brief Sets a single mesh group for an entity. @param entityHandle: The handle of the entity. @param meshGroupName: The name of the mesh group.
func SetEntitySize ¶
SetEntitySize
@brief Sets the size (bounding box) of an entity. @param entityHandle: The handle of the entity. @param mins: The minimum bounding box vector. @param maxs: The maximum bounding box vector.
func SetEntitySkin ¶
SetEntitySkin
@brief Sets the skin of an entity. @param entityHandle: The handle of the entity. @param skin: The new skin index.
func SetEntityTeam ¶
SetEntityTeam
@brief Sets the team number of an entity. @param entityHandle: The handle of the entity whose team number is to be set. @param team: The new team number to set for the entity.
func SetEventBool ¶
SetEventBool
@brief Sets the boolean value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the boolean value. @param value: The boolean value to set.
func SetEventBroadcast ¶
SetEventBroadcast
@brief Sets whether an event's broadcasting will be disabled or not. @param event: A pointer to the IGameEvent object containing event data. @param dontBroadcast: A boolean indicating whether to disable broadcasting.
func SetEventEntity ¶
SetEventEntity
@brief Sets the entity address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the entity address. @param value: A pointer to the entity to set.
func SetEventEntityHandle ¶
SetEventEntityHandle
@brief Sets the entity handle of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the entity handle. @param value: The entity handle value to set.
func SetEventEntityIndex ¶
SetEventEntityIndex
@brief Sets the entity index of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the entity index. @param value: The entity index value to set.
func SetEventFloat ¶
SetEventFloat
@brief Sets the floating point value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the float value. @param value: The float value to set.
func SetEventInt ¶
SetEventInt
@brief Sets the integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the integer value. @param value: The integer value to set.
func SetEventPlayerController ¶
SetEventPlayerController
@brief Sets the player controller address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the player controller address. @param value: A pointer to the player controller to set.
func SetEventPlayerIndex ¶
SetEventPlayerIndex
@brief Sets the player index value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the player index value. @param value: The player index value to set.
func SetEventPlayerSlot ¶
SetEventPlayerSlot
@brief Sets the player slot value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the player slot value. @param value: The player slot value to set.
func SetEventPtr ¶
SetEventPtr
@brief Sets the pointer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the pointer value. @param value: The pointer value to set.
func SetEventString ¶
SetEventString
@brief Sets the string value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the string value. @param value: The string value to set.
func SetEventUInt64 ¶
SetEventUInt64
@brief Sets the long integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the long integer value. @param value: The long integer value to set.
func SetFakeClientConVarValue ¶
SetFakeClientConVarValue
@brief Replicates a console variable value to a specific fake client. This does not change the actual console variable value. @param playerSlot: The index of the fake client to replicate the value to. @param convarName: The name of the console variable. @param convarValue: The value to set for the console variable.
func SetLoggerChannelColor ¶
SetLoggerChannelColor
@brief Sets the color setting of a logging channel. @param channelID: The ID of the logging channel. @param color: The new color value to set for the channel.
func SetLoggerChannelFlags ¶
func SetLoggerChannelFlags(channelID int32, eFlags LoggingChannelFlags)
SetLoggerChannelFlags
@brief Sets the flags of a logging channel. @param channelID: The ID of the logging channel. @param eFlags: The new flags to set for the channel.
func SetLoggerChannelVerbosity ¶
func SetLoggerChannelVerbosity(channelID int32, verbosity LoggingVerbosity)
SetLoggerChannelVerbosity
@brief Sets the verbosity level of a logging channel. @param channelID: The ID of the logging channel. @param verbosity: The new verbosity level to set.
func SetLoggerChannelVerbosityByName ¶
func SetLoggerChannelVerbosityByName(channelID int32, name string, verbosity LoggingVerbosity)
SetLoggerChannelVerbosityByName
@brief Sets the verbosity level of a logging channel by name. @param channelID: The ID of the logging channel. @param name: The name of the logging channel. @param verbosity: The new verbosity level to set.
func SetLoggerChannelVerbosityByTag ¶
func SetLoggerChannelVerbosityByTag(channelID int32, tag string, verbosity LoggingVerbosity)
SetLoggerChannelVerbosityByTag
@brief Sets the verbosity level of a logging channel by tag. @param channelID: The ID of the logging channel. @param tag: The name of the tag. @param verbosity: The new verbosity level to set.
func SetTransmitInfoAlways ¶
SetTransmitInfoAlways
@brief Sets a bit in the TransmitAlways bitvec, marking an entity to always transmit. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to mark as always transmittable.
func SetTransmitInfoAlwaysAll ¶
func SetTransmitInfoAlwaysAll(info uintptr)
SetTransmitInfoAlwaysAll
@brief Sets all bits in the TransmitAlways bitvec, marking all entities to always transmit. @param info: Pointer to the CCheckTransmitInfo structure.
func SetTransmitInfoEntity ¶
SetTransmitInfoEntity
@brief Sets a bit in the TransmitEntity bitvec, marking an entity as transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to mark as transmittable.
func SetTransmitInfoEntityAll ¶
func SetTransmitInfoEntityAll(info uintptr)
SetTransmitInfoEntityAll
@brief Sets all bits in the TransmitEntity bitvec, marking all entities as transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func SetTransmitInfoFullUpdate ¶
SetTransmitInfoFullUpdate
@brief Sets the full update flag in the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @param fullUpdate: The full update flag value to set.
func SetTransmitInfoNonPlayer ¶
SetTransmitInfoNonPlayer
@brief Sets a bit in the TransmitNonPlayers bitvec, marking a non-player entity as transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The index of the non-player entity to mark as transmittable.
func SetTransmitInfoNonPlayerAll ¶
func SetTransmitInfoNonPlayerAll(info uintptr)
SetTransmitInfoNonPlayerAll
@brief Sets all bits in the TransmitNonPlayers bitvec, marking all non-player entities as transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func SetTransmitInfoPlayerSlot ¶
SetTransmitInfoPlayerSlot
@brief Sets the player slot value in the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @param playerSlot: The player slot value to set.
func SetUserFlagBits ¶
SetUserFlagBits
@brief Sets the access flags on a client using a bitmask. @param playerSlot: The index of the player's slot. @param flags: Bitmask representing the flags to be set.
func SpawnEntityByName ¶
SpawnEntityByName
@brief Creates an entity by classname. @param className: The class name of the entity to create. @return The handle of the created entity, or INVALID_EHANDLE_INDEX if creation failed.
func SplineQuaternions ¶
SplineQuaternions
@brief Interpolates between two quaternions using spline @param q0: Starting quaternion @param q1: Ending quaternion @param t: Interpolation parameter (0.0 to 1.0) @return Interpolated quaternion
func SplineVectors ¶
SplineVectors
@brief Interpolates between two vectors using spline @param v0: Starting vector @param v1: Ending vector @param t: Interpolation parameter (0.0 to 1.0) @return Interpolated vector
func StopSound ¶
StopSound
@brief Stops a sound from a specified entity. @param entityHandle: The handle of the entity that will stop the sound. @param sound: The name of the sound to stop.
func SwitchClientTeam ¶
SwitchClientTeam
@brief Switches the player's team. @param playerSlot: The index of the player's slot. @param team: The team index to switch the client to.
func SwitchWeapon ¶
SwitchWeapon
@brief Switches a player's weapon. @param playerSlot: The index of the player's slot. @param weaponHandle: The handle of weapon to switch.
func TakeClientDamage ¶
func TakeClientDamage(playerSlot int32, inflictorSlot int32, attackerSlot int32, force plugify.Vector3, hitPos plugify.Vector3, damage float32, damageTypes DamageTypes) int32
TakeClientDamage
@brief Apply damage to an client. @param playerSlot: The index of the player's slot receiving damage @param inflictorSlot: The index of the player's slot inflicting damage (e.g., projectile) @param attackerSlot: The index of the attacking client @param force: Direction and magnitude of force to apply @param hitPos: Position where the damage hit occurred @param damage: Amount of damage to apply @param damageTypes: Bitfield of damage type flags @return Amount of damage actually applied to the client
func TakeEntityDamage ¶
func TakeEntityDamage(entityHandle int32, inflictorHandle int32, attackerHandle int32, force plugify.Vector3, hitPos plugify.Vector3, damage float32, damageTypes DamageTypes) int32
TakeEntityDamage
@brief Apply damage to an entity. @param entityHandle: The handle of the entity receiving damage @param inflictorHandle: The handle of the entity inflicting damage (e.g., projectile) @param attackerHandle: The handle of the attacking entity @param force: Direction and magnitude of force to apply @param hitPos: Position where the damage hit occurred @param damage: Amount of damage to apply @param damageTypes: Bitfield of damage type flags @return Amount of damage actually applied to the entity
func TeleportClient ¶
func TeleportClient(playerSlot int32, origin plugify.Vector3, angles plugify.Vector3, velocity plugify.Vector3)
TeleportClient
@brief Teleports an client to a specified location and orientation. @param playerSlot: The index of the player's slot to teleport. @param origin: A pointer to a Vector representing the new absolute position. Use nan vector to not set. @param angles: A pointer to a QAngle representing the new orientation. Use nan vector to not set. @param velocity: A pointer to a Vector representing the new velocity. Use nan vector to not set.
func TeleportEntity ¶
func TeleportEntity(entityHandle int32, origin plugify.Vector3, angles plugify.Vector3, velocity plugify.Vector3)
TeleportEntity
@brief Teleports an entity to a specified location and orientation. @param entityHandle: The handle of the entity to teleport. @param origin: A pointer to a Vector representing the new absolute position. Use nan vector to not set. @param angles: A pointer to a QAngle representing the new orientation. Use nan vector to not set. @param velocity: A pointer to a Vector representing the new velocity. Use nan vector to not set.
func TerminateRound ¶
func TerminateRound(delay float32, reason CSRoundEndReason)
TerminateRound
@brief Forces the round to end with a specified reason and delay. @param delay: Time (in seconds) to delay before the next round starts. @param reason: The reason for ending the round, defined by the CSRoundEndReason enum.
func TraceCollideable ¶
func TraceCollideable(start plugify.Vector3, end plugify.Vector3, entityHandle int32, outPos *plugify.Vector3, outFraction *float64, outHit *bool, outStartSolid *bool, outNormal *plugify.Vector3) bool
TraceCollideable
@brief Performs a collideable trace using the VScript-compatible table call, exposing it through C++ exports. @param start: Trace start position (world space) @param end: Trace end position (world space) @param entityHandle: Entity handle of the collideable @param outPos: Output: position of impact @param outFraction: Output: fraction of trace completed @param outHit: Output: whether a hit occurred @param outStartSolid: Output: whether trace started inside solid @param outNormal: Output: surface normal at impact @return True if trace hit something, false otherwise
func TraceCollideable2 ¶
func TraceCollideable2(start plugify.Vector3, end plugify.Vector3, entityHandle int32, mins uintptr, maxs uintptr, outPos *plugify.Vector3, outFraction *float64, outHit *bool, outStartSolid *bool, outNormal *plugify.Vector3) bool
TraceCollideable2
@brief Performs a collideable trace using the VScript-compatible table call, exposing it through C++ exports. @param start: Trace start position (world space) @param end: Trace end position (world space) @param entityHandle: Entity handle of the collideable @param mins: Bounding box minimums @param maxs: Bounding box maximums @param outPos: Output: position of impact @param outFraction: Output: fraction of trace completed @param outHit: Output: whether a hit occurred @param outStartSolid: Output: whether trace started inside solid @param outNormal: Output: surface normal at impact @return True if trace hit something, false otherwise
func TraceHull ¶
func TraceHull(start plugify.Vector3, end plugify.Vector3, min plugify.Vector3, max plugify.Vector3, mask int32, ignoreHandle int32, outPos *plugify.Vector3, outFraction *float64, outHit *bool, outEntHit *int32, outStartSolid *bool) bool
TraceHull
@brief Performs a hull trace with specified dimensions and mask. @param start: Trace start position @param end: Trace end position @param min: Local bounding box minimums @param max: Local bounding box maximums @param mask: Trace mask @param ignoreHandle: Entity handle to ignore during trace @param outPos: Output: position of impact @param outFraction: Output: fraction of trace completed @param outHit: Output: whether a hit occurred @param outEntHit: Output: handle of entity hit @param outStartSolid: Output: whether trace started inside solid @return True if trace hit something, false otherwise
func TraceLine ¶
func TraceLine(startPos plugify.Vector3, endPos plugify.Vector3, mask int32, ignoreHandle int32, outPos *plugify.Vector3, outFraction *float64, outHit *bool, outEntHit *int32, outStartSolid *bool) bool
TraceLine
@brief Performs a line trace between two points. @param startPos: Trace start position @param endPos: Trace end position @param mask: Trace mask @param ignoreHandle: Entity handle to ignore during trace @param outPos: Output: position of impact @param outFraction: Output: fraction of trace completed @param outHit: Output: whether a hit occurred @param outEntHit: Output: handle of entity hit @param outStartSolid: Output: whether trace started inside solid @return True if trace hit something, false otherwise
func TransformPointClientToWorld ¶
TransformPointClientToWorld
@brief Returns the input Vector transformed from client to world space. @param playerSlot: The index of the player's slot @param point: Point in client local space to transform @return The point transformed to world space coordinates
func TransformPointEntityToWorld ¶
TransformPointEntityToWorld
@brief Returns the input Vector transformed from entity to world space. @param entityHandle: The handle of the entity @param point: Point in entity local space to transform @return The point transformed to world space coordinates
func TransformPointWorldToClient ¶
TransformPointWorldToClient
@brief Returns the input Vector transformed from world to client space. @param playerSlot: The index of the player's slot @param point: Point in world space to transform @return The point transformed to client local space coordinates
func TransformPointWorldToEntity ¶
TransformPointWorldToEntity
@brief Returns the input Vector transformed from world to entity space. @param entityHandle: The handle of the entity @param point: Point in world space to transform @return The point transformed to entity local space coordinates
func UnhookConVarChange ¶
func UnhookConVarChange(conVarHandle uint64, callback ChangeCallback)
UnhookConVarChange
@brief Removes a hook for when a console variable's value is changed. @param conVarHandle: The handle to the console variable data. @param callback: The callback function to be removed.
func UnhookEntityOutput ¶
func UnhookEntityOutput(classname string, output string, callback HookEntityOutputCallback, type_ HookMode) bool
UnhookEntityOutput
@brief Removes an entity output hook. @param classname: The class name of the entity from which to unhook the output. @param output: The output event name to unhook. @param callback: The callback function that was previously hooked. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return True if the hook was successfully removed, false otherwise.
func UnhookUserMessage ¶
func UnhookUserMessage(messageId int16, callback UserMessageCallback, mode HookMode) bool
UnhookUserMessage
@brief Unhooks a previously hooked user message. @param messageId: The ID of the message to unhook. @param callback: The callback function to remove. @param mode: Whether the hook was in post mode (after processing) or pre mode (before processing). @return True if the hook was successfully removed, false otherwise.
func UserMessageAddAllPlayers ¶
func UserMessageAddAllPlayers(userMessage uintptr)
UserMessageAddAllPlayers
@brief Adds all connected players as recipients to the UserMessage. @param userMessage: The UserMessage instance.
func UserMessageAddRecipient ¶
UserMessageAddRecipient
@brief Adds a single recipient (player) to the UserMessage. @param userMessage: The UserMessage instance. @param playerSlot: The slot index of the player to add as a recipient.
func UserMessageCreateFromId ¶
UserMessageCreateFromId
@brief Creates a UserMessage from a message ID. @param messageId: The ID of the message. @return A pointer to the newly created UserMessage.
func UserMessageCreateFromName ¶
UserMessageCreateFromName
@brief Creates a UserMessage from a message name. @param messageName: The name of the message. @return A pointer to the newly created UserMessage.
func UserMessageCreateFromSerializable ¶
func UserMessageCreateFromSerializable(msgSerializable uintptr, message uintptr, recipientMask uint64) uintptr
UserMessageCreateFromSerializable
@brief Creates a UserMessage from a serializable message. @param msgSerializable: The serializable message. @param message: The network message. @param recipientMask: The recipient mask. @return A pointer to the newly created UserMessage.
func UserMessageDestroy ¶
func UserMessageDestroy(userMessage uintptr)
UserMessageDestroy
@brief Destroys a UserMessage and frees its memory. @param userMessage: The UserMessage to destroy.
func UserMessageFindMessageIdByName ¶
UserMessageFindMessageIdByName
@brief Finds a message ID by its name. @param messageName: The name of the message. @return The ID of the message, or 0 if the message was not found.
func UserMessageGetDebugString ¶
UserMessageGetDebugString
@brief Gets the debug string representation of the UserMessage. @param userMessage: The UserMessage instance. @return The debug string as a string.
func UserMessageGetMessageID ¶
UserMessageGetMessageID
@brief Gets the ID of the message. @param userMessage: The UserMessage instance. @return The ID of the message.
func UserMessageGetMessageName ¶
UserMessageGetMessageName
@brief Gets the name of the message. @param userMessage: The UserMessage instance. @return The name of the message as a string.
func UserMessageGetProtobufMessage ¶
UserMessageGetProtobufMessage
@brief Gets the protobuf message associated with the UserMessage. @param userMessage: The UserMessage instance. @return A pointer to the protobuf message.
func UserMessageGetRecipientMask ¶
UserMessageGetRecipientMask
@brief Gets the recipient mask for the UserMessage. @param userMessage: The UserMessage instance. @return The recipient mask.
func UserMessageGetRepeatedFieldCount ¶
UserMessageGetRepeatedFieldCount
@brief Gets the count of repeated fields in a field of the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @return The count of repeated fields, or -1 if the field is not repeated or does not exist.
func UserMessageGetSerializableMessage ¶
UserMessageGetSerializableMessage
@brief Gets the serializable message associated with the UserMessage. @param userMessage: The UserMessage instance. @return A pointer to the serializable message.
func UserMessageHasField ¶
UserMessageHasField
@brief Checks if the message has a specific field. @param userMessage: The UserMessage instance. @param fieldName: The name of the field to check. @return True if the field exists, false otherwise.
func UserMessageRemoveAllRecipient ¶ added in v2.5.1
func UserMessageRemoveAllRecipient(userMessage uintptr)
UserMessageRemoveAllRecipient
@brief Remove all players UserMessage. @param userMessage: The UserMessage instance.
func UserMessageRemoveRepeatedFieldValue ¶
UserMessageRemoveRepeatedFieldValue
@brief Removes a value from a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the value to remove. @return True if the value was successfully removed, false otherwise.
func UserMessageSend ¶
func UserMessageSend(userMessage uintptr)
UserMessageSend
@brief Sends a UserMessage to the specified recipients. @param userMessage: The UserMessage to send.
func UserMessageSetRecipientMask ¶
UserMessageSetRecipientMask
@brief Sets the recipient mask for the UserMessage. @param userMessage: The UserMessage instance. @param mask: The recipient mask to set.
Types ¶
type CSRoundEndReason ¶
type CSRoundEndReason = int32
CSRoundEndReason - Enum representing the possible reasons for a round ending in Counter-Strike.
const ( // TargetBombed - Target successfully bombed. CSRoundEndReason_TargetBombed CSRoundEndReason = 1 // VIPEscaped - The VIP has escaped (not present in CS:GO). CSRoundEndReason_VIPEscaped CSRoundEndReason = 2 // VIPKilled - VIP has been assassinated (not present in CS:GO). CSRoundEndReason_VIPKilled CSRoundEndReason = 3 // TerroristsEscaped - The terrorists have escaped. CSRoundEndReason_TerroristsEscaped CSRoundEndReason = 4 // CTStoppedEscape - The CTs have prevented most of the terrorists from escaping. CSRoundEndReason_CTStoppedEscape CSRoundEndReason = 5 // TerroristsStopped - Escaping terrorists have all been neutralized. CSRoundEndReason_TerroristsStopped CSRoundEndReason = 6 // BombDefused - The bomb has been defused. CSRoundEndReason_BombDefused CSRoundEndReason = 7 // CTWin - Counter-Terrorists win. CSRoundEndReason_CTWin CSRoundEndReason = 8 // TerroristWin - Terrorists win. CSRoundEndReason_TerroristWin CSRoundEndReason = 9 // Draw - Round draw. CSRoundEndReason_Draw CSRoundEndReason = 10 // HostagesRescued - All hostages have been rescued. CSRoundEndReason_HostagesRescued CSRoundEndReason = 11 // TargetSaved - Target has been saved. CSRoundEndReason_TargetSaved CSRoundEndReason = 12 // HostagesNotRescued - Hostages have not been rescued. CSRoundEndReason_HostagesNotRescued CSRoundEndReason = 13 // TerroristsNotEscaped - Terrorists have not escaped. CSRoundEndReason_TerroristsNotEscaped CSRoundEndReason = 14 // VIPNotEscaped - VIP has not escaped (not present in CS:GO). CSRoundEndReason_VIPNotEscaped CSRoundEndReason = 15 // GameStart - Game commencing. CSRoundEndReason_GameStart CSRoundEndReason = 16 // TerroristsSurrender - Terrorists surrender. CSRoundEndReason_TerroristsSurrender CSRoundEndReason = 17 // CTSurrender - CTs surrender. CSRoundEndReason_CTSurrender CSRoundEndReason = 18 // TerroristsPlanted - Terrorists planted the bomb. CSRoundEndReason_TerroristsPlanted CSRoundEndReason = 19 // CTsReachedHostage - CTs reached the hostage. CSRoundEndReason_CTsReachedHostage CSRoundEndReason = 20 // SurvivalWin - Survival mode win. CSRoundEndReason_SurvivalWin CSRoundEndReason = 21 // SurvivalDraw - Survival mode draw. CSRoundEndReason_SurvivalDraw CSRoundEndReason = 22 )
type CSTeam ¶
type CSTeam = int32
CSTeam - Enum representing the possible teams in Counter-Strike.
func GetClientTeam ¶
GetClientTeam
@brief Retrieves the team number of an client. @param playerSlot: The index of the player's slot whose team number is to be retrieved. @return The team number of the client, or 0 if the client is invalid.
func GetEntityTeam ¶
GetEntityTeam
@brief Retrieves the team number of an entity. @param entityHandle: The handle of the entity whose team number is to be retrieved. @return The team number of the entity, or 0 if the entity is invalid.
type CSWeaponCategory ¶
type CSWeaponCategory = uint32
CSWeaponCategory - Enum representing different weapon categories.
const ( CSWeaponCategory_Other CSWeaponCategory = 0 CSWeaponCategory_Melee CSWeaponCategory = 1 CSWeaponCategory_Secondary CSWeaponCategory = 2 CSWeaponCategory_SMG CSWeaponCategory = 3 CSWeaponCategory_Rifle CSWeaponCategory = 4 CSWeaponCategory_Heavy CSWeaponCategory = 5 CSWeaponCategory_Count CSWeaponCategory = 6 )
func GetWeaponCategory ¶
func GetWeaponCategory(entityHandle int32) CSWeaponCategory
GetWeaponCategory
@brief Retrieves the weapon category of a given entity. @param entityHandle: The handle of the entity (weapon). @return The category of the weapon, or WEAPONCATEGORY_OTHER if the entity is invalid.
type CSWeaponType ¶
type CSWeaponType = uint32
CSWeaponType - Enum representing different weapon types.
const ( CSWeaponType_Knife CSWeaponType = 0 CSWeaponType_Pistol CSWeaponType = 1 CSWeaponType_SubmachineGun CSWeaponType = 2 CSWeaponType_Rifle CSWeaponType = 3 CSWeaponType_Shotgun CSWeaponType = 4 CSWeaponType_SniperRifle CSWeaponType = 5 CSWeaponType_MachineGun CSWeaponType = 6 CSWeaponType_C4 CSWeaponType = 7 CSWeaponType_Taser CSWeaponType = 8 CSWeaponType_Grenade CSWeaponType = 9 CSWeaponType_Equipment CSWeaponType = 10 CSWeaponType_StackableItem CSWeaponType = 11 CSWeaponType_Unknown CSWeaponType = 12 )
func GetWeaponType ¶
func GetWeaponType(entityHandle int32) CSWeaponType
GetWeaponType
@brief Retrieves the weapon type of a given entity. @param entityHandle: The handle of the entity (weapon). @return The type of the weapon, or WEAPONTYPE_UNKNOWN if the entity is invalid.
type ChangeCallback ¶
ChangeCallback - Handles changes to a console variable's value. This function is called whenever the value of a specific console variable is modified.
type CheckTransmitInfo ¶
type CheckTransmitInfo struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for CheckTransmitInfo pointer.
func NewCheckTransmitInfo ¶
func NewCheckTransmitInfo(handle uintptr) *CheckTransmitInfo
NewCheckTransmitInfo creates a CheckTransmitInfo from a handle
func (*CheckTransmitInfo) AddTargetSlot ¶
func (w *CheckTransmitInfo) AddTargetSlot(playerSlot int32) error
AddTargetSlot
@brief Adds a player slot to the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @param playerSlot: The player slot value to add.
func (*CheckTransmitInfo) ClearAlways ¶
func (w *CheckTransmitInfo) ClearAlways(entityHandle int32) error
ClearAlways
@brief Clears a bit in the TransmitAlways bitvec, unmarking an entity from always transmit. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to unmark from always transmit.
func (*CheckTransmitInfo) ClearAlwaysAll ¶
func (w *CheckTransmitInfo) ClearAlwaysAll() error
ClearAlwaysAll
@brief Clears all bits in the TransmitAlways bitvec, unmarking all entities from always transmit. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) ClearEntity ¶
func (w *CheckTransmitInfo) ClearEntity(entityHandle int32) error
ClearEntity
@brief Clears a bit in the TransmitEntity bitvec, marking an entity as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to mark as not transmittable.
func (*CheckTransmitInfo) ClearEntityAll ¶
func (w *CheckTransmitInfo) ClearEntityAll() error
ClearEntityAll
@brief Clears all bits in the TransmitEntity bitvec, marking all entities as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) ClearNonPlayer ¶
func (w *CheckTransmitInfo) ClearNonPlayer(entityHandle int32) error
ClearNonPlayer
@brief Clears a bit in the TransmitNonPlayers bitvec, marking a non-player entity as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The index of the non-player entity to mark as not transmittable.
func (*CheckTransmitInfo) ClearNonPlayerAll ¶
func (w *CheckTransmitInfo) ClearNonPlayerAll() error
ClearNonPlayerAll
@brief Clears all bits in the TransmitNonPlayers bitvec, marking all non-player entities as not transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) Get ¶
func (w *CheckTransmitInfo) Get() uintptr
Get returns the underlying handle
func (*CheckTransmitInfo) GetFullUpdate ¶
func (w *CheckTransmitInfo) GetFullUpdate() (bool, error)
GetFullUpdate
@brief Gets the full update flag from the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @return True if full update is enabled, false otherwise.
func (*CheckTransmitInfo) GetPlayerSlot ¶
func (w *CheckTransmitInfo) GetPlayerSlot() (int32, error)
GetPlayerSlot
@brief Gets the player slot value from the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @return The player slot value, or -1 if info is null.
func (*CheckTransmitInfo) GetTargetSlot ¶
func (w *CheckTransmitInfo) GetTargetSlot(index int32) (int32, error)
GetTargetSlot
@brief Gets a player slot value at a specific index in the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @param index: The index in the target slots vector. @return The player slot value, or -1 if the index is invalid or info is null.
func (*CheckTransmitInfo) GetTargetSlotsAll ¶
func (w *CheckTransmitInfo) GetTargetSlotsAll() ([]int32, error)
GetTargetSlotsAll
@brief Gets the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @return The player slots array.
func (*CheckTransmitInfo) GetTargetSlotsCount ¶
func (w *CheckTransmitInfo) GetTargetSlotsCount() (int32, error)
GetTargetSlotsCount
@brief Gets the count of target player slots. @param info: Pointer to the CCheckTransmitInfo structure. @return The number of target player slots, or 0 if the info pointer is null.
func (*CheckTransmitInfo) IsAlwaysSet ¶
func (w *CheckTransmitInfo) IsAlwaysSet(entityHandle int32) (bool, error)
IsAlwaysSet
@brief Checks if a bit is set in the TransmitAlways bitvec. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to check. @return True if the entity is marked to always transmit, false otherwise.
func (*CheckTransmitInfo) IsEntitySet ¶
func (w *CheckTransmitInfo) IsEntitySet(entityHandle int32) (bool, error)
IsEntitySet
@brief Checks if a bit is set in the TransmitEntity bitvec. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to check. @return True if the entity is marked as transmittable, false otherwise.
func (*CheckTransmitInfo) IsNonPlayerSet ¶
func (w *CheckTransmitInfo) IsNonPlayerSet(entityHandle int32) (bool, error)
IsNonPlayerSet
@brief Checks if a bit is set in the TransmitNonPlayers bitvec. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The index of the non-player entity to check. @return True if the entity is marked as transmittable, false otherwise.
func (*CheckTransmitInfo) IsValid ¶
func (w *CheckTransmitInfo) IsValid() bool
IsValid returns true if handle is not nil
func (*CheckTransmitInfo) Release ¶
func (w *CheckTransmitInfo) Release() uintptr
Release releases ownership and returns the handle
func (*CheckTransmitInfo) RemoveTargetSlot ¶
func (w *CheckTransmitInfo) RemoveTargetSlot(index int32) error
RemoveTargetSlot
@brief Removes a player slot from the target slots vector. @param info: Pointer to the CCheckTransmitInfo structure. @param index: Index within the target slots vector to remove.
func (*CheckTransmitInfo) RemoveTargetSlotsAll ¶
func (w *CheckTransmitInfo) RemoveTargetSlotsAll() error
RemoveTargetSlotsAll
@brief Clears all target player slots from the vector. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) Reset ¶
func (w *CheckTransmitInfo) Reset()
Reset destroys and resets the handle
func (*CheckTransmitInfo) SetAlways ¶
func (w *CheckTransmitInfo) SetAlways(entityHandle int32) error
SetAlways
@brief Sets a bit in the TransmitAlways bitvec, marking an entity to always transmit. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to mark as always transmittable.
func (*CheckTransmitInfo) SetAlwaysAll ¶
func (w *CheckTransmitInfo) SetAlwaysAll() error
SetAlwaysAll
@brief Sets all bits in the TransmitAlways bitvec, marking all entities to always transmit. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) SetEntity ¶
func (w *CheckTransmitInfo) SetEntity(entityHandle int32) error
SetEntity
@brief Sets a bit in the TransmitEntity bitvec, marking an entity as transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The handle of the entity to mark as transmittable.
func (*CheckTransmitInfo) SetEntityAll ¶
func (w *CheckTransmitInfo) SetEntityAll() error
SetEntityAll
@brief Sets all bits in the TransmitEntity bitvec, marking all entities as transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) SetFullUpdate ¶
func (w *CheckTransmitInfo) SetFullUpdate(fullUpdate bool) error
SetFullUpdate
@brief Sets the full update flag in the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @param fullUpdate: The full update flag value to set.
func (*CheckTransmitInfo) SetNonPlayer ¶
func (w *CheckTransmitInfo) SetNonPlayer(entityHandle int32) error
SetNonPlayer
@brief Sets a bit in the TransmitNonPlayers bitvec, marking a non-player entity as transmittable. @param info: Pointer to the CCheckTransmitInfo structure. @param entityHandle: The index of the non-player entity to mark as transmittable.
func (*CheckTransmitInfo) SetNonPlayerAll ¶
func (w *CheckTransmitInfo) SetNonPlayerAll() error
SetNonPlayerAll
@brief Sets all bits in the TransmitNonPlayers bitvec, marking all non-player entities as transmittable. @param info: Pointer to the CCheckTransmitInfo structure.
func (*CheckTransmitInfo) SetPlayerSlot ¶
func (w *CheckTransmitInfo) SetPlayerSlot(playerSlot int32) error
SetPlayerSlot
@brief Sets the player slot value in the CCheckTransmitInfo. @param info: Pointer to the CCheckTransmitInfo structure. @param playerSlot: The player slot value to set.
type CommandCallback ¶
type CommandCallback func(caller int32, context CommandCallingContext, arguments []string) ResultType
CommandCallback - Handles the execution of a command triggered by a caller. This function processes the command, interprets its context, and handles any provided arguments.
type CommandCallingContext ¶
type CommandCallingContext = int32
CommandCallingContext - The command execution context.
const ( // Console - The command execute from the client's console. CommandCallingContext_Console CommandCallingContext = 0 // Chat - The command execute from the client's chat. CommandCallingContext_Chat CommandCallingContext = 1 )
type ConVar ¶
type ConVar struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for ConVar handle.
func NewConVarCreateConVar ¶
func NewConVarCreateConVar(name string, defaultValue any, description string, flags ConVarFlag) *ConVar
NewConVarCreateConVar
@brief Creates a new console variable. @param name: The name of the console variable. @param defaultValue: The default value of the console variable. @param description: A description of the console variable's purpose. @param flags: Additional flags for the console variable.
func NewConVarCreateConVarBool ¶
func NewConVarCreateConVarBool(name string, defaultValue bool, description string, flags ConVarFlag, hasMin bool, min bool, hasMax bool, max bool) *ConVar
NewConVarCreateConVarBool
@brief Creates a new boolean console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarDouble ¶
func NewConVarCreateConVarDouble(name string, defaultValue float64, description string, flags ConVarFlag, hasMin bool, min float64, hasMax bool, max float64) *ConVar
NewConVarCreateConVarDouble
@brief Creates a new double-precision console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarFloat ¶
func NewConVarCreateConVarFloat(name string, defaultValue float32, description string, flags ConVarFlag, hasMin bool, min float32, hasMax bool, max float32) *ConVar
NewConVarCreateConVarFloat
@brief Creates a new floating-point console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarInt16 ¶
func NewConVarCreateConVarInt16(name string, defaultValue int16, description string, flags ConVarFlag, hasMin bool, min int16, hasMax bool, max int16) *ConVar
NewConVarCreateConVarInt16
@brief Creates a new 16-bit signed integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarInt32 ¶
func NewConVarCreateConVarInt32(name string, defaultValue int32, description string, flags ConVarFlag, hasMin bool, min int32, hasMax bool, max int32) *ConVar
NewConVarCreateConVarInt32
@brief Creates a new 32-bit signed integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarInt64 ¶
func NewConVarCreateConVarInt64(name string, defaultValue int64, description string, flags ConVarFlag, hasMin bool, min int64, hasMax bool, max int64) *ConVar
NewConVarCreateConVarInt64
@brief Creates a new 64-bit signed integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarString ¶
func NewConVarCreateConVarString(name string, defaultValue string, description string, flags ConVarFlag) *ConVar
NewConVarCreateConVarString
@brief Creates a new string console variable. @param name: The name of the console variable. @param defaultValue: The default value of the console variable. @param description: A description of the console variable's purpose. @param flags: Additional flags for the console variable.
func NewConVarCreateConVarUInt16 ¶
func NewConVarCreateConVarUInt16(name string, defaultValue uint16, description string, flags ConVarFlag, hasMin bool, min uint16, hasMax bool, max uint16) *ConVar
NewConVarCreateConVarUInt16
@brief Creates a new 16-bit unsigned integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarUInt32 ¶
func NewConVarCreateConVarUInt32(name string, defaultValue uint32, description string, flags ConVarFlag, hasMin bool, min uint32, hasMax bool, max uint32) *ConVar
NewConVarCreateConVarUInt32
@brief Creates a new 32-bit unsigned integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarUInt64 ¶
func NewConVarCreateConVarUInt64(name string, defaultValue uint64, description string, flags ConVarFlag, hasMin bool, min uint64, hasMax bool, max uint64) *ConVar
NewConVarCreateConVarUInt64
@brief Creates a new 64-bit unsigned integer console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarVector2 ¶
func NewConVarCreateConVarVector2(name string, defaultValue plugify.Vector2, description string, flags ConVarFlag, hasMin bool, min plugify.Vector2, hasMax bool, max plugify.Vector2) *ConVar
NewConVarCreateConVarVector2
@brief Creates a new 2D vector console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarVector3 ¶
func NewConVarCreateConVarVector3(name string, defaultValue plugify.Vector3, description string, flags ConVarFlag, hasMin bool, min plugify.Vector3, hasMax bool, max plugify.Vector3) *ConVar
NewConVarCreateConVarVector3
@brief Creates a new 3D vector console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func NewConVarCreateConVarVector4 ¶
func NewConVarCreateConVarVector4(name string, defaultValue plugify.Vector4, description string, flags ConVarFlag, hasMin bool, min plugify.Vector4, hasMax bool, max plugify.Vector4) *ConVar
NewConVarCreateConVarVector4
@brief Creates a new 4D vector console variable. @param name: The name of the console variable. @param defaultValue: The default value for the console variable. @param description: A brief description of the console variable. @param flags: Flags that define the behavior of the console variable. @param hasMin: Indicates if a minimum value is provided. @param min: The minimum value if hasMin is true. @param hasMax: Indicates if a maximum value is provided. @param max: The maximum value if hasMax is true.
func (*ConVar) AddFlags ¶
func (w *ConVar) AddFlags(flags ConVarFlag) error
AddFlags
@brief Adds flags to a console variable. @param conVarHandle: The handle to the console variable data. @param flags: The flags to be added.
func (*ConVar) Find ¶
Find
@brief Searches for a console variable. @param name: The name of the console variable to search for. @return A handle to the console variable data if found; otherwise, nullptr.
func (*ConVar) Find2 ¶
func (w *ConVar) Find2(name string, type_ ConVarType) *ConVar
Find2
@brief Searches for a console variable of a specific type. @param name: The name of the console variable to search for. @param type_: The type of the console variable to search for. @return A handle to the console variable data if found; otherwise, nullptr.
func (*ConVar) GetBool ¶
GetBool
@brief Retrieves the current value of a boolean console variable. @param conVarHandle: The handle to the console variable data. @return The current boolean value of the console variable.
func (*ConVar) GetBounds ¶
GetBounds
@brief Gets the specified bound (max or min) of a console variable and stores it in the output string. @param conVarHandle: The handle to the console variable data. @param max: Indicates whether to get the maximum (true) or minimum (false) bound. @return The bound value.
func (*ConVar) GetClientValue ¶
GetClientValue
@brief Retrieves the value of a client's console variable and stores it in the output string. @param playerSlot: The index of the client whose console variable value is being retrieved. @param convarName: The name of the console variable to retrieve. @return The output string to store the client's console variable value.
func (*ConVar) GetColor ¶
GetColor
@brief Retrieves the current value of a Color console variable. @param conVarHandle: The handle to the console variable data. @return The current Color value of the console variable.
func (*ConVar) GetDefault ¶
GetDefault
@brief Retrieves the default value of a console variable and stores it in the output string. @param conVarHandle: The handle to the console variable data. @return The output value in string format.
func (*ConVar) GetDouble ¶
GetDouble
@brief Retrieves the current value of a double console variable. @param conVarHandle: The handle to the console variable data. @return The current double value of the console variable.
func (*ConVar) GetFlags ¶
func (w *ConVar) GetFlags() (ConVarFlag, error)
GetFlags
@brief Retrieves the current flags of a console variable. @param conVarHandle: The handle to the console variable data. @return The current flags set on the console variable.
func (*ConVar) GetFloat ¶
GetFloat
@brief Retrieves the current value of a float console variable. @param conVarHandle: The handle to the console variable data. @return The current float value of the console variable.
func (*ConVar) GetInt16 ¶
GetInt16
@brief Retrieves the current value of a signed 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current int16_t value of the console variable.
func (*ConVar) GetInt32 ¶
GetInt32
@brief Retrieves the current value of a signed 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current int32_t value of the console variable.
func (*ConVar) GetInt64 ¶
GetInt64
@brief Retrieves the current value of a signed 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current int64_t value of the console variable.
func (*ConVar) GetObject ¶
GetObject
@brief Retrieves the current value of a console variable and stores it in the output. @param conVarHandle: The handle to the console variable data. @return The output value.
func (*ConVar) GetQAngle ¶
GetQAngle
@brief Retrieves the current value of a QAngle console variable. @param conVarHandle: The handle to the console variable data. @return The current QAngle value of the console variable.
func (*ConVar) GetString ¶
GetString
@brief Retrieves the current value of a string console variable. @param conVarHandle: The handle to the console variable data. @return The current string value of the console variable.
func (*ConVar) GetUInt16 ¶
GetUInt16
@brief Retrieves the current value of an unsigned 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current uint16_t value of the console variable.
func (*ConVar) GetUInt32 ¶
GetUInt32
@brief Retrieves the current value of an unsigned 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current uint32_t value of the console variable.
func (*ConVar) GetUInt64 ¶
GetUInt64
@brief Retrieves the current value of an unsigned 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @return The current uint64_t value of the console variable.
func (*ConVar) GetValue ¶
GetValue
@brief Retrieves the current value of a console variable and stores it in the output string. @param conVarHandle: The handle to the console variable data. @return The output value in string format.
func (*ConVar) GetVector ¶
GetVector
@brief Retrieves the current value of a Vector console variable. @param conVarHandle: The handle to the console variable data. @return The current Vector value of the console variable.
func (*ConVar) GetVector2 ¶
GetVector2
@brief Retrieves the current value of a Vector2D console variable. @param conVarHandle: The handle to the console variable data. @return The current Vector2D value of the console variable.
func (*ConVar) GetVector4 ¶
GetVector4
@brief Retrieves the current value of a Vector4D console variable. @param conVarHandle: The handle to the console variable data. @return The current Vector4D value of the console variable.
func (*ConVar) HookChange ¶
func (w *ConVar) HookChange(callback ChangeCallback) error
HookChange
@brief Creates a hook for when a console variable's value is changed. @param conVarHandle: TThe handle to the console variable data. @param callback: The callback function to be executed when the variable's value changes.
func (*ConVar) IsFlagSet ¶
IsFlagSet
@brief Checks if a specific flag is set for a console variable. @param conVarHandle: The handle to the console variable data. @param flag: The flag to check against the console variable. @return True if the flag is set; otherwise, false.
func (*ConVar) RemoveFlags ¶
func (w *ConVar) RemoveFlags(flags ConVarFlag) error
RemoveFlags
@brief Removes flags from a console variable. @param conVarHandle: The handle to the console variable data. @param flags: The flags to be removed.
func (*ConVar) SendValue ¶
SendValue
@brief Replicates a console variable value to a specific client. This does not change the actual console variable value. @param conVarHandle: The handle to the console variable data. @param playerSlot: The index of the client to replicate the value to. @param value: The value to send to the client.
func (*ConVar) Set ¶
Set
@brief Sets the value of a console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetBool ¶
SetBool
@brief Sets the value of a boolean console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetBounds ¶
SetBounds
@brief Sets the specified bound (max or min) for a console variable. @param conVarHandle: The handle to the console variable data. @param max: Indicates whether to set the maximum (true) or minimum (false) bound. @param value: The value to set as the bound.
func (*ConVar) SetColor ¶
SetColor
@brief Sets the value of a color console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetDouble ¶
SetDouble
@brief Sets the value of a double-precision floating-point console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetFakeClientValue ¶
SetFakeClientValue
@brief Replicates a console variable value to a specific fake client. This does not change the actual console variable value. @param playerSlot: The index of the fake client to replicate the value to. @param convarName: The name of the console variable. @param convarValue: The value to set for the console variable.
func (*ConVar) SetFloat ¶
SetFloat
@brief Sets the value of a floating-point console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetInt16 ¶
SetInt16
@brief Sets the value of a signed 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetInt32 ¶
SetInt32
@brief Sets the value of a signed 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetInt64 ¶
SetInt64
@brief Sets the value of a signed 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetQAngle ¶
SetQAngle
@brief Sets the value of a quaternion angle console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetString ¶
SetString
@brief Sets the value of a string console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetUInt16 ¶
SetUInt16
@brief Sets the value of an unsigned 16-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetUInt32 ¶
SetUInt32
@brief Sets the value of an unsigned 32-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetUInt64 ¶
SetUInt64
@brief Sets the value of an unsigned 64-bit integer console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetValue ¶
SetValue
@brief Sets the value of a console variable. @param conVarHandle: The handle to the console variable data. @param value: The string value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetVector2 ¶
SetVector2
@brief Sets the value of a 2D vector console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetVector3 ¶
SetVector3
@brief Sets the value of a 3D vector console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) SetVector4 ¶
SetVector4
@brief Sets the value of a 4D vector console variable. @param conVarHandle: The handle to the console variable data. @param value: The value to set for the console variable. @param replicate: If set to true, the new convar value will be set on all clients. This will only work if the convar has the FCVAR_REPLICATED flag and actually exists on clients. @param notify: If set to true, clients will be notified that the convar has changed. This will only work if the convar has the FCVAR_NOTIFY flag.
func (*ConVar) UnhookChange ¶
func (w *ConVar) UnhookChange(callback ChangeCallback) error
UnhookChange
@brief Removes a hook for when a console variable's value is changed. @param conVarHandle: The handle to the console variable data. @param callback: The callback function to be removed.
type ConVarFlag ¶
type ConVarFlag = int64
ConVarFlag - Enum representing various flags for ConVars and ConCommands.
const ( // None - The default, no flags at all. ConVarFlag_None ConVarFlag = 0 // LinkedConcommand - Linked to a ConCommand. ConVarFlag_LinkedConcommand ConVarFlag = 1 // DevelopmentOnly - Hidden in released products. Automatically removed if ALLOW_DEVELOPMENT_CVARS is defined. ConVarFlag_DevelopmentOnly ConVarFlag = 2 // GameDll - Defined by the game DLL. ConVarFlag_GameDll ConVarFlag = 4 // ClientDll - Defined by the client DLL. ConVarFlag_ClientDll ConVarFlag = 8 // Hidden - Hidden. Doesn't appear in find or auto-complete. Like DEVELOPMENTONLY but cannot be compiled out. ConVarFlag_Hidden ConVarFlag = 16 // Protected - Server cvar; data is not sent since it's sensitive (e.g., passwords). ConVarFlag_Protected ConVarFlag = 32 // SpOnly - This cvar cannot be changed by clients connected to a multiplayer server. ConVarFlag_SpOnly ConVarFlag = 64 // Archive - Saved to vars.rc. ConVarFlag_Archive ConVarFlag = 128 // Notify - Notifies players when changed. ConVarFlag_Notify ConVarFlag = 256 // UserInfo - Changes the client's info string. ConVarFlag_UserInfo ConVarFlag = 512 // Missing0 - Hides the cvar from lookups. ConVarFlag_Missing0 ConVarFlag = 1024 // Unlogged - If this is a server cvar, changes are not logged to the file or console. ConVarFlag_Unlogged ConVarFlag = 2048 // Missing1 - Hides the cvar from lookups. ConVarFlag_Missing1 ConVarFlag = 4096 // Replicated - Server-enforced setting on clients. ConVarFlag_Replicated ConVarFlag = 8192 // Cheat - Only usable in singleplayer/debug or multiplayer with sv_cheats. ConVarFlag_Cheat ConVarFlag = 16384 // PerUser - Causes auto-generated varnameN for splitscreen slots. ConVarFlag_PerUser ConVarFlag = 32768 // Demo - Records this cvar when starting a demo file. ConVarFlag_Demo ConVarFlag = 65536 // DontRecord - Excluded from demo files. ConVarFlag_DontRecord ConVarFlag = 131072 // Missing2 - Reserved for future use. ConVarFlag_Missing2 ConVarFlag = 262144 // Release - Cvars tagged with this are available to customers. ConVarFlag_Release ConVarFlag = 524288 // MenuBarItem - Marks the cvar as a menu bar item. ConVarFlag_MenuBarItem ConVarFlag = 1048576 // Missing3 - Reserved for future use. ConVarFlag_Missing3 ConVarFlag = 2097152 // NotConnected - Cannot be changed by a client connected to a server. ConVarFlag_NotConnected ConVarFlag = 4194304 // VconsoleFuzzyMatching - Enables fuzzy matching for vconsole. ConVarFlag_VconsoleFuzzyMatching ConVarFlag = 8388608 // ServerCanExecute - The server can execute this command on clients. ConVarFlag_ServerCanExecute ConVarFlag = 16777216 // ClientCanExecute - Allows clients to execute this command. ConVarFlag_ClientCanExecute ConVarFlag = 33554432 // ServerCannotQuery - The server cannot query this cvar's value. ConVarFlag_ServerCannotQuery ConVarFlag = 67108864 // VconsoleSetFocus - Sets focus in the vconsole. ConVarFlag_VconsoleSetFocus ConVarFlag = 134217728 // ClientCmdCanExecute - IVEngineClient::ClientCmd can execute this command. ConVarFlag_ClientCmdCanExecute ConVarFlag = 268435456 // ExecutePerTick - Executes the cvar every tick. ConVarFlag_ExecutePerTick ConVarFlag = 536870912 )
func GetConVarFlags ¶
func GetConVarFlags(conVarHandle uint64) ConVarFlag
GetConVarFlags
@brief Retrieves the current flags of a console variable. @param conVarHandle: The handle to the console variable data. @return The current flags set on the console variable.
type ConVarType ¶
type ConVarType = int16
const ( // Invalid - Invalid type ConVarType_Invalid ConVarType = -1 // Bool - Boolean type ConVarType_Bool ConVarType = 0 // Int16 - 16-bit signed integer ConVarType_Int16 ConVarType = 1 // UInt16 - 16-bit unsigned integer ConVarType_UInt16 ConVarType = 2 // Int32 - 32-bit signed integer ConVarType_Int32 ConVarType = 3 // UInt32 - 32-bit unsigned integer ConVarType_UInt32 ConVarType = 4 // Int64 - 64-bit signed integer ConVarType_Int64 ConVarType = 5 // UInt64 - 64-bit unsigned integer ConVarType_UInt64 ConVarType = 6 // Float32 - 32-bit floating point ConVarType_Float32 ConVarType = 7 // Float64 - 64-bit floating point (double) ConVarType_Float64 ConVarType = 8 // String - String type ConVarType_String ConVarType = 9 // Color - Color type ConVarType_Color ConVarType = 10 // Vector2 - 2D vector ConVarType_Vector2 ConVarType = 11 // Vector3 - 3D vector ConVarType_Vector3 ConVarType = 12 // Vector4 - 4D vector ConVarType_Vector4 ConVarType = 13 // Qangle - Quaternion angle ConVarType_Qangle ConVarType = 14 // Max - Maximum value (used for bounds checking) ConVarType_Max ConVarType = 15 )
type CvarValueCallback ¶
type CvarValueCallback func(playerSlot int32, cookie int32, code CvarValueStatus, name string, value string, data []any)
CvarValueCallback - Handles changes to a console variable's value. This function is called whenever the value of a specific console variable is modified.
type CvarValueStatus ¶
type CvarValueStatus = int32
CvarValueStatus - Enum representing various flags for ConVars and ConCommands.
const ( // ValueIntact - It got the value fine. CvarValueStatus_ValueIntact CvarValueStatus = 0 // CvarNotFound - It did not found the value. CvarValueStatus_CvarNotFound CvarValueStatus = 1 // NotACvar - There's a ConCommand, but it's not a ConVar. CvarValueStatus_NotACvar CvarValueStatus = 2 // CvarProtected - The cvar was marked with FCVAR_SERVER_CAN_NOT_QUERY, so the server is not allowed to have its value. CvarValueStatus_CvarProtected CvarValueStatus = 3 )
type DamageTypes ¶
type DamageTypes = int32
DamageTypes - Enum representing various damage types.
const ( // DMG_GENERIC - Generic damage. DamageTypes_DMG_GENERIC DamageTypes = 0 // DMG_CRUSH - Crush damage. DamageTypes_DMG_CRUSH DamageTypes = 1 // DMG_BULLET - Bullet damage. DamageTypes_DMG_BULLET DamageTypes = 2 // DMG_SLASH - Slash damage. DamageTypes_DMG_SLASH DamageTypes = 4 // DMG_BURN - Burn damage. DamageTypes_DMG_BURN DamageTypes = 8 // DMG_VEHICLE - Vehicle damage. DamageTypes_DMG_VEHICLE DamageTypes = 16 // DMG_FALL - Fall damage. DamageTypes_DMG_FALL DamageTypes = 32 // DMG_BLAST - Blast damage. DamageTypes_DMG_BLAST DamageTypes = 64 // DMG_CLUB - Club damage. DamageTypes_DMG_CLUB DamageTypes = 128 // DMG_SHOCK - Shock damage. DamageTypes_DMG_SHOCK DamageTypes = 256 // DMG_SONIC - Sonic damage. DamageTypes_DMG_SONIC DamageTypes = 512 // DMG_ENERGYBEAM - Energy beam damage. DamageTypes_DMG_ENERGYBEAM DamageTypes = 1024 // DMG_DROWN - Drowning damage. DamageTypes_DMG_DROWN DamageTypes = 16384 // DMG_POISON - Poison damage. DamageTypes_DMG_POISON DamageTypes = 32768 // DMG_RADIATION - Radiation damage. DamageTypes_DMG_RADIATION DamageTypes = 65536 // DMG_DROWNRECOVER - Recovering from drowning damage. DamageTypes_DMG_DROWNRECOVER DamageTypes = 131072 // DMG_ACID - Acid damage. DamageTypes_DMG_ACID DamageTypes = 262144 // DMG_PHYSGUN - Physgun damage. DamageTypes_DMG_PHYSGUN DamageTypes = 1048576 // DMG_DISSOLVE - Dissolve damage. DamageTypes_DMG_DISSOLVE DamageTypes = 2097152 // DMG_BLAST_SURFACE - Surface blast damage. DamageTypes_DMG_BLAST_SURFACE DamageTypes = 4194304 // DMG_BUCKSHOT - Buckshot damage. DamageTypes_DMG_BUCKSHOT DamageTypes = 16777216 // DMG_LASTGENERICFLAG - Last generic flag damage. DamageTypes_DMG_LASTGENERICFLAG DamageTypes = 16777216 // DMG_HEADSHOT - Headshot damage. DamageTypes_DMG_HEADSHOT DamageTypes = 33554432 // DMG_DANGERZONE - Danger zone damage. DamageTypes_DMG_DANGERZONE DamageTypes = 67108864 )
type EventCallback ¶
type EventCallback func(name string, event uintptr, dontBroadcast bool) ResultType
EventCallback - Handles events triggered by the game event system. This function processes the event data, determines the necessary action, and optionally prevents event broadcasting.
type EventHookError ¶
type EventHookError = int32
EventHookError - Enum representing the type of callback.
const ( // Okay - Indicates that the event hook was successfully created. EventHookError_Okay EventHookError = 0 // InvalidEvent - Indicates that the event name provided is invalid or does not exist. EventHookError_InvalidEvent EventHookError = 1 // NotActive - Indicates that the event system is not currently active or initialized. EventHookError_NotActive EventHookError = 2 // InvalidCallback - Indicates that the callback function provided is invalid or not compatible with the event system. EventHookError_InvalidCallback EventHookError = 3 )
func HookEvent ¶
func HookEvent(name string, callback EventCallback, type_ HookMode) EventHookError
HookEvent
@brief Creates a hook for when a game event is fired. @param name: The name of the event to hook. @param callback: The callback function to call when the event is fired. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return An integer indicating the result of the hook operation.
func UnhookEvent ¶
func UnhookEvent(name string, callback EventCallback, type_ HookMode) EventHookError
UnhookEvent
@brief Removes a hook for when a game event is fired. @param name: The name of the event to unhook. @param callback: The callback function to remove. @param type_: Whether the hook was in post mode (after processing) or pre mode (before processing). @return An integer indicating the result of the unhook operation.
type EventInfo ¶
type EventInfo struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for EventInfo pointer.
func NewEventInfo ¶
NewEventInfo creates a EventInfo from a handle
func NewEventInfoCreateEvent ¶
NewEventInfoCreateEvent
@brief Creates a game event to be fired later. @param name: The name of the event to create. @param force: A boolean indicating whether to force the creation of the event.
func (*EventInfo) Cancel ¶
Cancel
@brief Cancels a previously created game event that has not been fired. @param event: A pointer to the IGameEvent object of the event to cancel.
func (*EventInfo) Fire ¶
Fire
@brief Fires a game event. @param event: A pointer to the IGameEvent object containing event data. @param dontBroadcast: A boolean indicating whether to broadcast the event.
func (*EventInfo) FireToClient ¶
FireToClient
@brief Fires a game event to a specific client. @param event: A pointer to the IGameEvent object containing event data. @param playerSlot: The index of the client to fire the event to.
func (*EventInfo) GetBool ¶
GetBool
@brief Retrieves the boolean value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the boolean value. @return The boolean value associated with the key.
func (*EventInfo) GetEntity ¶
GetEntity
@brief Retrieves the entity address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the entity address. @return A pointer to the entity associated with the key.
func (*EventInfo) GetEntityHandle ¶
GetEntityHandle
@brief Retrieves the entity handle of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the entity handle. @return The entity handle associated with the key.
func (*EventInfo) GetEntityIndex ¶
GetEntityIndex
@brief Retrieves the entity index of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the entity index. @return The entity index associated with the key.
func (*EventInfo) GetFloat ¶
GetFloat
@brief Retrieves the float value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the float value. @return The float value associated with the key.
func (*EventInfo) GetInt ¶
GetInt
@brief Retrieves the integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the integer value. @return The integer value associated with the key.
func (*EventInfo) GetName ¶
GetName
@brief Retrieves the name of a game event. @param event: A pointer to the IGameEvent object containing event data. @return A string where the result will be stored.
func (*EventInfo) GetPlayerController ¶
GetPlayerController
@brief Retrieves the player controller address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player controller address. @return A pointer to the player controller associated with the key.
func (*EventInfo) GetPlayerIndex ¶
GetPlayerIndex
@brief Retrieves the player index of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player index. @return The player index associated with the key.
Deprecated: Use GetEventPlayerSlot instead. Will be removed soon
func (*EventInfo) GetPlayerPawn ¶
GetPlayerPawn
@brief Retrieves the player pawn address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player pawn address. @return A pointer to the player pawn associated with the key.
func (*EventInfo) GetPlayerSlot ¶
GetPlayerSlot
@brief Retrieves the player slot of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the player index. @return The player slot associated with the key.
func (*EventInfo) GetPtr ¶
GetPtr
@brief Retrieves the pointer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the pointer value. @return The pointer value associated with the key.
func (*EventInfo) GetString ¶
GetString
@brief Retrieves the string value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the string value. @return A string where the result will be stored.
func (*EventInfo) GetUInt64 ¶
GetUInt64
@brief Retrieves the long integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to retrieve the long integer value. @return The long integer value associated with the key.
func (*EventInfo) SetBool ¶
SetBool
@brief Sets the boolean value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the boolean value. @param value: The boolean value to set.
func (*EventInfo) SetBroadcast ¶
SetBroadcast
@brief Sets whether an event's broadcasting will be disabled or not. @param event: A pointer to the IGameEvent object containing event data. @param dontBroadcast: A boolean indicating whether to disable broadcasting.
func (*EventInfo) SetEntity ¶
SetEntity
@brief Sets the entity address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the entity address. @param value: A pointer to the entity to set.
func (*EventInfo) SetEntityHandle ¶
SetEntityHandle
@brief Sets the entity handle of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the entity handle. @param value: The entity handle value to set.
func (*EventInfo) SetEntityIndex ¶
SetEntityIndex
@brief Sets the entity index of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the entity index. @param value: The entity index value to set.
func (*EventInfo) SetFloat ¶
SetFloat
@brief Sets the floating point value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the float value. @param value: The float value to set.
func (*EventInfo) SetInt ¶
SetInt
@brief Sets the integer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the integer value. @param value: The integer value to set.
func (*EventInfo) SetPlayerController ¶
SetPlayerController
@brief Sets the player controller address of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the player controller address. @param value: A pointer to the player controller to set.
func (*EventInfo) SetPlayerIndex ¶
SetPlayerIndex
@brief Sets the player index value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the player index value. @param value: The player index value to set.
func (*EventInfo) SetPlayerSlot ¶
SetPlayerSlot
@brief Sets the player slot value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the player slot value. @param value: The player slot value to set.
func (*EventInfo) SetPtr ¶
SetPtr
@brief Sets the pointer value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the pointer value. @param value: The pointer value to set.
func (*EventInfo) SetString ¶
SetString
@brief Sets the string value of a game event's key. @param event: A pointer to the IGameEvent object containing event data. @param key: The key for which to set the string value. @param value: The string value to set.
type FieldType ¶
type FieldType = int32
FieldType - Represents the possible types of data that can be passed as a value in input actions.
const ( // Auto - Automatically detect the type of the value. FieldType_Auto FieldType = 0 // Float32 - A 32-bit floating-point number. FieldType_Float32 FieldType = 1 // Float64 - A 64-bit floating-point number. FieldType_Float64 FieldType = 2 // Int32 - A 32-bit signed integer. FieldType_Int32 FieldType = 3 // UInt32 - A 32-bit unsigned integer. FieldType_UInt32 FieldType = 4 // Int64 - A 64-bit signed integer. FieldType_Int64 FieldType = 5 // UInt64 - A 64-bit unsigned integer. FieldType_UInt64 FieldType = 6 // Boolean - A boolean value (true or false). FieldType_Boolean FieldType = 7 // Character - A single character. FieldType_Character FieldType = 8 // String - A managed string object. FieldType_String FieldType = 9 // CString - A null-terminated C-style string. FieldType_CString FieldType = 10 // HScript - A script handle, typically for scripting integration. FieldType_HScript FieldType = 11 // EHandle - An entity handle, used to reference an entity within the system. FieldType_EHandle FieldType = 12 // Resource - A resource handle, such as a file or asset reference. FieldType_Resource FieldType = 13 // Vector3d - A 3D vector, typically representing position or direction. FieldType_Vector3d FieldType = 14 // Vector2d - A 2D vector, for planar data or coordinates. FieldType_Vector2d FieldType = 15 // Vector4d - A 4D vector, often used for advanced mathematical representations. FieldType_Vector4d FieldType = 16 // Color32 - A 32-bit color value (RGBA). FieldType_Color32 FieldType = 17 // QAngle - A quaternion-based angle representation. FieldType_QAngle FieldType = 18 // Quaternion - A quaternion, used for rotation and orientation calculations. FieldType_Quaternion FieldType = 19 )
type GameConfig ¶
type GameConfig struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for GameConfig handle.
func NewGameConfigBorrowed ¶
func NewGameConfigBorrowed(handle uint32) *GameConfig
NewGameConfigBorrowed creates a GameConfig from a borrowed handle
func NewGameConfigLoadGameConfigFile ¶
func NewGameConfigLoadGameConfigFile(paths []string) *GameConfig
NewGameConfigLoadGameConfigFile
@brief Loads a game configuration file. @param paths: The paths to the game configuration file to be loaded.
func NewGameConfigOwned ¶
func NewGameConfigOwned(handle uint32) *GameConfig
NewGameConfigOwned creates a GameConfig from an owned handle
func (*GameConfig) Close ¶
func (w *GameConfig) Close()
Close explicitly destroys the handle (like C++ destructor, but manual)
func (*GameConfig) GetAddress ¶
func (w *GameConfig) GetAddress(name string) (uintptr, error)
GetAddress
@brief Retrieves the address associated with a name from the game configuration. @param id: An id to the game configuration from which to retrieve the address. @param name: The name whose address is to be retrieved. @return A pointer to the address associated with the specified name.
func (*GameConfig) GetOffset ¶
func (w *GameConfig) GetOffset(name string) (int32, error)
GetOffset
@brief Retrieves the offset associated with a name from the game configuration. @param id: An id to the game configuration from which to retrieve the offset. @param name: The name whose offset is to be retrieved. @return The offset associated with the specified name.
func (*GameConfig) GetPatch ¶
func (w *GameConfig) GetPatch(name string) (string, error)
GetPatch
@brief Retrieves a patch associated with the game configuration. @param id: An id to the game configuration from which to retrieve the patch. @param name: The name of the patch to be retrieved. @return A string where the patch will be stored.
func (*GameConfig) GetSignature ¶
func (w *GameConfig) GetSignature(name string) (uintptr, error)
GetSignature
@brief Retrieves the signature associated with a name from the game configuration. @param id: An id to the game configuration from which to retrieve the signature. @param name: The name whose signature is to be resolved and retrieved. @return A pointer to the signature associated with the specified name.
func (*GameConfig) GetVTable ¶
func (w *GameConfig) GetVTable(name string) (uintptr, error)
GetVTable
@brief Retrieves a vtable associated with the game configuration. @param id: An id to the game configuration from which to retrieve the vtable. @param name: The name of the vtable to be retrieved. @return A pointer to the vtable associated with the specified name
func (*GameConfig) IsValid ¶
func (w *GameConfig) IsValid() bool
IsValid returns true if handle is not nil
func (*GameConfig) Release ¶
func (w *GameConfig) Release() uint32
Release releases ownership and returns the handle
type GearSlot ¶
type GearSlot = uint32
GearSlot - Enum representing different gear slots.
const ( GearSlot_Invalid GearSlot = 4294967295 GearSlot_Rifle GearSlot = 0 GearSlot_Pistol GearSlot = 1 GearSlot_Knife GearSlot = 2 GearSlot_Grenades GearSlot = 3 GearSlot_C4 GearSlot = 4 GearSlot_ReservedSlot6 GearSlot = 5 GearSlot_ReservedSlot7 GearSlot = 6 GearSlot_ReservedSlot8 GearSlot = 7 GearSlot_ReservedSlot9 GearSlot = 8 GearSlot_ReservedSlot10 GearSlot = 9 GearSlot_ReservedSlot11 GearSlot = 10 GearSlot_Boosts GearSlot = 11 GearSlot_Utility GearSlot = 12 GearSlot_Count GearSlot = 13 GearSlot_First GearSlot = 0 GearSlot_Last GearSlot = 12 )
func GetWeaponGearSlot ¶
GetWeaponGearSlot
@brief Retrieves the gear slot of a given weapon entity. @param entityHandle: The handle of the entity (weapon). @return The gear slot of the weapon, or GEAR_SLOT_INVALID if the entity is invalid.
type HookEntityOutputCallback ¶
type HookEntityOutputCallback func(activatorHandle int32, callerHandle int32, flDelay float32) ResultType
HookEntityOutputCallback - This function is a callback handler for entity output events. It is triggered when a specific output event is activated, and it handles the process by passing the activator, the caller, and a delay parameter for the output.
type KeyValues1 ¶
type KeyValues1 struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for KeyValues pointer.
func NewKeyValues1Borrowed ¶
func NewKeyValues1Borrowed(handle uintptr) *KeyValues1
NewKeyValues1Borrowed creates a KeyValues1 from a borrowed handle
func NewKeyValues1Kv1Create ¶
func NewKeyValues1Kv1Create(setName string) *KeyValues1
NewKeyValues1Kv1Create
@brief Creates a new KeyValues instance @param setName: The name to assign to this KeyValues instance
func NewKeyValues1Kv1MakeCopy ¶
func NewKeyValues1Kv1MakeCopy(kv uintptr) *KeyValues1
NewKeyValues1Kv1MakeCopy
@brief Makes a deep copy of a KeyValues tree @param kv: Pointer to the KeyValues object to copy
func NewKeyValues1Owned ¶
func NewKeyValues1Owned(handle uintptr) *KeyValues1
NewKeyValues1Owned creates a KeyValues1 from an owned handle
func (*KeyValues1) AddSubKey ¶
func (w *KeyValues1) AddSubKey(subKey *KeyValues1) error
AddSubKey
@brief Adds a subkey to this KeyValues instance @param kv: Pointer to the parent KeyValues object @param subKey: Pointer to the KeyValues object to add as a child
func (*KeyValues1) Clear ¶
func (w *KeyValues1) Clear() error
Clear
@brief Clears all subkeys and the current value @param kv: Pointer to the KeyValues object to clear
func (*KeyValues1) Close ¶
func (w *KeyValues1) Close()
Close explicitly destroys the handle (like C++ destructor, but manual)
func (*KeyValues1) CreateKey ¶
func (w *KeyValues1) CreateKey(keyName string) (*KeyValues1, error)
CreateKey
@brief Creates a new subkey with the specified name @param kv: Pointer to the parent KeyValues object @param keyName: The name for the new key @return Pointer to the newly created KeyValues subkey
func (*KeyValues1) CreateNewKey ¶
func (w *KeyValues1) CreateNewKey() (*KeyValues1, error)
CreateNewKey
@brief Creates a new subkey with an autogenerated name @param kv: Pointer to the parent KeyValues object @return Pointer to the newly created KeyValues subkey
func (*KeyValues1) FindKey ¶
func (w *KeyValues1) FindKey(keyName string) (*KeyValues1, error)
FindKey
@brief Finds a key by name @param kv: Pointer to the KeyValues object to search in @param keyName: The name of the key to find @return Pointer to the found KeyValues subkey, or NULL if not found
func (*KeyValues1) FindOrCreateKey ¶
func (w *KeyValues1) FindOrCreateKey(keyName string) (*KeyValues1, error)
FindOrCreateKey
@brief Finds a key by name or creates it if it doesn't exist @param kv: Pointer to the KeyValues object to search in @param keyName: The name of the key to find or create @return Pointer to the found or newly created KeyValues subkey (never NULL)
func (*KeyValues1) GetBool ¶
func (w *KeyValues1) GetBool(keyName string, defaultValue bool) (bool, error)
GetBool
@brief Gets a boolean value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the boolean from @param defaultValue: The default value to return if the key is not found @return The boolean value associated with the key, or defaultValue if not found
func (*KeyValues1) GetColor ¶
func (w *KeyValues1) GetColor(keyName string, defaultValue plugify.Vector4) (plugify.Vector4, error)
GetColor
@brief Gets a color value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the color from @param defaultValue: The default color value to return if the key is not found @return The color value as a 32-bit integer (RGBA)
func (*KeyValues1) GetFirstSubKey ¶
func (w *KeyValues1) GetFirstSubKey() (*KeyValues1, error)
GetFirstSubKey
@brief Gets the first subkey in the list @param kv: Pointer to the parent KeyValues object @return Pointer to the first subkey, or NULL if there are no children
func (*KeyValues1) GetFloat ¶
func (w *KeyValues1) GetFloat(keyName string, defaultValue float32) (float32, error)
GetFloat
@brief Gets a float value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the float from @param defaultValue: The default value to return if the key is not found @return The float value associated with the key, or defaultValue if not found
func (*KeyValues1) GetInt ¶
func (w *KeyValues1) GetInt(keyName string, defaultValue int32) (int32, error)
GetInt
@brief Gets an integer value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the integer from @param defaultValue: The default value to return if the key is not found @return The integer value associated with the key, or defaultValue if not found
func (*KeyValues1) GetName ¶
func (w *KeyValues1) GetName() (string, error)
GetName
@brief Gets the section name of a KeyValues instance @param kv: Pointer to the KeyValues object @return The name of the KeyValues section
func (*KeyValues1) GetNextKey ¶
func (w *KeyValues1) GetNextKey() (*KeyValues1, error)
GetNextKey
@brief Gets the next sibling key in the list @param kv: Pointer to the current KeyValues object @return Pointer to the next sibling key, or NULL if this is the last sibling
func (*KeyValues1) GetPtr ¶
func (w *KeyValues1) GetPtr(keyName string, defaultValue uintptr) (uintptr, error)
GetPtr
@brief Gets a pointer value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the pointer from @param defaultValue: The default pointer to return if the key is not found @return The pointer value associated with the key, or defaultValue if not found
func (*KeyValues1) GetString ¶
func (w *KeyValues1) GetString(keyName string, defaultValue string) (string, error)
GetString
@brief Gets a string value from a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to retrieve the string from @param defaultValue: The default string to return if the key is not found @return The string value associated with the key, or defaultValue if not found
func (*KeyValues1) IsEmpty ¶
func (w *KeyValues1) IsEmpty(keyName string) (bool, error)
IsEmpty
@brief Checks if a key exists and has no value or subkeys @param kv: Pointer to the KeyValues object @param keyName: The name of the key to check @return true if the key exists and is empty, false otherwise
func (*KeyValues1) IsValid ¶
func (w *KeyValues1) IsValid() bool
IsValid returns true if handle is not nil
func (*KeyValues1) Release ¶
func (w *KeyValues1) Release() uintptr
Release releases ownership and returns the handle
func (*KeyValues1) SetBool ¶
func (w *KeyValues1) SetBool(keyName string, value bool) error
SetBool
@brief Sets a boolean value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the boolean for @param value: The boolean value to set
func (*KeyValues1) SetColor ¶
func (w *KeyValues1) SetColor(keyName string, value plugify.Vector4) error
SetColor
@brief Sets a color value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the color for @param value: The color value as a 32-bit integer (RGBA)
func (*KeyValues1) SetFloat ¶
func (w *KeyValues1) SetFloat(keyName string, value float32) error
SetFloat
@brief Sets a float value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the float for @param value: The float value to set
func (*KeyValues1) SetInt ¶
func (w *KeyValues1) SetInt(keyName string, value int32) error
SetInt
@brief Sets an integer value for a key @param kv: Pointer to the KeyValues object @param keyName: The name of the key to set the integer for @param value: The integer value to set
func (*KeyValues1) SetName ¶
func (w *KeyValues1) SetName(name string) error
SetName
@brief Sets the section name of a KeyValues instance @param kv: Pointer to the KeyValues object @param name: The new name to assign to this KeyValues section
type KeyValues3 ¶
type KeyValues3 struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for KeyValues3 handle.
func NewKeyValues3Borrowed ¶
func NewKeyValues3Borrowed(handle uintptr) *KeyValues3
NewKeyValues3Borrowed creates a KeyValues3 from a borrowed handle
func NewKeyValues3Kv3Create ¶
func NewKeyValues3Kv3Create(type_ int32, subtype int32) *KeyValues3
NewKeyValues3Kv3Create
@brief Creates a new KeyValues3 object with specified type and subtype @param type_: The KV3 type enumeration value @param subtype: The KV3 subtype enumeration value
func NewKeyValues3Kv3CreateCopy ¶
func NewKeyValues3Kv3CreateCopy(other uintptr) *KeyValues3
NewKeyValues3Kv3CreateCopy
@brief Creates a copy of an existing KeyValues3 object @param other: Pointer to the KeyValues3 object to copy
func NewKeyValues3Kv3CreateWithCluster ¶
func NewKeyValues3Kv3CreateWithCluster(cluster_elem int32, type_ int32, subtype int32) *KeyValues3
NewKeyValues3Kv3CreateWithCluster
@brief Creates a new KeyValues3 object with cluster element, type, and subtype @param cluster_elem: The cluster element index @param type_: The KV3 type enumeration value @param subtype: The KV3 subtype enumeration value
func NewKeyValues3Owned ¶
func NewKeyValues3Owned(handle uintptr) *KeyValues3
NewKeyValues3Owned creates a KeyValues3 from an owned handle
func (*KeyValues3) ArrayAddElementToTail ¶
func (w *KeyValues3) ArrayAddElementToTail() (*KeyValues3, error)
ArrayAddElementToTail
@brief Adds a new element to the end of the array @param kv: Pointer to the KeyValues3 object @return Pointer to the newly added element, or nullptr if invalid
func (*KeyValues3) ArrayInsertElementAfter ¶
func (w *KeyValues3) ArrayInsertElementAfter(elem int32) (*KeyValues3, error)
ArrayInsertElementAfter
@brief Inserts a new element after the specified index @param kv: Pointer to the KeyValues3 object @param elem: Index after which to insert @return Pointer to the newly inserted element, or nullptr if invalid
func (*KeyValues3) ArrayInsertElementBefore ¶
func (w *KeyValues3) ArrayInsertElementBefore(elem int32) (*KeyValues3, error)
ArrayInsertElementBefore
@brief Inserts a new element before the specified index @param kv: Pointer to the KeyValues3 object @param elem: Index before which to insert @return Pointer to the newly inserted element, or nullptr if invalid
func (*KeyValues3) ArrayRemoveElement ¶
func (w *KeyValues3) ArrayRemoveElement(elem int32) error
ArrayRemoveElement
@brief Removes an element from the array @param kv: Pointer to the KeyValues3 object @param elem: Index of the element to remove
func (*KeyValues3) ArraySwapItems ¶
func (w *KeyValues3) ArraySwapItems(idx1 int32, idx2 int32) error
ArraySwapItems
@brief Swaps two array elements @param kv: Pointer to the KeyValues3 object @param idx1: Index of the first element @param idx2: Index of the second element
func (*KeyValues3) Close ¶
func (w *KeyValues3) Close()
Close explicitly destroys the handle (like C++ destructor, but manual)
func (*KeyValues3) CopyFrom ¶
func (w *KeyValues3) CopyFrom(other *KeyValues3) error
CopyFrom
@brief Copies data from another KeyValues3 object @param kv: Pointer to the destination KeyValues3 object @param other: Pointer to the source KeyValues3 object
func (*KeyValues3) DebugPrint ¶
func (w *KeyValues3) DebugPrint() error
DebugPrint
@brief Prints debug information about the KeyValues3 object @param kv: Pointer to the KeyValues3 object
func (*KeyValues3) FindMember ¶
func (w *KeyValues3) FindMember(name string) (*KeyValues3, error)
FindMember
@brief Finds a member by name @param kv: Pointer to the KeyValues3 object @param name: Name of the member to find @return Pointer to the member KeyValues3 object, or nullptr if not found
func (*KeyValues3) FindOrCreateMember ¶
func (w *KeyValues3) FindOrCreateMember(name string) (*KeyValues3, error)
FindOrCreateMember
@brief Finds a member by name, or creates it if it doesn't exist @param kv: Pointer to the KeyValues3 object @param name: Name of the member to find or create @return Pointer to the member KeyValues3 object, or nullptr if kv is null
func (*KeyValues3) GetAllFlags ¶
func (w *KeyValues3) GetAllFlags() (uint8, error)
GetAllFlags
@brief Gets all flags as a bitmask @param kv: Pointer to the KeyValues3 object @return Bitmask of all flags, or 0 if kv is null
func (*KeyValues3) GetArrayElement ¶
func (w *KeyValues3) GetArrayElement(elem int32) (*KeyValues3, error)
GetArrayElement
@brief Gets an array element at the specified index @param kv: Pointer to the KeyValues3 object @param elem: Index of the element to get @return Pointer to the element KeyValues3 object, or nullptr if invalid
func (*KeyValues3) GetArrayElementCount ¶
func (w *KeyValues3) GetArrayElementCount() (int32, error)
GetArrayElementCount
@brief Gets the number of elements in the array @param kv: Pointer to the KeyValues3 object @return Number of array elements, or 0 if kv is null or not an array
func (*KeyValues3) GetBinaryBlob ¶
func (w *KeyValues3) GetBinaryBlob() ([]uint8, error)
GetBinaryBlob
@brief Gets the binary blob from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return Vector containing the binary blob data, or empty vector if kv is null
func (*KeyValues3) GetBinaryBlobSize ¶
func (w *KeyValues3) GetBinaryBlobSize() (int32, error)
GetBinaryBlobSize
@brief Gets the size of the binary blob in the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return Size of the binary blob in bytes, or 0 if kv is null
func (*KeyValues3) GetBool ¶
func (w *KeyValues3) GetBool(defaultValue bool) (bool, error)
GetBool
@brief Gets the boolean value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Boolean value or defaultValue
func (*KeyValues3) GetChar ¶
func (w *KeyValues3) GetChar(defaultValue int8) (int8, error)
GetChar
@brief Gets the char value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Char value or defaultValue
func (*KeyValues3) GetColor ¶
GetColor
@brief Gets the color value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default color value to return if kv is null @return Color value as vec4 or defaultValue
func (*KeyValues3) GetContext ¶
func (w *KeyValues3) GetContext() (uintptr, error)
GetContext
@brief Gets the context associated with a KeyValues3 object @param kv: Pointer to the KeyValues3 object @return Pointer to the CKV3Arena, or nullptr if kv is null
func (*KeyValues3) GetDouble ¶
func (w *KeyValues3) GetDouble(defaultValue float64) (float64, error)
GetDouble
@brief Gets the double value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Double value or defaultValue
func (*KeyValues3) GetEHandle ¶
func (w *KeyValues3) GetEHandle(defaultValue int32) (int32, error)
GetEHandle
@brief Gets the entity handle value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default entity handle value to return if kv is null @return Entity handle as int32_t or defaultValue
func (*KeyValues3) GetFloat ¶
func (w *KeyValues3) GetFloat(defaultValue float32) (float32, error)
GetFloat
@brief Gets the float value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return Float value or defaultValue
func (*KeyValues3) GetInt ¶
func (w *KeyValues3) GetInt(defaultValue int32) (int32, error)
GetInt
@brief Gets the signed 32-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int32_t value or defaultValue
func (*KeyValues3) GetInt8 ¶
func (w *KeyValues3) GetInt8(defaultValue int8) (int8, error)
GetInt8
@brief Gets the signed 8-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int8_t value or defaultValue
func (*KeyValues3) GetInt64 ¶
func (w *KeyValues3) GetInt64(defaultValue int64) (int64, error)
GetInt64
@brief Gets the signed 64-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int64_t value or defaultValue
func (*KeyValues3) GetMatrix3x4 ¶
GetMatrix3x4
@brief Gets the 3x4 matrix value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default matrix to return if kv is null @return 3x4 matrix as mat4x4 or defaultValue
func (*KeyValues3) GetMemberBool ¶
func (w *KeyValues3) GetMemberBool(name string, defaultValue bool) (bool, error)
GetMemberBool
@brief Gets a boolean value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Boolean value or defaultValue
func (*KeyValues3) GetMemberByIndex ¶
func (w *KeyValues3) GetMemberByIndex(index int32) (*KeyValues3, error)
GetMemberByIndex
@brief Gets a member by index @param kv: Pointer to the KeyValues3 object @param index: Index of the member to get @return Pointer to the member KeyValues3 object, or nullptr if invalid
func (*KeyValues3) GetMemberChar ¶
func (w *KeyValues3) GetMemberChar(name string, defaultValue int8) (int8, error)
GetMemberChar
@brief Gets a char value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Char value or defaultValue
func (*KeyValues3) GetMemberColor ¶
func (w *KeyValues3) GetMemberColor(name string, defaultValue plugify.Vector4) (plugify.Vector4, error)
GetMemberColor
@brief Gets a color value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default color value to return if member not found @return Color value as vec4 or defaultValue
func (*KeyValues3) GetMemberCount ¶
func (w *KeyValues3) GetMemberCount() (int32, error)
GetMemberCount
@brief Gets the number of members in the table @param kv: Pointer to the KeyValues3 object @return Number of table members, or 0 if kv is null or not a table
func (*KeyValues3) GetMemberDouble ¶
func (w *KeyValues3) GetMemberDouble(name string, defaultValue float64) (float64, error)
GetMemberDouble
@brief Gets a double value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Double value or defaultValue
func (*KeyValues3) GetMemberEHandle ¶
func (w *KeyValues3) GetMemberEHandle(name string, defaultValue int32) (int32, error)
GetMemberEHandle
@brief Gets an entity handle value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default entity handle value to return if member not found @return Entity handle as int32_t or defaultValue
func (*KeyValues3) GetMemberFloat ¶
func (w *KeyValues3) GetMemberFloat(name string, defaultValue float32) (float32, error)
GetMemberFloat
@brief Gets a float value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Float value or defaultValue
func (*KeyValues3) GetMemberInt ¶
func (w *KeyValues3) GetMemberInt(name string, defaultValue int32) (int32, error)
GetMemberInt
@brief Gets a signed 32-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int32_t value or defaultValue
func (*KeyValues3) GetMemberInt8 ¶
func (w *KeyValues3) GetMemberInt8(name string, defaultValue int8) (int8, error)
GetMemberInt8
@brief Gets a signed 8-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int8_t value or defaultValue
func (*KeyValues3) GetMemberInt64 ¶
func (w *KeyValues3) GetMemberInt64(name string, defaultValue int64) (int64, error)
GetMemberInt64
@brief Gets a signed 64-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int64_t value or defaultValue
func (*KeyValues3) GetMemberMatrix3x4 ¶
func (w *KeyValues3) GetMemberMatrix3x4(name string, defaultValue plugify.Matrix4x4) (plugify.Matrix4x4, error)
GetMemberMatrix3x4
@brief Gets a 3x4 matrix value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default matrix to return if member not found @return 3x4 matrix as mat4x4 or defaultValue
func (*KeyValues3) GetMemberName ¶
func (w *KeyValues3) GetMemberName(index int32) (string, error)
GetMemberName
@brief Gets the name of a member at the specified index @param kv: Pointer to the KeyValues3 object @param index: Index of the member @return Name of the member, or empty string if invalid
func (*KeyValues3) GetMemberPointer ¶
func (w *KeyValues3) GetMemberPointer(name string, defaultValue uintptr) (uintptr, error)
GetMemberPointer
@brief Gets a pointer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return Pointer value as uintptr_t or defaultValue
func (*KeyValues3) GetMemberQAngle ¶
func (w *KeyValues3) GetMemberQAngle(name string, defaultValue plugify.Vector3) (plugify.Vector3, error)
GetMemberQAngle
@brief Gets an angle (QAngle) value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default angle to return if member not found @return QAngle as vec3 or defaultValue
func (*KeyValues3) GetMemberQuaternion ¶
func (w *KeyValues3) GetMemberQuaternion(name string, defaultValue plugify.Vector4) (plugify.Vector4, error)
GetMemberQuaternion
@brief Gets a quaternion value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default quaternion to return if member not found @return Quaternion as vec4 or defaultValue
func (*KeyValues3) GetMemberShort ¶
func (w *KeyValues3) GetMemberShort(name string, defaultValue int16) (int16, error)
GetMemberShort
@brief Gets a signed 16-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return int16_t value or defaultValue
func (*KeyValues3) GetMemberString ¶
func (w *KeyValues3) GetMemberString(name string, defaultValue string) (string, error)
GetMemberString
@brief Gets a string value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default string to return if member not found @return String value or defaultValue
func (*KeyValues3) GetMemberStringToken ¶
func (w *KeyValues3) GetMemberStringToken(name string, defaultValue uint32) (uint32, error)
GetMemberStringToken
@brief Gets a string token value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default token value to return if member not found @return String token hash code or defaultValue
func (*KeyValues3) GetMemberUChar32 ¶
func (w *KeyValues3) GetMemberUChar32(name string, defaultValue uint32) (uint32, error)
GetMemberUChar32
@brief Gets a 32-bit Unicode character value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return 32-bit Unicode character value or defaultValue
func (*KeyValues3) GetMemberUInt ¶
func (w *KeyValues3) GetMemberUInt(name string, defaultValue uint32) (uint32, error)
GetMemberUInt
@brief Gets an unsigned 32-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint32_t value or defaultValue
func (*KeyValues3) GetMemberUInt8 ¶
func (w *KeyValues3) GetMemberUInt8(name string, defaultValue uint8) (uint8, error)
GetMemberUInt8
@brief Gets an unsigned 8-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint8_t value or defaultValue
func (*KeyValues3) GetMemberUInt64 ¶
func (w *KeyValues3) GetMemberUInt64(name string, defaultValue uint64) (uint64, error)
GetMemberUInt64
@brief Gets an unsigned 64-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint64_t value or defaultValue
func (*KeyValues3) GetMemberUShort ¶
func (w *KeyValues3) GetMemberUShort(name string, defaultValue uint16) (uint16, error)
GetMemberUShort
@brief Gets an unsigned 16-bit integer value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default value to return if member not found @return uint16_t value or defaultValue
func (*KeyValues3) GetMemberVector ¶
func (w *KeyValues3) GetMemberVector(name string, defaultValue plugify.Vector3) (plugify.Vector3, error)
GetMemberVector
@brief Gets a 3D vector value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default vector to return if member not found @return 3D vector or defaultValue
func (*KeyValues3) GetMemberVector2D ¶
func (w *KeyValues3) GetMemberVector2D(name string, defaultValue plugify.Vector2) (plugify.Vector2, error)
GetMemberVector2D
@brief Gets a 2D vector value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default 2D vector to return if member not found @return 2D vector or defaultValue
func (*KeyValues3) GetMemberVector4D ¶
func (w *KeyValues3) GetMemberVector4D(name string, defaultValue plugify.Vector4) (plugify.Vector4, error)
GetMemberVector4D
@brief Gets a 4D vector value from a table member @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param defaultValue: Default 4D vector to return if member not found @return 4D vector or defaultValue
func (*KeyValues3) GetMetaData ¶
func (w *KeyValues3) GetMetaData(ppCtx uintptr) (uintptr, error)
GetMetaData
@brief Gets the metadata associated with a KeyValues3 object @param kv: Pointer to the KeyValues3 object @param ppCtx: Pointer to store the context pointer @return Pointer to the KV3MetaData_t structure, or nullptr if kv is null
func (*KeyValues3) GetPointer ¶
func (w *KeyValues3) GetPointer(defaultValue uintptr) (uintptr, error)
GetPointer
@brief Gets the pointer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null @return Pointer value as uintptr_t or defaultValue
func (*KeyValues3) GetQAngle ¶
GetQAngle
@brief Gets the angle (QAngle) value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default angle to return if kv is null @return QAngle as vec3 or defaultValue
func (*KeyValues3) GetQuaternion ¶
GetQuaternion
@brief Gets the quaternion value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default quaternion to return if kv is null @return Quaternion as vec4 or defaultValue
func (*KeyValues3) GetShort ¶
func (w *KeyValues3) GetShort(defaultValue int16) (int16, error)
GetShort
@brief Gets the signed 16-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return int16_t value or defaultValue
func (*KeyValues3) GetString ¶
func (w *KeyValues3) GetString(defaultValue string) (string, error)
GetString
@brief Gets the string value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default string to return if kv is null or value is empty @return String value or defaultValue
func (*KeyValues3) GetStringToken ¶
func (w *KeyValues3) GetStringToken(defaultValue uint32) (uint32, error)
GetStringToken
@brief Gets the string token value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default token value to return if kv is null @return String token hash code or defaultValue
func (*KeyValues3) GetSubType ¶
func (w *KeyValues3) GetSubType() (uint8, error)
GetSubType
@brief Gets the subtype of the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return The subtype enumeration value, or 0 if kv is null
func (*KeyValues3) GetSubTypeAsString ¶
func (w *KeyValues3) GetSubTypeAsString() (string, error)
GetSubTypeAsString
@brief Gets the subtype as a string representation @param kv: Pointer to the KeyValues3 object @return String representation of the subtype, or empty string if kv is null
func (*KeyValues3) GetType ¶
func (w *KeyValues3) GetType() (uint8, error)
GetType
@brief Gets the basic type of the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return The type enumeration value, or 0 if kv is null
func (*KeyValues3) GetTypeAsString ¶
func (w *KeyValues3) GetTypeAsString() (string, error)
GetTypeAsString
@brief Gets the type as a string representation @param kv: Pointer to the KeyValues3 object @return String representation of the type, or empty string if kv is null
func (*KeyValues3) GetTypeEx ¶
func (w *KeyValues3) GetTypeEx() (uint8, error)
GetTypeEx
@brief Gets the extended type of the KeyValues3 object @param kv: Pointer to the KeyValues3 object @return The extended type enumeration value, or 0 if kv is null
func (*KeyValues3) GetUChar32 ¶
func (w *KeyValues3) GetUChar32(defaultValue uint32) (uint32, error)
GetUChar32
@brief Gets the 32-bit Unicode character value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return 32-bit Unicode character value or defaultValue
func (*KeyValues3) GetUInt ¶
func (w *KeyValues3) GetUInt(defaultValue uint32) (uint32, error)
GetUInt
@brief Gets the unsigned 32-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint32_t value or defaultValue
func (*KeyValues3) GetUInt8 ¶
func (w *KeyValues3) GetUInt8(defaultValue uint8) (uint8, error)
GetUInt8
@brief Gets the unsigned 8-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint8_t value or defaultValue
func (*KeyValues3) GetUInt64 ¶
func (w *KeyValues3) GetUInt64(defaultValue uint64) (uint64, error)
GetUInt64
@brief Gets the unsigned 64-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint64_t value or defaultValue
func (*KeyValues3) GetUShort ¶
func (w *KeyValues3) GetUShort(defaultValue uint16) (uint16, error)
GetUShort
@brief Gets the unsigned 16-bit integer value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default value to return if kv is null or conversion fails @return uint16_t value or defaultValue
func (*KeyValues3) GetVector ¶
GetVector
@brief Gets the 3D vector value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default vector to return if kv is null @return 3D vector or defaultValue
func (*KeyValues3) GetVector2D ¶
GetVector2D
@brief Gets the 2D vector value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default 2D vector to return if kv is null @return 2D vector or defaultValue
func (*KeyValues3) GetVector4D ¶
GetVector4D
@brief Gets the 4D vector value from the KeyValues3 object @param kv: Pointer to the KeyValues3 object @param defaultValue: Default 4D vector to return if kv is null @return 4D vector or defaultValue
func (*KeyValues3) HasAnyFlags ¶
func (w *KeyValues3) HasAnyFlags() (bool, error)
HasAnyFlags
@brief Checks if any flags are set @param kv: Pointer to the KeyValues3 object @return true if any flags are set, false otherwise
func (*KeyValues3) HasFlag ¶
func (w *KeyValues3) HasFlag(flag uint8) (bool, error)
HasFlag
@brief Checks if a specific flag is set @param kv: Pointer to the KeyValues3 object @param flag: The flag to check @return true if the flag is set, false otherwise
func (*KeyValues3) HasInvalidMemberNames ¶
func (w *KeyValues3) HasInvalidMemberNames() (bool, error)
HasInvalidMemberNames
@brief Checks if the object has invalid member names @param kv: Pointer to the KeyValues3 object @return true if invalid member names exist, false otherwise
func (*KeyValues3) HasMember ¶
func (w *KeyValues3) HasMember(name string) (bool, error)
HasMember
@brief Checks if a member with the specified name exists @param kv: Pointer to the KeyValues3 object @param name: Name of the member to check @return true if the member exists, false otherwise
func (*KeyValues3) IsArray ¶
func (w *KeyValues3) IsArray() (bool, error)
IsArray
@brief Checks if the KeyValues3 object is an array @param kv: Pointer to the KeyValues3 object @return true if the object is an array, false otherwise
func (*KeyValues3) IsKV3Array ¶
func (w *KeyValues3) IsKV3Array() (bool, error)
IsKV3Array
@brief Checks if the KeyValues3 object is a KV3 array @param kv: Pointer to the KeyValues3 object @return true if the object is a KV3 array, false otherwise
func (*KeyValues3) IsNull ¶
func (w *KeyValues3) IsNull() (bool, error)
IsNull
@brief Checks if the KeyValues3 object is null @param kv: Pointer to the KeyValues3 object @return true if the object is null or the pointer is null, false otherwise
func (*KeyValues3) IsString ¶
func (w *KeyValues3) IsString() (bool, error)
IsString
@brief Checks if the KeyValues3 object is a string @param kv: Pointer to the KeyValues3 object @return true if the object is a string, false otherwise
func (*KeyValues3) IsTable ¶
func (w *KeyValues3) IsTable() (bool, error)
IsTable
@brief Checks if the KeyValues3 object is a table @param kv: Pointer to the KeyValues3 object @return true if the object is a table, false otherwise
func (*KeyValues3) IsValid ¶
func (w *KeyValues3) IsValid() bool
IsValid returns true if handle is not nil
func (*KeyValues3) Load ¶
func (w *KeyValues3) Load(error_ *string, input []uint8, kv_name string, flags uint32) (bool, error)
Load
@brief Loads KeyValues3 data from a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromFile ¶
func (w *KeyValues3) LoadFromFile(error_ *string, filename string, path string, flags uint32) (bool, error)
LoadFromFile
@brief Loads KeyValues3 data from a file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param filename: Name of the file to load @param path: Path to the file @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromJSON ¶
func (w *KeyValues3) LoadFromJSON(error_ *string, input string, kv_name string, flags uint32) (bool, error)
LoadFromJSON
@brief Loads KeyValues3 data from a JSON string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: JSON string @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromJSONFile ¶
func (w *KeyValues3) LoadFromJSONFile(error_ *string, path string, filename string, flags uint32) (bool, error)
LoadFromJSONFile
@brief Loads KeyValues3 data from a JSON file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param path: Path to the file @param filename: Name of the file to load @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromKV1File ¶
func (w *KeyValues3) LoadFromKV1File(error_ *string, path string, filename string, esc_behavior uint8, flags uint32) (bool, error)
LoadFromKV1File
@brief Loads KeyValues3 data from a KeyValues1 file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param path: Path to the file @param filename: Name of the file to load @param esc_behavior: Escape sequence behavior for KV1 text @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromKV1Text ¶
func (w *KeyValues3) LoadFromKV1Text(error_ *string, input string, esc_behavior uint8, kv_name string, unk bool, flags uint32) (bool, error)
LoadFromKV1Text
@brief Loads KeyValues3 data from a KeyValues1 text string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: KV1 text string @param esc_behavior: Escape sequence behavior for KV1 text @param kv_name: Name for the KeyValues3 object @param unk: Unknown boolean parameter @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromKV1TextTranslated ¶
func (w *KeyValues3) LoadFromKV1TextTranslated(error_ *string, input string, esc_behavior uint8, translation uintptr, unk1 int32, kv_name string, unk2 bool, flags uint32) (bool, error)
LoadFromKV1TextTranslated
@brief Loads KeyValues3 data from a KeyValues1 text string with translation @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: KV1 text string @param esc_behavior: Escape sequence behavior for KV1 text @param translation: Pointer to translation table @param unk1: Unknown integer parameter @param kv_name: Name for the KeyValues3 object @param unk2: Unknown boolean parameter @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromKV3OrKV1 ¶
func (w *KeyValues3) LoadFromKV3OrKV1(error_ *string, input []uint8, kv_name string, flags uint32) (bool, error)
LoadFromKV3OrKV1
@brief Loads data from a buffer that may be KV3 or KV1 format @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromOldSchemaText ¶
func (w *KeyValues3) LoadFromOldSchemaText(error_ *string, input []uint8, kv_name string, flags uint32) (bool, error)
LoadFromOldSchemaText
@brief Loads KeyValues3 data from old schema text format @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Vector containing the input buffer data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadFromText ¶
func (w *KeyValues3) LoadFromText(error_ *string, input string, kv_name string, flags uint32) (bool, error)
LoadFromText
@brief Loads KeyValues3 data from a text string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Text string containing KV3 data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) LoadTextNoHeader ¶
func (w *KeyValues3) LoadTextNoHeader(error_ *string, input string, kv_name string, flags uint32) (bool, error)
LoadTextNoHeader
@brief Loads KeyValues3 text without a header @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param input: Text string containing KV3 data @param kv_name: Name for the KeyValues3 object @param flags: Loading flags @return true if successful, false otherwise
func (*KeyValues3) OverlayKeysFrom ¶
func (w *KeyValues3) OverlayKeysFrom(other *KeyValues3, depth bool) error
OverlayKeysFrom
@brief Overlays keys from another KeyValues3 object @param kv: Pointer to the destination KeyValues3 object @param other: Pointer to the source KeyValues3 object @param depth: Whether to perform a deep overlay
func (*KeyValues3) Release ¶
func (w *KeyValues3) Release() uintptr
Release releases ownership and returns the handle
func (*KeyValues3) RemoveMember ¶
func (w *KeyValues3) RemoveMember(name string) (bool, error)
RemoveMember
@brief Removes a member from the table @param kv: Pointer to the KeyValues3 object @param name: Name of the member to remove @return true if the member was removed, false otherwise
func (*KeyValues3) Save ¶
Save
@brief Saves KeyValues3 data to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output buffer data @param flags: Saving flags @return true if successful, false otherwise
func (*KeyValues3) SaveAsJSON ¶
func (w *KeyValues3) SaveAsJSON(error_ *string, output *[]uint8) (bool, error)
SaveAsJSON
@brief Saves KeyValues3 data as JSON to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output JSON data @return true if successful, false otherwise
func (*KeyValues3) SaveAsJSONString ¶
func (w *KeyValues3) SaveAsJSONString(error_ *string, output *string) (bool, error)
SaveAsJSONString
@brief Saves KeyValues3 data as a JSON string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: String to store the JSON output @return true if successful, false otherwise
func (*KeyValues3) SaveAsKV1Text ¶
func (w *KeyValues3) SaveAsKV1Text(error_ *string, output *[]uint8, esc_behavior uint8) (bool, error)
SaveAsKV1Text
@brief Saves KeyValues3 data as KeyValues1 text to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output KV1 text data @param esc_behavior: Escape sequence behavior for KV1 text @return true if successful, false otherwise
func (*KeyValues3) SaveAsKV1TextTranslated ¶
func (w *KeyValues3) SaveAsKV1TextTranslated(error_ *string, output *[]uint8, esc_behavior uint8, translation uintptr, unk int32) (bool, error)
SaveAsKV1TextTranslated
@brief Saves KeyValues3 data as KeyValues1 text with translation to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output KV1 text data @param esc_behavior: Escape sequence behavior for KV1 text @param translation: Pointer to translation table @param unk: Unknown integer parameter @return true if successful, false otherwise
func (*KeyValues3) SaveTextNoHeader ¶
SaveTextNoHeader
@brief Saves KeyValues3 text without a header to a string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: String to store the text output @param flags: Saving flags @return true if successful, false otherwise
func (*KeyValues3) SaveTextNoHeaderToBuffer ¶
func (w *KeyValues3) SaveTextNoHeaderToBuffer(error_ *string, output *[]uint8, flags uint32) (bool, error)
SaveTextNoHeaderToBuffer
@brief Saves KeyValues3 text without a header to a buffer @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: Vector to store the output text data @param flags: Saving flags @return true if successful, false otherwise
func (*KeyValues3) SaveTextToString ¶
SaveTextToString
@brief Saves KeyValues3 text to a string @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param output: String to store the text output @param flags: Saving flags @return true if successful, false otherwise
func (*KeyValues3) SaveToFile ¶
func (w *KeyValues3) SaveToFile(error_ *string, filename string, path string, flags uint32) (bool, error)
SaveToFile
@brief Saves KeyValues3 data to a file @param kv: Pointer to the KeyValues3 object @param error_: Output string for error messages @param filename: Name of the file to save @param path: Path to save the file @param flags: Saving flags @return true if successful, false otherwise
func (*KeyValues3) SetAllFlags ¶
func (w *KeyValues3) SetAllFlags(flags uint8) error
SetAllFlags
@brief Sets all flags from a bitmask @param kv: Pointer to the KeyValues3 object @param flags: Bitmask of flags to set
func (*KeyValues3) SetArrayElementCount ¶
func (w *KeyValues3) SetArrayElementCount(count int32, type_ uint8, subtype uint8) error
SetArrayElementCount
@brief Sets the number of elements in the array @param kv: Pointer to the KeyValues3 object @param count: Number of elements to set @param type_: Type of array elements @param subtype: Subtype of array elements
func (*KeyValues3) SetBool ¶
func (w *KeyValues3) SetBool(value bool) error
SetBool
@brief Sets the KeyValues3 object to a boolean value @param kv: Pointer to the KeyValues3 object @param value: Boolean value to set
func (*KeyValues3) SetChar ¶
func (w *KeyValues3) SetChar(value int8) error
SetChar
@brief Sets the KeyValues3 object to a char value @param kv: Pointer to the KeyValues3 object @param value: Char value to set
func (*KeyValues3) SetColor ¶
func (w *KeyValues3) SetColor(color plugify.Vector4) error
SetColor
@brief Sets the KeyValues3 object to a color value @param kv: Pointer to the KeyValues3 object @param color: Color value as vec4 to set
func (*KeyValues3) SetDouble ¶
func (w *KeyValues3) SetDouble(value float64) error
SetDouble
@brief Sets the KeyValues3 object to a double value @param kv: Pointer to the KeyValues3 object @param value: Double value to set
func (*KeyValues3) SetEHandle ¶
func (w *KeyValues3) SetEHandle(ehandle int32) error
SetEHandle
@brief Sets the KeyValues3 object to an entity handle value @param kv: Pointer to the KeyValues3 object @param ehandle: Entity handle value to set
func (*KeyValues3) SetFlag ¶
func (w *KeyValues3) SetFlag(flag uint8, state bool) error
SetFlag
@brief Sets or clears a specific flag @param kv: Pointer to the KeyValues3 object @param flag: The flag to modify @param state: true to set the flag, false to clear it
func (*KeyValues3) SetFloat ¶
func (w *KeyValues3) SetFloat(value float32) error
SetFloat
@brief Sets the KeyValues3 object to a float value @param kv: Pointer to the KeyValues3 object @param value: Float value to set
func (*KeyValues3) SetHasInvalidMemberNames ¶
func (w *KeyValues3) SetHasInvalidMemberNames(bValue bool) error
SetHasInvalidMemberNames
@brief Sets the invalid member names flag @param kv: Pointer to the KeyValues3 object @param bValue: true to mark as having invalid member names, false otherwise
func (*KeyValues3) SetInt ¶
func (w *KeyValues3) SetInt(value int32) error
SetInt
@brief Sets the KeyValues3 object to a signed 32-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int32_t value to set
func (*KeyValues3) SetInt8 ¶
func (w *KeyValues3) SetInt8(value int8) error
SetInt8
@brief Sets the KeyValues3 object to a signed 8-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int8_t value to set
func (*KeyValues3) SetInt64 ¶
func (w *KeyValues3) SetInt64(value int64) error
SetInt64
@brief Sets the KeyValues3 object to a signed 64-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int64_t value to set
func (*KeyValues3) SetMatrix3x4 ¶
func (w *KeyValues3) SetMatrix3x4(matrix plugify.Matrix4x4) error
SetMatrix3x4
@brief Sets the KeyValues3 object to a 3x4 matrix value @param kv: Pointer to the KeyValues3 object @param matrix: 3x4 matrix to set (as mat4x4)
func (*KeyValues3) SetMemberBool ¶
func (w *KeyValues3) SetMemberBool(name string, value bool) error
SetMemberBool
@brief Sets a table member to a boolean value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Boolean value to set
func (*KeyValues3) SetMemberChar ¶
func (w *KeyValues3) SetMemberChar(name string, value int8) error
SetMemberChar
@brief Sets a table member to a char value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Char value to set
func (*KeyValues3) SetMemberColor ¶
func (w *KeyValues3) SetMemberColor(name string, color plugify.Vector4) error
SetMemberColor
@brief Sets a table member to a color value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param color: Color value as vec4 to set
func (*KeyValues3) SetMemberDouble ¶
func (w *KeyValues3) SetMemberDouble(name string, value float64) error
SetMemberDouble
@brief Sets a table member to a double value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Double value to set
func (*KeyValues3) SetMemberEHandle ¶
func (w *KeyValues3) SetMemberEHandle(name string, ehandle int32) error
SetMemberEHandle
@brief Sets a table member to an entity handle value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param ehandle: Entity handle value to set
func (*KeyValues3) SetMemberFloat ¶
func (w *KeyValues3) SetMemberFloat(name string, value float32) error
SetMemberFloat
@brief Sets a table member to a float value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: Float value to set
func (*KeyValues3) SetMemberInt ¶
func (w *KeyValues3) SetMemberInt(name string, value int32) error
SetMemberInt
@brief Sets a table member to a signed 32-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int32_t value to set
func (*KeyValues3) SetMemberInt8 ¶
func (w *KeyValues3) SetMemberInt8(name string, value int8) error
SetMemberInt8
@brief Sets a table member to a signed 8-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int8_t value to set
func (*KeyValues3) SetMemberInt64 ¶
func (w *KeyValues3) SetMemberInt64(name string, value int64) error
SetMemberInt64
@brief Sets a table member to a signed 64-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int64_t value to set
func (*KeyValues3) SetMemberMatrix3x4 ¶
func (w *KeyValues3) SetMemberMatrix3x4(name string, matrix plugify.Matrix4x4) error
SetMemberMatrix3x4
@brief Sets a table member to a 3x4 matrix value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param matrix: 3x4 matrix to set (as mat4x4)
func (*KeyValues3) SetMemberPointer ¶
func (w *KeyValues3) SetMemberPointer(name string, ptr uintptr) error
SetMemberPointer
@brief Sets a table member to a pointer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param ptr: Pointer value as uintptr_t to set
func (*KeyValues3) SetMemberQAngle ¶
func (w *KeyValues3) SetMemberQAngle(name string, ang plugify.Vector3) error
SetMemberQAngle
@brief Sets a table member to an angle (QAngle) value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param ang: QAngle to set (as vec3)
func (*KeyValues3) SetMemberQuaternion ¶
func (w *KeyValues3) SetMemberQuaternion(name string, quat plugify.Vector4) error
SetMemberQuaternion
@brief Sets a table member to a quaternion value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param quat: Quaternion to set (as vec4)
func (*KeyValues3) SetMemberShort ¶
func (w *KeyValues3) SetMemberShort(name string, value int16) error
SetMemberShort
@brief Sets a table member to a signed 16-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: int16_t value to set
func (*KeyValues3) SetMemberString ¶
func (w *KeyValues3) SetMemberString(name string, str string, subtype uint8) error
SetMemberString
@brief Sets a table member to a string value (copies the string) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param str: String value to set @param subtype: String subtype enumeration value
func (*KeyValues3) SetMemberStringExternal ¶
func (w *KeyValues3) SetMemberStringExternal(name string, str string, subtype uint8) error
SetMemberStringExternal
@brief Sets a table member to an external string value (does not copy) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param str: External string value to reference @param subtype: String subtype enumeration value
func (*KeyValues3) SetMemberStringToken ¶
func (w *KeyValues3) SetMemberStringToken(name string, token uint32) error
SetMemberStringToken
@brief Sets a table member to a string token value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param token: String token hash code to set
func (*KeyValues3) SetMemberToBinaryBlob ¶
func (w *KeyValues3) SetMemberToBinaryBlob(name string, blob []uint8) error
SetMemberToBinaryBlob
@brief Sets a table member to a binary blob (copies the data) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param blob: Vector containing the binary blob data
func (*KeyValues3) SetMemberToBinaryBlobExternal ¶
func (w *KeyValues3) SetMemberToBinaryBlobExternal(name string, blob []uint8, free_mem bool) error
SetMemberToBinaryBlobExternal
@brief Sets a table member to an external binary blob (does not copy) @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param blob: Vector containing the external binary blob data @param free_mem: Whether to free the memory when the object is destroyed
func (*KeyValues3) SetMemberToCopyOfValue ¶
func (w *KeyValues3) SetMemberToCopyOfValue(name string, other uintptr) error
SetMemberToCopyOfValue
@brief Sets a table member to a copy of another KeyValues3 value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param other: Pointer to the KeyValues3 object to copy
func (*KeyValues3) SetMemberToEmptyArray ¶
func (w *KeyValues3) SetMemberToEmptyArray(name string) error
SetMemberToEmptyArray
@brief Sets a table member to an empty array @param kv: Pointer to the KeyValues3 object @param name: Name of the member
func (*KeyValues3) SetMemberToEmptyTable ¶
func (w *KeyValues3) SetMemberToEmptyTable(name string) error
SetMemberToEmptyTable
@brief Sets a table member to an empty table @param kv: Pointer to the KeyValues3 object @param name: Name of the member
func (*KeyValues3) SetMemberToNull ¶
func (w *KeyValues3) SetMemberToNull(name string) error
SetMemberToNull
@brief Sets a table member to null @param kv: Pointer to the KeyValues3 object @param name: Name of the member
func (*KeyValues3) SetMemberUChar32 ¶
func (w *KeyValues3) SetMemberUChar32(name string, value uint32) error
SetMemberUChar32
@brief Sets a table member to a 32-bit Unicode character value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: 32-bit Unicode character value to set
func (*KeyValues3) SetMemberUInt ¶
func (w *KeyValues3) SetMemberUInt(name string, value uint32) error
SetMemberUInt
@brief Sets a table member to an unsigned 32-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint32_t value to set
func (*KeyValues3) SetMemberUInt8 ¶
func (w *KeyValues3) SetMemberUInt8(name string, value uint8) error
SetMemberUInt8
@brief Sets a table member to an unsigned 8-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint8_t value to set
func (*KeyValues3) SetMemberUInt64 ¶
func (w *KeyValues3) SetMemberUInt64(name string, value uint64) error
SetMemberUInt64
@brief Sets a table member to an unsigned 64-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint64_t value to set
func (*KeyValues3) SetMemberUShort ¶
func (w *KeyValues3) SetMemberUShort(name string, value uint16) error
SetMemberUShort
@brief Sets a table member to an unsigned 16-bit integer value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param value: uint16_t value to set
func (*KeyValues3) SetMemberVector ¶
func (w *KeyValues3) SetMemberVector(name string, vec plugify.Vector3) error
SetMemberVector
@brief Sets a table member to a 3D vector value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param vec: 3D vector to set
func (*KeyValues3) SetMemberVector2D ¶
func (w *KeyValues3) SetMemberVector2D(name string, vec2d plugify.Vector2) error
SetMemberVector2D
@brief Sets a table member to a 2D vector value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param vec2d: 2D vector to set
func (*KeyValues3) SetMemberVector4D ¶
func (w *KeyValues3) SetMemberVector4D(name string, vec4d plugify.Vector4) error
SetMemberVector4D
@brief Sets a table member to a 4D vector value @param kv: Pointer to the KeyValues3 object @param name: Name of the member @param vec4d: 4D vector to set
func (*KeyValues3) SetPointer ¶
func (w *KeyValues3) SetPointer(ptr uintptr) error
SetPointer
@brief Sets the KeyValues3 object to a pointer value @param kv: Pointer to the KeyValues3 object @param ptr: Pointer value as uintptr_t to set
func (*KeyValues3) SetQAngle ¶
func (w *KeyValues3) SetQAngle(ang plugify.Vector3) error
SetQAngle
@brief Sets the KeyValues3 object to an angle (QAngle) value @param kv: Pointer to the KeyValues3 object @param ang: QAngle to set (as vec3)
func (*KeyValues3) SetQuaternion ¶
func (w *KeyValues3) SetQuaternion(quat plugify.Vector4) error
SetQuaternion
@brief Sets the KeyValues3 object to a quaternion value @param kv: Pointer to the KeyValues3 object @param quat: Quaternion to set (as vec4)
func (*KeyValues3) SetShort ¶
func (w *KeyValues3) SetShort(value int16) error
SetShort
@brief Sets the KeyValues3 object to a signed 16-bit integer value @param kv: Pointer to the KeyValues3 object @param value: int16_t value to set
func (*KeyValues3) SetString ¶
func (w *KeyValues3) SetString(str string, subtype uint8) error
SetString
@brief Sets the KeyValues3 object to a string value (copies the string) @param kv: Pointer to the KeyValues3 object @param str: String value to set @param subtype: String subtype enumeration value
func (*KeyValues3) SetStringExternal ¶
func (w *KeyValues3) SetStringExternal(str string, subtype uint8) error
SetStringExternal
@brief Sets the KeyValues3 object to an external string value (does not copy) @param kv: Pointer to the KeyValues3 object @param str: External string value to reference @param subtype: String subtype enumeration value
func (*KeyValues3) SetStringToken ¶
func (w *KeyValues3) SetStringToken(token uint32) error
SetStringToken
@brief Sets the KeyValues3 object to a string token value @param kv: Pointer to the KeyValues3 object @param token: String token hash code to set
func (*KeyValues3) SetToBinaryBlob ¶
func (w *KeyValues3) SetToBinaryBlob(blob []uint8) error
SetToBinaryBlob
@brief Sets the KeyValues3 object to a binary blob (copies the data) @param kv: Pointer to the KeyValues3 object @param blob: Vector containing the binary blob data
func (*KeyValues3) SetToBinaryBlobExternal ¶
func (w *KeyValues3) SetToBinaryBlobExternal(blob []uint8, free_mem bool) error
SetToBinaryBlobExternal
@brief Sets the KeyValues3 object to an external binary blob (does not copy) @param kv: Pointer to the KeyValues3 object @param blob: Vector containing the external binary blob data @param free_mem: Whether to free the memory when the object is destroyed
func (*KeyValues3) SetToEmptyKV3Array ¶
func (w *KeyValues3) SetToEmptyKV3Array() error
SetToEmptyKV3Array
@brief Sets the KeyValues3 object to an empty KV3 array @param kv: Pointer to the KeyValues3 object
func (*KeyValues3) SetToEmptyTable ¶
func (w *KeyValues3) SetToEmptyTable() error
SetToEmptyTable
@brief Sets the KeyValues3 object to an empty table @param kv: Pointer to the KeyValues3 object
func (*KeyValues3) SetToNull ¶
func (w *KeyValues3) SetToNull() error
SetToNull
@brief Sets the KeyValues3 object to null @param kv: Pointer to the KeyValues3 object
func (*KeyValues3) SetUChar32 ¶
func (w *KeyValues3) SetUChar32(value uint32) error
SetUChar32
@brief Sets the KeyValues3 object to a 32-bit Unicode character value @param kv: Pointer to the KeyValues3 object @param value: 32-bit Unicode character value to set
func (*KeyValues3) SetUInt ¶
func (w *KeyValues3) SetUInt(value uint32) error
SetUInt
@brief Sets the KeyValues3 object to an unsigned 32-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint32_t value to set
func (*KeyValues3) SetUInt8 ¶
func (w *KeyValues3) SetUInt8(value uint8) error
SetUInt8
@brief Sets the KeyValues3 object to an unsigned 8-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint8_t value to set
func (*KeyValues3) SetUInt64 ¶
func (w *KeyValues3) SetUInt64(value uint64) error
SetUInt64
@brief Sets the KeyValues3 object to an unsigned 64-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint64_t value to set
func (*KeyValues3) SetUShort ¶
func (w *KeyValues3) SetUShort(value uint16) error
SetUShort
@brief Sets the KeyValues3 object to an unsigned 16-bit integer value @param kv: Pointer to the KeyValues3 object @param value: uint16_t value to set
func (*KeyValues3) SetVector ¶
func (w *KeyValues3) SetVector(vec plugify.Vector3) error
SetVector
@brief Sets the KeyValues3 object to a 3D vector value @param kv: Pointer to the KeyValues3 object @param vec: 3D vector to set
func (*KeyValues3) SetVector2D ¶
func (w *KeyValues3) SetVector2D(vec2d plugify.Vector2) error
SetVector2D
@brief Sets the KeyValues3 object to a 2D vector value @param kv: Pointer to the KeyValues3 object @param vec2d: 2D vector to set
func (*KeyValues3) SetVector4D ¶
func (w *KeyValues3) SetVector4D(vec4d plugify.Vector4) error
SetVector4D
@brief Sets the KeyValues3 object to a 4D vector value @param kv: Pointer to the KeyValues3 object @param vec4d: 4D vector to set
func (*KeyValues3) ToString ¶
func (w *KeyValues3) ToString(flags uint32) (string, error)
ToString
@brief Converts the KeyValues3 object to a string representation @param kv: Pointer to the KeyValues3 object @param flags: Formatting flags for the string conversion @return String representation of the object, or empty string if kv is null
type LoggingChannelFlags ¶
type LoggingChannelFlags = int32
LoggingChannelFlags - Logging channel behavior flags, set on channel creation.
const ( // ConsoleOnly - Indicates that the spew is only relevant to interactive consoles. LoggingChannelFlags_ConsoleOnly LoggingChannelFlags = 1 // DoNotEcho - Indicates that spew should not be echoed to any output devices. LoggingChannelFlags_DoNotEcho LoggingChannelFlags = 2 )
type LoggingSeverity ¶
type LoggingSeverity = int32
LoggingSeverity - Enum representing the possible verbosity of a logger.
const ( // Off - Turns off all spew. LoggingSeverity_Off LoggingSeverity = 0 // Detailed - A debug message. LoggingSeverity_Detailed LoggingSeverity = 1 // Message - An informative logging message. LoggingSeverity_Message LoggingSeverity = 2 // Warning - A warning, typically non-fatal. LoggingSeverity_Warning LoggingSeverity = 3 // Assert - A message caused by an Assert**() operation. LoggingSeverity_Assert LoggingSeverity = 4 // Error - An error, typically fatal/unrecoverable. LoggingSeverity_Error LoggingSeverity = 5 )
type LoggingVerbosity ¶
type LoggingVerbosity = int32
LoggingVerbosity - Enum representing the possible verbosity of a logger.
const ( // Off - Turns off all spew. LoggingVerbosity_Off LoggingVerbosity = 0 // Essential - Turns on vital logs. LoggingVerbosity_Essential LoggingVerbosity = 1 // Default - Turns on most messages. LoggingVerbosity_Default LoggingVerbosity = 2 // Detailed - Allows for walls of text that are usually useful. LoggingVerbosity_Detailed LoggingVerbosity = 3 // Max - Allows everything. LoggingVerbosity_Max LoggingVerbosity = 4 )
type MoveType ¶
type MoveType = int32
MoveType - Enum representing various movement types for entities.
const ( // None - Never moves. MoveType_None MoveType = 0 // Isometric - Previously isometric movement type. MoveType_Isometric MoveType = 1 // Walk - Player only - moving on the ground. MoveType_Walk MoveType = 2 // Fly - No gravity, but still collides with stuff. MoveType_Fly MoveType = 3 // Flygravity - Flies through the air and is affected by gravity. MoveType_Flygravity MoveType = 4 // Vphysics - Uses VPHYSICS for simulation. MoveType_Vphysics MoveType = 5 // Push - No clip to world, push and crush. MoveType_Push MoveType = 6 // Noclip - No gravity, no collisions, still has velocity/avelocity. MoveType_Noclip MoveType = 7 // Ladder - Used by players only when going onto a ladder. MoveType_Ladder MoveType = 8 // Observer - Observer movement, depends on player's observer mode. MoveType_Observer MoveType = 9 // Custom - Allows the entity to describe its own physics. MoveType_Custom MoveType = 10 )
func GetClientMoveType ¶
GetClientMoveType
@brief Retrieves the movement type of an client. @param playerSlot: The index of the player's slot whose movement type is to be retrieved. @return The movement type of the entity, or 0 if the entity is invalid.
func GetEntityMoveType ¶
GetEntityMoveType
@brief Retrieves the movement type of an entity. @param entityHandle: The handle of the entity whose movement type is to be retrieved. @return The movement type of the entity, or 0 if the entity is invalid.
type NetworkDisconnectionReason ¶ added in v2.3.22
type NetworkDisconnectionReason = int32
NetworkDisconnectionReason - Enum representing reasons for network disconnection.
const ( // Invalid - Invalid. NetworkDisconnectionReason_Invalid NetworkDisconnectionReason = 0 // Shutdown - Shutdown. NetworkDisconnectionReason_Shutdown NetworkDisconnectionReason = 1 // DisconnectByUser - Disconnect by user. NetworkDisconnectionReason_DisconnectByUser NetworkDisconnectionReason = 2 // DisconnectByServer - Disconnect by server. NetworkDisconnectionReason_DisconnectByServer NetworkDisconnectionReason = 3 // Lost - Lost. NetworkDisconnectionReason_Lost NetworkDisconnectionReason = 4 // Overflow - Overflow. NetworkDisconnectionReason_Overflow NetworkDisconnectionReason = 5 // SteamBanned - Steam banned. NetworkDisconnectionReason_SteamBanned NetworkDisconnectionReason = 6 // SteamInuse - Steam inuse. NetworkDisconnectionReason_SteamInuse NetworkDisconnectionReason = 7 // SteamTicket - Steam ticket. NetworkDisconnectionReason_SteamTicket NetworkDisconnectionReason = 8 // SteamLogon - Steam logon. NetworkDisconnectionReason_SteamLogon NetworkDisconnectionReason = 9 // SteamAuthcancelled - Steam authcancelled. NetworkDisconnectionReason_SteamAuthcancelled NetworkDisconnectionReason = 10 // SteamAuthalreadyused - Steam authalreadyused. NetworkDisconnectionReason_SteamAuthalreadyused NetworkDisconnectionReason = 11 // SteamAuthinvalid - Steam authinvalid. NetworkDisconnectionReason_SteamAuthinvalid NetworkDisconnectionReason = 12 // SteamVacbanstate - Steam vacbanstate. NetworkDisconnectionReason_SteamVacbanstate NetworkDisconnectionReason = 13 // SteamLoggedInElsewhere - Steam logged in elsewhere. NetworkDisconnectionReason_SteamLoggedInElsewhere NetworkDisconnectionReason = 14 // SteamVacCheckTimedout - Steam vac check timedout. NetworkDisconnectionReason_SteamVacCheckTimedout NetworkDisconnectionReason = 15 // SteamDropped - Steam dropped. NetworkDisconnectionReason_SteamDropped NetworkDisconnectionReason = 16 // SteamOwnership - Steam ownership. NetworkDisconnectionReason_SteamOwnership NetworkDisconnectionReason = 17 // ServerinfoOverflow - Serverinfo overflow. NetworkDisconnectionReason_ServerinfoOverflow NetworkDisconnectionReason = 18 // TickmsgOverflow - Tickmsg overflow. NetworkDisconnectionReason_TickmsgOverflow NetworkDisconnectionReason = 19 // StringtablemsgOverflow - Stringtablemsg overflow. NetworkDisconnectionReason_StringtablemsgOverflow NetworkDisconnectionReason = 20 // DeltaentmsgOverflow - Deltaentmsg overflow. NetworkDisconnectionReason_DeltaentmsgOverflow NetworkDisconnectionReason = 21 // TempentmsgOverflow - Tempentmsg overflow. NetworkDisconnectionReason_TempentmsgOverflow NetworkDisconnectionReason = 22 // SoundsmsgOverflow - Soundsmsg overflow. NetworkDisconnectionReason_SoundsmsgOverflow NetworkDisconnectionReason = 23 // Snapshotoverflow - Snapshotoverflow. NetworkDisconnectionReason_Snapshotoverflow NetworkDisconnectionReason = 24 // Snapshoterror - Snapshoterror. NetworkDisconnectionReason_Snapshoterror NetworkDisconnectionReason = 25 // Reliableoverflow - Reliableoverflow. NetworkDisconnectionReason_Reliableoverflow NetworkDisconnectionReason = 26 // Baddeltatick - Baddeltatick. NetworkDisconnectionReason_Baddeltatick NetworkDisconnectionReason = 27 // Nomoresplits - Nomoresplits. NetworkDisconnectionReason_Nomoresplits NetworkDisconnectionReason = 28 // Timedout - Timedout. NetworkDisconnectionReason_Timedout NetworkDisconnectionReason = 29 // Disconnected - Disconnected. NetworkDisconnectionReason_Disconnected NetworkDisconnectionReason = 30 // Leavingsplit - Leavingsplit. NetworkDisconnectionReason_Leavingsplit NetworkDisconnectionReason = 31 // Differentclasstables - Differentclasstables. NetworkDisconnectionReason_Differentclasstables NetworkDisconnectionReason = 32 // Badrelaypassword - Badrelaypassword. NetworkDisconnectionReason_Badrelaypassword NetworkDisconnectionReason = 33 // Badspectatorpassword - Badspectatorpassword. NetworkDisconnectionReason_Badspectatorpassword NetworkDisconnectionReason = 34 // Hltvrestricted - Hltvrestricted. NetworkDisconnectionReason_Hltvrestricted NetworkDisconnectionReason = 35 // Nospectators - Nospectators. NetworkDisconnectionReason_Nospectators NetworkDisconnectionReason = 36 NetworkDisconnectionReason_Hltvunavailable NetworkDisconnectionReason = 37 // Hltvstop - Hltvstop. NetworkDisconnectionReason_Hltvstop NetworkDisconnectionReason = 38 // Kicked - Kicked. NetworkDisconnectionReason_Kicked NetworkDisconnectionReason = 39 // Banadded - Banadded. NetworkDisconnectionReason_Banadded NetworkDisconnectionReason = 40 // Kickbanadded - Kickbanadded. NetworkDisconnectionReason_Kickbanadded NetworkDisconnectionReason = 41 // Hltvdirect - Hltvdirect. NetworkDisconnectionReason_Hltvdirect NetworkDisconnectionReason = 42 // PureserverClientextra - Pureserver clientextra. NetworkDisconnectionReason_PureserverClientextra NetworkDisconnectionReason = 43 // PureserverMismatch - Pureserver mismatch. NetworkDisconnectionReason_PureserverMismatch NetworkDisconnectionReason = 44 // Usercmd - Usercmd. NetworkDisconnectionReason_Usercmd NetworkDisconnectionReason = 45 // RejectedByGame - Rejected by game. NetworkDisconnectionReason_RejectedByGame NetworkDisconnectionReason = 46 // MessageParseError - Message parse error. NetworkDisconnectionReason_MessageParseError NetworkDisconnectionReason = 47 // InvalidMessageError - Invalid message error. NetworkDisconnectionReason_InvalidMessageError NetworkDisconnectionReason = 48 // BadServerPassword - Bad server password. NetworkDisconnectionReason_BadServerPassword NetworkDisconnectionReason = 49 // DirectConnectReservation - Direct connect reservation. NetworkDisconnectionReason_DirectConnectReservation NetworkDisconnectionReason = 50 // ConnectionFailure - Connection failure. NetworkDisconnectionReason_ConnectionFailure NetworkDisconnectionReason = 51 // NoPeerGroupHandlers - No peer group handlers. NetworkDisconnectionReason_NoPeerGroupHandlers NetworkDisconnectionReason = 52 // Reconnection - Reconnection. NetworkDisconnectionReason_Reconnection NetworkDisconnectionReason = 53 // Loopshutdown - Loopshutdown. NetworkDisconnectionReason_Loopshutdown NetworkDisconnectionReason = 54 // Loopdeactivate - Loopdeactivate. NetworkDisconnectionReason_Loopdeactivate NetworkDisconnectionReason = 55 // HostEndgame - Host endgame. NetworkDisconnectionReason_HostEndgame NetworkDisconnectionReason = 56 // LoopLevelloadActivate - Loop levelload activate. NetworkDisconnectionReason_LoopLevelloadActivate NetworkDisconnectionReason = 57 // CreateServerFailed - Create server failed. NetworkDisconnectionReason_CreateServerFailed NetworkDisconnectionReason = 58 // Exiting - Exiting. NetworkDisconnectionReason_Exiting NetworkDisconnectionReason = 59 // RequestHoststateIdle - Request hoststate idle. NetworkDisconnectionReason_RequestHoststateIdle NetworkDisconnectionReason = 60 // RequestHoststateHltvrelay - Request hoststate hltvrelay. NetworkDisconnectionReason_RequestHoststateHltvrelay NetworkDisconnectionReason = 61 // ClientConsistencyFail - Client consistency fail. NetworkDisconnectionReason_ClientConsistencyFail NetworkDisconnectionReason = 62 // ClientUnableToCrcMap - Client unable to crc map. NetworkDisconnectionReason_ClientUnableToCrcMap NetworkDisconnectionReason = 63 // ClientNoMap - Client no map. NetworkDisconnectionReason_ClientNoMap NetworkDisconnectionReason = 64 // ClientDifferentMap - Client different map. NetworkDisconnectionReason_ClientDifferentMap NetworkDisconnectionReason = 65 // ServerRequiresSteam - Server requires steam. NetworkDisconnectionReason_ServerRequiresSteam NetworkDisconnectionReason = 66 // SteamDenyMisc - Steam deny misc. NetworkDisconnectionReason_SteamDenyMisc NetworkDisconnectionReason = 67 // SteamDenyBadAntiCheat - Steam deny bad anti cheat. NetworkDisconnectionReason_SteamDenyBadAntiCheat NetworkDisconnectionReason = 68 // ServerShutdown - Server shutdown. NetworkDisconnectionReason_ServerShutdown NetworkDisconnectionReason = 69 // ReplayIncompatible - Replay incompatible. NetworkDisconnectionReason_ReplayIncompatible NetworkDisconnectionReason = 71 // ConnectRequestTimedout - Connect request timedout. NetworkDisconnectionReason_ConnectRequestTimedout NetworkDisconnectionReason = 72 // ServerIncompatible - Server incompatible. NetworkDisconnectionReason_ServerIncompatible NetworkDisconnectionReason = 73 // LocalproblemManyrelays - Localproblem manyrelays. NetworkDisconnectionReason_LocalproblemManyrelays NetworkDisconnectionReason = 74 // LocalproblemHostedserverprimaryrelay - Localproblem hostedserverprimaryrelay. NetworkDisconnectionReason_LocalproblemHostedserverprimaryrelay NetworkDisconnectionReason = 75 // LocalproblemNetworkconfig - Localproblem networkconfig. NetworkDisconnectionReason_LocalproblemNetworkconfig NetworkDisconnectionReason = 76 // LocalproblemOther - Localproblem other. NetworkDisconnectionReason_LocalproblemOther NetworkDisconnectionReason = 77 // RemoteTimeout - Remote timeout. NetworkDisconnectionReason_RemoteTimeout NetworkDisconnectionReason = 79 // RemoteTimeoutConnecting - Remote timeout connecting. NetworkDisconnectionReason_RemoteTimeoutConnecting NetworkDisconnectionReason = 80 // RemoteOther - Remote other. NetworkDisconnectionReason_RemoteOther NetworkDisconnectionReason = 81 // RemoteBadcrypt - Remote badcrypt. NetworkDisconnectionReason_RemoteBadcrypt NetworkDisconnectionReason = 82 // RemoteCertnottrusted - Remote certnottrusted. NetworkDisconnectionReason_RemoteCertnottrusted NetworkDisconnectionReason = 83 // Unusual - Unusual. NetworkDisconnectionReason_Unusual NetworkDisconnectionReason = 84 // InternalError - Internal error. NetworkDisconnectionReason_InternalError NetworkDisconnectionReason = 85 // RejectBadchallenge - Reject badchallenge. NetworkDisconnectionReason_RejectBadchallenge NetworkDisconnectionReason = 128 // RejectNolobby - Reject nolobby. NetworkDisconnectionReason_RejectNolobby NetworkDisconnectionReason = 129 // RejectBackgroundMap - Reject background map. NetworkDisconnectionReason_RejectBackgroundMap NetworkDisconnectionReason = 130 // RejectSinglePlayer - Reject single player. NetworkDisconnectionReason_RejectSinglePlayer NetworkDisconnectionReason = 131 // RejectHiddenGame - Reject hidden game. NetworkDisconnectionReason_RejectHiddenGame NetworkDisconnectionReason = 132 // RejectLanrestrict - Reject lanrestrict. NetworkDisconnectionReason_RejectLanrestrict NetworkDisconnectionReason = 133 // RejectBadpassword - Reject badpassword. NetworkDisconnectionReason_RejectBadpassword NetworkDisconnectionReason = 134 // RejectServerfull - Reject serverfull. NetworkDisconnectionReason_RejectServerfull NetworkDisconnectionReason = 135 // RejectInvalidreservation - Reject invalidreservation. NetworkDisconnectionReason_RejectInvalidreservation NetworkDisconnectionReason = 136 // RejectFailedchannel - Reject failedchannel. NetworkDisconnectionReason_RejectFailedchannel NetworkDisconnectionReason = 137 // RejectConnectFromLobby - Reject connect from lobby. NetworkDisconnectionReason_RejectConnectFromLobby NetworkDisconnectionReason = 138 // RejectReservedForLobby - Reject reserved for lobby. NetworkDisconnectionReason_RejectReservedForLobby NetworkDisconnectionReason = 139 // RejectInvalidkeylength - Reject invalidkeylength. NetworkDisconnectionReason_RejectInvalidkeylength NetworkDisconnectionReason = 140 // RejectOldprotocol - Reject oldprotocol. NetworkDisconnectionReason_RejectOldprotocol NetworkDisconnectionReason = 141 // RejectNewprotocol - Reject newprotocol. NetworkDisconnectionReason_RejectNewprotocol NetworkDisconnectionReason = 142 // RejectInvalidconnection - Reject invalidconnection. NetworkDisconnectionReason_RejectInvalidconnection NetworkDisconnectionReason = 143 // RejectInvalidcertlen - Reject invalidcertlen. NetworkDisconnectionReason_RejectInvalidcertlen NetworkDisconnectionReason = 144 // RejectInvalidsteamcertlen - Reject invalidsteamcertlen. NetworkDisconnectionReason_RejectInvalidsteamcertlen NetworkDisconnectionReason = 145 // RejectSteam - Reject steam. NetworkDisconnectionReason_RejectSteam NetworkDisconnectionReason = 146 // RejectServerauthdisabled - Reject serverauthdisabled. NetworkDisconnectionReason_RejectServerauthdisabled NetworkDisconnectionReason = 147 // RejectServercdkeyauthinvalid - Reject servercdkeyauthinvalid. NetworkDisconnectionReason_RejectServercdkeyauthinvalid NetworkDisconnectionReason = 148 // RejectBanned - Reject banned. NetworkDisconnectionReason_RejectBanned NetworkDisconnectionReason = 149 // KickedTeamkilling - Kicked teamkilling. NetworkDisconnectionReason_KickedTeamkilling NetworkDisconnectionReason = 150 // KickedTkStart - Kicked tk start. NetworkDisconnectionReason_KickedTkStart NetworkDisconnectionReason = 151 // KickedUntrustedaccount - Kicked untrustedaccount. NetworkDisconnectionReason_KickedUntrustedaccount NetworkDisconnectionReason = 152 // KickedConvictedaccount - Kicked convictedaccount. NetworkDisconnectionReason_KickedConvictedaccount NetworkDisconnectionReason = 153 // KickedCompetitivecooldown - Kicked competitivecooldown. NetworkDisconnectionReason_KickedCompetitivecooldown NetworkDisconnectionReason = 154 // KickedTeamhurting - Kicked teamhurting. NetworkDisconnectionReason_KickedTeamhurting NetworkDisconnectionReason = 155 // KickedHostagekilling - Kicked hostagekilling. NetworkDisconnectionReason_KickedHostagekilling NetworkDisconnectionReason = 156 // KickedVotedoff - Kicked votedoff. NetworkDisconnectionReason_KickedVotedoff NetworkDisconnectionReason = 157 // KickedIdle - Kicked idle. NetworkDisconnectionReason_KickedIdle NetworkDisconnectionReason = 158 // KickedSuicide - Kicked suicide. NetworkDisconnectionReason_KickedSuicide NetworkDisconnectionReason = 159 // KickedNosteamlogin - Kicked nosteamlogin. NetworkDisconnectionReason_KickedNosteamlogin NetworkDisconnectionReason = 160 // KickedNosteamticket - Kicked nosteamticket. NetworkDisconnectionReason_KickedNosteamticket NetworkDisconnectionReason = 161 // KickedInputautomation - Kicked inputautomation. NetworkDisconnectionReason_KickedInputautomation NetworkDisconnectionReason = 162 // KickedVacnetabnormalbehavior - Kicked vacnetabnormalbehavior. NetworkDisconnectionReason_KickedVacnetabnormalbehavior NetworkDisconnectionReason = 163 // KickedInsecureclient - Kicked insecureclient. NetworkDisconnectionReason_KickedInsecureclient NetworkDisconnectionReason = 164 )
type OnBuildGameSessionManifestCallback ¶ added in v2.4.0
type OnBuildGameSessionManifestCallback func()
OnBuildGameSessionManifestCallback - Called before server activation to build game session manifest.
type OnClientActiveCallback ¶
OnClientActiveCallback - Called when a client is activated by the game.
type OnClientAuthenticatedCallback ¶
OnClientAuthenticatedCallback - Called when a client is fully connected to the game.
type OnClientConnectCallback ¶
OnClientConnectCallback - Called on client connection. If you return true, the client will be allowed in the server. If you return false (or return nothing), the client will be rejected. If the client is rejected by this forward or any other, OnClientDisconnect will not be called.<br>Note: Do not write to rejectmsg if you plan on returning true. If multiple plugins write to the string buffer, it is not defined which plugin's string will be shown to the client, but it is guaranteed one of them will.
type OnClientConnect_PostCallback ¶
type OnClientConnect_PostCallback func(playerSlot int32)
OnClientConnect_PostCallback - Called on client connection.
type OnClientConnectedCallback ¶
type OnClientConnectedCallback func(playerSlot int32)
OnClientConnectedCallback - Called once a client successfully connects. This callback is paired with OnClientDisconnect.
type OnClientDisconnectCallback ¶
type OnClientDisconnectCallback func(playerSlot int32)
OnClientDisconnectCallback - Called when a client is disconnecting from the server.
type OnClientDisconnect_PostCallback ¶
type OnClientDisconnect_PostCallback func(playerSlot int32, reason NetworkDisconnectionReason)
OnClientDisconnect_PostCallback - Called when a client is disconnected from the server.
type OnClientFullyConnectCallback ¶
type OnClientFullyConnectCallback func(playerSlot int32)
OnClientFullyConnectCallback - Called when a client is fully connected to the game.
type OnClientPutInServerCallback ¶
type OnClientPutInServerCallback func(playerSlot int32)
OnClientPutInServerCallback - Called when a client is entering the game.
type OnClientSettingsChangedCallback ¶
type OnClientSettingsChangedCallback func(playerSlot int32)
OnClientSettingsChangedCallback - Called whenever the client's settings are changed.
type OnEntityCreatedCallback ¶
type OnEntityCreatedCallback func(entityHandle int32)
OnEntityCreatedCallback - Called when an entity is created.
type OnEntityDeletedCallback ¶
type OnEntityDeletedCallback func(entityHandle int32)
OnEntityDeletedCallback - Called when when an entity is destroyed.
type OnEntityParentChangedCallback ¶
OnEntityParentChangedCallback - When an entity is reparented to another entity.
type OnGameFrameCallback ¶
OnGameFrameCallback - Called before every server frame. Note that you should avoid doing expensive computations or declaring large local arrays.
type OnMapStartCallback ¶
type OnMapStartCallback func()
OnMapStartCallback - Called on every map start.
type OnPreWorldUpdateCallback ¶
type OnPreWorldUpdateCallback func(simulating bool)
OnPreWorldUpdateCallback - Called before every server frame, before entities are updated.
type OnRoundTerminatedCallback ¶
type OnRoundTerminatedCallback func(delay float32, reason CSRoundEndReason)
OnRoundTerminatedCallback - Called right before a round terminates.
type OnServerActivateCallback ¶
type OnServerActivateCallback func()
OnServerActivateCallback - Called on every server activate.
type OnServerCheckTransmitCallback ¶
type OnServerCheckTransmitCallback func(checkTransmitInfoList []uintptr)
OnServerCheckTransmitCallback - When entities is transmitted to another entities.
type OnServerSpawnCallback ¶
type OnServerSpawnCallback func()
OnServerSpawnCallback - Called on every server spawn.
type OnServerStartedCallback ¶
type OnServerStartedCallback func()
OnServerStartedCallback - Called on every server started only once.
type OnServerStartupCallback ¶
type OnServerStartupCallback func()
OnServerStartupCallback - Called on every server startup.
type OnUpdateWhenNotInGameCallback ¶
type OnUpdateWhenNotInGameCallback func(deltaTime float32)
OnUpdateWhenNotInGameCallback - Called when the server is not in game.
type RenderMode ¶
type RenderMode = uint8
RenderMode - Enum representing rendering modes for materials.
const ( // Normal - Standard rendering mode (src). RenderMode_Normal RenderMode = 0 // TransColor - Composite: c*a + dest*(1-a). RenderMode_TransColor RenderMode = 1 // TransTexture - Composite: src*a + dest*(1-a). RenderMode_TransTexture RenderMode = 2 // Glow - Composite: src*a + dest -- No Z buffer checks -- Fixed size in screen space. RenderMode_Glow RenderMode = 3 // TransAlpha - Composite: src*srca + dest*(1-srca). RenderMode_TransAlpha RenderMode = 4 // TransAdd - Composite: src*a + dest. RenderMode_TransAdd RenderMode = 5 // Environmental - Not drawn, used for environmental effects. RenderMode_Environmental RenderMode = 6 // TransAddFrameBlend - Uses a fractional frame value to blend between animation frames. RenderMode_TransAddFrameBlend RenderMode = 7 // TransAlphaAdd - Composite: src + dest*(1-a). RenderMode_TransAlphaAdd RenderMode = 8 // WorldGlow - Same as Glow but not fixed size in screen space. RenderMode_WorldGlow RenderMode = 9 // None - No rendering. RenderMode_None RenderMode = 10 // DevVisualizer - Developer visualizer rendering mode. RenderMode_DevVisualizer RenderMode = 11 )
func GetClientRenderMode ¶
func GetClientRenderMode(playerSlot int32) RenderMode
GetClientRenderMode
@brief Retrieves the render mode of an client. @param playerSlot: The index of the player's slot whose render mode is to be retrieved. @return The render mode of the client, or 0 if the client is invalid.
func GetEntityRenderMode ¶
func GetEntityRenderMode(entityHandle int32) RenderMode
GetEntityRenderMode
@brief Retrieves the render mode of an entity. @param entityHandle: The handle of the entity whose render mode is to be retrieved. @return The render mode of the entity, or 0 if the entity is invalid.
type ResultType ¶
type ResultType = int32
ResultType - Enum representing the possible results of an operation.
const ( // Continue - The action continues to be processed without interruption. ResultType_Continue ResultType = 0 // Changed - Indicates that the action has altered the state or behavior during execution. ResultType_Changed ResultType = 1 // Handled - The action has been successfully handled, and no further action is required. ResultType_Handled ResultType = 2 // Stop - The action processing is halted, and no further steps will be executed. ResultType_Stop ResultType = 3 )
type TaskCallback ¶
type TaskCallback func(userData []any)
TaskCallback - Defines a QueueTask Callback.
type TimerCallback ¶
TimerCallback - This function is invoked when a timer event occurs. It handles the timer-related logic and performs necessary actions based on the event.
type TimerFlag ¶
type TimerFlag = int32
TimerFlag - Enum representing the possible flags of a timer.
type UserMessage ¶
type UserMessage struct {
// contains filtered or unexported fields
}
@brief RAII wrapper for UserMessage pointer.
func NewUserMessageBorrowed ¶
func NewUserMessageBorrowed(handle uintptr) *UserMessage
NewUserMessageBorrowed creates a UserMessage from a borrowed handle
func NewUserMessageOwned ¶
func NewUserMessageOwned(handle uintptr) *UserMessage
NewUserMessageOwned creates a UserMessage from an owned handle
func NewUserMessageUserMessageCreateFromId ¶
func NewUserMessageUserMessageCreateFromId(messageId int16) *UserMessage
NewUserMessageUserMessageCreateFromId
@brief Creates a UserMessage from a message ID. @param messageId: The ID of the message.
func NewUserMessageUserMessageCreateFromName ¶
func NewUserMessageUserMessageCreateFromName(messageName string) *UserMessage
NewUserMessageUserMessageCreateFromName
@brief Creates a UserMessage from a message name. @param messageName: The name of the message.
func NewUserMessageUserMessageCreateFromSerializable ¶
func NewUserMessageUserMessageCreateFromSerializable(msgSerializable uintptr, message uintptr, recipientMask uint64) *UserMessage
NewUserMessageUserMessageCreateFromSerializable
@brief Creates a UserMessage from a serializable message. @param msgSerializable: The serializable message. @param message: The network message. @param recipientMask: The recipient mask.
func (*UserMessage) AddAllPlayers ¶
func (w *UserMessage) AddAllPlayers() error
AddAllPlayers
@brief Adds all connected players as recipients to the UserMessage. @param userMessage: The UserMessage instance.
func (*UserMessage) AddBool ¶
func (w *UserMessage) AddBool(fieldName string, value bool) (bool, error)
AddBool
@brief Adds a bool value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddColor ¶
AddColor
@brief Adds a color value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddDouble ¶
func (w *UserMessage) AddDouble(fieldName string, value float64) (bool, error)
AddDouble
@brief Adds a double value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddEnum ¶
func (w *UserMessage) AddEnum(fieldName string, value int32) (bool, error)
AddEnum
@brief Adds a enum value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddFloat ¶
func (w *UserMessage) AddFloat(fieldName string, value float32) (bool, error)
AddFloat
@brief Adds a float value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddInt32 ¶
func (w *UserMessage) AddInt32(fieldName string, value int32) (bool, error)
AddInt32
@brief Adds a 32-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddInt64 ¶
func (w *UserMessage) AddInt64(fieldName string, value int64) (bool, error)
AddInt64
@brief Adds a 64-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddMessage ¶
func (w *UserMessage) AddMessage(fieldName string, value uintptr) (bool, error)
AddMessage
@brief Adds a Message value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddQAngle ¶
AddQAngle
@brief Adds a QAngle value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddRecipient ¶
func (w *UserMessage) AddRecipient(playerSlot int32) error
AddRecipient
@brief Adds a single recipient (player) to the UserMessage. @param userMessage: The UserMessage instance. @param playerSlot: The slot index of the player to add as a recipient.
func (*UserMessage) AddString ¶
func (w *UserMessage) AddString(fieldName string, value string) (bool, error)
AddString
@brief Adds a string value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddUInt32 ¶
func (w *UserMessage) AddUInt32(fieldName string, value uint32) (bool, error)
AddUInt32
@brief Adds an unsigned 32-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddUInt64 ¶
func (w *UserMessage) AddUInt64(fieldName string, value uint64) (bool, error)
AddUInt64
@brief Adds an unsigned 64-bit integer value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddVector2 ¶
AddVector2
@brief Adds a Vector2 value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddVector3 ¶
AddVector3
@brief Adds a Vector3 value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) AddVector4 ¶
AddVector4
@brief Adds a Vector4 value to a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to add. @return True if the value was successfully added, false otherwise.
func (*UserMessage) Close ¶
func (w *UserMessage) Close()
Close explicitly destroys the handle (like C++ destructor, but manual)
func (*UserMessage) FindMessageIdByName ¶
func (w *UserMessage) FindMessageIdByName(messageName string) int16
FindMessageIdByName
@brief Finds a message ID by its name. @param messageName: The name of the message. @return The ID of the message, or 0 if the message was not found.
func (*UserMessage) GetBool ¶
func (w *UserMessage) GetBool(fieldName string, out *bool) (bool, error)
GetBool
@brief Gets a bool value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetColor ¶
GetColor
@brief Gets a color value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetDebugString ¶
func (w *UserMessage) GetDebugString() (string, error)
GetDebugString
@brief Gets the debug string representation of the UserMessage. @param userMessage: The UserMessage instance. @return The debug string as a string.
func (*UserMessage) GetDouble ¶
func (w *UserMessage) GetDouble(fieldName string, out *float64) (bool, error)
GetDouble
@brief Gets a double value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetEnum ¶
func (w *UserMessage) GetEnum(fieldName string, out *int32) (bool, error)
GetEnum
@brief Gets a enum value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetFloat ¶
func (w *UserMessage) GetFloat(fieldName string, out *float32) (bool, error)
GetFloat
@brief Gets a float value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetInt32 ¶
func (w *UserMessage) GetInt32(fieldName string, out *int32) (bool, error)
GetInt32
@brief Gets a 32-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetInt64 ¶
func (w *UserMessage) GetInt64(fieldName string, out *int64) (bool, error)
GetInt64
@brief Gets a 64-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetMessage ¶
func (w *UserMessage) GetMessage(fieldName string, out *uintptr) (bool, error)
GetMessage
@brief Gets a Message value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output message. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetMessageID ¶
func (w *UserMessage) GetMessageID() (int16, error)
GetMessageID
@brief Gets the ID of the message. @param userMessage: The UserMessage instance. @return The ID of the message.
func (*UserMessage) GetMessageName ¶
func (w *UserMessage) GetMessageName() (string, error)
GetMessageName
@brief Gets the name of the message. @param userMessage: The UserMessage instance. @return The name of the message as a string.
func (*UserMessage) GetProtobufMessage ¶
func (w *UserMessage) GetProtobufMessage() (uintptr, error)
GetProtobufMessage
@brief Gets the protobuf message associated with the UserMessage. @param userMessage: The UserMessage instance. @return A pointer to the protobuf message.
func (*UserMessage) GetQAngle ¶
GetQAngle
@brief Gets a QAngle value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRecipientMask ¶
func (w *UserMessage) GetRecipientMask() (uint64, error)
GetRecipientMask
@brief Gets the recipient mask for the UserMessage. @param userMessage: The UserMessage instance. @return The recipient mask.
func (*UserMessage) GetRepeatedBool ¶
GetRepeatedBool
@brief Gets a repeated bool value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedColor ¶
func (w *UserMessage) GetRepeatedColor(fieldName string, index int32, out *plugify.Vector4) (bool, error)
GetRepeatedColor
@brief Gets a repeated color value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output color. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedDouble ¶
GetRepeatedDouble
@brief Gets a repeated double value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedEnum ¶
GetRepeatedEnum
@brief Gets a repeated enum value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedFieldCount ¶
func (w *UserMessage) GetRepeatedFieldCount(fieldName string) (int32, error)
GetRepeatedFieldCount
@brief Gets the count of repeated fields in a field of the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @return The count of repeated fields, or -1 if the field is not repeated or does not exist.
func (*UserMessage) GetRepeatedFloat ¶
GetRepeatedFloat
@brief Gets a repeated float value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedInt32 ¶
GetRepeatedInt32
@brief Gets a repeated int32_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedInt64 ¶
GetRepeatedInt64
@brief Gets a repeated int64_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedMessage ¶
GetRepeatedMessage
@brief Gets a repeated Message value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output message. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedQAngle ¶
func (w *UserMessage) GetRepeatedQAngle(fieldName string, index int32, out *plugify.Vector3) (bool, error)
GetRepeatedQAngle
@brief Gets a repeated QAngle value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedString ¶
GetRepeatedString
@brief Gets a repeated string value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedUInt32 ¶
GetRepeatedUInt32
@brief Gets a repeated uint32_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedUInt64 ¶
GetRepeatedUInt64
@brief Gets a repeated uint64_t value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedVector2 ¶
func (w *UserMessage) GetRepeatedVector2(fieldName string, index int32, out *plugify.Vector2) (bool, error)
GetRepeatedVector2
@brief Gets a repeated Vector2 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedVector3 ¶
func (w *UserMessage) GetRepeatedVector3(fieldName string, index int32, out *plugify.Vector3) (bool, error)
GetRepeatedVector3
@brief Gets a repeated Vector3 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetRepeatedVector4 ¶
func (w *UserMessage) GetRepeatedVector4(fieldName string, index int32, out *plugify.Vector4) (bool, error)
GetRepeatedVector4
@brief Gets a repeated Vector4 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param out: The output vector. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetSerializableMessage ¶
func (w *UserMessage) GetSerializableMessage() (uintptr, error)
GetSerializableMessage
@brief Gets the serializable message associated with the UserMessage. @param userMessage: The UserMessage instance. @return A pointer to the serializable message.
func (*UserMessage) GetString ¶
func (w *UserMessage) GetString(fieldName string, out *string) (bool, error)
GetString
@brief Gets a string value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetUInt32 ¶
func (w *UserMessage) GetUInt32(fieldName string, out *uint32) (bool, error)
GetUInt32
@brief Gets an unsigned 32-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetUInt64 ¶
func (w *UserMessage) GetUInt64(fieldName string, out *uint64) (bool, error)
GetUInt64
@brief Gets an unsigned 64-bit integer value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output value. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetVector2 ¶
GetVector2
@brief Gets a Vector2 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetVector3 ¶
GetVector3
@brief Gets a Vector3 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) GetVector4 ¶
GetVector4
@brief Gets a Vector4 value from a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param out: The output string. @return True if the field was successfully retrieved, false otherwise.
func (*UserMessage) HasField ¶
func (w *UserMessage) HasField(fieldName string) (bool, error)
HasField
@brief Checks if the message has a specific field. @param userMessage: The UserMessage instance. @param fieldName: The name of the field to check. @return True if the field exists, false otherwise.
func (*UserMessage) IsValid ¶
func (w *UserMessage) IsValid() bool
IsValid returns true if handle is not nil
func (*UserMessage) ReadBool ¶
func (w *UserMessage) ReadBool(fieldName string, index int32) (bool, error)
ReadBool
@brief Reads a boolean value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The boolean value read, or false if invalid.
func (*UserMessage) ReadColor ¶
ReadColor
@brief Reads a color value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The color value read, or an empty value if invalid.
func (*UserMessage) ReadDouble ¶
func (w *UserMessage) ReadDouble(fieldName string, index int32) (float64, error)
ReadDouble
@brief Reads a double-precision floating-point value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The double value read, or 0.0 if invalid.
func (*UserMessage) ReadEnum ¶
func (w *UserMessage) ReadEnum(fieldName string, index int32) (int32, error)
ReadEnum
@brief Reads an enum value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The integer representation of the enum value, or 0 if invalid.
func (*UserMessage) ReadFloat ¶
func (w *UserMessage) ReadFloat(fieldName string, index int32) (float32, error)
ReadFloat
@brief Reads a floating-point value from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The float value read, or 0.0 if invalid.
func (*UserMessage) ReadInt32 ¶
func (w *UserMessage) ReadInt32(fieldName string, index int32) (int32, error)
ReadInt32
@brief Reads a 32-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The int32_t value read, or 0 if invalid.
func (*UserMessage) ReadInt64 ¶
func (w *UserMessage) ReadInt64(fieldName string, index int32) (int64, error)
ReadInt64
@brief Reads a 64-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The int64_t value read, or 0 if invalid.
func (*UserMessage) ReadMessage ¶ added in v2.3.28
func (w *UserMessage) ReadMessage(fieldName string, index int32) (uintptr, error)
ReadMessage
@brief Reads a Message from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The Message value read, or an empty value if invalid.
func (*UserMessage) ReadQAngle ¶
ReadQAngle
@brief Reads a QAngle (rotation vector) from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The QAngle value read, or an empty value if invalid.
func (*UserMessage) ReadString ¶
func (w *UserMessage) ReadString(fieldName string, index int32) (string, error)
ReadString
@brief Reads a string from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The string value read, or an empty string if invalid.
func (*UserMessage) ReadUInt32 ¶
func (w *UserMessage) ReadUInt32(fieldName string, index int32) (uint32, error)
ReadUInt32
@brief Reads an unsigned 32-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The uint32_t value read, or 0 if invalid.
func (*UserMessage) ReadUInt64 ¶
func (w *UserMessage) ReadUInt64(fieldName string, index int32) (uint64, error)
ReadUInt64
@brief Reads an unsigned 64-bit integer from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The uint64_t value read, or 0 if invalid.
func (*UserMessage) ReadVector2 ¶
ReadVector2
@brief Reads a 2D vector from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The 2D vector value read, or an empty value if invalid.
func (*UserMessage) ReadVector3 ¶
ReadVector3
@brief Reads a 3D vector from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The 3D vector value read, or an empty value if invalid.
func (*UserMessage) ReadVector4 ¶
ReadVector4
@brief Reads a 4D vector from a UserMessage. @param userMessage: Pointer to the UserMessage object. @param fieldName: Name of the field to read. @param index: Index of the repeated field (use -1 for non-repeated fields). @return The 4D vector value read, or an empty value if invalid.
func (*UserMessage) Release ¶
func (w *UserMessage) Release() uintptr
Release releases ownership and returns the handle
func (*UserMessage) RemoveRepeatedFieldValue ¶
func (w *UserMessage) RemoveRepeatedFieldValue(fieldName string, index int32) (bool, error)
RemoveRepeatedFieldValue
@brief Removes a value from a repeated field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the value to remove. @return True if the value was successfully removed, false otherwise.
func (*UserMessage) Send ¶
func (w *UserMessage) Send() error
Send
@brief Sends a UserMessage to the specified recipients. @param userMessage: The UserMessage to send.
func (*UserMessage) SetBool ¶
func (w *UserMessage) SetBool(fieldName string, value bool) (bool, error)
SetBool
@brief Sets a bool value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetColor ¶
SetColor
@brief Sets a color value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetDouble ¶
func (w *UserMessage) SetDouble(fieldName string, value float64) (bool, error)
SetDouble
@brief Sets a double value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetEnum ¶
func (w *UserMessage) SetEnum(fieldName string, value int32) (bool, error)
SetEnum
@brief Sets a enum value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetFloat ¶
func (w *UserMessage) SetFloat(fieldName string, value float32) (bool, error)
SetFloat
@brief Sets a float value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetInt32 ¶
func (w *UserMessage) SetInt32(fieldName string, value int32) (bool, error)
SetInt32
@brief Sets a 32-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetInt64 ¶
func (w *UserMessage) SetInt64(fieldName string, value int64) (bool, error)
SetInt64
@brief Sets a 64-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetMessage ¶ added in v2.3.28
func (w *UserMessage) SetMessage(fieldName string, value uintptr) (bool, error)
SetMessage
@brief Sets a Message value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetQAngle ¶
SetQAngle
@brief Sets a QAngle value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRecipientMask ¶
func (w *UserMessage) SetRecipientMask(mask uint64) error
SetRecipientMask
@brief Sets the recipient mask for the UserMessage. @param userMessage: The UserMessage instance. @param mask: The recipient mask to set.
func (*UserMessage) SetRepeatedBool ¶
SetRepeatedBool
@brief Sets a repeated bool value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedColor ¶
func (w *UserMessage) SetRepeatedColor(fieldName string, index int32, value plugify.Vector4) (bool, error)
SetRepeatedColor
@brief Sets a repeated color value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedDouble ¶
SetRepeatedDouble
@brief Sets a repeated double value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedEnum ¶
SetRepeatedEnum
@brief Sets a repeated enum value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedFloat ¶
SetRepeatedFloat
@brief Sets a repeated float value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedInt32 ¶
SetRepeatedInt32
@brief Sets a repeated int32_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedInt64 ¶
SetRepeatedInt64
@brief Sets a repeated int64_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedMessage ¶ added in v2.3.28
func (w *UserMessage) SetRepeatedMessage(fieldName string, index int32, value uintptr) (bool, error)
SetRepeatedMessage
@brief Sets a repeated Message value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedQAngle ¶
func (w *UserMessage) SetRepeatedQAngle(fieldName string, index int32, value plugify.Vector3) (bool, error)
SetRepeatedQAngle
@brief Sets a repeated QAngle value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedString ¶
SetRepeatedString
@brief Sets a repeated string value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedUInt32 ¶
SetRepeatedUInt32
@brief Sets a repeated uint32_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedUInt64 ¶
SetRepeatedUInt64
@brief Sets a repeated uint64_t value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedVector2 ¶
func (w *UserMessage) SetRepeatedVector2(fieldName string, index int32, value plugify.Vector2) (bool, error)
SetRepeatedVector2
@brief Sets a repeated Vector2 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedVector3 ¶
func (w *UserMessage) SetRepeatedVector3(fieldName string, index int32, value plugify.Vector3) (bool, error)
SetRepeatedVector3
@brief Sets a repeated Vector3 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetRepeatedVector4 ¶
func (w *UserMessage) SetRepeatedVector4(fieldName string, index int32, value plugify.Vector4) (bool, error)
SetRepeatedVector4
@brief Sets a repeated Vector4 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param index: The index of the repeated field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetString ¶
func (w *UserMessage) SetString(fieldName string, value string) (bool, error)
SetString
@brief Sets a string value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetUInt32 ¶
func (w *UserMessage) SetUInt32(fieldName string, value uint32) (bool, error)
SetUInt32
@brief Sets an unsigned 32-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetUInt64 ¶
func (w *UserMessage) SetUInt64(fieldName string, value uint64) (bool, error)
SetUInt64
@brief Sets an unsigned 64-bit integer value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetVector2 ¶
SetVector2
@brief Sets a Vector2 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetVector3 ¶
SetVector3
@brief Sets a Vector3 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
func (*UserMessage) SetVector4 ¶
SetVector4
@brief Sets a Vector3 value for a field in the UserMessage. @param userMessage: The UserMessage instance. @param fieldName: The name of the field. @param value: The value to set. @return True if the field was successfully set, false otherwise.
type UserMessageCallback ¶
type UserMessageCallback func(userMessage uintptr) ResultType
UserMessageCallback - Callback function for user messages.
type VoteAction ¶
type VoteAction = int32
VoteAction - Enum representing the possible types of a vote actions.
const ( // Start - Triggered when the vote begins. No additional parameters are used. VoteAction_Start VoteAction = 0 // Vote - Triggered when a player casts a vote. 'clientSlot' holds the voter's slot and 'choice' is the selected option (e.g., VOTE_OPTION1 for yes, VOTE_OPTION2 for no). VoteAction_Vote VoteAction = 1 // End - Triggered when the vote concludes. 'clientSlot' is typically -1. 'choice' contains the reason the vote ended (from YesNoVoteEndReason). VoteAction_End VoteAction = 2 )
type VoteCreateFailed ¶
type VoteCreateFailed = int32
VoteCreateFailed - Enum representing the possible reasons a vote creation or processing has failed.
const ( // Generic - Generic vote failure. VoteCreateFailed_Generic VoteCreateFailed = 0 // TransitioningPlayers - Vote failed due to players transitioning. VoteCreateFailed_TransitioningPlayers VoteCreateFailed = 1 // RateExceeded - Vote failed because vote rate limit was exceeded. VoteCreateFailed_RateExceeded VoteCreateFailed = 2 // YesMustExceedNo - Vote failed because Yes votes must exceed No votes. VoteCreateFailed_YesMustExceedNo VoteCreateFailed = 3 // QuorumFailure - Vote failed due to quorum not being met. VoteCreateFailed_QuorumFailure VoteCreateFailed = 4 // IssueDisabled - Vote failed because the issue is disabled. VoteCreateFailed_IssueDisabled VoteCreateFailed = 5 // MapNotFound - Vote failed because the map was not found. VoteCreateFailed_MapNotFound VoteCreateFailed = 6 // MapNameRequired - Vote failed because map name is required. VoteCreateFailed_MapNameRequired VoteCreateFailed = 7 // FailedRecently - Vote failed because a similar vote failed recently. VoteCreateFailed_FailedRecently VoteCreateFailed = 8 // FailedRecentKick - Vote to kick failed recently. VoteCreateFailed_FailedRecentKick VoteCreateFailed = 9 // FailedRecentChangeMap - Vote to change map failed recently. VoteCreateFailed_FailedRecentChangeMap VoteCreateFailed = 10 // FailedRecentSwapTeams - Vote to swap teams failed recently. VoteCreateFailed_FailedRecentSwapTeams VoteCreateFailed = 11 // FailedRecentScrambleTeams - Vote to scramble teams failed recently. VoteCreateFailed_FailedRecentScrambleTeams VoteCreateFailed = 12 // FailedRecentRestart - Vote to restart failed recently. VoteCreateFailed_FailedRecentRestart VoteCreateFailed = 13 // TeamCantCall - Team is not allowed to call vote. VoteCreateFailed_TeamCantCall VoteCreateFailed = 14 // WaitingForPlayers - Vote failed because game is waiting for players. VoteCreateFailed_WaitingForPlayers VoteCreateFailed = 15 // PlayerNotFound - Target player was not found. VoteCreateFailed_PlayerNotFound VoteCreateFailed = 16 // CannotKickAdmin - Cannot kick an admin. VoteCreateFailed_CannotKickAdmin VoteCreateFailed = 17 // ScrambleInProgress - Scramble is currently in progress. VoteCreateFailed_ScrambleInProgress VoteCreateFailed = 18 // SwapInProgress - Swap is currently in progress. VoteCreateFailed_SwapInProgress VoteCreateFailed = 19 // Spectator - Spectators are not allowed to vote. VoteCreateFailed_Spectator VoteCreateFailed = 20 // Disabled - Voting is disabled. VoteCreateFailed_Disabled VoteCreateFailed = 21 // NextLevelSet - Next level is already set. VoteCreateFailed_NextLevelSet VoteCreateFailed = 22 // Rematch - Rematch vote failed. VoteCreateFailed_Rematch VoteCreateFailed = 23 // TooEarlySurrender - Vote to surrender failed due to being too early. VoteCreateFailed_TooEarlySurrender VoteCreateFailed = 24 // Continue - Vote to continue failed. VoteCreateFailed_Continue VoteCreateFailed = 25 // MatchPaused - Vote failed because match is already paused. VoteCreateFailed_MatchPaused VoteCreateFailed = 26 // MatchNotPaused - Vote failed because match is not paused. VoteCreateFailed_MatchNotPaused VoteCreateFailed = 27 // NotInWarmup - Vote failed because game is not in warmup. VoteCreateFailed_NotInWarmup VoteCreateFailed = 28 // Not10Players - Vote failed because there are not 10 players. VoteCreateFailed_Not10Players VoteCreateFailed = 29 // TimeoutActive - Vote failed due to an active timeout. VoteCreateFailed_TimeoutActive VoteCreateFailed = 30 // TimeoutInactive - Vote failed because timeout is inactive. VoteCreateFailed_TimeoutInactive VoteCreateFailed = 31 // TimeoutExhausted - Vote failed because timeout has been exhausted. VoteCreateFailed_TimeoutExhausted VoteCreateFailed = 32 // CantRoundEnd - Vote failed because the round can't end now. VoteCreateFailed_CantRoundEnd VoteCreateFailed = 33 // Max - Sentinel value. Not a real failure reason. VoteCreateFailed_Max VoteCreateFailed = 34 )
type VoteEndReason ¶
type VoteEndReason = int32
VoteEndReason - Enum representing the possible types of a vote.
const ( // AllVotes - All possible votes were cast. VoteEndReason_AllVotes VoteEndReason = 0 // TimeUp - Time ran out. VoteEndReason_TimeUp VoteEndReason = 1 // Cancelled - The vote got cancelled. VoteEndReason_Cancelled VoteEndReason = 2 )
type WeaponDefIndex ¶
type WeaponDefIndex = uint16
WeaponDefIndex - Enum representing different weapon definition indices.
const ( WeaponDefIndex_Invalid WeaponDefIndex = 0 WeaponDefIndex_Deagle WeaponDefIndex = 1 WeaponDefIndex_Elite WeaponDefIndex = 2 WeaponDefIndex_FiveSeven WeaponDefIndex = 3 WeaponDefIndex_Glock WeaponDefIndex = 4 WeaponDefIndex_AK47 WeaponDefIndex = 7 WeaponDefIndex_AUG WeaponDefIndex = 8 WeaponDefIndex_AWP WeaponDefIndex = 9 WeaponDefIndex_FAMAS WeaponDefIndex = 10 WeaponDefIndex_G3SG1 WeaponDefIndex = 11 WeaponDefIndex_GalilAR WeaponDefIndex = 13 WeaponDefIndex_M249 WeaponDefIndex = 14 WeaponDefIndex_M4A1 WeaponDefIndex = 16 WeaponDefIndex_MAC10 WeaponDefIndex = 17 WeaponDefIndex_P90 WeaponDefIndex = 19 WeaponDefIndex_MP5SD WeaponDefIndex = 23 WeaponDefIndex_UMP45 WeaponDefIndex = 24 WeaponDefIndex_XM1014 WeaponDefIndex = 25 WeaponDefIndex_Bizon WeaponDefIndex = 26 WeaponDefIndex_MAG7 WeaponDefIndex = 27 WeaponDefIndex_Negev WeaponDefIndex = 28 WeaponDefIndex_SawedOff WeaponDefIndex = 29 WeaponDefIndex_Tec9 WeaponDefIndex = 30 WeaponDefIndex_Taser WeaponDefIndex = 31 WeaponDefIndex_HKP2000 WeaponDefIndex = 32 WeaponDefIndex_MP7 WeaponDefIndex = 33 WeaponDefIndex_MP9 WeaponDefIndex = 34 WeaponDefIndex_Nova WeaponDefIndex = 35 WeaponDefIndex_P250 WeaponDefIndex = 36 WeaponDefIndex_SCAR20 WeaponDefIndex = 38 WeaponDefIndex_SG556 WeaponDefIndex = 39 WeaponDefIndex_SSG08 WeaponDefIndex = 40 WeaponDefIndex_KnifeGG WeaponDefIndex = 41 WeaponDefIndex_Knife WeaponDefIndex = 42 WeaponDefIndex_Flashbang WeaponDefIndex = 43 WeaponDefIndex_HEGrenade WeaponDefIndex = 44 WeaponDefIndex_SmokeGrenade WeaponDefIndex = 45 WeaponDefIndex_Molotov WeaponDefIndex = 46 WeaponDefIndex_Decoy WeaponDefIndex = 47 WeaponDefIndex_IncGrenade WeaponDefIndex = 48 WeaponDefIndex_C4 WeaponDefIndex = 49 WeaponDefIndex_Kevlar WeaponDefIndex = 50 WeaponDefIndex_AssaultSuit WeaponDefIndex = 51 WeaponDefIndex_HeavyAssaultSuit WeaponDefIndex = 52 WeaponDefIndex_Defuser WeaponDefIndex = 55 WeaponDefIndex_KnifeT WeaponDefIndex = 59 WeaponDefIndex_M4A1Silencer WeaponDefIndex = 60 WeaponDefIndex_USPSilencer WeaponDefIndex = 61 WeaponDefIndex_CZ75A WeaponDefIndex = 63 WeaponDefIndex_Revolver WeaponDefIndex = 64 WeaponDefIndex_Bayonet WeaponDefIndex = 500 WeaponDefIndex_KnifeCSS WeaponDefIndex = 503 WeaponDefIndex_KnifeFlip WeaponDefIndex = 505 WeaponDefIndex_KnifeGut WeaponDefIndex = 506 WeaponDefIndex_KnifeKarambit WeaponDefIndex = 507 WeaponDefIndex_KnifeM9Bayonet WeaponDefIndex = 508 WeaponDefIndex_KnifeTactical WeaponDefIndex = 509 WeaponDefIndex_KnifeFalchion WeaponDefIndex = 512 WeaponDefIndex_KnifeBowie WeaponDefIndex = 514 WeaponDefIndex_KnifeButterfly WeaponDefIndex = 515 WeaponDefIndex_KnifePush WeaponDefIndex = 516 WeaponDefIndex_KnifeCord WeaponDefIndex = 517 WeaponDefIndex_KnifeCanis WeaponDefIndex = 518 WeaponDefIndex_KnifeUrsus WeaponDefIndex = 519 WeaponDefIndex_KnifeGypsyJackknife WeaponDefIndex = 520 WeaponDefIndex_KnifeOutdoor WeaponDefIndex = 521 WeaponDefIndex_KnifeStiletto WeaponDefIndex = 522 WeaponDefIndex_KnifeWidowmaker WeaponDefIndex = 523 WeaponDefIndex_KnifeSkeleton WeaponDefIndex = 525 WeaponDefIndex_KnifeKukri WeaponDefIndex = 526 )
func GetWeaponItemDefinition ¶
func GetWeaponItemDefinition(entityHandle int32) WeaponDefIndex
GetWeaponItemDefinition
@brief Retrieves the weapon definition index for a given entity handle. @param entityHandle: The handle of the entity from which to retrieve the weapon def index. @return The weapon definition index as a `uint16_t`, or 0 if the entity handle is invalid.
func GetWeaponItemDefinitionByName ¶
func GetWeaponItemDefinitionByName(itemName string) WeaponDefIndex
GetWeaponItemDefinitionByName
@brief Retrieves the item definition index associated with a given item name. @param itemName: The name of the item. @return The weapon definition index as a `uint16_t`, or 0 if the entity handle is invalid.
type YesNoVoteHandler ¶
type YesNoVoteHandler func(action VoteAction, clientSlot int32, choice int32)
type YesNoVoteResult ¶
type YesNoVoteResult func(numVotes int32, yesVotes int32, noVotes int32, numClients int32, clientInfoSlot []int32, clientInfoItem []int32) bool
YesNoVoteResult - Handles the final result of a Yes/No vote. This function is called when a vote concludes, and is responsible for determining whether the vote passed based on the number of 'yes' and 'no' votes. Also receives context about the clients who participated in the vote.