#include "items/_mod.inc"
#include "weapons/_all.inc"
#include "monsters/_mod.inc"
- #include "turrets/all.qc"
+ #include "turrets/_mod.inc"
#include "vehicles/all.qc"
#include "mutators/_mod.inc"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include <common/turrets/sv_turrets.qc>
#endif
#include <common/turrets/util.qc>
+
+#include <common/turrets/turret/_mod.inc>
#include <common/turrets/sv_turrets.qh>
#endif
#include <common/turrets/util.qh>
+
+#include <common/turrets/turret/_mod.qh>
#include "all.qh"
REGISTER_NET_LINKED(ENT_CLIENT_TURRET)
-
-#ifdef SVQC
-#include "sv_turrets.qh"
-#endif
-
-#define IMPLEMENTATION
-#include "turret/_mod.inc"
-#undef IMPLEMENTATION
-
-#ifdef CSQC
-#include "cl_turrets.qc"
-#endif
-
-#ifdef SVQC
-#include "sv_turrets.qc"
-#include "config.qc"
-#include "util.qc"
-#include "checkpoint.qc"
-#include "targettrigger.qc"
-#endif
REGISTER_TURRET(Null, NEW(Turret));
-#include "turret/_mod.inc"
+#include "turret/_mod.qh"
#include "checkpoint.qh"
+
+#ifdef SVQC
+
/**
turret_checkpoint
**/
this.classname = "turret_checkpoint";
spawnfunc_turret_checkpoint(this);
}
+
+#endif
// Turret Config Generator
// ==========================
+#ifdef SVQC
+
void T_Config_Queue_Swap(float root, float child, entity pass)
{
string oldroot = config_queue[root];
// extra information
LOG_INFO(sprintf("Totals: %d turrets, %d settings\n", (Turrets_COUNT - 1), totalsettings));
}
+
+#endif
#include "targettrigger.qh"
+
+#ifdef SVQC
+
spawnfunc(turret_targettrigger);
void turret_targettrigger_touch(entity this, entity toucher);
settouch(this, turret_targettrigger_touch);
}
+
+#endif
#include "ewheel.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
float autocvar_g_turrets_unit_ewheel_speed_fast;
}
#endif // CSQC
-#endif
#include "ewheel_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
void turret_initparams(entity);
}
#endif
-
-#endif
#include "flac.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_flac) { if (!turret_initialize(this, TUR_FLAC)) delete(this); }
}
#endif
-
-#endif
#include "flac_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
void turret_flac_projectile_think_explode(entity this);
}
#endif
-
-#endif
#include "fusionreactor.qh"
-#ifdef IMPLEMENTATION
#ifdef SVQC
bool turret_fusionreactor_firecheck(entity this)
{
}
#endif
-#endif
#include "hellion.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_hellion) { if (!turret_initialize(this, TUR_HELLION)) delete(this); }
}
#endif
-#endif
#include "hellion_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
float autocvar_g_turrets_unit_hellion_shot_speed_gain;
}
#endif
-
-#endif
#include "hk.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
#ifdef TURRET_DEBUG_HK
}
#endif // SVQC
-#endif
#include "hk_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
float autocvar_g_turrets_unit_hk_shot_speed;
}
#endif
-
-#endif
#include "machinegun.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_machinegun) { if (!turret_initialize(this, TUR_MACHINEGUN)) delete(this); }
}
#endif // SVQC
-#endif
#include "machinegun_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
void W_MachineGun_MuzzleFlash(entity actor, .entity weaponentity);
}
#endif
-
-#endif
#include "mlrs.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_mlrs) { if (!turret_initialize(this, TUR_MLRS)) delete(this); }
}
#endif // SVQC
-#endif
#include "mlrs_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
SOUND(MLRSTurretAttack_FIRE, W_Sound("electro_fire"));
METHOD(MLRSTurretAttack, wr_think, void(entity thiswep, entity actor, .entity weaponentity, int fire))
}
#endif
-
-#endif
#include "phaser.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_phaser) { if (!turret_initialize(this, TUR_PHASER)) delete(this); }
}
#endif
-#endif
#include "phaser_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
void beam_think(entity this);
}
#endif
-
-#endif
#include "plasma.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_plasma) { if (!turret_initialize(this, TUR_PLASMA)) delete(this); }
}
#endif
-#endif
#include "plasma_dual.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_plasma_dual) { if (!turret_initialize(this, TUR_PLASMA_DUAL)) delete(this); }
}
#endif
-#endif
#include "plasma_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
SOUND(PlasmaAttack_FIRE, W_Sound("electro_fire"));
METHOD(PlasmaAttack, wr_think, void(entity thiswep, entity actor, .entity weaponentity, int fire)) {
}
#endif
-
-#endif
#include "tesla.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
spawnfunc(turret_tesla) { if (!turret_initialize(this, TUR_TESLA)) delete(this); }
}
#endif
-#endif
#include "tesla_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
entity toast(entity actor, entity from, float range, float damage);
}
#endif
-
-#endif
#include "walker.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
float autocvar_g_turrets_unit_walker_melee_damage;
}
#endif // CSQC
-#endif
#include "walker_weapon.qh"
-#ifdef IMPLEMENTATION
-
#ifdef SVQC
SOUND(WalkerTurretAttack_FIRE, W_Sound("electro_fire"));
}
#endif
-
-#endif
#include "util.qh"
+
+#ifdef SVQC
+
/*
* Update this.tur_shotorg by getting up2date bone info
* NOTICE this func overwrites the global v_forward, v_right and v_up vectors.
SUB_SetFade(e,time,f_time);
}
#endif
+
+#endif
#pragma once
+#ifdef SVQC
+
float turret_tag_fire_update(entity this);
void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax, float bforce, float f_dmg, float f_velfactor, float deathtype);
+
+#endif