Enumerations2
SymbolDescription
PropFieldType
PropTypeProperty types for entities.
Defines10
SymbolDescription
FL_EDICT_ALWAYSalways transmit this entity
FL_EDICT_CHANGED
FL_EDICT_DIRTY_PVS_INFORMATION
FL_EDICT_DONTSENDdon't transmit this entity
FL_EDICT_FREEthis edict if free for reuse
FL_EDICT_FULLthis is a full server entity
FL_EDICT_FULLCHECKcall ShouldTransmit() each time, this is a fake flag
FL_EDICT_PENDING_DORMANT_CHECK
FL_EDICT_PVSCHECKalways transmit entity, but cull against PVS
FL_FULL_EDICT_CHANGED
Functions48
SymbolDescription
ChangeEdictStateMarks an entity as state changed. This can be useful if you set an offset and wish for it to be immediately changed over the network. By default this is not done for offset setting functions.
CreateEdictCreates a new edict (the basis of a networkable entity)
FindDataMapInfoGiven an entity, finds a nested datamap property offset. This information is cached for future calls.
FindDataMapOffs
FindSendPropInfoGiven a ServerClass name, finds a networkable send property offset. This information is cached for future calls.
FindSendPropOffs
GetEdictClassnameRetrieves an edict classname.
GetEdictFlagsReturns the flags on an edict. These are not the same as entity flags.
GetEntDataPeeks into an entity's object data and retrieves the integer value at the given offset.
GetEntDataArrayCopies an array of cells from an entity at a given offset.
GetEntDataEnt
GetEntDataEnt2Peeks into an entity's object data and retrieves the entity index at the given offset. Note: This will only work on offsets that are stored as "entity handles" (which usually looks like m_h* in properties). These are not SourceMod Handles, but internal Source structures.
GetEntDataFloatPeeks into an entity's object data and retrieves the float value at the given offset.
GetEntDataStringPeeks into an entity's object data and retrieves the string at the given offset.
GetEntDataVectorPeeks into an entity's object data and retrieves the vector at the given offset.
GetEntityAddressGets the memory address of an entity.
GetEntityClassnameRetrieves the classname of an entity. This is like GetEdictClassname(), except it works for ALL entities, not just edicts.
GetEntityCountReturns the number of networked entities in the server. Note: For legacy reasons, this only returns the current count of networked entities (current edicts), rather than total count of current entities.
GetEntityNetClassRetrieves an entity's networkable serverclass name. This is not the same as the classname and is used for networkable state changes.
GetEntPropRetrieves an integer value from an entity's property. This function is considered safer and more robust over GetEntData, because it performs strict offset checking and typing rules.
GetEntPropArraySizeRetrieves the count of values that an entity property's array can store.
GetEntPropEntRetrieves an entity index from an entity's property. This function is considered safer and more robust over GetEntDataEnt*, because it performs strict offset checking and typing rules.
GetEntPropFloatRetrieves a float value from an entity's property. This function is considered safer and more robust over GetEntDataFloat, because it performs strict offset checking and typing rules.
GetEntPropStringGets a network property as a string.
GetEntPropVectorRetrieves a vector of floats from an entity, given a named network property. This function is considered safer and more robust over GetEntDataVector, because it performs strict offset checking and typing rules.
GetEntSendPropOffsWrapper function for finding a send property for a particular entity.
GetMaxEntitiesReturns the maximum number of networked entities. Note: For legacy reasons, this only returns the maximum networked entities (maximum edicts), rather than total maximum entities.
HasEntPropChecks if an entity property exists on an entity.
IsEntNetworkableReturns whether or not an entity has a valid networkable edict.
IsValidEdictReturns whether or not an edict index is valid.
IsValidEntityReturns whether or not an entity is valid. Returns false if there is no matching CBaseEntity for this entity index.
LoadEntityFromHandleAddressInterprets the address as an entity handle and returns the associated entity.
RemoveEdictRemoves an edict from the world.
RemoveEntityMarks an entity for deletion.
SetEdictFlagsSets the flags on an edict. These are not the same as entity flags.
SetEntDataPeeks into an entity's object data and sets the integer value at the given offset.
SetEntDataArrayCopies an array of cells to an entity at a given offset.
SetEntDataEnt
SetEntDataEnt2Peeks into an entity's object data and sets the entity index at the given offset. Note: This will only work on offsets that are stored as "entity handles" (which usually looks like m_h* in properties). These are not SourceMod Handles, but internal Source structures.
SetEntDataFloatPeeks into an entity's object data and sets the float value at the given offset.
SetEntDataStringPeeks into an entity's object data and sets the string at the given offset.
SetEntDataVectorPeeks into an entity's object data and sets the vector at the given offset.
SetEntPropSets an integer value in an entity's property. This function is considered safer and more robust over SetEntData, because it performs strict offset checking and typing rules.
SetEntPropEntSets an entity index in an entity's property. This function is considered safer and more robust over SetEntDataEnt*, because it performs strict offset checking and typing rules.
SetEntPropFloatSets a float value in an entity's property. This function is considered safer and more robust over SetEntDataFloat, because it performs strict offset checking and typing rules.
SetEntPropStringSets a network property as a string.
SetEntPropVectorSets a vector of floats in an entity, given a named network property. This function is considered safer and more robust over SetEntDataVector, because it performs strict offset checking and typing rules.
StoreEntityToHandleAddressInterprets the address as an entity handle and sets the entity.