#ifdef TURRET_DEBUG
float d = RadiusDamage (this, this.owner, this.owner.shot_dmg, this.owner.shot_dmg, this.owner.shot_radius, this, NULL, this.owner.shot_force, this.totalfrags, DMG_NOWEP, NULL);
- this.owner.tur_dbg_dmg_t_h = this.owner.tur_dbg_dmg_t_h + d;
- this.owner.tur_dbg_dmg_t_f = this.owner.tur_dbg_dmg_t_f + this.owner.shot_dmg;
+ this.owner.tur_debug_dmg_t_h = this.owner.tur_debug_dmg_t_h + d;
+ this.owner.tur_debug_dmg_t_f = this.owner.tur_debug_dmg_t_f + this.owner.shot_dmg;
#else
RadiusDamage (this, this.realowner, this.owner.shot_dmg, this.owner.shot_dmg, this.owner.shot_radius, this, NULL, this.owner.shot_force, this.totalfrags, DMG_NOWEP, NULL);
#endif
}
#ifdef TURRET_DEBUG
-void marker_think(entity this, )
+void marker_think(entity this)
{
if(this.cnt)
if(this.cnt < time)
void mark_info(vector where,float lifetime)
{
- entity err = spawn(info_marker);
+ entity err = new(info_marker);
setmodel(err, MDL_MARKER);
setorigin(err, where);
set_movetype(err, MOVETYPE_NONE);
entity mark_misc(vector where,float lifetime)
{
- entity err = spawn(mark_misc);
+ entity err = new(mark_misc);
setmodel(err, MDL_MARKER);
setorigin(err, where);
set_movetype(err, MOVETYPE_NONE);
void mark_error(vector where,float lifetime);
void mark_info(vector where,float lifetime);
entity mark_misc(vector where,float lifetime);
+
+void paint_target(entity onwho, float f_size, vector v_color, float f_time);
+void paint_target2(entity onwho, float f_size, vector v_color, float f_time);
+void paint_target3(vector where, float f_size, vector v_color, float f_time);
#endif
#endif
#include <server/miscfunctions.qh>
#include "pathlib.qh"
#include "utility.qh"
+#include <common/turrets/util.qh>
#include "../command/common.qh"
void pathlib_deletepath(entity start)