mirror of
https://github.com/rehlds/reapi.git
synced 2024-12-29 08:05:36 +03:00
Comments & descriptions improvements (#91)
* Comments & descriptions improvements
This commit is contained in:
parent
3b2081873d
commit
d5ce26df88
@ -3,6 +3,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _cssdk_const_included
|
#define _cssdk_const_included
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Basic constants
|
||||||
|
*/
|
||||||
#define BIT(%0) (1<<(%0))
|
#define BIT(%0) (1<<(%0))
|
||||||
|
|
||||||
#define NULLENT -1
|
#define NULLENT -1
|
||||||
@ -213,14 +216,18 @@
|
|||||||
// These are the damage types that have client hud art
|
// These are the damage types that have client hud art
|
||||||
#define DMG_SHOWNHUD (DMG_POISON | DMG_ACID | DMG_FREEZE | DMG_SLOWFREEZE | DMG_DROWN | DMG_BURN | DMG_SLOWBURN | DMG_NERVEGAS | DMG_RADIATION | DMG_SHOCK)
|
#define DMG_SHOWNHUD (DMG_POISON | DMG_ACID | DMG_FREEZE | DMG_SLOWFREEZE | DMG_DROWN | DMG_BURN | DMG_SLOWBURN | DMG_NERVEGAS | DMG_RADIATION | DMG_SHOCK)
|
||||||
|
|
||||||
// When calling KILLED(), a value that governs gib behavior is expected to be
|
/**
|
||||||
// one of these three values
|
* When calling KILLED(), a value that governs gib behavior is expected to be
|
||||||
|
* one of these three values
|
||||||
|
*/
|
||||||
#define GIB_NORMAL 0 // Gib if entity was overkilled
|
#define GIB_NORMAL 0 // Gib if entity was overkilled
|
||||||
#define GIB_NEVER 1 // Never gib, no matter how much death damage is done ( freezing, etc )
|
#define GIB_NEVER 1 // Never gib, no matter how much death damage is done ( freezing, etc )
|
||||||
#define GIB_ALWAYS 2 // Always gib ( Houndeye Shock, Barnacle Bite )
|
#define GIB_ALWAYS 2 // Always gib ( Houndeye Shock, Barnacle Bite )
|
||||||
|
|
||||||
// Player physics flags bits
|
/**
|
||||||
// CBasePlayer::m_afPhysicsFlags
|
* Player physics flags bits
|
||||||
|
* CBasePlayer::m_afPhysicsFlags
|
||||||
|
*/
|
||||||
#define PFLAG_ONLADDER (1<<0)
|
#define PFLAG_ONLADDER (1<<0)
|
||||||
#define PFLAG_ONSWING (1<<0)
|
#define PFLAG_ONSWING (1<<0)
|
||||||
#define PFLAG_ONTRAIN (1<<1)
|
#define PFLAG_ONTRAIN (1<<1)
|
||||||
@ -644,6 +651,9 @@
|
|||||||
#define TRAIN_FAST 0x04
|
#define TRAIN_FAST 0x04
|
||||||
#define TRAIN_BACK 0x05
|
#define TRAIN_BACK 0x05
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PlaybackEvent flags
|
||||||
|
*/
|
||||||
#define FEV_NOTHOST (1<<0) // Skip local host for event send.
|
#define FEV_NOTHOST (1<<0) // Skip local host for event send.
|
||||||
#define FEV_RELIABLE (1<<1) // Send the event reliably. You must specify the origin and angles
|
#define FEV_RELIABLE (1<<1) // Send the event reliably. You must specify the origin and angles
|
||||||
// for this to work correctly on the server for anything
|
// for this to work correctly on the server for anything
|
||||||
@ -677,7 +687,9 @@
|
|||||||
// UNDONE: This will ignore transition volumes (trigger_transition), but not the PVS!!!
|
// UNDONE: This will ignore transition volumes (trigger_transition), but not the PVS!!!
|
||||||
#define FCAP_FORCE_TRANSITION 0x00000080 // ALWAYS goes across transitions
|
#define FCAP_FORCE_TRANSITION 0x00000080 // ALWAYS goes across transitions
|
||||||
|
|
||||||
// All monsters need this data
|
/**
|
||||||
|
* All monsters need this data
|
||||||
|
*/
|
||||||
#define DONT_BLEED -1
|
#define DONT_BLEED -1
|
||||||
#define BLOOD_COLOR_RED 247
|
#define BLOOD_COLOR_RED 247
|
||||||
#define BLOOD_COLOR_YELLOW 195
|
#define BLOOD_COLOR_YELLOW 195
|
||||||
@ -693,6 +705,9 @@ enum
|
|||||||
IGNOREMSG_TEAM // Same as IGNOREMSG_ENEMY but ignore teammates
|
IGNOREMSG_TEAM // Same as IGNOREMSG_ENEMY but ignore teammates
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hitgroups
|
||||||
|
*/
|
||||||
enum HitBoxGroup
|
enum HitBoxGroup
|
||||||
{
|
{
|
||||||
HITGROUP_GENERIC = 0,
|
HITGROUP_GENERIC = 0,
|
||||||
@ -706,6 +721,9 @@ enum HitBoxGroup
|
|||||||
HITGROUP_SHIELD
|
HITGROUP_SHIELD
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Armor types for m_iKevlar
|
||||||
|
*/
|
||||||
enum ArmorType
|
enum ArmorType
|
||||||
{
|
{
|
||||||
ARMOR_NONE, // No armor
|
ARMOR_NONE, // No armor
|
||||||
@ -750,6 +768,9 @@ enum ArmouryItemPack
|
|||||||
ARMOURY_DEAGLE,
|
ARMOURY_DEAGLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reward types for RG_CBasePlayer_AddAccount
|
||||||
|
*/
|
||||||
enum RewardType
|
enum RewardType
|
||||||
{
|
{
|
||||||
RT_NONE,
|
RT_NONE,
|
||||||
@ -769,6 +790,9 @@ enum RewardType
|
|||||||
RT_VIP_RESCUED_MYSELF
|
RT_VIP_RESCUED_MYSELF
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Team IDs for m_iTeam
|
||||||
|
*/
|
||||||
enum TeamName
|
enum TeamName
|
||||||
{
|
{
|
||||||
TEAM_UNASSIGNED,
|
TEAM_UNASSIGNED,
|
||||||
@ -777,6 +801,9 @@ enum TeamName
|
|||||||
TEAM_SPECTATOR
|
TEAM_SPECTATOR
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For m_iModelName
|
||||||
|
*/
|
||||||
enum ModelName
|
enum ModelName
|
||||||
{
|
{
|
||||||
MODEL_UNASSIGNED,
|
MODEL_UNASSIGNED,
|
||||||
@ -794,6 +821,9 @@ enum ModelName
|
|||||||
MODEL_AUTO
|
MODEL_AUTO
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* weapon respawning return codes
|
||||||
|
*/
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
GR_NONE = 0,
|
GR_NONE = 0,
|
||||||
@ -811,6 +841,9 @@ enum
|
|||||||
GR_PLR_DROP_AMMO_NO
|
GR_PLR_DROP_AMMO_NO
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Weapon IDs for rg_get_weaponbox_id, GetGrenadeType, rg_get_weapon_info(const weapon_name[], WI_ID)
|
||||||
|
*/
|
||||||
enum WeaponIdType
|
enum WeaponIdType
|
||||||
{
|
{
|
||||||
WEAPON_NONE,
|
WEAPON_NONE,
|
||||||
@ -862,6 +895,9 @@ enum TimeBasedDamage
|
|||||||
ITDB_SLOWFREEZE
|
ITDB_SLOWFREEZE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* m_Activity
|
||||||
|
*/
|
||||||
enum Activity
|
enum Activity
|
||||||
{
|
{
|
||||||
ACT_INVALID = -1,
|
ACT_INVALID = -1,
|
||||||
@ -968,9 +1004,13 @@ enum Activity
|
|||||||
ACT_NO
|
ACT_NO
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WinStatus for RG_RoundEnd, rg_round_end
|
||||||
|
*/
|
||||||
enum WinStatus
|
enum WinStatus
|
||||||
{
|
{
|
||||||
WINSTATUS_CTS = 1,
|
WINSTATUS_NONE = 0,
|
||||||
|
WINSTATUS_CTS,
|
||||||
WINSTATUS_TERRORISTS,
|
WINSTATUS_TERRORISTS,
|
||||||
WINSTATUS_DRAW,
|
WINSTATUS_DRAW,
|
||||||
};
|
};
|
||||||
@ -1007,6 +1047,9 @@ enum ScenarioEventEndRound
|
|||||||
ROUND_GAME_OVER
|
ROUND_GAME_OVER
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Animation IDs for RG_CBasePlayer_SetAnimation, rg_set_animation
|
||||||
|
*/
|
||||||
enum PLAYER_ANIM
|
enum PLAYER_ANIM
|
||||||
{
|
{
|
||||||
PLAYER_IDLE,
|
PLAYER_IDLE,
|
||||||
@ -1134,6 +1177,9 @@ enum WeaponState
|
|||||||
WPNSTATE_SHIELD_DRAWN = BIT(5),
|
WPNSTATE_SHIELD_DRAWN = BIT(5),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bullet types for rg_fire_bullets, rg_fire_bullets3
|
||||||
|
*/
|
||||||
enum Bullet
|
enum Bullet
|
||||||
{
|
{
|
||||||
BULLET_NONE,
|
BULLET_NONE,
|
||||||
@ -1154,6 +1200,9 @@ enum Bullet
|
|||||||
BULLET_PLAYER_357SIG,
|
BULLET_PLAYER_357SIG,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reward rules for rg_get_account_rules, rg_set_account_rules
|
||||||
|
*/
|
||||||
enum RewardRules
|
enum RewardRules
|
||||||
{
|
{
|
||||||
RR_CTS_WIN,
|
RR_CTS_WIN,
|
||||||
@ -1181,6 +1230,9 @@ enum RewardRules
|
|||||||
RR_END
|
RR_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For RG_CBasePlayer_HasRestrictItem
|
||||||
|
*/
|
||||||
enum ItemRestType
|
enum ItemRestType
|
||||||
{
|
{
|
||||||
ITEM_TYPE_BUYING, // When a player is buying items
|
ITEM_TYPE_BUYING, // When a player is buying items
|
||||||
@ -1247,6 +1299,9 @@ enum InfoMapBuyParam
|
|||||||
BUYING_NO_ONE,
|
BUYING_NO_ONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For SetUse
|
||||||
|
*/
|
||||||
enum USE_TYPE
|
enum USE_TYPE
|
||||||
{
|
{
|
||||||
USE_OFF,
|
USE_OFF,
|
||||||
|
Loading…
Reference in New Issue
Block a user