#include <client/_all.qh>
#include "_mod.inc"
-#include "commands/_all.inc"
-#include "hud/_all.inc"
-#include "mutators/_all.inc"
-#include "weapons/_all.inc"
+#include "commands/_mod.inc"
+#include "hud/_mod.inc"
+#include "mutators/_mod.inc"
+#include "weapons/_mod.inc"
#include <common/_all.inc>
#include <common/effects/qc/all.qc>
+++ /dev/null
-#include <client/commands/_all.qh>
-#include "_mod.inc"
-
-#include <common/command/_all.inc>
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include <common/command/_all.qh>
// Last updated: December 28th, 2011
// ==============================================
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "cl_cmd.qh"
#include "../autocvars.qh"
#include "../defs.qh"
-#include <client/hud/_all.qh>
+#include <client/hud/_mod.qh>
#include "../main.qh"
#include "../mapvoting.qh"
#include "../miscfunctions.qh"
+++ /dev/null
-#include <client/hud/_all.qh>
-#include "_mod.inc"
-
-#include "panel/_all.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "panel/_all.qh"
#include <client/hud/hud.qc>
#include <client/hud/hud_config.qc>
#include <client/hud/panel.qc>
+
+#include <client/hud/panel/_mod.inc>
#include <client/hud/hud.qh>
#include <client/hud/hud_config.qh>
#include <client/hud/panel.qh>
+
+#include <client/hud/panel/_mod.qh>
#include "../teamradar.qh"
#include <common/t_items.qh>
#include <common/deathtypes/all.qh>
-#include <common/items/all.qc>
+#include <common/items/_mod.qh>
#include <common/mapinfo.qh>
#include <common/vehicles/all.qh>
#include <common/mutators/mutator/waypoints/all.qh>
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
bool HUD_Radar_Clickable();
void HUD_Radar_Mouse();
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "powerups.qh"
-#include <common/items/all.qc>
+#include <common/items/_mod.qh>
// Powerups (#2)
// QuickMenu (#23)
#include <common/ent_cs.qh>
-#include <client/hud/_all.qh>
+#include <client/hud/_mod.qh>
#include <client/mapvoting.qh>
// QUICKMENU_MAXLINES must be <= 10
#include "main.qh"
#include <common/effects/qc/all.qh>
-#include "hud/_all.qh"
+#include "hud/_mod.qh"
#include "mapvoting.qh"
#include "mutators/events.qh"
#include "hud/panel/scoreboard.qh"
#include "wall.qh"
#include "weapons/projectile.qh"
#include <common/deathtypes/all.qh>
-#include <common/items/all.qh>
+#include <common/items/_mod.qh>
#include <common/mapinfo.qh>
#include <common/minigames/cl_minigames.qh>
#include <common/minigames/cl_minigames_hud.qh>
#pragma once
#include <common/constants.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
// --------------------------------------------------------------------------
// MENU Functionality
#include "mapvoting.qh"
-#include "hud/_all.qh"
+#include "hud/_mod.qh"
#include "hud/panel/scoreboard.qh"
#include <common/mapinfo.qh>
#include "miscfunctions.qh"
-#include "hud/_all.qh"
+#include "hud/_mod.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include <common/teams.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "_all.inc"
#endif
-#include <ecs/_lib.inc>
+#include <ecs/_mod.inc>
#if BUILD_MOD
#include "../../mod/client/progs.inc"
#include "shownames.qh"
-#include "hud/_all.qh"
+#include "hud/_mod.qh"
#include <common/ent_cs.qh>
#include <common/constants.qh>
#include "teamradar.qh"
-#include "hud/_all.qh"
+#include "hud/_mod.qh"
#include <common/mutators/mutator/waypoints/all.qh>
#include "view.qh"
#include "announcer.qh"
-#include "hud/_all.qh"
+#include "hud/_mod.qh"
#include "mapvoting.qh"
#include "shownames.qh"
#include "hud/panel/scoreboard.qh"
#include <common/constants.qh>
#include <common/debug.qh>
#include <common/mapinfo.qh>
-#include <common/gamemodes/_all.qh>
+#include <common/gamemodes/_mod.qh>
#include <common/physics/player.qh>
#include <common/stats.qh>
#include <common/triggers/target/music.qh>
#include <common/teams.qh>
#include <common/vehicles/all.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/viewloc.qh>
#include <common/minigames/cl_minigames.qh>
#include <common/minigames/cl_minigames_hud.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "debug.qh"
+#include "command/_mod.inc"
+
#ifndef MENUQC
#include "deathtypes/all.qc"
#include "effects/all.qc"
#include "t_items.qc"
#endif
-#include "items/_all.inc"
- #include "weapons/all.qc"
+#include "items/_mod.inc"
+ #include "weapons/_all.inc"
#include "monsters/all.qc"
#include "turrets/all.qc"
#include "vehicles/all.qc"
-#include "mutators/_all.inc"
- #include "gamemodes/_all.inc"
+#include "mutators/_mod.inc"
+ #include "gamemodes/_mod.inc"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-#include "_all.qh"
+#include "_mod.qh"
#include "reg.qh"
#include "markup.qh"
#endif
#ifdef SVQC
- #include <server/command/_all.qh>
+ #include <server/command/_mod.qh>
#include <common/turrets/config.qh>
#include <common/weapons/config.qh>
#endif
// generated file; do not modify
#include <common/effects/all.qc>
#include <common/effects/effectinfo.qc>
+
+#include <common/effects/qc/_mod.inc>
// generated file; do not modify
#include <common/effects/all.qh>
#include <common/effects/effectinfo.qh>
+
+#include <common/effects/qc/_mod.qh>
#include <common/physics/movetypes/movetypes.qh>
#include <client/mutators/events.qh>
#include <common/vehicles/all.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#endif
#endif
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
-
-#include "gamemode/_all.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "gamemode/_all.qh"
// generated file; do not modify
+
+#include <common/gamemodes/gamemode/_mod.inc>
// generated file; do not modify
+
+#include <common/gamemodes/gamemode/_mod.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
-
-#include "nexball/_mod.inc"
-#include "onslaught/_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "nexball/_mod.qh"
-#include "onslaught/_mod.qh"
// generated file; do not modify
+
+#include <common/gamemodes/gamemode/nexball/_mod.inc>
+#include <common/gamemodes/gamemode/onslaught/_mod.inc>
// generated file; do not modify
+
+#include <common/gamemodes/gamemode/nexball/_mod.qh>
+#include <common/gamemodes/gamemode/onslaught/_mod.qh>
+#pragma once
+
float autocvar_g_onslaught_point_limit;
void ons_Initialize();
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
// generated file; do not modify
#include <common/items/all.qc>
+
+#include <common/items/item/_mod.inc>
// generated file; do not modify
#include <common/items/all.qh>
+
+#include <common/items/item/_mod.qh>
-#ifndef ITEMS_ALL_C
-#define ITEMS_ALL_C
#include "all.qh"
-#include "item/_all.inc"
-
void Dump_Items()
{
FOREACH(Items, true, ITEM_HANDLE(Show, it));
#endif
return output;
}
-
-#endif
#pragma once
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "item.qh"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "ammo.qh"
-#ifdef SVQC
- #include <common/t_items.qh>
-#endif
-
-#ifndef MENUQC
-MODEL(Bullets_ITEM, Item_Model("a_bullets.mdl"));
-#endif
-
-REGISTER_ITEM(Bullets, Ammo) {
-#ifndef MENUQC
- this.m_model = MDL_Bullets_ITEM;
-#endif
- this.m_name = "bullets";
- this.m_icon = "ammo_bullets";
-#ifdef SVQC
- this.m_botvalue = 2000;
- this.m_itemid = IT_NAILS;
-#endif
-}
-
-#ifndef MENUQC
-MODEL(Cells_ITEM, Item_Model("a_cells.md3"));
-#endif
-
-REGISTER_ITEM(Cells, Ammo) {
-#ifndef MENUQC
- this.m_model = MDL_Cells_ITEM;
-#endif
- this.m_name = "cells";
- this.m_icon = "ammo_cells";
-#ifdef SVQC
- this.m_botvalue = 2000;
- this.m_itemid = IT_CELLS;
-#endif
-}
-
-#ifndef MENUQC
-MODEL(Plasma_ITEM, Item_Model("a_cells.md3"));
-#endif
-
-REGISTER_ITEM(Plasma, Ammo) {
-#ifndef MENUQC
- this.m_model = MDL_Plasma_ITEM;
-#endif
- this.m_name = "plasma";
- this.m_icon = "ammo_plasma";
-#ifdef SVQC
- this.m_botvalue = 2000;
- this.m_itemid = IT_PLASMA;
-#endif
-}
-
-#ifndef MENUQC
-MODEL(Rockets_ITEM, Item_Model("a_rockets.md3"));
-#endif
-
-REGISTER_ITEM(Rockets, Ammo) {
-#ifndef MENUQC
- this.m_model = MDL_Rockets_ITEM;
-#endif
- this.m_name = "rockets";
- this.m_icon = "ammo_rockets";
-#ifdef SVQC
- this.m_botvalue = 3000;
- this.m_itemid = IT_ROCKETS;
-#endif
-}
-
-#ifndef MENUQC
-MODEL(Shells_ITEM, Item_Model("a_shells.md3"));
-#endif
-
-REGISTER_ITEM(Shells, Ammo) {
-#ifndef MENUQC
- this.m_model = MDL_Shells_ITEM;
-#endif
- this.m_name = "shells";
- this.m_icon = "ammo_shells";
-#ifdef SVQC
- this.m_botvalue = 500;
- this.m_itemid = IT_SHELLS;
-#endif
-}
ATTRIB(Ammo, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_ammo));
#endif
ENDCLASS(Ammo)
+
+#ifdef SVQC
+ #include <common/t_items.qh>
+#endif
+
+#ifndef MENUQC
+MODEL(Bullets_ITEM, Item_Model("a_bullets.mdl"));
+#endif
+
+REGISTER_ITEM(Bullets, Ammo) {
+#ifndef MENUQC
+ this.m_model = MDL_Bullets_ITEM;
+#endif
+ this.m_name = "bullets";
+ this.m_icon = "ammo_bullets";
+#ifdef SVQC
+ this.m_botvalue = 2000;
+ this.m_itemid = IT_NAILS;
+#endif
+}
+
+#ifndef MENUQC
+MODEL(Cells_ITEM, Item_Model("a_cells.md3"));
+#endif
+
+REGISTER_ITEM(Cells, Ammo) {
+#ifndef MENUQC
+ this.m_model = MDL_Cells_ITEM;
+#endif
+ this.m_name = "cells";
+ this.m_icon = "ammo_cells";
+#ifdef SVQC
+ this.m_botvalue = 2000;
+ this.m_itemid = IT_CELLS;
+#endif
+}
+
+#ifndef MENUQC
+MODEL(Plasma_ITEM, Item_Model("a_cells.md3"));
+#endif
+
+REGISTER_ITEM(Plasma, Ammo) {
+#ifndef MENUQC
+ this.m_model = MDL_Plasma_ITEM;
+#endif
+ this.m_name = "plasma";
+ this.m_icon = "ammo_plasma";
+#ifdef SVQC
+ this.m_botvalue = 2000;
+ this.m_itemid = IT_PLASMA;
+#endif
+}
+
+#ifndef MENUQC
+MODEL(Rockets_ITEM, Item_Model("a_rockets.md3"));
+#endif
+
+REGISTER_ITEM(Rockets, Ammo) {
+#ifndef MENUQC
+ this.m_model = MDL_Rockets_ITEM;
+#endif
+ this.m_name = "rockets";
+ this.m_icon = "ammo_rockets";
+#ifdef SVQC
+ this.m_botvalue = 3000;
+ this.m_itemid = IT_ROCKETS;
+#endif
+}
+
+#ifndef MENUQC
+MODEL(Shells_ITEM, Item_Model("a_shells.md3"));
+#endif
+
+REGISTER_ITEM(Shells, Ammo) {
+#ifndef MENUQC
+ this.m_model = MDL_Shells_ITEM;
+#endif
+ this.m_name = "shells";
+ this.m_icon = "ammo_shells";
+#ifdef SVQC
+ this.m_botvalue = 500;
+ this.m_itemid = IT_SHELLS;
+#endif
+}
#include "armor.qh"
-#ifdef SVQC
- #include <common/t_items.qh>
-#endif
-
-#ifndef MENUQC
-MODEL(ArmorSmall_ITEM, Item_Model("item_armor_small.md3"));
-SOUND(ArmorSmall, "misc/armor1");
-#endif
-
-REGISTER_ITEM(ArmorSmall, Armor) {
-#ifndef MENUQC
- this.m_model = MDL_ArmorSmall_ITEM;
- this.m_sound = SND_ArmorSmall;
-#endif
- this.m_name = "5 Armor";
- this.m_icon = "armor";
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_itemid = IT_ARMOR_SHARD;
- this.m_respawntime = GET(g_pickup_respawntime_short);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
-#endif
-}
-
-#ifndef MENUQC
-MODEL(ArmorMedium_ITEM, Item_Model("item_armor_medium.md3"));
-SOUND(ArmorMedium, "misc/armor10");
-#endif
-
-REGISTER_ITEM(ArmorMedium, Armor) {
-#ifndef MENUQC
- this.m_model = MDL_ArmorMedium_ITEM;
- this.m_sound = SND_ArmorMedium;
-#endif
- this.m_name = "25 Armor";
- this.m_icon = "armor";
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_MID;
- this.m_itemid = IT_ARMOR;
- this.m_respawntime = GET(g_pickup_respawntime_medium);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
-#endif
-}
-
-#ifndef MENUQC
-MODEL(ArmorLarge_ITEM, Item_Model("item_armor_big.md3"));
-SOUND(ArmorLarge, "misc/armor17_5");
-#endif
-
-REGISTER_ITEM(ArmorLarge, Armor) {
-#ifndef MENUQC
- this.m_model = MDL_ArmorLarge_ITEM;
- this.m_sound = SND_ArmorLarge;
-#endif
- this.m_name = "50 Armor";
- this.m_icon = "armor";
- this.m_color = '0 1 0';
- this.m_waypoint = _("Large armor");
-#ifdef SVQC
- this.m_botvalue = 20000; // FIXME: higher than BOT_PICKUP_RATING_HIGH?
- this.m_itemid = IT_ARMOR;
- this.m_respawntime = GET(g_pickup_respawntime_long);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
-#endif
-}
-
-#ifndef MENUQC
-MODEL(ArmorMega_ITEM, Item_Model("item_armor_large.md3"));
-SOUND(ArmorMega, "misc/armor25");
-#endif
-
-REGISTER_ITEM(ArmorMega, Armor) {
-#ifndef MENUQC
- this.m_model = MDL_ArmorMega_ITEM;
- this.m_sound = SND_ArmorMega;
-#endif
- this.m_name = "100 Armor";
- this.m_icon = "item_large_armor";
- this.m_color = '0 1 0';
- this.m_waypoint = _("Mega armor");
- this.m_waypointblink = 2;
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_HIGH;
- this.m_itemid = IT_ARMOR;
- this.m_respawntime = GET(g_pickup_respawntime_long);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
-#endif
-}
ATTRIB(Armor, m_pickupevalfunc, float(entity player, entity item), commodity_pickupevalfunc);
#endif
ENDCLASS(Armor)
+
+#ifdef SVQC
+ #include <common/t_items.qh>
+#endif
+
+#ifndef MENUQC
+MODEL(ArmorSmall_ITEM, Item_Model("item_armor_small.md3"));
+SOUND(ArmorSmall, "misc/armor1");
+#endif
+
+REGISTER_ITEM(ArmorSmall, Armor) {
+#ifndef MENUQC
+ this.m_model = MDL_ArmorSmall_ITEM;
+ this.m_sound = SND_ArmorSmall;
+#endif
+ this.m_name = "5 Armor";
+ this.m_icon = "armor";
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_LOW;
+ this.m_itemid = IT_ARMOR_SHARD;
+ this.m_respawntime = GET(g_pickup_respawntime_short);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
+#endif
+}
+
+#ifndef MENUQC
+MODEL(ArmorMedium_ITEM, Item_Model("item_armor_medium.md3"));
+SOUND(ArmorMedium, "misc/armor10");
+#endif
+
+REGISTER_ITEM(ArmorMedium, Armor) {
+#ifndef MENUQC
+ this.m_model = MDL_ArmorMedium_ITEM;
+ this.m_sound = SND_ArmorMedium;
+#endif
+ this.m_name = "25 Armor";
+ this.m_icon = "armor";
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_MID;
+ this.m_itemid = IT_ARMOR;
+ this.m_respawntime = GET(g_pickup_respawntime_medium);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
+#endif
+}
+
+#ifndef MENUQC
+MODEL(ArmorLarge_ITEM, Item_Model("item_armor_big.md3"));
+SOUND(ArmorLarge, "misc/armor17_5");
+#endif
+
+REGISTER_ITEM(ArmorLarge, Armor) {
+#ifndef MENUQC
+ this.m_model = MDL_ArmorLarge_ITEM;
+ this.m_sound = SND_ArmorLarge;
+#endif
+ this.m_name = "50 Armor";
+ this.m_icon = "armor";
+ this.m_color = '0 1 0';
+ this.m_waypoint = _("Large armor");
+#ifdef SVQC
+ this.m_botvalue = 20000; // FIXME: higher than BOT_PICKUP_RATING_HIGH?
+ this.m_itemid = IT_ARMOR;
+ this.m_respawntime = GET(g_pickup_respawntime_long);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
+#endif
+}
+
+#ifndef MENUQC
+MODEL(ArmorMega_ITEM, Item_Model("item_armor_large.md3"));
+SOUND(ArmorMega, "misc/armor25");
+#endif
+
+REGISTER_ITEM(ArmorMega, Armor) {
+#ifndef MENUQC
+ this.m_model = MDL_ArmorMega_ITEM;
+ this.m_sound = SND_ArmorMega;
+#endif
+ this.m_name = "100 Armor";
+ this.m_icon = "item_large_armor";
+ this.m_color = '0 1 0';
+ this.m_waypoint = _("Mega armor");
+ this.m_waypointblink = 2;
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_HIGH;
+ this.m_itemid = IT_ARMOR;
+ this.m_respawntime = GET(g_pickup_respawntime_long);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
+#endif
+}
#include "health.qh"
-#ifdef SVQC
- #include <common/t_items.qh>
-#endif
-
-#ifndef MENUQC
-MODEL(HealthSmall_ITEM, Item_Model("g_h1.md3"));
-SOUND(HealthSmall, "misc/minihealth");
-#endif
-
-REGISTER_ITEM(HealthSmall, Health) {
-#ifndef MENUQC
- this.m_model = MDL_HealthSmall_ITEM;
- this.m_sound = SND_HealthSmall;
-#endif
- this.m_name = "5 Health";
- this.m_icon = "health";
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_itemid = IT_5HP;
- this.m_respawntime = GET(g_pickup_respawntime_short);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
-#endif
-}
-
-#ifndef MENUQC
-MODEL(HealthMedium_ITEM, Item_Model("g_h25.md3"));
-SOUND(HealthMedium, "misc/mediumhealth");
-#endif
-
-REGISTER_ITEM(HealthMedium, Health) {
-#ifndef MENUQC
- this.m_model = MDL_HealthMedium_ITEM;
- this.m_sound = SND_HealthMedium;
-#endif
- this.m_name = "25 Health";
- this.m_icon = "health";
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_MID;
- this.m_itemid = IT_25HP;
- this.m_respawntime = GET(g_pickup_respawntime_short);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
-#endif
-}
-
-#ifndef MENUQC
-MODEL(HealthLarge_ITEM, Item_Model("g_h50.md3"));
-SOUND(HealthLarge, "misc/mediumhealth");
-#endif
-
-REGISTER_ITEM(HealthLarge, Health) {
-#ifndef MENUQC
- this.m_model = MDL_HealthLarge_ITEM;
- this.m_sound = SND_HealthLarge;
-#endif
- this.m_name = "50 Health";
- this.m_icon = "health";
- this.m_color = '1 0 0';
- this.m_waypoint = _("Large health");
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_MID;
- this.m_itemid = IT_25HP;
- this.m_respawntime = GET(g_pickup_respawntime_medium);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
-#endif
-}
-
-#ifndef MENUQC
-MODEL(HealthMega_ITEM, Item_Model("g_h100.md3"));
-SOUND(HealthMega, "misc/megahealth");
-#endif
-
-REGISTER_ITEM(HealthMega, Health) {
-#ifndef MENUQC
- this.m_model = MDL_HealthMega_ITEM;
- this.m_sound = SND_HealthMega;
-#endif
- this.m_name = "100 Health";
- this.m_icon = "item_mega_health";
- this.m_color = '1 0 0';
- this.m_waypoint = _("Mega health");
- this.m_waypointblink = 2;
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_HIGH;
- this.m_itemid = IT_HEALTH;
- this.m_respawntime = GET(g_pickup_respawntime_long);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
-#endif
-}
ATTRIB(Health, m_pickupevalfunc, float(entity player, entity item), commodity_pickupevalfunc);
#endif
ENDCLASS(Health)
+
+#ifdef SVQC
+ #include <common/t_items.qh>
+#endif
+
+#ifndef MENUQC
+MODEL(HealthSmall_ITEM, Item_Model("g_h1.md3"));
+SOUND(HealthSmall, "misc/minihealth");
+#endif
+
+REGISTER_ITEM(HealthSmall, Health) {
+#ifndef MENUQC
+ this.m_model = MDL_HealthSmall_ITEM;
+ this.m_sound = SND_HealthSmall;
+#endif
+ this.m_name = "5 Health";
+ this.m_icon = "health";
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_LOW;
+ this.m_itemid = IT_5HP;
+ this.m_respawntime = GET(g_pickup_respawntime_short);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
+#endif
+}
+
+#ifndef MENUQC
+MODEL(HealthMedium_ITEM, Item_Model("g_h25.md3"));
+SOUND(HealthMedium, "misc/mediumhealth");
+#endif
+
+REGISTER_ITEM(HealthMedium, Health) {
+#ifndef MENUQC
+ this.m_model = MDL_HealthMedium_ITEM;
+ this.m_sound = SND_HealthMedium;
+#endif
+ this.m_name = "25 Health";
+ this.m_icon = "health";
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_MID;
+ this.m_itemid = IT_25HP;
+ this.m_respawntime = GET(g_pickup_respawntime_short);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
+#endif
+}
+
+#ifndef MENUQC
+MODEL(HealthLarge_ITEM, Item_Model("g_h50.md3"));
+SOUND(HealthLarge, "misc/mediumhealth");
+#endif
+
+REGISTER_ITEM(HealthLarge, Health) {
+#ifndef MENUQC
+ this.m_model = MDL_HealthLarge_ITEM;
+ this.m_sound = SND_HealthLarge;
+#endif
+ this.m_name = "50 Health";
+ this.m_icon = "health";
+ this.m_color = '1 0 0';
+ this.m_waypoint = _("Large health");
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_MID;
+ this.m_itemid = IT_25HP;
+ this.m_respawntime = GET(g_pickup_respawntime_medium);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
+#endif
+}
+
+#ifndef MENUQC
+MODEL(HealthMega_ITEM, Item_Model("g_h100.md3"));
+SOUND(HealthMega, "misc/megahealth");
+#endif
+
+REGISTER_ITEM(HealthMega, Health) {
+#ifndef MENUQC
+ this.m_model = MDL_HealthMega_ITEM;
+ this.m_sound = SND_HealthMega;
+#endif
+ this.m_name = "100 Health";
+ this.m_icon = "item_mega_health";
+ this.m_color = '1 0 0';
+ this.m_waypoint = _("Mega health");
+ this.m_waypointblink = 2;
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_HIGH;
+ this.m_itemid = IT_HEALTH;
+ this.m_respawntime = GET(g_pickup_respawntime_long);
+ this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
+#endif
+}
-#ifdef SVQC
- #include <common/t_items.qh>
-#endif
-
-#include "ammo.qh"
-#include "powerup.qh"
-
-#ifndef SVQC
-.int m_itemid;
-#endif
-
-#ifndef MENUQC
-MODEL(Jetpack_ITEM, Item_Model("g_jetpack.md3"));
-#endif
-
-REGISTER_ITEM(Jetpack, Powerup) {
-#ifndef MENUQC
- this.m_model = MDL_Jetpack_ITEM;
- this.m_itemid = IT_JETPACK;
-#endif
- this.m_name = "Jet pack";
- this.m_icon = "jetpack";
- this.m_color = '0.5 0.5 0.5';
- this.m_waypoint = _("Jet Pack");
- this.m_waypointblink = 2;
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_pickupevalfunc = commodity_pickupevalfunc;
-#endif
-}
-
-#ifndef MENUQC
-MODEL(JetpackFuel_ITEM, Item_Model("g_fuel.md3"));
-#endif
-
-REGISTER_ITEM(JetpackFuel, Ammo) {
-#ifndef MENUQC
- this.m_model = MDL_JetpackFuel_ITEM;
-#endif
- this.m_name = "Fuel";
- this.m_icon = "ammo_fuel";
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_itemid = IT_FUEL;
-#endif
-}
-
-#ifndef MENUQC
-MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3"));
-#endif
-
-REGISTER_ITEM(JetpackRegen, Powerup) {
-#ifndef MENUQC
- this.m_model = MDL_JetpackRegen_ITEM;
-#endif
- this.m_name = "Fuel regenerator";
- this.m_icon = "fuelregen";
- this.m_color = '1 0.5 0';
- this.m_waypoint = _("Fuel regen");
- this.m_waypointblink = 2;
-#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_itemid = IT_FUEL_REGEN;
- this.m_pickupevalfunc = commodity_pickupevalfunc;
-#endif
-}
+#include "jetpack.qh"
#pragma once
+
+#ifdef SVQC
+ #include <common/t_items.qh>
+#endif
+
+#include "ammo.qh"
+#include "powerup.qh"
+
+#ifndef SVQC
+.int m_itemid;
+#endif
+
+#ifndef MENUQC
+MODEL(Jetpack_ITEM, Item_Model("g_jetpack.md3"));
+#endif
+
+REGISTER_ITEM(Jetpack, Powerup) {
+#ifndef MENUQC
+ this.m_model = MDL_Jetpack_ITEM;
+ this.m_itemid = IT_JETPACK;
+#endif
+ this.m_name = "Jet pack";
+ this.m_icon = "jetpack";
+ this.m_color = '0.5 0.5 0.5';
+ this.m_waypoint = _("Jet Pack");
+ this.m_waypointblink = 2;
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_LOW;
+ this.m_pickupevalfunc = commodity_pickupevalfunc;
+#endif
+}
+
+#ifndef MENUQC
+MODEL(JetpackFuel_ITEM, Item_Model("g_fuel.md3"));
+#endif
+
+REGISTER_ITEM(JetpackFuel, Ammo) {
+#ifndef MENUQC
+ this.m_model = MDL_JetpackFuel_ITEM;
+#endif
+ this.m_name = "Fuel";
+ this.m_icon = "ammo_fuel";
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_LOW;
+ this.m_itemid = IT_FUEL;
+#endif
+}
+
+#ifndef MENUQC
+MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3"));
+#endif
+
+REGISTER_ITEM(JetpackRegen, Powerup) {
+#ifndef MENUQC
+ this.m_model = MDL_JetpackRegen_ITEM;
+#endif
+ this.m_name = "Fuel regenerator";
+ this.m_icon = "fuelregen";
+ this.m_color = '1 0.5 0';
+ this.m_waypoint = _("Fuel regen");
+ this.m_waypointblink = 2;
+#ifdef SVQC
+ this.m_botvalue = BOT_PICKUP_RATING_LOW;
+ this.m_itemid = IT_FUEL_REGEN;
+ this.m_pickupevalfunc = commodity_pickupevalfunc;
+#endif
+}
#pragma once
+#ifdef SVQC
+PROPERTY(float, g_pickup_respawntime_weapon)
+PROPERTY(float, g_pickup_respawntime_superweapon)
+PROPERTY(float, g_pickup_respawntime_ammo)
+PROPERTY(float, g_pickup_respawntime_short)
+PROPERTY(float, g_pickup_respawntime_medium)
+PROPERTY(float, g_pickup_respawntime_long)
+PROPERTY(float, g_pickup_respawntime_powerup)
+PROPERTY(float, g_pickup_respawntimejitter_weapon)
+PROPERTY(float, g_pickup_respawntimejitter_superweapon)
+PROPERTY(float, g_pickup_respawntimejitter_ammo)
+PROPERTY(float, g_pickup_respawntimejitter_short)
+PROPERTY(float, g_pickup_respawntimejitter_medium)
+PROPERTY(float, g_pickup_respawntimejitter_long)
+PROPERTY(float, g_pickup_respawntimejitter_powerup)
+#endif
+
+// pickup ratings for bot logic
+const int BOT_PICKUP_RATING_LOW = 2500;
+const int BOT_PICKUP_RATING_MID = 5000;
+const int BOT_PICKUP_RATING_HIGH = 10000;
+
#include <common/items/inventory.qh>
#include <common/items/item.qh>
+#include <common/t_items.qh>
+
CLASS(Pickup, GameItem)
#ifndef MENUQC
ATTRIB(Pickup, m_model, Model);
TC(Pickup, this);
LOG_INFOF("%s: %s\n", etos(this), this.m_name);
}
+ ATTRIB(Pickup, m_itemid, int, 0);
#ifdef SVQC
ATTRIB(Pickup, m_mins, vector, '-16 -16 0');
ATTRIB(Pickup, m_maxs, vector, '16 16 32');
ATTRIB(Pickup, m_botvalue, int, 0);
ATTRIB(Pickup, m_itemflags, int, 0);
- ATTRIB(Pickup, m_itemid, int, 0);
float generic_pickupevalfunc(entity player, entity item);
ATTRIB(Pickup, m_pickupevalfunc, float(entity player, entity item), generic_pickupevalfunc);
ATTRIB(Pickup, m_respawntime, float());
#include "powerup.qh"
-
-#ifndef MENUQC
-MODEL(Strength_ITEM, Item_Model("g_strength.md3"));
-SOUND(Strength, "misc/powerup");
-#endif
-
-REGISTER_ITEM(Strength, Powerup) {
-#ifndef MENUQC
- this.m_model = MDL_Strength_ITEM;
- this.m_sound = SND_Strength;
-#endif
- this.m_name = "Strength Powerup";
- this.m_icon = "strength";
- this.m_color = '0 0 1';
- this.m_waypoint = _("Strength");
- this.m_waypointblink = 2;
- this.m_itemid = IT_STRENGTH;
-}
-
-#ifndef MENUQC
-MODEL(Shield_ITEM, Item_Model("g_invincible.md3"));
-SOUND(Shield, "misc/powerup_shield");
-#endif
-
-REGISTER_ITEM(Shield, Powerup) {
-#ifndef MENUQC
- this.m_model = MDL_Shield_ITEM;
- this.m_sound = SND_Shield;
-#endif
- this.m_name = "Shield";
- this.m_icon = "shield";
- this.m_color = '1 0 1';
- this.m_waypoint = _("Shield");
- this.m_waypointblink = 2;
- this.m_itemid = IT_INVINCIBLE;
-}
ATTRIB(Powerup, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_powerup));
#endif
ENDCLASS(Powerup)
+
+#ifndef MENUQC
+MODEL(Strength_ITEM, Item_Model("g_strength.md3"));
+SOUND(Strength, "misc/powerup");
+#endif
+
+REGISTER_ITEM(Strength, Powerup) {
+#ifndef MENUQC
+ this.m_model = MDL_Strength_ITEM;
+ this.m_sound = SND_Strength;
+#endif
+ this.m_name = "Strength Powerup";
+ this.m_icon = "strength";
+ this.m_color = '0 0 1';
+ this.m_waypoint = _("Strength");
+ this.m_waypointblink = 2;
+ this.m_itemid = IT_STRENGTH;
+}
+
+#ifndef MENUQC
+MODEL(Shield_ITEM, Item_Model("g_invincible.md3"));
+SOUND(Shield, "misc/powerup_shield");
+#endif
+
+REGISTER_ITEM(Shield, Powerup) {
+#ifndef MENUQC
+ this.m_model = MDL_Shield_ITEM;
+ this.m_sound = SND_Shield;
+#endif
+ this.m_name = "Shield";
+ this.m_icon = "shield";
+ this.m_color = '1 0 1';
+ this.m_waypoint = _("Shield");
+ this.m_waypointblink = 2;
+ this.m_itemid = IT_INVINCIBLE;
+}
#if defined(CSQC)
#include "../client/defs.qh"
#include "util.qh"
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#include "mapinfo.qh"
#elif defined(MENUQC)
#elif defined(SVQC)
#ifdef SVQC
#include <common/minigames/sv_minigames.qc>
#endif
+
+#include <common/minigames/minigame/_mod.inc>
#ifdef SVQC
#include <common/minigames/sv_minigames.qh>
#endif
+
+#include <common/minigames/minigame/_mod.qh>
--- /dev/null
+#include "_all.qh"
+#include "_mod.inc"
--- /dev/null
+#pragma once
+#include "_mod.qh"
#include "all.qh"
#define IMPLEMENTATION
-#include "monster/_all.inc"
+#include "monster/_mod.inc"
#undef IMPLEMENTATION
#ifdef SVQC
REGISTER_MONSTER(Null, NEW(Monster));
-#include "monster/_all.inc"
+#include "monster/_mod.inc"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#endif
}
-#include <common/weapons/all.qh>
-#include <common/items/all.qc>
+#include <common/weapons/_all.qh>
+#include <common/items/_mod.qh>
CLASS(MageSpike, PortoLaunch)
/* flags */ ATTRIB(MageSpike, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
#endif
}
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
CLASS(SpiderAttack, PortoLaunch)
/* flags */ ATTRIB(SpiderAttack, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
#endif
}
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
CLASS(WyvernAttack, PortoLaunch)
/* flags */ ATTRIB(WyvernAttack, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
- #include <lib/warpzone/common.qh>
- #include "../constants.qh"
- #include "../teams.qh"
- #include "../util.qh"
- #include "all.qh"
- #include "sv_monsters.qh"
- #include "../physics/movelib.qh"
- #include "../weapons/all.qh"
- #include <server/autocvars.qh>
- #include <server/defs.qh>
- #include "../deathtypes/all.qh"
- #include <server/mutators/_all.qh>
- #include <server/steerlib.qh>
- #include "../turrets/sv_turrets.qh"
- #include "../turrets/util.qh"
- #include "../vehicles/all.qh"
- #include <server/campaign.qh>
- #include <server/command/_all.qh>
- #include "../triggers/triggers.qh"
- #include <lib/csqcmodel/sv_model.qh>
- #include <server/round_handler.qh>
-#endif
+#include "sv_monsters.qh"
+
+#include <server/g_subs.qh>
+#include <lib/warpzone/common.qh>
+#include "../constants.qh"
+#include "../teams.qh"
+#include "../util.qh"
+#include "all.qh"
+#include "../physics/movelib.qh"
+#include "../weapons/_mod.qh"
+#include <server/autocvars.qh>
+#include <server/defs.qh>
+#include "../deathtypes/all.qh"
+#include <server/mutators/_mod.qh>
+#include <server/steerlib.qh>
+#include "../turrets/sv_turrets.qh"
+#include "../turrets/util.qh"
+#include "../vehicles/all.qh"
+#include <server/campaign.qh>
+#include <server/command/_mod.qh>
+#include "../triggers/triggers.qh"
+#include <lib/csqcmodel/sv_model.qh>
+#include <server/round_handler.qh>
+#include <server/weapons/_mod.qh>
void monsters_setstatus(entity this)
{
void Monster_Respawn(entity this) { Monster_Spawn(this, this.monsterid); }
+.vector pos1, pos2;
+
void Monster_Dead_Fade(entity this)
{
if(Monster_Respawn_Check(this))
if(Monster_ValidTarget(this, actor)) { this.enemy = actor; }
}
+.float pass_distance;
vector Monster_Move_Target(entity this, entity targ)
{
// enemy is always preferred target
}
.entity draggedby;
+.entity target2;
void Monster_Move(entity this, float runspeed, float walkspeed, float stpspeed)
{
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
-
-#include "mutator/_all.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "mutator/_all.qh"
// generated file; do not modify
+
+#include <common/mutators/mutator/_mod.inc>
// generated file; do not modify
+
+#include <common/mutators/mutator/_mod.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
-
-#include "waypoints/_mod.inc"
-
-#include "itemstime/_mod.inc"
-#include "multijump/_mod.inc"
-#include "nades/_mod.inc"
-#include "superspec/_mod.inc"
-
-// completely self contained
-
-#include "bloodloss/_mod.inc"
-#include "breakablehook/_mod.inc"
-#include "buffs/_mod.inc"
-#include "bugrigs/_mod.inc"
-#include "campcheck/_mod.inc"
-#include "cloaked/_mod.inc"
-#include "damagetext/_mod.inc"
-#include "dodging/_mod.inc"
-#include "doublejump/_mod.inc"
-#include "globalforces/_mod.inc"
-#include "hook/_mod.inc"
-#include "instagib/_mod.inc"
-#include "invincibleproj/_mod.inc"
-#include "melee_only/_mod.inc"
-#include "midair/_mod.inc"
-#include "new_toys/_mod.inc"
-#include "nix/_mod.inc"
-#include "overkill/_mod.inc"
-#include "physical_items/_mod.inc"
-#include "pinata/_mod.inc"
-#include "random_gravity/_mod.inc"
-#include "rocketflying/_mod.inc"
-#include "rocketminsta/_mod.inc"
-#include "running_guns/_mod.inc"
-#include "sandbox/_mod.inc"
-#include "spawn_near_teammate/_mod.inc"
-#include "touchexplode/_mod.inc"
-#include "vampirehook/_mod.inc"
-#include "vampire/_mod.inc"
-#include "weaponarena_random/_mod.inc"
-
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "waypoints/_mod.qh"
-
-#include "itemstime/_mod.qh"
-#include "multijump/_mod.qh"
-#include "nades/_mod.qh"
-#include "superspec/_mod.qh"
-
-// completely self contained
-
-#include "bloodloss/_mod.qh"
-#include "breakablehook/_mod.qh"
-#include "buffs/_mod.qh"
-#include "bugrigs/_mod.qh"
-#include "campcheck/_mod.qh"
-#include "cloaked/_mod.qh"
-#include "damagetext/_mod.qh"
-#include "dodging/_mod.qh"
-#include "doublejump/_mod.qh"
-#include "globalforces/_mod.qh"
-#include "hook/_mod.qh"
-#include "instagib/_mod.qh"
-#include "invincibleproj/_mod.qh"
-#include "melee_only/_mod.qh"
-#include "midair/_mod.qh"
-#include "new_toys/_mod.qh"
-#include "nix/_mod.qh"
-#include "overkill/_mod.qh"
-#include "physical_items/_mod.qh"
-#include "pinata/_mod.qh"
-#include "random_gravity/_mod.qh"
-#include "rocketflying/_mod.qh"
-#include "rocketminsta/_mod.qh"
-#include "running_guns/_mod.qh"
-#include "sandbox/_mod.qh"
-#include "spawn_near_teammate/_mod.qh"
-#include "touchexplode/_mod.qh"
-#include "vampirehook/_mod.qh"
-#include "vampire/_mod.qh"
-#include "weaponarena_random/_mod.qh"
-
// generated file; do not modify
+
+#include <common/mutators/mutator/bloodloss/_mod.inc>
+#include <common/mutators/mutator/breakablehook/_mod.inc>
+#include <common/mutators/mutator/buffs/_mod.inc>
+#include <common/mutators/mutator/bugrigs/_mod.inc>
+#include <common/mutators/mutator/campcheck/_mod.inc>
+#include <common/mutators/mutator/cloaked/_mod.inc>
+#include <common/mutators/mutator/damagetext/_mod.inc>
+#include <common/mutators/mutator/dodging/_mod.inc>
+#include <common/mutators/mutator/doublejump/_mod.inc>
+#include <common/mutators/mutator/globalforces/_mod.inc>
+#include <common/mutators/mutator/hook/_mod.inc>
+#include <common/mutators/mutator/instagib/_mod.inc>
+#include <common/mutators/mutator/invincibleproj/_mod.inc>
+#include <common/mutators/mutator/itemstime/_mod.inc>
+#include <common/mutators/mutator/melee_only/_mod.inc>
+#include <common/mutators/mutator/midair/_mod.inc>
+#include <common/mutators/mutator/multijump/_mod.inc>
+#include <common/mutators/mutator/nades/_mod.inc>
+#include <common/mutators/mutator/new_toys/_mod.inc>
+#include <common/mutators/mutator/nix/_mod.inc>
+#include <common/mutators/mutator/overkill/_mod.inc>
+#include <common/mutators/mutator/physical_items/_mod.inc>
+#include <common/mutators/mutator/pinata/_mod.inc>
+#include <common/mutators/mutator/random_gravity/_mod.inc>
+#include <common/mutators/mutator/rocketflying/_mod.inc>
+#include <common/mutators/mutator/rocketminsta/_mod.inc>
+#include <common/mutators/mutator/running_guns/_mod.inc>
+#include <common/mutators/mutator/sandbox/_mod.inc>
+#include <common/mutators/mutator/spawn_near_teammate/_mod.inc>
+#include <common/mutators/mutator/superspec/_mod.inc>
+#include <common/mutators/mutator/touchexplode/_mod.inc>
+#include <common/mutators/mutator/vampire/_mod.inc>
+#include <common/mutators/mutator/vampirehook/_mod.inc>
+#include <common/mutators/mutator/waypoints/_mod.inc>
+#include <common/mutators/mutator/weaponarena_random/_mod.inc>
// generated file; do not modify
+
+#include <common/mutators/mutator/bloodloss/_mod.qh>
+#include <common/mutators/mutator/breakablehook/_mod.qh>
+#include <common/mutators/mutator/buffs/_mod.qh>
+#include <common/mutators/mutator/bugrigs/_mod.qh>
+#include <common/mutators/mutator/campcheck/_mod.qh>
+#include <common/mutators/mutator/cloaked/_mod.qh>
+#include <common/mutators/mutator/damagetext/_mod.qh>
+#include <common/mutators/mutator/dodging/_mod.qh>
+#include <common/mutators/mutator/doublejump/_mod.qh>
+#include <common/mutators/mutator/globalforces/_mod.qh>
+#include <common/mutators/mutator/hook/_mod.qh>
+#include <common/mutators/mutator/instagib/_mod.qh>
+#include <common/mutators/mutator/invincibleproj/_mod.qh>
+#include <common/mutators/mutator/itemstime/_mod.qh>
+#include <common/mutators/mutator/melee_only/_mod.qh>
+#include <common/mutators/mutator/midair/_mod.qh>
+#include <common/mutators/mutator/multijump/_mod.qh>
+#include <common/mutators/mutator/nades/_mod.qh>
+#include <common/mutators/mutator/new_toys/_mod.qh>
+#include <common/mutators/mutator/nix/_mod.qh>
+#include <common/mutators/mutator/overkill/_mod.qh>
+#include <common/mutators/mutator/physical_items/_mod.qh>
+#include <common/mutators/mutator/pinata/_mod.qh>
+#include <common/mutators/mutator/random_gravity/_mod.qh>
+#include <common/mutators/mutator/rocketflying/_mod.qh>
+#include <common/mutators/mutator/rocketminsta/_mod.qh>
+#include <common/mutators/mutator/running_guns/_mod.qh>
+#include <common/mutators/mutator/sandbox/_mod.qh>
+#include <common/mutators/mutator/spawn_near_teammate/_mod.qh>
+#include <common/mutators/mutator/superspec/_mod.qh>
+#include <common/mutators/mutator/touchexplode/_mod.qh>
+#include <common/mutators/mutator/vampire/_mod.qh>
+#include <common/mutators/mutator/vampirehook/_mod.qh>
+#include <common/mutators/mutator/waypoints/_mod.qh>
+#include <common/mutators/mutator/weaponarena_random/_mod.qh>
#include <common/teams.qh>
#include <common/util.qh>
+#ifndef MENUQC
REGISTER_WAYPOINT(Buff, _("Buff"), '1 0.5 0', 1);
REGISTER_RADARICON(Buff, 1);
+#endif
REGISTRY(Buffs, BITS(5))
#define Buffs_from(i) _Buffs_from(i, BUFF_Null)
#include "sv_buffs.qh"
#include <common/triggers/target/music.qh>
-#include <common/gamemodes/_all.qh>
+#include <common/gamemodes/_mod.qh>
.float buff_time = _STAT(BUFF_TIME);
void buffs_DelayedInit(entity this);
#pragma once
-#include <common/items/all.qh>
+#include <common/items/_mod.qh>
#include <common/items/item/ammo.qh>
#include <common/items/item/powerup.qh>
#include <server/client.qh>
-#include <common/items/all.qc>
+#include <common/items/_mod.qh>
REGISTER_MUTATOR(mutator_instagib, cvar("g_instagib") && !g_nexball);
#ifdef SVQC
-#include <common/gamemodes/_all.qh>
+#include <common/gamemodes/_mod.qh>
#include <common/monsters/spawn.qh>
#include <common/monsters/sv_monsters.qh>
#include <server/g_subs.qh>
#include "sv_overkill.qh"
+#include "hmg.qh"
+#include "rpc.qh"
+
bool autocvar_g_overkill_powerups_replace;
float autocvar_g_overkill_superguns_respawn_time;
bool autocvar_g_overkill_100h_anyway;
-#ifndef WAYPOINTSPRITES_H
-#define WAYPOINTSPRITES_H
+#pragma once
#include "all.qh"
#endif
#ifdef SVQC
+.entity sprite;
+
float autocvar_sv_waypointsprite_deadlifetime;
float autocvar_sv_waypointsprite_deployed_lifetime;
float autocvar_sv_waypointsprite_limitedrange;
void WaypointSprite_PlayerGone(entity this);
#endif
-
-#endif
#include <server/constants.qh>
#include <server/defs.qh>
#include "all.qh"
- #include <server/mutators/_all.qh>
+ #include <server/mutators/_mod.qh>
#endif
// ================================================
#pragma once
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include <common/constants.qh>
#include <common/teams.qh>
// generated file; do not modify
#include <common/physics/movelib.qc>
#include <common/physics/player.qc>
+
+#include <common/physics/movetypes/_mod.inc>
// generated file; do not modify
#include <common/physics/movelib.qh>
#include <common/physics/player.qh>
+
+#include <common/physics/movetypes/_mod.qh>
#elif defined(SVQC)
#include "constants.qh"
#include "util.qh"
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#include "../server/weapons/accuracy.qh"
#include "../server/defs.qh"
#include "playerstats.qh"
#include "t_items.qh"
-#include "items/all.qc"
+#include "items/_mod.qh"
#if defined(SVQC)
#include "../server/bot/api.qh"
- #include <server/mutators/_all.qh>
+ #include <server/mutators/_mod.qh>
#include "../server/weapons/common.qh"
#include "../server/weapons/selection.qh"
#include <common/monsters/all.qh>
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#include "../lib/warpzone/util_server.qh"
#elif defined(CSQC)
#include "physics/movetypes/movetypes.qh"
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#include "../lib/csqcmodel/cl_model.qh"
#include "../lib/csqcmodel/common.qh"
#endif
#include <common/triggers/subs.qc>
#include <common/triggers/teleporters.qc>
#include <common/triggers/triggers.qc>
+
+#include <common/triggers/func/_mod.inc>
+#include <common/triggers/misc/_mod.inc>
+#include <common/triggers/target/_mod.inc>
+#include <common/triggers/trigger/_mod.inc>
#include <common/triggers/subs.qh>
#include <common/triggers/teleporters.qh>
#include <common/triggers/triggers.qh>
+
+#include <common/triggers/func/_mod.qh>
+#include <common/triggers/misc/_mod.qh>
+#include <common/triggers/target/_mod.qh>
+#include <common/triggers/trigger/_mod.qh>
#elif defined(MENUQC)
#elif defined(SVQC)
#include <lib/warpzone/util_server.qh>
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#include <server/defs.qh>
#include <common/deathtypes/all.qh>
#endif
--- /dev/null
+#include "_all.qh"
+#include "_mod.inc"
--- /dev/null
+#pragma once
+#include "_mod.qh"
#endif
#define IMPLEMENTATION
-#include "turret/_all.inc"
+#include "turret/_mod.inc"
#undef IMPLEMENTATION
#ifdef CSQC
#pragma once
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "config.qh"
#include "turret.qh"
REGISTER_TURRET(Null, NEW(Turret));
-#include "turret/_all.inc"
+#include "turret/_mod.inc"
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
CLASS(Turret, Object)
ATTRIB(Turret, m_id, int, 0);
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
--- /dev/null
+#include "_all.qh"
+#include "_mod.inc"
--- /dev/null
+#pragma once
+#include "_mod.qh"
#endif
#define IMPLEMENTATION
-#include "vehicle/_all.inc"
+#include "vehicle/_mod.inc"
#undef IMPLEMENTATION
#endif
REGISTER_VEHICLE(Null, NEW(Vehicle));
-#include "vehicle/_all.inc"
+#include "vehicle/_mod.inc"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
float autocvar_g_vehicle_bumblebee_cannon_cost = 2;
float autocvar_g_vehicle_bumblebee_cannon_damage = 60;
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
CLASS(RacerAttack, PortoLaunch)
/* flags */ ATTRIB(RacerAttack, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
CLASS(RaptorCannon, PortoLaunch)
/* flags */ ATTRIB(RaptorCannon, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#ifdef SVQC
void spiderbot_rocket_do(entity this);
--- /dev/null
+#include "_all.qh"
+#include "all.qc"
--- /dev/null
+#pragma once
+#include "all.qh"
#include <lib/csqcmodel/cl_model.qh>
#elif defined(MENUQC)
#elif defined(SVQC)
+ #include <common/items/_mod.qh>
#include <lib/warpzone/anglestransform.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/util_server.qh>
#include <server/defs.qh>
#include "../notifications/all.qh"
#include "../deathtypes/all.qh"
- #include <server/mutators/_all.qh>
+ #include <server/mutators/_mod.qh>
#include "../mapinfo.qh"
- #include <server/command/_all.qh>
+ #include <server/command/_mod.qh>
#include <lib/csqcmodel/sv_model.qh>
#include <server/portals.qh>
#include <server/g_hook.qh>
#pragma once
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include <common/stats.qh>
#include "config.qh"
+#include "calculations.qh"
+
// =============================
// Explosion Force Calculation
// =============================
vector damage_explosion_calcpush(vector explosion_f, vector target_v, float speedfactor);
vector W_CalculateSpread(vector forward, float spread, float spreadfactor, float spreadstyle);
int W_GetGunAlignment(entity player);
+float explosion_calcpush_getmultiplier(vector explosion_v, vector target_v);
}
ENDCLASS(Weapon)
-#include <common/items/all.qh>
+#include <common/items/_mod.qh>
CLASS(WeaponPickup, Pickup)
ATTRIB(WeaponPickup, m_weapon, Weapon);
ATTRIB(WeaponPickup, m_name, string);
const int MAX_SHOT_DISTANCE = 32768;
-// weapon pickup ratings for bot logic
-const int BOT_PICKUP_RATING_LOW = 2500;
-const int BOT_PICKUP_RATING_MID = 5000;
-const int BOT_PICKUP_RATING_HIGH = 10000;
-
// weapon flags
const int WEP_TYPE_OTHER = 0x00; // not for damaging people
const int WEP_TYPE_SPLASH = 0x01; // splash damage
+++ /dev/null
-#include "_lib.qh"
-
-#include "_mod.inc"
-#include "components/_mod.inc"
-#include "events/_mod.inc"
-#include "systems/_mod.inc"
+++ /dev/null
-#pragma once
-
-/** Components always interpolate from the previous state */
-#define COMPONENT(com) \
- void com_##com##_interpolate(entity it, float a); \
- .bool com_##com
-
-#define FOREACH_COMPONENT(com, body) FOREACH_ENTITY_FLOAT(com_##com, true, body)
-
-
-#define EVENT(T, args) .bool evt_##T##_listener; .void args evt_##T
-
-#define emit(T, ...) \
- MACRO_BEGIN \
- FOREACH_ENTITY_FLOAT_ORDERED(evt_##T##_listener, true, it.evt_##T(__VA_ARGS__)); \
- MACRO_END
-
-#define subscribe(listener, T, fn) \
- MACRO_BEGIN \
- listener.evt_##T = (fn); \
- listener.evt_##T##_listener = true; \
- MACRO_END
-
-
-/**
- * framelimit 0 is no limit, interpolation does not apply
- * framerate below minfps will result in less than 100% speed
- */
-#define SYSTEM(sys, frameLimit, minfps) \
- void sys_##sys##_update(entity this, float dt); \
- float autocvar_xon_sys_##sys##_dt = ((frameLimit) ? (1 / (frameLimit)) : 0); \
- float autocvar_xon_sys_##sys##_minfps = (1 / (1 / (minfps)))
-
-#define SYSTEM_UPDATE(sys) \
- MACRO_BEGIN \
- static float t = 0; \
- float dt = autocvar_xon_sys_##sys##_dt; \
- float minfps = autocvar_xon_sys_##sys##_minfps; \
- static float accumulator = 0; \
- float a = 0; \
- if (dt) { \
- accumulator += min(frametime, 1 / (minfps)); \
- } else { \
- accumulator += frametime; \
- dt = accumulator; \
- a = 1; \
- } \
- while (accumulator >= dt) \
- { \
- time = t; \
- FOREACH_COMPONENT(sys, sys_##sys##_update(it, dt)); \
- t += dt; \
- accumulator -= dt; \
- } \
- if (!a) a = accumulator / dt; \
- FOREACH_COMPONENT(sys, com_##sys##_interpolate(it, a)); \
- MACRO_END
// generated file; do not modify
#include <ecs/main.qc>
+
+#include <ecs/components/_mod.inc>
+#include <ecs/events/_mod.inc>
+#include <ecs/systems/_mod.inc>
// generated file; do not modify
#include <ecs/main.qh>
+
+#include <ecs/components/_mod.qh>
+#include <ecs/events/_mod.qh>
+#include <ecs/systems/_mod.qh>
--- /dev/null
+#pragma once
+
+/** Components always interpolate from the previous state */
+#define COMPONENT(com) \
+ void com_##com##_interpolate(entity it, float a); \
+ .bool com_##com
+
+#define FOREACH_COMPONENT(com, body) FOREACH_ENTITY_FLOAT(com_##com, true, body)
+
+
+#define EVENT(T, args) .bool evt_##T##_listener; .void args evt_##T
+
+#define emit(T, ...) \
+ MACRO_BEGIN \
+ FOREACH_ENTITY_FLOAT_ORDERED(evt_##T##_listener, true, it.evt_##T(__VA_ARGS__)); \
+ MACRO_END
+
+#define subscribe(listener, T, fn) \
+ MACRO_BEGIN \
+ listener.evt_##T = (fn); \
+ listener.evt_##T##_listener = true; \
+ MACRO_END
+
+
+/**
+ * framelimit 0 is no limit, interpolation does not apply
+ * framerate below minfps will result in less than 100% speed
+ */
+#define SYSTEM(sys, frameLimit, minfps) \
+ void sys_##sys##_update(entity this, float dt); \
+ float autocvar_xon_sys_##sys##_dt = ((frameLimit) ? (1 / (frameLimit)) : 0); \
+ float autocvar_xon_sys_##sys##_minfps = (1 / (1 / (minfps)))
+
+#define SYSTEM_UPDATE(sys) \
+ MACRO_BEGIN \
+ static float t = 0; \
+ float dt = autocvar_xon_sys_##sys##_dt; \
+ float minfps = autocvar_xon_sys_##sys##_minfps; \
+ static float accumulator = 0; \
+ float a = 0; \
+ if (dt) { \
+ accumulator += min(frametime, 1 / (minfps)); \
+ } else { \
+ accumulator += frametime; \
+ dt = accumulator; \
+ a = 1; \
+ } \
+ while (accumulator >= dt) \
+ { \
+ time = t; \
+ FOREACH_COMPONENT(sys, sys_##sys##_update(it, dt)); \
+ t += dt; \
+ accumulator -= dt; \
+ } \
+ if (!a) a = accumulator / dt; \
+ FOREACH_COMPONENT(sys, com_##sys##_interpolate(it, a)); \
+ MACRO_END
#pragma once
+#include "lib.qh"
+
void systems_update();
#include "vector.qh"
#include "yenc.qh"
-#include "matrix/_all.inc"
+#include "matrix/_mod.inc"
#ifndef SVQC
#define objerror_safe(e)
#undef ENGINE_EVENT
#ifndef MENUQC
- #include <ecs/_lib.qh>
- #include <ecs/components/_mod.qh>
+ #include <ecs/_mod.qh>
#endif
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include <common/t_items.qh>
#elif defined(MENUQC)
#elif defined(SVQC)
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#endif
void WarpZone_Accumulator_Clear(entity acc)
#include <common/constants.qh>
#include <common/triggers/subs.qh>
#include <common/util.qh>
- #include <server/command/_all.qh>
+ #include <server/command/_mod.qh>
#include <server/constants.qh>
#include <server/defs.qh>
#endif
#include <menu/_all.qh>
#include "_mod.inc"
-#include "anim/_all.inc"
-#include "command/_all.inc"
-#include "item/_all.inc"
-#include "mutators/_all.inc"
-#include "xonotic/_all.inc"
+#include "anim/_mod.inc"
+#include "command/_mod.inc"
+#include "item/_mod.inc"
+#include "mutators/_mod.inc"
+#include "xonotic/_mod.inc"
#include <common/_all.inc>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
-
-#include <common/command/_all.inc>
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include <common/command/_all.qh>
#include "../mutators/events.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
.entity firstChild, nextSibling;
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "xonotic/util.qh"
-#include "../common/items/all.qh"
-#include <common/weapons/all.qh>
+#include "../common/items/_mod.qh"
+#include <common/weapons/_all.qh>
#include "../common/mapinfo.qh"
#include "../common/mutators/base.qh"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "dialog_multiplayer_create_mutators.qh"
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include "weaponarenacheckbox.qh"
#include "checkbox.qh"
#include "keybinder.qh"
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
.int flags;
#include "button.qh"
#include <common/constants.qh>
#include <common/mapinfo.qh>
#include <common/util.qh>
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
float GL_CheckExtension(string ext)
{
#include "weaponslist.qh"
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
.bool disabled;
#include <server/_all.qh>
#include "_mod.inc"
-#include "bot/_all.inc"
-#include "command/_all.inc"
-#include "mutators/_all.inc"
-#include "pathlib/_all.inc"
-#include "weapons/_all.inc"
+#include "bot/_mod.inc"
+#include "command/_mod.inc"
+#include "mutators/_mod.inc"
+#include "pathlib/_mod.inc"
+#include "weapons/_mod.inc"
#include <common/_all.inc>
#include <common/effects/qc/all.qc>
+++ /dev/null
-#include <server/bot/_all.qh>
-#include "_mod.inc"
-
-#include "default/_all.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "default/_all.qh"
// generated file; do not modify
#include <server/bot/api.qc>
+
+#include <server/bot/default/_mod.inc>
+#include <server/bot/null/_mod.inc>
// generated file; do not modify
#include <server/bot/api.qh>
+
+#include <server/bot/default/_mod.qh>
+#include <server/bot/null/_mod.qh>
#pragma once
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
const int WAYPOINTFLAG_GENERATED = BIT(23);
const int WAYPOINTFLAG_ITEM = BIT(22);
+++ /dev/null
-#include <server/bot/default/_all.qh>
-#include "_mod.inc"
-
-#include "havocbot/_all.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "havocbot/_all.qh"
#include <server/bot/default/navigation.qc>
#include <server/bot/default/scripting.qc>
#include <server/bot/default/waypoints.qc>
+
+#include <server/bot/default/havocbot/_mod.inc>
#include <server/bot/default/navigation.qh>
#include <server/bot/default/scripting.qh>
#include <server/bot/default/waypoints.qh>
+
+#include <server/bot/default/havocbot/_mod.qh>
#include "../../weapons/weaponsystem.qh"
-#include "../../mutators/_all.qh"
+#include "../../mutators/_mod.qh"
// traces multiple trajectories to find one that will impact the target
// 'end' vector is the place it aims for,
#include "../../race.qh"
#include <common/t_items.qh>
-#include "../../mutators/_all.qh"
+#include "../../mutators/_mod.qh"
#include "../../weapons/accuracy.qh"
#include <common/teams.qh>
#include <common/util.qh>
-#include <common/weapons/all.qh>
+#include <server/scores_rules.qh>
+
+#include <common/weapons/_all.qh>
#include <lib/csqcmodel/sv_model.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include <common/constants.qh>
#include <common/physics/player.qh>
#include <common/state.qh>
-#include <common/items/all.qh>
+#include <common/items/_mod.qh>
#include <common/triggers/trigger/jumppads.qh>
#include <common/t_items.qh>
-#include <common/items/all.qh>
+#include <common/items/_mod.qh>
#include <common/constants.qh>
#include <common/triggers/trigger/jumppads.qh>
#include "bot_null.qh"
+#if 0
bool bot_aim(entity this, float shotspeed, float shotspeedupward, float maxshottime, float applygravity) { return false; }
void bot_clientconnect(entity this) { }
void bot_clientdisconnect(entity this) { }
void waypoint_spawnforteleporter(entity e, vector destination, float timetaken) { }
void waypoint_spawnforteleporter_v(entity e, vector org, vector destination, float timetaken) { }
entity waypoint_spawn(vector m1, vector m2, float f) { return NULL; }
+#endif
#include "race.qh"
#include "../common/triggers/teleporters.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "weapons/tracing.qh"
#include "../common/monsters/all.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../common/triggers/subs.qh"
#include "antilag.qh"
#include "campaign.qh"
#include "command/common.qh"
+#include "scores_rules.qh"
#include "bot/api.qh"
#include "../common/net_notice.qh"
#include "../common/physics/player.qh"
-#include "../common/items/all.qc"
+#include "../common/items/_mod.qh"
#include "../common/mutators/mutator/waypoints/all.qh"
}
}
+.float caplayer;
+
void LeaveSpectatorMode(entity this)
{
if(this.caplayer)
+++ /dev/null
-#include <server/command/_all.qh>
-#include "_mod.inc"
-
-#include <common/command/_all.inc>
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include <common/command/_all.qh>
#include "banning.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "banning.qh"
#include "common.qh"
#include "cmd.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "common.qh"
#include "vote.qh"
#include "../scores.qh"
#include "../teamplay.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#ifdef SVQC
#include <common/vehicles/all.qh>
#include "common.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "common.qh"
#include "../scores.qh"
#pragma once
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
REGISTRY(COMMON_COMMANDS, BITS(7))
#define COMMON_COMMANDS_from(i) _COMMON_COMMANDS_from(i, NULL)
REGISTER_REGISTRY(COMMON_COMMANDS)
#include "vote.qh"
#include <common/monsters/spawn.qh>
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
// ============================================================
// Shared declarations for server commands, written by Samual
#include "getreplies.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "getreplies.qh"
#include "../race.qh"
#include "radarmap.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "radarmap.qh"
#include "../g_world.qh"
#include "sv_cmd.qh"
-#include "_all.qh"
+#include "_mod.qh"
#include "banning.qh"
#include "cmd.qh"
#include "../bot/api.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#include <common/constants.qh>
#include <common/mapinfo.qh>
#include "vote.qh"
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include "vote.qh"
#include "common.qh"
#include "../round_handler.qh"
#include "../scores.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#include <common/constants.qh>
#include <common/mapinfo.qh>
#pragma once
float warmup_limit;
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/stats.qh>
#define INDEPENDENT_ATTACK_FINISHED 1
float g_warmup_allguns;
float g_warmup_allow_timeout;
float warmup_stage;
-PROPERTY(float, g_pickup_respawntime_weapon)
-PROPERTY(float, g_pickup_respawntime_superweapon)
-PROPERTY(float, g_pickup_respawntime_ammo)
-PROPERTY(float, g_pickup_respawntime_short)
-PROPERTY(float, g_pickup_respawntime_medium)
-PROPERTY(float, g_pickup_respawntime_long)
-PROPERTY(float, g_pickup_respawntime_powerup)
-PROPERTY(float, g_pickup_respawntimejitter_weapon)
-PROPERTY(float, g_pickup_respawntimejitter_superweapon)
-PROPERTY(float, g_pickup_respawntimejitter_ammo)
-PROPERTY(float, g_pickup_respawntimejitter_short)
-PROPERTY(float, g_pickup_respawntimejitter_medium)
-PROPERTY(float, g_pickup_respawntimejitter_long)
-PROPERTY(float, g_pickup_respawntimejitter_powerup)
float g_jetpack;
float sv_clones;
#include "bot/api.qh"
#include "g_hook.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "scores.qh"
#include "spawnpoints.qh"
#include "../common/state.qh"
#include "../common/physics/player.qh"
#include "../common/t_items.qh"
#include "../common/vehicles/all.qh"
-#include "../common/items/all.qc"
+#include "../common/items/_mod.qh"
#include "../common/mutators/mutator/waypoints/waypointsprites.qh"
#include "weapons/accuracy.qh"
#include "weapons/csqcprojectile.qh"
#include "../common/playerstats.qh"
#include "../common/teams.qh"
#include "../common/util.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../lib/csqcmodel/sv_model.qh"
#include "../lib/warpzone/common.qh"
UpdateFrags(attacker, f);
}
+.entity kh_next;
+
string AppendItemcodes(string s, entity player)
{
int w = PS(player).m_weapon.m_id;
#include <common/constants.qh>
#include <common/teams.qh>
#include <common/util.qh>
- #include <common/weapons/all.qh>
+ #include <common/weapons/_all.qh>
#include "weapons/accuracy.qh"
#include "weapons/csqcprojectile.qh"
#include "weapons/selection.qh"
#include "defs.qh"
#include <common/notifications/all.qh>
#include <common/deathtypes/all.qh>
- #include "mutators/_all.qh"
+ #include "mutators/_mod.qh"
#include <common/turrets/sv_turrets.qh>
#include <common/vehicles/all.qh>
#include <lib/csqcmodel/sv_model.qh>
#include "../common/vehicles/all.qh"
#include "../common/constants.qh"
#include "../common/util.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../lib/warpzone/common.qh"
#include "../lib/warpzone/server.qh"
#include "g_hook.qh"
#include "ipban.qh"
#include "mapvoting.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "race.qh"
#include "scores.qh"
#include "teamplay.qh"
#include "../common/triggers/trigger/secret.qh"
#include "../common/triggers/target/music.qh"
#include "../common/util.qh"
-#include "../common/items/all.qh"
-#include "../common/weapons/all.qh"
+#include "../common/items/_mod.qh"
+#include <common/weapons/_all.qh>
#include "../common/state.qh"
const float LATENCY_THINKRATE = 10;
#include "../common/minigames/sv_minigames.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../common/vehicles/sv_vehicles.qh"
#include "../common/mutators/mutator/waypoints/waypointsprites.qh"
#include "constants.qh"
#include "g_hook.qh"
#include "ipban.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "../common/t_items.qh"
#include "weapons/accuracy.qh"
#include "weapons/csqcprojectile.qh"
#include "weapons/selection.qh"
-#include "../common/command/_all.qh"
+#include "../common/command/_mod.qh"
#include "../common/constants.qh"
#include "../common/deathtypes/all.qh"
#include "../common/mapinfo.qh"
#include "../common/triggers/subs.qh"
#include "../common/util.qh"
#include "../common/turrets/sv_turrets.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../common/vehicles/sv_vehicles.qh"
#include "../common/vehicles/vehicle.qh"
-#include "../common/items/all.qc"
+#include "../common/items/_mod.qh"
#include "../common/state.qh"
#include "../common/effects/qc/globalsound.qh"
#include "../lib/csqcmodel/sv_model.qh"
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
-
-#include "mutator/_all.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
-
-#include "mutator/_all.qh"
// generated file; do not modify
#include <server/mutators/loader.qc>
+
+#include <server/mutators/mutator/_mod.inc>
// generated file; do not modify
#include <server/mutators/loader.qh>
+
+#include <server/mutators/mutator/_mod.qh>
#include <common/stats.qh>
#include <common/teams.qh>
#include <common/util.qh>
-#include <common/command/_all.qh>
+#include <common/command/_mod.qh>
#include <common/net_notice.qh>
#include <common/animdecide.qh>
#include <common/monsters/all.qh>
#include <common/monsters/sv_monsters.qh>
#include <common/monsters/spawn.qh>
#include <common/weapons/config.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <server/weapons/accuracy.qh>
#include <server/weapons/common.qh>
#include <server/weapons/csqcprojectile.qh>
#include <server/bot/api.qh>
-#include <server/command/_all.qh>
+#include <server/command/_mod.qh>
#include <common/monsters/all.qh>
#include <server/bot/api.qh>
-#include <server/command/_all.qh>
+#include <server/command/_mod.qh>
#include <server/weapons/common.qh>
#include <server/weapons/tracing.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include <common/mutators/mutator/instagib/items.qc>
#include <server/campaign.qh>
-#include <server/command/_all.qh>
+#include <server/command/_mod.qh>
int autocvar_g_lms_extra_lives;
bool autocvar_g_lms_join_anytime;
+++ /dev/null
-#include "pathlib.qh"
-
-#include "costs.qc"
-#include "expandnode.qc"
-#include "main.qc"
-#include "movenode.qc"
-#include "path_waypoint.qc"
-#include "utility.qc"
-#if DEBUGPATHING
- #include "debug.qc"
-#endif
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "costs.qh"
-#include "pathlib.qh"
float pathlib_g_static(entity parent,vector to, float static_cost)
{
#pragma once
+#include "pathlib.qh"
#include "debug.qh"
-#include "pathlib.qh"
+
+#if DEBUGPATHING
MODEL(SQUARE, "models/pathlib/square.md3");
MODEL(SQUARE_GOOD, "models/pathlib/goodsquare.md3");
//e.angles_x += 90;
}
+
+#endif
#pragma once
+#include "pathlib.qh"
#include "portals.qh"
#include "g_hook.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "../common/constants.qh"
#include "../common/deathtypes/all.qh"
#include "../common/notifications/all.qh"
#include "../common/triggers/teleporters.qh"
#include "../common/triggers/subs.qh"
#include "../common/util.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../lib/csqcmodel/sv_model.qh"
#include "../lib/warpzone/anglestransform.qh"
#include "../lib/warpzone/util_server.qh"
#include "_all.inc"
#endif
-#include <ecs/_lib.inc>
+#include <ecs/_mod.inc>
#if BUILD_MOD
#include "../../mod/server/progs.inc"
#include "scores.qh"
#include "command/common.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "../common/playerstats.qh"
#include "../common/teams.qh"
#include "spawnpoints.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "g_world.qh"
#include "race.qh"
#include "../common/constants.qh"
#include "command/common.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "weapons/csqcprojectile.qh"
#include "../common/constants.qh"
#include "../common/util.qh"
#include "../common/vehicles/all.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
#include "../lib/csqcmodel/sv_model.qh"
#include "t_quake.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
spawnfunc(weapon_electro);
spawnfunc(weapon_hagar);
#include "t_quake3.qh"
-#include "../common/weapons/all.qh"
+#include <common/weapons/_all.qh>
spawnfunc(weapon_crylink);
spawnfunc(weapon_electro);
#include "command/vote.qh"
-#include "mutators/_all.qh"
+#include "mutators/_mod.qh"
#include "../common/deathtypes/all.qh"
-#include "../common/gamemodes/_all.qh"
+#include "../common/gamemodes/_mod.qh"
#include "../common/teams.qh"
void TeamchangeFrags(entity e)
#include "autocvars.qh"
#include "client.qh"
-#include "command/_all.qh"
+#include "command/_mod.qh"
#include "weapons/common.qh"
#include "weapons/selection.qh"
#include <common/items/item.qh>
#include <common/physics/player.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/vehicles/all.qh>
+++ /dev/null
-#include "_all.qh"
-#include "_mod.inc"
+++ /dev/null
-#pragma once
-#include "_mod.qh"
#include "accuracy.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#include <common/constants.qh>
#include <common/teams.qh>
#include <common/util.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
int accuracy_byte(float n, float d)
{
#include <common/deathtypes/all.qh>
#include <common/notifications/all.qh>
#include <common/util.qh>
-#include <common/weapons/all.qh>
-#include <common/items/all.qc>
+#include <common/weapons/_all.qh>
+#include <common/items/_mod.qh>
void W_GiveWeapon(entity e, int wep)
{
#include "../command/common.qh"
#include <common/constants.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
.float csqcprojectile_type;
#include "../antilag.qh"
#include "../g_subs.qh"
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/state.qh>
vector W_HitPlotUnnormalizedUntransform(vector screenforward, vector screenright, vector screenup, vector v)
#include <common/constants.qh>
#include <common/util.qh>
#include <common/items/item.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/state.qh>
#include <common/mutators/mutator/waypoints/waypointsprites.qh>
#include "spawning.qh"
#include "weaponsystem.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#include <common/t_items.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
string W_Apply_Weaponreplace(string in)
{
#include "throwing.qh"
#include "weaponsystem.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#include <common/t_items.qh>
#include "../g_damage.qh"
#include <common/items/item.qh>
#include <common/notifications/all.qh>
#include <common/triggers/subs.qh>
#include <common/util.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/state.qh>
void thrown_wep_think(entity this)
#include <common/constants.qh>
#include <common/util.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/state.qh>
#include <lib/warpzone/common.qh>
#include "../g_world.qh"
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
void WeaponStats_Init()
{
#include "selection.qh"
#include "../command/common.qh"
-#include "../mutators/_all.qh"
+#include "../mutators/_mod.qh"
#include "../round_handler.qh"
#include <common/t_items.qh>
#include <common/animdecide.qh>
#include <common/monsters/all.qh>
#include <common/notifications/all.qh>
#include <common/util.qh>
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
#include <common/state.qh>
#include <lib/csqcmodel/sv_model.qh>
if [[ -f "ui_${f%.qc}.qh" ]]; then echo -e "#ifdef MENUQC\n #include <${CTX}ui_${f%.qc}.qh>\n#endif" >> ${MOD}.qh; fi
fi
done
- # echo >> ${MOD}
+ declare -l rec=1
+ if [[ -f "_all.inc" ]]; then rec=0; fi
for f in *; do if [ -d "$f" ]; then
(cd -- "$f" && genmod)
- # echo "#include \"$f/MOD\"" >> ${MOD}
+ if [[ $rec == 1 ]]; then
+ rec=2
+ echo >> ${MOD}.inc
+ echo >> ${MOD}.qh
+ fi
+ if [[ $rec != 0 ]]; then
+ declare -l mod=_mod
+ if [[ -f "$f/_all.inc" ]]; then mod=_all; fi
+ echo "#include <${CTX}$f/${mod}.inc>" >> ${MOD}.inc
+ echo "#include <${CTX}$f/${mod}.qh>" >> ${MOD}.qh
+ fi
fi; done
}
check client
check server
check menu
-
-# TODO: check that "_mod.(qc|inc)" is not included except by "_all.(qc|inc)"