Skip to content

Instantly share code, notes, and snippets.

View ClockGen's full-sized avatar

ClockGen

View GitHub Profile
bweapons api provides two public functions: bweapons.register_weapon() and bweapons.register_ammo().
bweapons.register_ammo() is not required (actual required ammo is specified in weapon definition), however it was defined for simplicity of registering ammo.
Automatic weapons are not implemented for the sake of saving server perfomance (for both rapid fire and need to constantly check input of every player).
All fields can be omited (except for mandatory ones), in that case they will either default to some value or a specific feature will be disabled.
Many features will only be enabled if a corresponding field was specified
(for example if you omit a "flare" field, a muzzle flash wont be shown, same for all other visuals and sounds).