HaodongMo/ArcCW

[BUG] TTT2 Pre-Round Grenade Throwing

dhkatz opened this issue · 1 comments

Currently there's a bug with ArcCW weapons in TTT2 due to a difference in ConVar naming.

L 04/12/2022 - 17:47:15: Lua Error:
[[ArcCW] Arctic's Customizable Weapons (Base Only)] lua/weapons/arccw_base/sh_grenade.lua:14: attempt to index a nil value
  1. PreThrow - lua/weapons/arccw_base/sh_grenade.lua:14
   2. CanPrimaryAttack - lua/weapons/arccw_base/sh_firing.lua:45
    3. unknown - lua/weapons/arccw_base/sh_firing.lua:104

if engine.ActiveGamemode() == "terrortown" and GetRoundState() == ROUND_PREP and GetConVar("ttt_no_nade_throw_during_prep"):GetBool() then

In TTT the ConVar is ttt_no_nade_throw_during_prep but in TTT2 they inverted it and renamed it to ttt_nade_throw_during_prep for some reason.

Fixed.