! All information are in the Github repository : https://github.com/Jeh3no/Godot-simple-FPS-weapon-system
This asset provides a simple, fully commented, weapon system for FPS games.
A test map with a shooting range, as well as a character controller are provided (the character controller is another asset i made some months ago : https://github.com/Jeh3no/Godot-Simple-State-Machine-First-Person-Controller)
The weapon system is resource based, designed to easily customize weapons.
The weapons are monitored by a weapon manager, designed to easily add/remove weapons to the game.
Each component of the weapon (shoot, reload, animation, ammunition) has his own script, neatly arranged in separate compartments.
The asset is 100% written in GDScript.
The code has been written in a way to be easily understandable and modifiable/editable, and he's as well fully commented.
! A precision about the showcase video : the doom-like sprites, and all the weapon sounds you heard in the video are not in the asset files, because they are under proprietary license.
You can see this asset as some sort of demo, for a possible, much bigger (and better) asset, which will be may more advanced, and will have a ton of new features
Compatibility :
- Godot 4.4, 4.5 and 4.6: Fully supported.
- Godot 4.0 - 4.3: Should work, but you will need to delete the .uid files.
Features :
Weapon system :
- Resource based weapons
- Weapon switching
- Weapon shooting
- Weapon reloading
- Weapon bobbing
- Weapon tilting
- Weapon swaying
- Hitscan and projectile types
- Physics behavior for both hitscan and projectile
- Shared ammo between weapons
- Ammo refilling
World :
- Test map, with shooting range, and hitable boxes (physics behavior)
- Shooting range with immobile and moving targets
Player character :
- State machine based character controller (https://github.com/Jeh3no/Godot-Simple-State-Machine-First-Person-Controller)
- Input action checker
Camera :
- Viewport camera to render weapons
- Camera procedural recoil
- Camera bobbing
- Camera tilting
Visual effects :
- Muzzle flash
- Bullet hole/decal
- Explosion effect
UI :
- Properties HUD for both player character and weapon system
Changelog for version 2.2
No changelog provided for this version.