From 9e0d783f4c9419d1dbb0229518102391c5e8bf21 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 18 Dec 2001 00:56:29 +0000 Subject: Got rid of bg_itemlist buildables. Refactored buildable spawning --- src/game/bg_misc.c | 294 ----------------------------------------------------- 1 file changed, 294 deletions(-) (limited to 'src/game/bg_misc.c') diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index f497ef82..1e876b3c 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -820,279 +820,6 @@ gitem_t bg_itemlist[] = "sound/items/flight.wav" },*/ -/*QUAKED team_droid_spawn (0 0 1) (-16 -16 -16) (16 16 16) -TA: droid spawn item -*/ - { - "team_droid_spawn", - "sound/items/holdable.wav", - { "models/buildables/bioegg/bioegg.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Droid Spawn", //pickup - 0, - IT_BUILDABLE, - BA_D_SPAWN, - "", //precache - "" //sounds - }, - -/*QUAKED team_droid_barricade (0 0 1) (-16 -16 -16) (16 16 16) -TA: droid defense item -*/ - { - "team_droid_def1", - "sound/items/holdable.wav", - { "models/buildables/barricade/barricade.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Barricade", //pickup - 0, - IT_BUILDABLE, - BA_D_BARRICADE, - "", //precache - "" //sounds - }, - -/*QUAKED team_droid_acid_tube (0 0 1) (-16 -16 -16) (16 16 16) -TA: droid defense item -*/ - { - "team_droid_acid_tube", - "sound/items/holdable.wav", - { "models/buildables/acid_tube/acid_tube.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Acid Tube", //pickup - 0, - IT_BUILDABLE, - BA_D_ACIDTUBE, - "", //precache - "" //sounds - }, - -/*QUAKED team_droid_trapper (0 0 1) (-16 -16 -16) (16 16 16) -TA: droid defense item -*/ - { - "team_droid_trapper", - "sound/items/holdable.wav", - { "models/buildables/trapper/trapper.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Trapper", //pickup - 0, - IT_BUILDABLE, - BA_D_TRAPPER, - "", //precache - "" //sounds - }, - -/*QUAKED team_droid_trapper (0 0 1) (-16 -16 -16) (16 16 16) -TA: droid defense item -*/ - { - "team_droid_booster", - "sound/items/holdable.wav", - { "models/buildables/booster/booster.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Booster", //pickup - 0, - IT_BUILDABLE, - BA_D_BOOSTER, - "", //precache - "" //sounds - }, - -/*QUAKED team_droid_hivemind (0 0 1) (-16 -16 -16) (16 16 16) -TA: droid build limitation item -*/ - { - "team_droid_hivemind", - "sound/items/holdable.wav", - { "models/buildables/hivemind/hivemind.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Droid Hivemind", //pickup - 0, - IT_BUILDABLE, - BA_D_HIVEMIND, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_spawn (0 0 1) (-16 -16 -16) (16 16 16) -TA: human spawn item -*/ - { - "team_human_spawn", - "sound/items/holdable.wav", - { "models/buildables/replicator/replicator.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Spawn", //pickup - 0, - IT_BUILDABLE, - BA_H_SPAWN, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_def1 (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_def1", - "sound/items/holdable.wav", - { "models/buildables/plasmaturret/pturret_base.md3", "models/buildables/plasmaturret/pturret_top.md3", 0, 0 }, - "icons/teleporter", //icon - "Human Defense", //pickup - 0, - IT_BUILDABLE, - BA_H_DEF1, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_def2 (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_def2", - "sound/items/holdable.wav", - { "models/buildables/plasmaturret/pturret_base.md3", "models/weapons2/machinegun/machinegun.md3", 0, 0 }, - "icons/teleporter", //icon - "Human Defense2", //pickup - 0, - IT_BUILDABLE, - BA_H_DEF2, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_def3 (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_tesla", - "sound/items/holdable.wav", - { "models/buildables/tesla/tesla.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Tesla Generator", //pickup - 0, - IT_BUILDABLE, - BA_H_DEF3, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_mcu (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_mcu", - "sound/items/holdable.wav", - { "models/buildables/mcu/mcu.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human MCU", //pickup - 0, - IT_BUILDABLE, - BA_H_MCU, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_dcc (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_dcc", - "sound/items/holdable.wav", - { "models/buildables/dcc/dcc.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human DCC", //pickup - 0, - IT_BUILDABLE, - BA_H_DCC, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_medistat (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_medistat", - "sound/items/holdable.wav", - { "models/buildables/medistat/medistat.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Medistation", //pickup - 0, - IT_BUILDABLE, - BA_H_MEDISTAT, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_bank (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_bank", - "sound/items/holdable.wav", - { "models/buildables/bank/bank.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Bank", //pickup - 0, - IT_BUILDABLE, - BA_H_BANK, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_reactor (0 0 1) (-16 -16 -16) (16 16 16) -TA: human power item -*/ - { - "team_human_reactor", - "sound/items/holdable.wav", - { "models/buildables/reactor/reactor.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Reactor", //pickup - 0, - IT_BUILDABLE, - BA_H_REACTOR, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_repeater (0 0 1) (-16 -16 -16) (16 16 16) -TA: human power item -*/ - { - "team_human_repeater", - "sound/items/holdable.wav", - { "models/buildables/repeater/repeater.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Repeater", //pickup - 0, - IT_BUILDABLE, - BA_H_REPEATER, - "", //precache - "" //sounds - }, - -/*QUAKED team_human_floatmine (0 0 1) (-16 -16 -16) (16 16 16) -TA: human defense item -*/ - { - "team_human_floatmine", - "sound/items/holdable.wav", - { "models/buildables/floatmine/floatmine.md3", 0, 0, 0 }, - "icons/teleporter", //icon - "Human Floatmine", //pickup - 0, - IT_BUILDABLE, - BA_H_FLOATMINE, - "", //precache - "" //sounds - }, - - /*QUAKED upgrade_torch (0 0 1) (-16 -16 -16) (16 16 16) */ { @@ -3451,27 +3178,6 @@ gitem_t *BG_FindItemForWeapon( weapon_t weapon ) { } -/* -=============== -BG_FindItemForBuildable - -TA: new function for finding buildable items -=============== -*/ -gitem_t *BG_FindItemForBuildable( buildable_t buildable ) { - gitem_t *it; - - for ( it = bg_itemlist + 1 ; it->classname ; it++) { - if ( it->giType == IT_BUILDABLE && it->giTag == buildable ) { - return it; - } - } - - Com_Error( ERR_DROP, "Couldn't find item for buildable %i", buildable); - return NULL; -} - - /* =============== BG_FindItemForUpgrade -- cgit