From cd134088ddb43ecb9ba24e191ebeb726bf2b5896 Mon Sep 17 00:00:00 2001 From: ketmar Date: Thu, 10 Aug 2023 08:59:10 +0000 Subject: [PATCH] let user configure flamethrower ammo cost (because i cannot decide which value it should be ;-) FossilOrigin-Name: e8eae5519de56e9d714cda803efc573041c4db9e0ff51fac6c98954d9971feff --- cvarinfo.txt | 6 ++++-- decorate/Weapons/FragfireGun.txt | 2 +- modmenu.txt | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/cvarinfo.txt b/cvarinfo.txt index 41aad62..f9bca7b 100644 --- a/cvarinfo.txt +++ b/cvarinfo.txt @@ -9,16 +9,18 @@ user bool k8ZanMod_WarnLowAmmoCrushbow = true : k8_helptext = "Make annoying sou user bool k8ZanMod_WarnLowAmmoCrylance = true : k8_helptext = "Make annoying sounds when Crylance is low on ammo?"; user bool k8ZanMod_SpikeZoom = false : k8_helptext = "Allow SpikeGun Iron Sights?"; -user bool k8ZanMod_ThrowAxe = true : k8_helptext = "Allow throwing Axe with alt-fire?"; +user bool k8ZanMod_ThrowAxe = false : k8_helptext = "Allow throwing Axe with alt-fire?"; user bool k8ZanMod_DamageSelfCrushbow = true : k8_helptext = "Should Zan damage self with her own Crushbow projectile blast damage?"; user bool k8ZanMod_DamageSelfHellMine = true : k8_helptext = "Should Zan damage self with her own Hell Mine blast damage?"; user bool k8ZanMod_DamageSelfPotion = true : k8_helptext = "Should Zan damage self with her own potion blast damage?"; user bool k8ZanMod_DamageSelfBarrel = true : k8_helptext = "Should Zan damage self from explosive barrels?"; -user float k8ZanMod_DropProbChaingun = 0.2 : k8_helptext = "Chance to keep PainGun drop from monsters."; +user float k8ZanMod_DropProbChaingun = 0.2 : k8_helptext = "Chance to get PainGun drop from Heavy Weapon Dude."; user float k8ZanMod_DropProbBaronClaw = 0.3 : k8_helptext = "Chance for Baron of Hell to drop HellClaw."; +user int k8ZanMod_FlameThrowerAmmoCost = 3 : k8_helptext = "Flamethrower ammo cost (it is very overpowered, and I cannot decide)."; + user bool k8ZanMod_StartHellClaw = false : k8_helptext = "Start with HellClaw."; user bool k8ZanMod_FragCasing = true : k8_helptext = "Drop FragfireGun empty casing?"; diff --git a/decorate/Weapons/FragfireGun.txt b/decorate/Weapons/FragfireGun.txt index 159ff64..d2ba120 100644 --- a/decorate/Weapons/FragfireGun.txt +++ b/decorate/Weapons/FragfireGun.txt @@ -407,7 +407,7 @@ ACTOR FragfireGun : Weapon replaces Shotgun { { user_lowPauseCount = -666; // spend more ammo, because flamethrower is too powerful; was "1" - A_TakeInventory("FragfireGunLoaded", 1+1); + A_TakeInventory("FragfireGunLoaded", clamp(GetCVar("k8ZanMod_FlameThrowerAmmoCost"), 1, 40)); A_GunFlash("Flash"); A_SetPitch(-0.3+pitch); A_FireCustomMissile("FlameShot", frandom(-3, 3), 0, 4, -3, FPF_NOAUTOAIM, frandom(-3, 3)); diff --git a/modmenu.txt b/modmenu.txt index 07acc35..951f5e1 100644 --- a/modmenu.txt +++ b/modmenu.txt @@ -219,6 +219,27 @@ menudef ZanModMenu_Main { help = "Allow throwing Axe with alt-fire?"; } + option enum { + title = "Flamethrower Cost"; + cvar = k8ZanMod_FlameThrowerAmmoCost; + list { + "1" = 1, + "2" = 2, + "3" = 3, + "4" = 4, + "5" = 5, + "6" = 6, + "7" = 7, + "8" = 8, + "12" = 12, + "16" = 16, + }; + help = + "Flamethrower is very overpowered, and I cannot decide", + "which cost it should be. So do it yourself!"; + } + + header ""; -- 2.11.4.GIT