Good Afternoon,
I got a problem modifying a mod. I have the following addon: [url]https://steamcommunity.com/sharedfiles/filedetails/?id=776709762[/url]
I want to keep this addon and also create a new one in the base of this one.
For that (I think) I need to change the model folder, model file, and material folder names. I did that, the first time the model didn't even appear. So I rechanged and kept the Model at the same name of the original, but the model folder name I kept it changed. The Model appeared, but it was copying the original model texture (that's not the objective, it should use the new textures inside the new addon). So I tested without the original mod, so I unsubscribed to it and the result was that the model appeared Untextured (Pink Error Texture).
Original Lua File:
[CODE]player_manager.AddValidModel( "Posenclave (Poseidon) Power armor", "models/player/poseidon/enclave/PosEnclaveSoldier.mdl" );
list.Set( "PlayerOptionsModel", "Posenclave (Poseidon) Power armor", "models/player/poseidon/enclave/PosEnclaveSoldier.mdl" );[/CODE]
New Addon Lua File:
[CODE]local function AddPlayerModel( name, model )
list.Set( "PlayerOptionsModel", name, model )
player_manager.AddValidModel( name, model )
end //It will have more Characters, so I kept free slots bellow...
// PowerArmor
AddPlayerModel( "PowerTrooper", "models/4threich/powertrooper/posenclavesoldier.mdl" )
//NOTES: The old Material Directory is the same
[/CODE]
Sorry, you need to Log In to post a reply to this thread.