Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update reapi_gamedll.inc
  • Loading branch information
GLoOoccK authored May 19, 2025
commit c42eb235269b04d1321f08a7966280b4f2189c6d
29 changes: 29 additions & 0 deletions reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1245,3 +1245,32 @@ native rg_send_death_message(const pKiller, const pVictim, const pAssister, cons
* @noreturn
*/
native rg_player_takedamage_impulse(const player, const attacker, const Float:flKnockbackForce, const Float:flVelModifier);

/*
* Fires a trace line between two origins, retrieving the end point and entity hit.
*
* @param vecStart Start position
* @param vecEnd End position
* @param ignoreMonsters Entity ignore type
* @param ignoreEntity Entity index that trace will ignore, NULLENT if trace should not ignore any entities
* @param ptr Traceresult pointer, use Fakemeta's create_tr2 to instantiate one
* @param traceFlags Additional trace flags, see FTRACE_* constants on cssdk_const.inc
*
* @noreturn
*/
native rg_trace_line(Float:vecStart[3], Float:vecEnd[3], const ignoreMonsters, const ignoreEntity, const ptr, const traceFlags = 0);

/*
* Fires a trace hull on a specified origin or between two origins.
*
* @param vecStart Start position
* @param vecEnd End position
* @param ignoreMonsters Entity ignore type
* @param hullNumber Hull type
* @param ignoreEntity Entity index that trace will ignore, NULLENT if trace should not ignore any entities
* @param ptr Traceresult pointer, use Fakemeta's create_tr2 to instantiate one
* @param traceFlags Additional trace flags, see FTRACE_* constants on cssdk_const.inc
*
* @noreturn
*/
native rg_trace_hull(Float:vecStart[3], Float:vecEnd[3], const ignoreMonsters, const hullNumber, const ignoreEntity, const ptr, const traceFlags = 0);