Robotic Parts

Robotic Parts

2M Downloads

[Visual] Player model

alpharou opened this issue ยท 2 comments

commented

So, I've been playing with cyberware for a while and I must say it is AWESOME. Really immersive with all the different parts, the names of the items, the process...

But I found a little problem which is not this mod's fault directly, but with other mods that mess with the player model. And that's because I think this mod replaces your player's model when you add some custom limbs and that is not supported by visual mods like mo' bends or first person render.

If, and only if you could change the player's skin instead of the model, I think everything should be fine... Does anyone have any suggestions?

commented

It's probably unreasonable to change the skin, but maybe they could add a flag to not replace the model when you put on synthetic skin, since that's supposed to turn it back to normal.
I looked at the code, specifically flaxbeard.cyberware.common.handler.EssentialsMissingHandlerClient.java, and it looks like if you have robot arms or legs, you are replacing the model and swapping the textures, but then swapping back if you have synthetic skin on. Maybe it would be possible to put the synthetic skin catch earlier so that if nothing was going to be changed, it wouldn't swap out the model.

That being said, the Vampirism mod also changes the player skin, specifically overlaying red eyes and fangs, so you could try doing something like that. It looks like they are doing it by adding a layer onto the player render or something in the registerVampirePlayerHead function at the bottom of de.teamlapen.vampirism.proxy.ClientProxy.java
In case you want it, their render layer class is de.teamlapen.vampirism.client.render.LayerVampirePlayerHead.java and both of those classes are under the Vampirism/src/main/java folder on their github https://github.com/TeamLapen/Vampirism

Sorry if none of this made sense or helps, I don't have much modding experience, I just like reading other people's code.

commented

Render is only cancelled/replaced when necessary.
Custom render can be disabled through configuration to increase compatibility.
Vampirism approach only works for chest and head. Limbs aren't as extensible in the base game, sadly.