Throw out maphacks.qc in favor of scripts/maptweaks.txt

This commit is contained in:
Marco Cawthorne 2023-04-22 02:40:53 -07:00
parent f3bdb3d3e7
commit f0d7288871
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
3 changed files with 29 additions and 45 deletions

View File

@ -1,44 +0,0 @@
/*
* Copyright (c) 2023 Marco Cawthorne <marco@icculus.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* Here's a bunch of fun map hacks that enables compatibility with maps
outside of DMC levels */
CLASSEXPORT(weapon_crowbar, weapon_axe)
CLASSEXPORT(weapon_357, weapon_nailgun)
CLASSEXPORT(weapon_python, weapon_nailgun)
CLASSEXPORT(weapon_9mmAR, weapon_supernailgun)
CLASSEXPORT(weapon_mp5, weapon_supernailgun)
CLASSEXPORT(weapon_crossbow, weapon_lightning)
CLASSEXPORT(weapon_egon, weapon_lightning)
CLASSEXPORT(weapon_gauss, weapon_lightning)
CLASSEXPORT(weapon_handgrenade, weapon_grenadelauncher)
CLASSEXPORT(weapon_hornetgun, weapon_grenadelauncher)
CLASSEXPORT(weapon_rpg, weapon_rocketlauncher)
CLASSEXPORT(weapon_satchel, item_rockets)
CLASSEXPORT(weapon_shotgun, weapon_supershotgun)
CLASSEXPORT(weapon_snark, item_rockets)
CLASSEXPORT(weapon_tripmine, item_rockets)
CLASSEXPORT(ammo_357, item_nails)
CLASSEXPORT(ammo_9mmAR, item_nails)
CLASSEXPORT(ammo_9mmbox, item_nails)
CLASSEXPORT(ammo_9mmclip, item_shells)
CLASSEXPORT(ammo_ARgrenades, item_rockets)
CLASSEXPORT(ammo_buckshot, item_shells)
CLASSEXPORT(ammo_crossbow, item_cells)
CLASSEXPORT(ammo_gaussclip, item_cells)
CLASSEXPORT(ammo_rpgclip, item_rockets)

View File

@ -96,6 +96,5 @@ gamerules_multiplayer.qc
../../../src/server/include.src
../../../src/shared/include.src
maphacks.qc
threewave.qc
#endlist

View File

@ -0,0 +1,29 @@
hldm_weapons
{
when-cvar deathmatch equals 4
when-serverinfo maxclients greater-than 1
replace weapon_crowbar weapon_axe
replace weapon_357 weapon_nailgun
replace weapon_python weapon_nailgun
replace weapon_9mmAR weapon_supernailgun
replace weapon_mp5 weapon_supernailgun
replace weapon_crossbow weapon_lightning
replace weapon_egon weapon_lightning
replace weapon_gauss weapon_lightning
replace weapon_handgrenade weapon_grenadelauncher
replace weapon_hornetgun weapon_grenadelauncher
replace weapon_rpg weapon_rocketlauncher
replace weapon_satchel item_rockets
replace weapon_shotgun weapon_supershotgun
replace weapon_snark item_rockets
replace weapon_tripmine item_rockets
replace ammo_357 item_nails
replace ammo_9mmAR item_nails
replace ammo_9mmbox item_nails
replace ammo_9mmclip item_shells
replace ammo_ARgrenades item_rockets
replace ammo_buckshot item_shells
replace ammo_crossbow item_cells
replace ammo_gaussclip item_cells
replace ammo_rpgclip item_rockets
}