X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fsv_turrets.qh;h=2d5a5f5f9d00526e67b110d8f9849a42a203efb2;hb=c97a3c9e3ad9823d193dfc02461fa19d6de70150;hp=8bba1c4a4a6e39ff3fcd11596b3224ec5aace3a9;hpb=867ce0406b74601b6d74a4ac412ac30063490d88;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/sv_turrets.qh b/qcsrc/common/turrets/sv_turrets.qh index 8bba1c4a4..2d5a5f5f9 100644 --- a/qcsrc/common/turrets/sv_turrets.qh +++ b/qcsrc/common/turrets/sv_turrets.qh @@ -1,6 +1,12 @@ #ifndef SV_TURRETS_H #define SV_TURRETS_H +entity turret_projectile(string _snd, float _size, float _health, float _death, float _proj_type, float _cull, float _cli_anim); +void turret_projectile_explode(); +float turret_validate_target(entity e_turret, entity e_target, float validate_flags); +float turret_firecheck(); +entity turret_select_target(); + // turret fields .float ticrate; // interal ai think rate .vector aim_idle; // where to aim while idle @@ -81,7 +87,7 @@ void turret_do_updates(entity e_turret); void turrets_setframe(float _frame, float client_only); -float turret_initialize(float tur_id); +float turret_initialize(Turret tur); /// Function to use for target evaluation. usualy turret_targetscore_generic .float(entity _turret, entity _target) turret_score_target;