Image 1 — I am trying to implement a weapon inventory system
Image 2 — I am trying to implement a weapon inventory system

I am trying to implement a weapon inventory system

*The first screenshot is the backup/stable version. The second is the current version that's being tested and modified.*

I basically want my player to always have two weapons, one primary (like a rifle) and one secondary (like a pistol or an SMG).

I implemented the system of picking up and dropping weapon from the first screenshot a few months ago by following a tutorial (I was a beginner and didn't yet learn that following tutorials blindly is a pretty bad practice. Cut me some slack) and then I added the logic of saving one primary and one secondary weapon in inventory today. However, this still doesn't allow me to switch the current weapon between the two saved in the inventory as I always drop the current weapon even when it's saved in the inventory.

This is where the second screenshot (the test version) comes into play. I tried to immediately save the weapon to pick up into it's designated slot based on its ENUM Weapon Class value (whether it's primary or secondary), but I realized the "current weapon" variable the inventory logic uses is empty. How do I instead get the ENUM Weapon Class value directly from the weapon while it's on the ground and save it to the inventory BEFORE I actually pick it up to my hand? Also would the switching current weapon logic work?

(*Excuse me if I'm asking obvious questions. I am still a beginner and not yet very knowledgable of UE5*)

u/Key-Okra1636 — 2 days ago
▲ 52 r/vulkan

What are some good modern (preferably video) tutorials?

I found this tutorial on youtube which explains modern Vulkan quite nicely, but the file structure and code is pretty hard to follow. Of course there are official tutorials by the Khronos group, but I've heard they're a bit outdated (vulkan 1.0).

I am specifically searching for a video tutorial that explains the setup for vulkan and SDL3 in Visual Studio and is relatively modern.

u/Key-Okra1636 — 4 days ago

Is this FPS good? How can I optimize it further?

As you can see, I'm getting between 290 - 330 fps consistently without stuttering, but my friend who has been using UE5 for some time now has been telling me how it should be getting over 1000+ on the default map and how I should switch to UE4.

​

I use shadow maps.

I use DX11 as the default RHI

I killed nanite and lumen everywhere

I use GPU lightmass for light baking

I don't use SM6

​

How can I push the performance further? I really don't want to remake everything from scratch in UE4.

​

The UE version is 5.4 and my specs are R5 5600X, 32gb ddr4 and Arc B580 just for reference.

u/Key-Okra1636 — 21 days ago

Here's a cool idea for the new show

It's a reboot but Asuka appers earlier and remembers all the events of the OG series and EoE (like how Shinji does in RE:TAKE) and thus tries to actually help Shinji sort out his issues and prevent the third impact.

I'd be willing to write a fanmanga on this concept

u/Key-Okra1636 — 1 month ago

The blue dot on the screen is supposed to be the crosshair and it's exactly in the middle of the screen.

u/Key-Okra1636 — 2 months ago
▲ 17 r/evangelion+1 crossposts

"How gross"

"And in case I don't see you, good afternoon, good evening and good night!"

"He loved big brother"

"They looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which"

u/Key-Okra1636 — 2 months ago

I've been working on an indie gamedev project in UE5 for a few months now and even after all the optimization I did, I'm still not happy with the performance and graphics of my game. My friend, who had the same problem, switched to UE4 and started his game completely from scratch again and advised me to do so too. I like the idea of switching to UE4 because of better performance and graphics as well as the lack of overhead and unneeded features UE5 provides, but I don't want to do everything from the start again. What do I do?

Also yes, performance is a VERY important part of my game as it's supposed to be a fast-paced PvP shooter.

reddit.com
u/Key-Okra1636 — 2 months ago