weapons_lib

Description

BEWARE: this is not a 1.x.x release, expect breakages: use it at your own risk

How to 🔗

Check the DOCS

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

0.5.0

Download

Luanti 5.9+

2026-05-25 20:32 UTC

0.5.0 - "Tante cose" 🔗

What's new

  • Charged attacks / Attack on release
  • Negative damage heals the target
  • Split magazine into magazine and stored ammo
  • ammo_per_use defaults to 0 for action of type 'custom'
  • In-the-air actions: use raycasts and allow weapons to customise the minimum height to consider the player in the air
  • Add fulldamage_min_distance action property
  • Add explosion action property
  • Properly implement and document on_impact(..) for bullets
  • Change bullets remove_on_contact type (boolean -> string)
  • Don't let bullets disappear when hitting each other
  • Separate which actions should slow down players and which not: attacking, reloading zooming (turns slow_down_user into a table)
  • Set yaw for dummy entity when attaching player in attack stance (Giov4)
  • Don't reset wl_slowed_down metadata when running reset_state function
  • Remove any trace of the never implemented weapon type "parry"
  • Translations: .tr -> .po
  • Updated translations:
    • French (Hypériōn, Monapp)
    • Italian
    • Portuguese - BR (IamnotMinetest)

Fixes

  • CRASHFIX: non-physical bullets made the server crash when shooting
  • Bugfix: in-the-air check returns true with all kinds of unwalkable nodes (and not only air)
  • Bugfix: handle charging and shooting states as well when calling reset_state(..)

0.4.0

Download

Luanti 5.9+

2025-10-06 15:27 UTC

0.4.0 - "Compensazione lag" 🔗

What's new

  • Server-side lag compensation system for raycast weapons (only supports players for now) (@giov4)

Fixes

  • CRASHFIX (hopefully): sometimes the server overlapped two weapon actions

0.3.0

Download

Luanti 5.9+

2025-08-20 11:11 UTC

0.3.0 - "Particelle belle" 🔗

What's new

  • Add prev_hp as a param of the objects hit contained in the callback
  • Enhance raycast bullets particle trail (giov4)
  • Slightly increase assisted aim (0.46 -> 0.47)

Fixes

  • Bugfix: actually remove the dummy entity when it has no children left
  • Bugfix: avoid particles of pierce actions to go over walls (giov4)

0.2.0

Download

Luanti 5.9+

2025-03-23 13:53 UTC

0.2.0 - G.g. Proiettili 🔗

What's new

  • Add limited_magazine weapon property
  • Add special value to reload_time to disable reloading entirely
  • Add special physics override "DEADWEIGHT"
  • Add possibility to hide weapon crosshairs
  • Round final damage due to LT limitations
  • Add weapons_lib.get_registered_weapons(..)
  • Add weapons_lib.get_action_in_progress_weapon(..)
  • Bullets: customisable on_activate, on_step
  • Bullets: optional explosion damage according to distance
  • Bullets: make bullets independent from framerate (@giov4)
  • Bullets: ignore other bullets when shooting
  • Bullets: improved explosion particle effect (@giov4)
  • make ammo_per_use optional for actions of type "custom"
  • Sounds for explosions
  • Remove dummy entity when there are no children left and don't save it statically
  • minetest -> core

Fixes

  • CRASHFIX: deallocate bullets if owner disconnects
  • CRASHFIX: continuous fire weapons crashed the game if the shooter disconnected whilst shooting
  • CRASHFIX: sanity check on "FREEZE" physics override, in case the player died in the meanwhile
  • CRASHFIX: rework reload cancelling when switching weapons
  • CRASHFIX: add a default value for reload_time
  • CRASHFIX: another bug introduced by weapon switching that was left in the code
  • CRASHFIX: allow "custom" action type to support parameters like ammo_per_use, delay and loading_time
  • Bugfix: sounds weren't stopped for players attached onto other players
  • Bugfix: correctly apply bouncing behavior to bullets (@giov4)
  • Bugfix: "FREEZE" physics override made players go faster after reloading
  • Bugfix: proper speed checks when an action with physics_override ends its recovery
  • Bugfix: "FREEZE" physics option moved the player downwards when using the associated action
  • Bugfix: restore speed after the recovery phase when, whilst zooming, a weapon is changed and a physic_override action immediately cast

0.1.0

Download

Luanti 5.9+

2024-08-25 14:57 UTC

0.1.0 - "Esordio" 🔗

What's new

everything

All releases