Jazz2::CustomWeaponOptions struct

How a custom weapon fires and what, and how it looks, only a custom weapon has it.

Public functions

auto GetBasedOn(WeaponType slot) const -> WeaponType
Returns the weapon of the game it was made from, slot if it's not set.
auto operator==(const CustomWeaponOptions& other) const -> bool
auto operator!=(const CustomWeaponOptions& other) const -> bool

Public variables

WeaponFireOptions Fire
How it fires.
WeaponShotOptions Shot
Shot it fires.
WeaponShotOptions ShotPowered
Shot it fires powered up.
WeaponSprite HudIcon
Icon on the screen, empty for the icon of the weapon of the game.
WeaponSprite HudIconPowered
Icon on the screen while powered up, empty for HudIcon.
WeaponSprite Pickup
Sprite of its ammo, empty for the ammo of the weapon of the game.
WeaponType BasedOn
Weapon of the game it was made from, it keeps its rules for crates and bosses, WeaponType::Unknown for the weapon it replaces.