Exopandora / ShoulderSurfing

Shoulder Surfing Reloaded is a highly configurable third person camera mod for minecraft.
MIT License
48 stars 9 forks source link

Some incompatibilities with Mr. Crayfish's gun mod #188

Closed adrianholz closed 1 month ago

adrianholz commented 1 month ago

Description

https://github.com/Exopandora/ShoulderSurfing/assets/87616443/daa74671-d68c-4012-84f7-363ad8aa3699

So as seen in the video the weapon from MrCrayfish's gun mod produces a lot of recoil in the first person, and not at all on shoulder surfing. Would it be possible for the camera on shoulder surfing to also go up on shooting?

And also, when aiming (holding right click), the crosshair disappears. Is there a way to make it check for shoulder surfing perspective & right click and if so, zoom the camera & enable/replace the crosshair?

Version is 1.19.2 with 43.3.13 forge

Minecraft version

1.19.2

Incompatible mod name

MrCrayfish's Gun mod

Incompatible mod version

cgm-forge-1.19.2-1.3.7.jar

Game Logs

https://mclo.gs/s4bP9wn

Exopandora commented 1 month ago

Thank you for the report, I will look into it.

And also, when aiming (holding right click), the crosshair disappears. Is there a way to make it check for shoulder surfing perspective & right click and if so, zoom the camera & enable/replace the crosshair?

I can already tell you that this needs to be implemented by the authors of MrCrayfish's Gun mod.

adrianholz commented 1 month ago

Alright, thank you for addressing this issue.

About the zoom/crosshair replacement, I thought of an alternate solution. This issue could be fixed if there was a button the player could hold, while in shoulder surfing, to temporarily alternate to first person (in this case, the right mouse button, the same used to aim the gun). On release, return to shoulder surfing perspective. Would that be possible?

Exopandora commented 1 month ago

There is a possibility to automate this already to a certain extent. Simply set crosshair_type to STATIC_WITH_1PP, which will make you switch to first person whenever an item that is declared as "adaptive" in the config is either used or held by the player. Then you add the relevant items that should switch to first person to the adaptive_crosshair_hold_items list. You can also use a regular expression to match all items of cgm, so you do not need to type out all items: cgm:.*.

adrianholz commented 1 month ago

Unfortunately that wouldn't be an option for the modpack I'm making, as I'm aiming for it to be a third-person tactical shooter. The guns work as expected on shoulder surfing, apart from the aiming restrictions and recoil absence.

Exopandora commented 1 month ago

Unfortunately that wouldn't be an option for the modpack I'm making, as I'm aiming for it to be a third-person tactical shooter

I see. Unfortunately, having a dedicated button for a very specific use case is not something I want to integrate.

As for the current status of the issue:

adrianholz commented 1 month ago

Alright! Thank you very much for your effort and dedication to this issue. This has helped me enormously. Just a last and quick question: do I need to do something specific to compile this mod for version 1.19.2 with the additions integrated in 8801f56? As for the modloader, I'm using forge 43.3.13.

Exopandora commented 1 month ago

Just a last and quick question: do I need to do something specific to compile this mod for version 1.19.2

Just checkout branch 1.19.2 and follow the Building from Source section. If you only care about the forge build, you can also run gradlew :forge:build. This should skip the fabric build. I will also create a new release next week, so it will be available for everyone.

adrianholz commented 1 month ago

I've built the mod and placed it on my mods folder, but I get a crash and exit code 1 on startup.

Here is my latest.log