From 6b072ac5e619947c5800dc1549156a7be98cb6ac Mon Sep 17 00:00:00 2001 From: Flugente Date: Sat, 27 Apr 2013 00:59:18 +0000 Subject: [PATCH] feature improvement: if MILITIA_USE_SECTOR_EQUIPMENT_CLASS_SPECIFIC_TABOOS is TRUE, one can taboo equipment for specific militia classes git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1656 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/Ja2_Options.INI | 5 +++ gamedir/Data-UB/Ja2_Options.ini | 60 +++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/gamedir/Data-1.13/Ja2_Options.INI b/gamedir/Data-1.13/Ja2_Options.INI index cc9bb63ad..e444ebbe0 100644 --- a/gamedir/Data-1.13/Ja2_Options.INI +++ b/gamedir/Data-1.13/Ja2_Options.INI @@ -3110,6 +3110,11 @@ MILITIA_USE_SECTOR_EQUIPMENT_AMMO_MIN = 10 MILITIA_USE_SECTOR_EQUIPMENT_AMMO_MAX = 200 MILITIA_USE_SECTOR_EQUIPMENT_AMMO_OPTIMAL_MAG_COUNT = 2 +; if set to TRUE, once can prohibit militia of certain classes from using an item while toggling with TAB in the sector +; inventory. Turqoise gear cannot be chosen by green milita, purple gear cannot be chosen by green or light blue militia, and +; orange gear cannot be chosen by any militia. +MILITIA_USE_SECTOR_EQUIPMENT_CLASS_SPECIFIC_TABOOS = FALSE + ;****************************************************************************************************************************** ;****************************************************************************************************************************** diff --git a/gamedir/Data-UB/Ja2_Options.ini b/gamedir/Data-UB/Ja2_Options.ini index 923d8132d..98540dadb 100644 --- a/gamedir/Data-UB/Ja2_Options.ini +++ b/gamedir/Data-UB/Ja2_Options.ini @@ -3010,6 +3010,66 @@ VETERAN_MILITIA_EQUIPMENT_QUALITY_MODIFIER = 2 ;****************************************************************************************************************************** ;****************************************************************************************************************************** +[Militia Equipment Settings] + +;****************************************************************************************************************************** +; These settings control the how militia can equip itslef from sector inventories +;****************************************************************************************************************************** + +;------------------------------------------------------------------------------------------------------------------------------ +; Militia gear will not be randomly generated, but taken from the sector the militia is currently stationed in. +; +; This applies to both tactical and strategic combat. +; Once a sector gets unloaded, the militia will drop the equipment taken again into the sector. +; Gear can be manually dropped in tactical via the 'Ctrl' + '.'-menu, item 'militia inspection'. +; Gear can be prohibited to the militia by hovering over it in the strategic inventory and pressing 'TAB' + 'LMB'. This also works +; if no mercs are present in that sector. +; If militia reinforces a sector, they will take their gear along. +; Mobile militia get their initial gear from the sector they were trained in, after that they take their gear with them if they move on the map. +; It is up to the player to sufficiently distribute gear to his militia (by leaving items in the sector that militia are in). +;------------------------------------------------------------------------------------------------------------------------------ + +; if set to true, militia will take parts of its equipment from a sector's inventory. +MILITIA_USE_SECTOR_EQUIPMENT = FALSE + +; determines wether militia picks helmets, vests and leg armour from the sector. +MILITIA_USE_SECTOR_EQUIPMENT_ARMOUR = TRUE + +; determines wether militia takes NVGs, sungoggles and gasmasks from the sector. +MILITIA_USE_SECTOR_EQUIPMENT_FACE = TRUE + +; determines wether militia takes knifes and punch weapons from the sector +MILITIA_USE_SECTOR_EQUIPMENT_MELEE = TRUE + +; determines wether militia takes guns from the sector +MILITIA_USE_SECTOR_EQUIPMENT_GUN = TRUE + +; determines wether militia takes ammo from the sector. Requires MILITIA_USE_SECTOR_EQUIPMENT_GUN to be true. +; If this is set to false fitting ammo will be spawned in the traditional way, but not be dropped +; If this is set to TRUE, make sure to occasionally restock ammo for your militia. +MILITIA_USE_SECTOR_EQUIPMENT_AMMO = TRUE + +; determines wether militia takes grenades from the sector, it will take up to 2 grenades of one type +MILITIA_USE_SECTOR_EQUIPMENT_GRENADE = TRUE + +; determines wether militia takes LAWs, mortars, RPGs or grenade launchers from the sector +MILITIA_USE_SECTOR_EQUIPMENT_LAUNCHER = TRUE + +; the number of bullets deemed sufficient for a gun is +; max(MILITIA_USE_SECTOR_EQUIPMENT_AMMO_MIN, min(MILITIA_USE_SECTOR_EQUIPMENT_AMMO_MAX, MILITIA_USE_SECTOR_EQUIPMENT_AMMO_OPTIMAL_MAG_COUNT * magazine size)) +; if there is less ammo for a gun than this in a sector, we at first look for other guns, but can still select this one if none have enough ammo +MILITIA_USE_SECTOR_EQUIPMENT_AMMO_MIN = 10 +MILITIA_USE_SECTOR_EQUIPMENT_AMMO_MAX = 200 +MILITIA_USE_SECTOR_EQUIPMENT_AMMO_OPTIMAL_MAG_COUNT = 2 + +; if set to TRUE, once can prohibit militia of certain classes from using an item while toggling with TAB in the sector +; inventory. Turqoise gear cannot be chosen by green milita, purple gear cannot be chosen by green or light blue militia, and +; orange gear cannot be chosen by any militia. +MILITIA_USE_SECTOR_EQUIPMENT_CLASS_SPECIFIC_TABOOS = FALSE + +;****************************************************************************************************************************** +;****************************************************************************************************************************** + [Shopkeeper Inventory Settings] ;******************************************************************************************************************************