Kroqh / ttt-role_roider

A role for ttt 2
0 stars 0 forks source link

Roider sets all damage dealt equal to crowbar damage while crowbar is held #1

Closed The1337Gh0st closed 2 years ago

The1337Gh0st commented 2 years ago

When holding out the crowbar, all damage you deal is set to deal damage equal to your crowbar damage. This can have an unintended interaction with certain items, as it can cause them to deal more or less damage than intended. For example, throwing an incendiary grenade causes it to deal your crowbar damage every time it deals damage. Dying to your own incendiary grenade also causes the following Lua error: [[TTT2] Roider [ROLE]] lua/terrortown/autorun/server/sv_roider_handler.lua:15: Tried to use a NULL entity!

  1. GetClass - [C]:-1
    1. fn - lua/terrortown/autorun/server/sv_roider_handler.lua:15
      1. Run - lua/ulib/shared/hook.lua:109
        1. unknown - gamemodes/terrortown/gamemode/server/sv_player.lua:1116
          1. TakeDamageInfo - [C]:-1
            1. RadiusDamage - gamemodes/terrortown/entities/entities/ttt_flame.lua:109
              1. unknown - gamemodes/terrortown/entities/entities/ttt_flame.lua:182
Kroqh commented 2 years ago

Thanks, it should be fixed now 😎