504ddb4c2f
Added vanilla HLDM support. Fixed a weird crash when compiled in release build for Linux. Expanded HamFilter error messages a tad.
162 lines
3.0 KiB
C
162 lines
3.0 KiB
C
#ifndef HAM_CONST_H
|
|
#define HAM_CONST_H
|
|
|
|
|
|
enum
|
|
{
|
|
HAM_UNSET = 0,
|
|
HAM_IGNORED,
|
|
HAM_HANDLED,
|
|
HAM_OVERRIDE,
|
|
HAM_SUPERCEDE
|
|
};
|
|
|
|
enum
|
|
{
|
|
Ham_Spawn = 0,
|
|
Ham_Precache,
|
|
Ham_Keyvalue,
|
|
Ham_ObjectCaps,
|
|
Ham_Activate,
|
|
Ham_SetObjectCollisionBox,
|
|
Ham_Classify,
|
|
Ham_DeathNotice,
|
|
Ham_TraceAttack,
|
|
Ham_TakeDamage,
|
|
Ham_TakeHealth,
|
|
Ham_Killed,
|
|
Ham_BloodColor,
|
|
Ham_TraceBleed,
|
|
Ham_IsTriggered,
|
|
Ham_MyMonsterPointer,
|
|
Ham_MySquadMonsterPointer,
|
|
Ham_GetToggleState,
|
|
Ham_AddPoints,
|
|
Ham_AddPointsToTeam,
|
|
Ham_AddPlayerItem,
|
|
Ham_RemovePlayerItem,
|
|
Ham_GiveAmmo,
|
|
Ham_GetDelay,
|
|
Ham_IsMoving,
|
|
Ham_OverrideReset,
|
|
Ham_DamageDecal,
|
|
Ham_SetToggleState,
|
|
Ham_StartSneaking,
|
|
Ham_StopSneaking,
|
|
Ham_OnControls,
|
|
Ham_IsSneaking,
|
|
Ham_IsAlive,
|
|
Ham_IsBSPModel,
|
|
Ham_ReflectGauss,
|
|
Ham_HasTarget,
|
|
Ham_IsInWorld,
|
|
Ham_IsPlayer,
|
|
Ham_IsNetClient,
|
|
Ham_TeamId,
|
|
Ham_GetNextTarget,
|
|
Ham_Think,
|
|
Ham_Touch,
|
|
Ham_Use,
|
|
Ham_Blocked,
|
|
Ham_Respawn,
|
|
Ham_UpdateOwner,
|
|
Ham_FBecomeProne,
|
|
Ham_Center,
|
|
Ham_EyePosition,
|
|
Ham_EarPosition,
|
|
Ham_BodyTarget,
|
|
Ham_Illumination,
|
|
Ham_FVisible,
|
|
Ham_FVecVisible,
|
|
|
|
Ham_Player_Jump,
|
|
Ham_Player_Duck,
|
|
Ham_Player_PreThink,
|
|
Ham_Player_PostThink,
|
|
Ham_Player_GetGunPosition,
|
|
Ham_Player_ShouldFadeOnDeath,
|
|
Ham_Player_ImpulseCommands,
|
|
Ham_Player_UpdateClientData,
|
|
|
|
Ham_Item_AddToPlayer,
|
|
Ham_Item_AddDuplicate,
|
|
Ham_Item_GetItemInfo,
|
|
Ham_Item_CanDeploy,
|
|
Ham_Item_Deploy,
|
|
Ham_Item_CanHolster,
|
|
Ham_Item_Holster,
|
|
Ham_Item_UpdateItemInfo,
|
|
Ham_Item_PreFrame,
|
|
Ham_Item_PostFrame,
|
|
Ham_Item_Drop,
|
|
Ham_Item_Kill,
|
|
Ham_Item_AttachToPlayer,
|
|
Ham_Item_PrimaryAmmoIndex,
|
|
Ham_Item_SecondaryAmmoIndex,
|
|
Ham_Item_UpdateClientData,
|
|
Ham_Item_GetWeaponPtr,
|
|
Ham_Item_ItemSlot,
|
|
|
|
Ham_Weapon_ExtractAmmo,
|
|
Ham_Weapon_ExtractClipAmmo,
|
|
Ham_Weapon_AddWeapon,
|
|
Ham_Weapon_PlayEmptySound,
|
|
Ham_Weapon_ResetEmptySound,
|
|
Ham_Weapon_SendWeaponAnim,
|
|
Ham_Weapon_IsUsable,
|
|
Ham_Weapon_PrimaryAttack,
|
|
Ham_Weapon_SecondaryAttack,
|
|
Ham_Weapon_Reload,
|
|
Ham_Weapon_WeaponIdle,
|
|
Ham_Weapon_RetireWeapon,
|
|
Ham_Weapon_ShouldWeaponIdle,
|
|
Ham_Weapon_UseDecrement,
|
|
|
|
Ham_TS_BreakableRespawn,
|
|
Ham_TS_CanUsedThroughWalls,
|
|
Ham_TS_RespawnWait,
|
|
|
|
Ham_CS_Restart,
|
|
Ham_CS_RoundRespawn,
|
|
|
|
Ham_DOD_RoundRespawn,
|
|
Ham_DOD_RoundRespawnEnt,
|
|
Ham_DOD_RoundStore,
|
|
Ham_DOD_AreaSetIndex,
|
|
Ham_DOD_AreaSendStatus,
|
|
Ham_DOD_GetState,
|
|
Ham_DOD_GetStateEnt,
|
|
|
|
Ham_TFC_EngineerUse,
|
|
Ham_TFC_Finished,
|
|
Ham_TFC_EmpExplode,
|
|
Ham_TFC_CalcEmpDmgRad,
|
|
Ham_TFC_TakeEmpBlast,
|
|
Ham_TFC_EmpRemove,
|
|
Ham_TFC_TakeConcussionBlast,
|
|
Ham_TFC_Concuss,
|
|
|
|
Ham_ESF_IsEnvModel, // Only valid in ESF Open Beta
|
|
Ham_ESF_TakeDamage2, // Only valid in ESF Open Beta
|
|
|
|
Ham_NS_GetPointValue,
|
|
Ham_NS_AwardKill,
|
|
Ham_NS_ResetEntity,
|
|
Ham_NS_UpdateOnRemove,
|
|
|
|
|
|
HAM_LAST_ENTRY_DONT_USE_ME_LOL
|
|
};
|
|
|
|
enum
|
|
{
|
|
HAM_OK = 0,
|
|
|
|
HAM_INVALID_FUNC, // The function is not valid
|
|
HAM_FUNC_NOT_CONFIGURED, // This function is not configured in hamdata.ini
|
|
|
|
HAM_ERR_END
|
|
};
|
|
|
|
#endif
|