Project Zomboid

Project Zomboid

365 个评价
[41/42] Hot Brass - Visible Casing Ejection Framework
13
4
5
4
2
4
3
5
4
2
3
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
4.075 MB
11 月 22 日 下午 5:34
12 月 3 日 上午 3:41
18 项改动说明 ( 查看 )

订阅以下载
[41/42] Hot Brass - Visible Casing Ejection Framework

在 Marz 的 1 个合集中
Hot Brass
3 件物品
描述
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.
热门讨论 查看全部(3)
29
12 月 3 日 下午 2:55
Bug Reports
Marz
27
12 月 3 日 上午 11:08
Mod Support
Marz
143 条留言
Marz  [作者] 5 小时以前 
@will i will take a look at the missing ammo

@shaman. Still doesn't tell me anything. I have tested multiplayer myself and I manage to conect. Regardless i did left a message in regards of the mod on multiplayer. Please read it
Shaman Rock 7 小时以前 
@marz
I have many mods installed and so far they all work, but as soon as I try to activate this one + the patch, the server gives me an error and won't start. I think it doesn't work for 41.78 multiplayer.
williamasecas 13 小时以前 
When racking to remove rounds from the chamber (pressing X) those disappear rather than being dropped to the ground or going to the character´s inventory.

I use VFE B41.
Sven 14 小时以前 
@barry
If you add them to the World Item Removal list, they'll despawn according to the time that's set to (default is 24 ingame hours).
There's a list of vanilla + VFE ones in the description of this mod: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3613229627

For other gun mods using other calibers, you'll have to look up the IDs yourself.
barry 14 小时以前 
Do the casings ever despawn?
Rubber Flubber 12 月 4 日 下午 7:13 
I think they're still working on that patch, it's the one I'm most looking forward to
Perculator 12 月 4 日 下午 6:23 
For some reason it doesn't work with guns of 93 when both mods are on
Marz  [作者] 12 月 4 日 下午 12:49 
@Shaman, that doesnt tell me anything, you have more than one mod. im sorry but with such vague reply I cannot provide help. you need to be precise with the problem
Shaman Rock 12 月 4 日 下午 12:07 
"The server stopped during launch. (NormalTermination)
Marz  [作者] 12 月 3 日 下午 2:53 
thats not a very helpful description of your problem