From b08a353c05b46bc975807168c6b1a633ff7edee0 Mon Sep 17 00:00:00 2001 From: Wanne Date: Fri, 11 Apr 2014 07:25:43 +0000 Subject: [PATCH] Allow different rules for climbing (and jumping) with backpacks (by JMich) - ja2_options.ini: MAX_BACKPACK_WEIGHT_TO_CLIMB, USE_GLOBAL_BACKPACK_SETTINGS MAX_BACKPACK_WEIGHT_TO_CLIMB is the maximum weight a backpack can weigh and still allow you to climb with. The sBackpackWeightModifier in items.xml can modify that number by either making it harder (positive number modifier) or easier (negative number modifier). If the sBackpackWeightToClimb is -1 (default) then the option is unused. If USE_GLOBAL_BACKPACK_SETTINGS is TRUE (default), it uses the same rules for all backpacks, while if FALSE checks for the fAllowClimbing tag in Items.xml, and if that is true you can climb with the backpack. Both options can be used at the same time, so you may climb with (for example) a malice backpack that weighs less than 5kg (or 50 hg) but not climb with a radio set. git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2008 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/Ja2_Options.INI | 15 +++++++++++++++ gamedir/Data/Ja2_Options.INI | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/gamedir/Data-1.13/Ja2_Options.INI b/gamedir/Data-1.13/Ja2_Options.INI index 1511f6888..c3f655632 100644 --- a/gamedir/Data-1.13/Ja2_Options.INI +++ b/gamedir/Data-1.13/Ja2_Options.INI @@ -1849,6 +1849,21 @@ CAN_JUMP_THROUGH_CLOSED_WINDOWS = TRUE CAN_CLIMB_ON_WALLS = TRUE +;------------------------------------------------------------------------------------------------------------------------------ +; MAX_BACKPACK_WEIGHT_TO_CLIMB is the maximum weight a backpack can weigh and still allow you to climb with. +; The sBackpackWeightModifier in items.xml can modify that number by either making it harder (positive number modifier) +; or easier (negative number modifier). If the sBackpackWeightToClimb is -1 (default) then the option is unused. +; +; If USE_GLOBAL_BACKPACK_SETTINGS is TRUE (default), it uses the same rules for all backpacks, while if FALSE checks for +; the fAllowClimbing tag in Items.xml, and if that is true you can climb with the backpack. +; +; Both options can be used at the same time, so you may climb with (for example) a malice backpack that weighs less than 5kg +; (or 50 hg) but not climb with a radio set. +;------------------------------------------------------------------------------------------------------------------------------ + +MAX_BACKPACK_WEIGHT_TO_CLIMB = -1 +USE_GLOBAL_BACKPACK_SETTINGS = TRUE + ;------------------------------------------------------------------------------------------------------------------------------ ; Show enemy weapon name, armour and head items in tactical ;------------------------------------------------------------------------------------------------------------------------------ diff --git a/gamedir/Data/Ja2_Options.INI b/gamedir/Data/Ja2_Options.INI index 2d3ec16d5..2e0fa341a 100644 --- a/gamedir/Data/Ja2_Options.INI +++ b/gamedir/Data/Ja2_Options.INI @@ -1825,6 +1825,21 @@ CAN_JUMP_THROUGH_CLOSED_WINDOWS = FALSE CAN_CLIMB_ON_WALLS = FALSE +;------------------------------------------------------------------------------------------------------------------------------ +; MAX_BACKPACK_WEIGHT_TO_CLIMB is the maximum weight a backpack can weigh and still allow you to climb with. +; The sBackpackWeightModifier in items.xml can modify that number by either making it harder (positive number modifier) +; or easier (negative number modifier). If the sBackpackWeightToClimb is -1 (default) then the option is unused. +; +; If USE_GLOBAL_BACKPACK_SETTINGS is TRUE (default), it uses the same rules for all backpacks, while if FALSE checks for +; the fAllowClimbing tag in Items.xml, and if that is true you can climb with the backpack. +; +; Both options can be used at the same time, so you may climb with (for example) a malice backpack that weighs less than 5kg +; (or 50 hg) but not climb with a radio set. +;------------------------------------------------------------------------------------------------------------------------------ + +MAX_BACKPACK_WEIGHT_TO_CLIMB = -1 +USE_GLOBAL_BACKPACK_SETTINGS = TRUE + ;------------------------------------------------------------------------------------------------------------------------------ ; Show enemy weapon name, armour and head items in tactical ;------------------------------------------------------------------------------------------------------------------------------