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.

10{
11 if (!turret_initialize(this, TUR_HK))
12 delete(this);
13}
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 36 of file hk.qc.

37{
38 if (e_target && turret_validate_target(this, e_target, this.target_validate_flags) > 0)
39 {
40 this.enemy = e_target;
41 return true;
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:80

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