Talk:Weapons

From Starbounder - Starbound Wiki
Jump to: navigation, search

What about rate of fire?

this doesn't say anything about rate of fire, and neither does the stats page. Is higher or lower better? I think 1 is about 1 attack/sec, but I can't tell whether higher or lower numbers are better, as I don't have a wide enough variety of weapons on hand.--Twisted Code (talk) 16:24, 2 August 2020 (UTC)

Weapon Fire-Through-Wall Bugs

While weapons in Starbound generally aren't supposed to be able to fire through walls (or closed doors), there are a number of bugs in the Lua weapon code where tile line collisions are not checked, which do allow for this to happen in certain circumstances. Some examples:

  • If you begin firing a beam weapon (e.g., Aegisalt Pistol, Lazercaster, Gnome Gun, or the Erchius Eye) before encountering a wall, and continue to hold the trigger while running up to the wall, then when the muzzle passes through to the other side of the wall, the weapon will continue firing until you let go of the trigger.
  • If you begin firing a burst assault rifle (e.g., plasma assault rifle) before encountering a wall, and run up to the wall while the burst is in progress, then the rifle will fire the remainder of its burst once its muzzle passes through the wall.
  • Melee weapons will generally not affect enemies on the other side of a wall, but if the enemy is standing close to the wall and you just graze the tip of the weapon's damage polygon through the wall, then the enemy will take the damage and/or knockback of the weapon strike.
  • Area-of-effect blasts, such as grenades or rockets, will pass through walls, even if the explosion is not capable of damaging the wall itself.

The first two points can be fixed easily with one line `world.lineTileCollision` checks in their respective Lua files. The latter two would seem to require much more extensive refactoring to fix.

-- Rl.starbound (talk) 19:02, 16 September 2021 (UTC)