Project Zomboid

Project Zomboid

543 lượt đánh giá
Spongie's Hair API
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Kích cỡ file
Đã đăng
Đã cập nhật
198.723 KB
26 Thg09, 2023 @ 2:04pm
19 Thg12 @ 11:08am
2 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Spongie's Hair API

Trong 2 bộ sưu tập tạo bởi spongie
Spongie Cool Mods
5 vật phẩm
Hair Mods
16 vật phẩm
Mô tả
B42 Update
Some hairstyles can now require hair spray instead of hair gel



This mod un-hardcodes some features from the base game and lets them be used by modded hairstyles.



All hairstyles of the same length are now available when cutting your hair in-game
This removes the issue where you cannot switch from a vanilla hairstyle to a modded one (or between hairstyles from different mods).


This problem happens because Zomboid needs you to give a hairstyle it's own selection of "trim choices" that are available when using scissors. Unfortunately there doesn't seem to be any way to modify trim choices through LUA which makes it impossible to add new hairstyles to the trim choices of vanilla hairstyles or ones from other mods.

This mod replaces the functions used when cutting your hair to remove the trim choices check entirely, so every hairstyle of the same length or shorter is available to choose.



Additionally, in the vanilla game a few hairstyles (specifically mohawks) are hardcoded to require hairgel - this mod allows modded hairstyles to use this feature, as well as optionally being able to switch to a flattened hairstyle after wearing a hat.



From my testing this mod should be compatible with Improved Hair Menu if you move this mod to after it in the load order







Also check out these other mods:


Workshop ID: 3041733782
Mod ID: SpnHairAPI
14 bình luận
spongie  [tác giả] 13 giờ trước 
lifestyles has its own hair selection menu i think which probably conflicts
nakahashi 13 giờ trước 
same only getting vanilla haircut options with lifestyles
LoboOscuro 19 Thg12 @ 4:04pm 
Thankyou for updating your mods, they're amazing!
Barc Nova 3 Thg12 @ 8:33pm 
Not sure if it works in multiplayers, using Lifestyles as well. Only getting vanilla haircut options
Fabian 17 Thg06 @ 7:59pm 
10/10
Morgan 28 Thg03 @ 6:15pm 
May I use this in my modpack?
Hasa 18 Thg02 @ 6:20am 
It is not compatible with Improved Hair Menu, when SpnHairAPI enabled, the improved hair menu don't work anymore, maybe bc I use too much hair mods idk
Hawk 13 Thg01 @ 8:38pm 
is it usable in multiplayer?
Orange Juice 4 Thg01 @ 5:25pm 
how to get working in MP
spongie  [tác giả] 5 Thg10, 2023 @ 2:10am 
It's not in the hair mod anymore