2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-04-06 17:49:13 +03:00

Implementation of new Natives

This commit is contained in:
Celio Lozatto 2024-08-15 14:24:50 -03:00
commit 0e358d4aad
4 changed files with 115 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\reapi.sln",
"PreviewInSolutionExplorer": false
}

BIN
.vs/reapi/v17/.wsuo Normal file

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"Version": 1,
"WorkspaceRootPath": "E:\\Repos\\reapi\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": []
}
]
}

View File

@ -1221,3 +1221,99 @@ native rg_player_relationship(const player, const target);
* @noreturn
*/
native rg_send_death_message(const pKiller, const pVictim, const pAssister, const pevInflictor, const killerWeaponName[], const DeathMessageFlags:iDeathMessageFlags, const KillRarity:iRarityOfKill);
/*
* -
*
* @param index Client index
* @param attacker Attacker index
* @param flDamage The amount of damage
* @param vecDir Direction
* @param ptr Traceresult pointer
* @param bitsDamageType Damage type DMG_*
*
* @noreturn
*/
native rg_player_traceattack(const index, const attacker, const Float:flDamage, Float:vecDir[3], const ptr, bitsDamageType);
/*
* -
*
* @param index Client index
* @param inflictor Inflictor index
* @param attacker Attacker index
* @param flDamage The amount of damage
* @param bitsDamageType Damage type DMG_*
*
* @return 1 on success, 0 otherwise
*/
native rg_player_takedamage(const index, const inflictor, const attacker, const Float:flDamage, const bitsDamageType);
/*
* -
*
* @param index Client index
* @param flHealth The amount of health
* @param bitsDamageType Damage type DMG_*
*
* @return 1 on success, 0 otherwise
*/
native rg_player_takehealth(const index, const Float:flHealth, const bitsDamageType);
/*
* -
*
* @param index Client index
* @param attacker Attacker index
* @param gibs Use DMG_NEVERGIB or DMG_ALWAYSGIB
*
* @noreturn
*/
native rg_player_killed(const index, const attacker, const gibs);
/*
* -
*
* @param index Client index
* @param score Adds the score to the current amount
* @param allowNegativeScore Allow Negative Score
*
* @noreturn
*/
native rg_player_addpoints(const index, const score, const bool:allowNegativeScore);
/*
* -
*
* @param index Client index
*
* @return 1 on success, 0 otherwise
*/
native rg_is_player_alive(const index);
/*
* -
*
* @param index Client index
*
* @return 1 on success, 0 otherwise
*/
native rg_is_player_net_client(const index);
/*
* -
*
* @param index Client index
*
* @return Float:[3] The source position
*/
native Float:[3] rg_get_player_gun_position(const index);
/*
* -
*
* @param index Client index
*
* @return 1 on success, 0 otherwise
*/
native rg_is_player_bot(const index);