Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
12 stars 5 forks source link

[Bug] Hunting rifle does not register with handleCommand() #612

Open Smart-Fella opened 2 months ago

Smart-Fella commented 2 months ago

Describe the bug

When creating scripts with the handleCommandfunction, explosions, the shotgun, standard gun and weapons using the Shoot() function register with the function, whilst the hunting rifle does not.

Steps to reproduce the behavior

  1. Create a content mod using the mod menu
  2. Edit the level and add a script containing just the following:
    function handleCommand(cmd)
    DebugPrint(cmd)
    end
  3. Playtest the level and start shooting with the 3 guns, or a modded weapon that uses the shoot() function (i.e. the minigun)
  4. The shotgun, gun and modded weapons display messages in the console, the hunting rifle does not.

Expected behavior

The handleCommand function should produce a response to shots from the hunting rifle.

Environment

Additional context

No response

Gregory-Gregory commented 2 months ago

@Smart-Fella hi!

Thank you for reporting this issue. I have forwarded it to the QA team for further investigation.