Project Zomboid

Project Zomboid

387 hodnocení
[41/42] Hot Brass - Visible Casing Ejection Framework
15
4
5
4
2
4
3
5
4
2
3
2
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Velikost souboru
Přidáno
Aktualizováno
4.693 MB
22. lis. v 17.34
10. pro. v 5.07
Poznámky ke změnám (21) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
[41/42] Hot Brass - Visible Casing Ejection Framework

V 1 kolekci od uživatele Marz
Hot Brass
3 položek
Popis
Hot Brass - Visible Casing Ejection Framework
I personally love small details, and even on games with graphic styles that are meant to be retro, having those little details make it so cool. For a long time, I wondered how cool Project Zomboid would look if we could actually see spent casings flying out of our weapons. kinda inspired like the classic Resident Evil games. From that curiosity I dive into the PZ modding discord (amazing place btw).

This is both a mod and a framework that other weapon mods can use to add visible casing ejection.

Changes to Gameplay

Racking has been reworked so that when you rack a round, it won’t magically appear in your pocket anymore; it will realistically fall to the ground. Don’t forget to pick them up!

Unloading is now more practical and prevents you from accidentally dropping ammo all over the floor.

Spent casings can be collected, and in a future update they’ll be used for ammo crafting.

Mod is still a Work in Progress!

Some of the things casings will do
  • React to the world around, fall to different levels, react against walls, land on objects (tables, chairs, counters, etc...), open or close windows or doors
  • Bounce around
  • Play appropiate casing sounds to the tile they are landing open
  • be cool looking :D

VERSION 41 MULTIPLAYER FIXED
Mod is better experience in SP due to the way I had to achieve the visual effect. MP in 41 is supported, but I have not tested the extend to which it will impact performance on large servers.

To Do:
  • Keep covering popular mods; check the repo addon for them.
  • Improve MP performance.
  • Ammo crafting. It will come, I promise.

If you find a bug, please report it in the thread for it, not the comments.

Huge Thanks!

Thank you to everyone in the PZ Modding Discord for the support on my first mod.
Special thanks to Vilespring and Sven for allowing me to use VFE ammo icons.

For Modders

I have redone the structure of the mod, so if you wish to implement it or want to change the functionality of a function, you can patch it by calling the main object and the desired function.
I have left a commented-out file that gives you an example of how you can easily register your params table with the mod.

I am working on making it so that if a gun is not registered, it will pick some random params based on the model, but only if this uses ammo or casings I have within the mod. Custom ammo will require registering.

Key parameters to know:

  • Forward, side, and height offsets let you calibrate exactly where the casing appears relative to the player.
  • Shell force determines how far the casing is ejected. Negative values will launch it in the opposite direction, useful if you want something unusual.
  • Manual ejection controls whether a weapon requires racking to cycle the ammo.
  • verticalForce can apply more force to the shell or send it downwards, for those weapons where the spent casings go straight to the floor (MG42 comes to mind).
  • ejectionAngle lets you determine if the casing comes forward, left, right, or back, full control to make it authentic.

Currently the mod also supports B41, but I have not tested it extensively, so if you encounter a bug, report it.

Mod Patches in the link below:

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3612830296

Currently covered Mods:
  • Firearms B41 and B42
  • VFE 41 and Unofficial 42
  • Filibuster Rhymes's Acceptable Guns
  • Rain's Firearms & Gun Parts [B42]
  • WIP Guns of 93

I will not be covering Brita’s Gun anytime soon. While that mod already has casing ejection, 300+ guns, and tons of custom ammo, it fundamentally changes some of the functions I modify to achieve the racking and reloading effects.


Workshop ID: 3610677934
Mod ID: HBVCEF
Populární diskuze Zobrazit vše (3)
39
10. pro. v 3.54
Bug Reports
Marz
27
3. pro. v 11.08
Mod Support
Marz
Počet komentářů: 161
Fluffy89 před 8 hodinami 
Thanks!
Sven před 11 hodinami 
@Fluffy89
So go find the script that defines the ammo items for that mod and copy the item IDs. You only need to find the additions (ie non-vanilla ones).

Eh, whatever, I did it for you.

Base.Bullets9mm_Casing,Base.Bullets38_Casing,Base.Bullets44_Casing,Base.Bullets45_Casing,Base.223Bullets_Casing,Base.308Bullets_Casing,Base.556Bullets_Casing,Base.ShotgunShells_Casing,Base.Bullets22_Casing,Base.Bullets357_Casing,Base.Bullets4440_Casing,Base.762x39Bullets_Casing,Base.762x51Bullets_Casing,Base.Bullets3006_Casing
Fluffy89 před 11 hodinami 
I use Firearms B41, so I won't be able to use that list. :(
Sven před 15 hodinami 
You can just add them to the World Item Removal list. There's an up-to-date list in this description for vanilla and VFE (B41): https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3613229627
This is all you need if you're running vanilla.

I do agree, however, that a list should be provided for each mod in the Hot Brass mod repository, and probably a vanilla one in the description here, for easy copying and pasting.
Fluffy89 před 15 hodinami 
Hey! Something to consider (either implementing via a function or by rpoviding the appropriate csv), is using Zomboid's native sandbox option 'WorldItemRemovalList'. May be handy when it comes to automatically cleaning up ejected casing and racked rounds.

If you do choose to implement a function for adding on your empty casings to that sandbox option, a toggle to enable/disable the behaviour would be much appreciated!

Great mod idea, has been nice seeing the casings and shells behave more like one would expect. Good work so far! :spiffo:
Marz  [autor] před 19 hodinami 
I am not patching Britas weapon. sorry
goog the před 20 hodinami 
hey, is this compatible with Brita's weapon pack? or just vanilla guns?
ArcadeBulls 9. pro. v 2.03 
Awesome mod mister! Looking forward to the ammo crafting part!
R o c k y J e t 8. pro. v 20.35 
Bullet sprites missing from a few like the .45 and .308. They were working fine yesterday. Justr question marks instead of the sprites.
Marz  [autor] 8. pro. v 12.06 
I will be reducing the sound. Im gonna push an update today