TRM Gun Base —— A Lightweight Weapon Framework

If you liked this item, please rate it up on Steam Workshop page.

Authors: Miku喜欢Nikki~, Einstein

Last revision: 24 May at 10:38 UTC

File size: 163.06 MB

On Steam Workshop

Description:

A modular, lightweight weapon framework for Garry’s Mod. Clean code, low memory usage, not a black box.

Why this?
MWB is powerful, but it’s heavy, slow to load, and many internal logic feels like a mystery. I wanted a small framework that I can fully understand, modify, and control — so I built TRM Gun Base.

Features
Modular code structure (client / shared / server)

Attachment system (slots, exclusion, stat changes, visual models)

Procedural camera recoil (adaptive by RPM + kickdown curve)

Animation events (reload, inspect, etc.)

Fire modes: full auto, semi, burst, bolt-action

Basic NPC support

About Assets
This Base does NOT include any weapon models, sounds, or materials. For testing/demo purposes, it temporarily reuses some TFA INS2 attachment models and muzzle effects.

Help Wanted
3D scope rendering (reticle, parallax, magnification)

Magazine bone scaling (dynamic bullet models based on ammo count)

Bodygroup switching (different attachments change weapon model appearance)

Performance optimization

If you’re good at any of these, feel free to submit a PR or open an issue on GitHub.

Contact / Feedback
GitHub repository: Github[github.com]

I’m still learning. Feedback and pull requests are welcome.