Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
hurt.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool tracebox_hits_trigger_hurt (vector start, vector e_min, vector e_max, vector end)

Variables

const int HURT_SLOW = BIT(4)

Function Documentation

◆ tracebox_hits_trigger_hurt()

bool tracebox_hits_trigger_hurt ( vector start,
vector e_min,
vector e_max,
vector end )

Definition at line 79 of file hurt.qc.

80{
81 entity th;
82
83 for(th = trigger_hurt_first; th; th = th.trigger_hurt_next)
84 if(tracebox_hits_box(start, e_min, e_max, end, th.absmin, th.absmax))
85 return true;
86
87 return false;
88}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float tracebox_hits_box(vector start, vector mi, vector ma, vector end, vector thmi, vector thma)
Definition util.qc:2143
entity trigger_hurt_first
Definition hurt.qc:56

References entity(), tracebox_hits_box(), trigger_hurt_first, and vector.

Referenced by havocbot_checkdanger(), havocbot_movetogoal(), Monster_CheckDanger(), MoveToRandomLocationWithinBounds(), MUTATOR_HOOKFUNCTION(), and navigation_routerating().

Variable Documentation

◆ HURT_SLOW

const int HURT_SLOW = BIT(4)

Definition at line 4 of file hurt.qh.

Referenced by trigger_hurt_touch().