Add src/server/maphacks.qc, which has some example item replacement macros. These are subject to change and may even be moved into an external file at some point.
This commit is contained in:
parent
3089ebb659
commit
2e93c82b4e
4 changed files with 46 additions and 10 deletions
44
src/server/maphacks.qc
Normal file
44
src/server/maphacks.qc
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* 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)
|
|
@ -86,4 +86,5 @@ gamerules_multiplayer.qc
|
|||
|
||||
../../../src/server/include.src
|
||||
../../../src/shared/include.src
|
||||
maphacks.qc
|
||||
#endlist
|
||||
|
|
|
@ -194,11 +194,6 @@ weapon_t w_crowbar =
|
|||
/* entity definitions for pickups */
|
||||
#ifdef SERVER
|
||||
void
|
||||
weapon_crowbar(void)
|
||||
{
|
||||
Weapons_InitItem(WEAPON_CROWBAR);
|
||||
}
|
||||
void
|
||||
weapon_axe(void)
|
||||
{
|
||||
Weapons_InitItem(WEAPON_CROWBAR);
|
||||
|
|
|
@ -228,9 +228,5 @@ weapon_t w_shotgun =
|
|||
};
|
||||
|
||||
#ifdef SERVER
|
||||
void
|
||||
weapon_shotgun(void)
|
||||
{
|
||||
Weapons_InitItem(WEAPON_SHOTGUN);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue