mirror of
https://github.com/rehlds/reapi.git
synced 2025-04-08 18:40:16 +03:00
Implementation of new Natives
This commit is contained in:
commit
0e358d4aad
7
.vs/VSWorkspaceState.json
Normal file
7
.vs/VSWorkspaceState.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ExpandedNodes": [
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"SelectedNode": "\\reapi.sln",
|
||||||
|
"PreviewInSolutionExplorer": false
|
||||||
|
}
|
BIN
.vs/reapi/v17/.wsuo
Normal file
BIN
.vs/reapi/v17/.wsuo
Normal file
Binary file not shown.
12
.vs/reapi/v17/DocumentLayout.json
Normal file
12
.vs/reapi/v17/DocumentLayout.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "E:\\Repos\\reapi\\",
|
||||||
|
"Documents": [],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1221,3 +1221,99 @@ native rg_player_relationship(const player, const target);
|
|||||||
* @noreturn
|
* @noreturn
|
||||||
*/
|
*/
|
||||||
native rg_send_death_message(const pKiller, const pVictim, const pAssister, const pevInflictor, const killerWeaponName[], const DeathMessageFlags:iDeathMessageFlags, const KillRarity:iRarityOfKill);
|
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);
|
Loading…
x
Reference in New Issue
Block a user