From 019e2c531ae20d44b56a3d964b097d852b813851 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Thu, 11 Jul 2024 19:42:48 -0700 Subject: [PATCH] Precache all weapons, to avoid a network overflow. --- src/server/server.qc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/server/server.qc b/src/server/server.qc index f9d0f89..f32d15c 100644 --- a/src/server/server.qc +++ b/src/server/server.qc @@ -51,6 +51,24 @@ Game_Worldspawn(void) Sound_Precache("Player.FlashLightOff"); Sound_Precache("Player.FlashLightOn"); + EntityDef_Precache("weapon_crowbar"); + EntityDef_Precache("weapon_9mmhandgun"); + EntityDef_Precache("weapon_357"); + EntityDef_Precache("weapon_9mmAR"); + EntityDef_Precache("weapon_shotgun"); + EntityDef_Precache("weapon_crossbow"); + EntityDef_Precache("weapon_rpg"); + EntityDef_Precache("weapon_gauss"); + EntityDef_Precache("weapon_egon"); + EntityDef_Precache("weapon_hornetgun"); + EntityDef_Precache("weapon_handgrenade"); + EntityDef_Precache("weapon_satchel"); + EntityDef_Precache("weapon_tripmine"); + EntityDef_Precache("weapon_snark"); + EntityDef_Precache("weapon_handcannon"); + EntityDef_Precache("weapon_chainsaw"); + EntityDef_Precache("weapon_hammer"); + Player_Precache(); SHData_Parse(mapname); FX_Corpse_Init();