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

Go to the source code of this file.

Functions

 spawnfunc (turret_hk)
bool turret_hk_addtarget (entity this, entity e_target, entity e_sender)

Function Documentation

◆ spawnfunc()

spawnfunc ( turret_hk )

Definition at line 9 of file hk.qc.

9{ if(!turret_initialize(this, TUR_HK)) delete(this); }
bool turret_initialize(entity this, Turret tur)

References turret_initialize().

◆ turret_hk_addtarget()

bool turret_hk_addtarget ( entity this,
entity e_target,
entity e_sender )

Definition at line 33 of file hk.qc.

34{
35 if (e_target)
36 {
37 if (turret_validate_target(this,e_target,this.target_validate_flags) > 0)
38 {
39 this.enemy = e_target;
40 return true;
41 }
42 }
43
44 return false;
45}
entity enemy
Definition sv_ctf.qh:153
float turret_validate_target(entity e_turret, entity e_target, float validate_flags)
Evaluate a entity for target valitity based on validate_flags NOTE: the caller must check takedamage ...
int target_validate_flags
Definition turret.qh:79

References enemy, entity(), target_validate_flags, and turret_validate_target().