First off I'm a dabbler in game development, have made a lot of systems but never a full game, so I thought I might apply myself to modding this project to actually get something out there for a change. I think I'd rate as somewhere between beginner and intermediate.
I've just started to make a mod to replace (mobile) NPCs with 3D models. Has anyone else played with this yet? I've found that at the moment mobile billboards cannot be hidden as it is now due to the concealment code always setting the MeshRenderer either off or on, and I'd rather not strip away components as it would be good to keep the engine running as it should especially if another mod relies on something.
I've found adding a simple check into EntityConcealmentBehavior.cs would be a very simple way to allow modders to hide the billboard
Something like
Code: Select all
// Concealed by engine not including force concealment
private bool isConcealed = false;
public bool IsConcealed
{
get { return (isConcealed); }
}
// Override any concealment to force billboard to always be hidden
public bool forceConcealment = false;
. . .
Code: Select all
isConcealed = (entityBehaviour && entityBehaviour.Entity.IsMagicallyConcealed);
MakeConcealed(isConcealed || forceConcealment);
Is there another way to do this? Is this the right place to ask for this kinda thing. I'm not the most confident programmer so I don't want to clog DFU's github.
Any help much appreciated!