Modular Weapon System with Custom Resources // Make An FPS in Godot 4 (E20)

preview_player
Показать описание
In this video, we’re creating a modular weapon system for my first person shooter project. We’ll be using scripts and custom resources so we can quickly save weapon attributes and swap between weapons efficiently.

-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------

0:00 The Godot FPS Project
0:29 Why Modular System?
1:17 The Plan
1:35 Custom Resources
2:02 How To Use Custom Resource
3:25 The Weapon Resource
3:54 Loading Weapons
5:05 Create & Edit Weapons
5:37 Running Scripts in Editor with tool
6:15 Adjusting Weapon Position In Editor
7:00 Quick Weapon Switching Test
7:28 Final Results
8:04 More FPS Tutorials

-----------------------------------------------------------------------------------

This series is part of my sponsored Godot FPS Project where we will walk through how to create an 3D FPS game in Godot 4, step by step. I won't be skipping any steps in the process and everything will be sequential video to video.

This initial basic FPS setup project is available for free to download and use using the MIT license via the link below. For all future videos, the project source files will be available to my GitHub Sponsors.

Joining my Patreon in one of the 3 tiers will give you:

- access to the private Discord channel
- your name in the project README
- early access to tutorial videos
- power to vote on what mechanics get covered in future videos
- full access to the project source files to use in your own projects

-----------------------------------------------------------------------------------

#godot #godotengine #fps
Рекомендации по теме
Комментарии
Автор

Man I love the videos but the cuts are pretty harsh. Ill be following step by step and then we skip ahead to something already being loaded in, I'm happy to see the future episodes are basically hand holding

LowTGaming
Автор

Just wanted to thank you for your time and efforts. Saw this latest upload and I'm about to go through the entire series so I might have a more than functioning 1st person mode to box out some horror levels. I am new to coding in general and gamedev but im a gamer at heart. Also thank you to the patreons that support.

Things that come to mind for an FPS or a game that uses an First Person system would be:

Prone position/crawling.

Picking up objects, throwing objects.
(Pressure plates, puzzles, flares, torches, grenades, rocks, etc)



Leaning left and right.
(In an action or horror setting, i.e. lean animation length to draw out the creepiness or a snappy one for FPS)

Climbing ladders.

Hanging onto ledges/climbing up from ledges.

Vaulting over waist high walls.

Forward long jump / "lunge" if you will.
(To traverse horizontally for more adventure type games)

Flashlight "tool" that functions within per your weapon system. Either a handheld one or a chest flashlight that isn't visible but can be toggled. (Pipboy radial light or forward cone low powered light)

Just things like that! I am sure you already have vids recorded and everything all planned and drawn out but it would be worth tackling some of these video tutorials that are admittedly for your First Person Shooter type game, but with other genres or methods or modes in mind! I hope my perspective with desiring a broader scope of some actions for different types of games makes sense given the lack of solid follow along tutorials. Again. Thank you for all of this, entirely inspiring sir. Take care of you and yours and have a wonderful day.

jjhh
Автор

i love how this is turning out already!

DrWne
Автор

sick video ty! I've only been learning Godot a couple months I'm definitely going to come back to this video once I've learned a bit more of the basics :)

Hex_is
Автор

I’m flipping out about the performance you get from this engine in terms of fps, amazing 🤩

Mani-xxfz
Автор

I have few suggestions, Can u make videos on weapon customization and inventory system?
Loving ur videos so far!

NuovaStarGaming
Автор

I can't wait for the character rigging tutorial, these videos are amazing!

Emaxoso
Автор

Been using Godot for years and still learned a bunch of new tricks with this series. Thank you so much!

starplebe
Автор

Will you be making a viewmodel hands tutorial with this project?

A common issue I have seen on the internet and have run into myself is making any sort of more advanced FPS animations in Blender and exporting them to Unity. There are none or close to none tutorials about such workflows, and almost all FPS tutorials just use a floating weapon.

epfcxkk
Автор

I am curious to see how other programmers handle vent crawling and ladders, a lot of tutorials on that are woefully out of date and mostly incomplete so I had to figure that out myself.

lethn
Автор

Can it be something else than a crowbar, if so, an AK for example, at one point?

werqak
Автор

This was great, thank you! I'm using it to swap between items on benches for a chef game

olson
Автор

Another video closer to the eventual leaning mechanic one

Beanibirb
Автор

When attaching weapon resource to Weapon(node3d) 3:40, did you add MeshInstance3D under Weapon(node3d) manually ?

calorck
Автор

you didn't show how you set up the actual weapon tres, not sure how i apply the mesh

dmas
Автор

I came to notice that despite the barren maps, you are experiencing quite some frame drops in between... Make sure your frames beyond 60 aren't cached anywhere actively, this can cause severe lag in the long run and be a headache later on... (Sometimes this has to be defined with code)

patty
Автор

I'm following this tutorial, but you inserted the crowbar mesh into the variable offscreen. How did you do that? If I export as obj it loses its texture, and if I export as glb or blend it becomes a "packed scene" which the mesh variable doesn't accept. How did you get a textured mesh from blender into godot?

carelesswhisker
Автор

When I load the scene the weapon mesh is in the right position and doesn't cip - but as soon as I move or rotate the camera it changes position based on that.... Tried to figure out why but couldn't.

Count_Goatenberg
Автор

This can also be applied to holding items :D Thank you good sir!

WiseNoodleOfficial
Автор

in the weapon resource script, is it possible to create several different types of weapon: melee, hitscan and projectile with one resource script?

hery