Hi! For your first issue, it would be helpful if you include the errors you're getting. They tend to give clues on what's wrong
Generally you need to take a look at the Gondor Soldier model, see how the DrawModule is called. In that case it's ModuleTag_01.
So, you replace it as follows:
ReplaceModule ModuleTag_01
Draw = W3DScriptedModelDraw ModuleTag_01_Override ; << Can be any name but this works well in terms of readability
;All the content of the LA Gondor Soldier model's draw module goes here.
End
End
In full, something like this should work:
It is important that ReplaceModule requires an extra 'End' to close that behavior.
As for the CommandSet... there's a command that builds the barracks, just add it to the CommandSet of the foundation of your choosing via map.ini?
CommandSet RohanFoundationCommandSet
1 = Command_ConstructRohanFarm
2 = Command_ConstructRohanArcherRange
3 = Command_ConstructRohanWell
4 = Command_ConstructRohanStatue
5 = Command_ConstructRohanStable
6 = Command_ConstructRohanArmory
7 = Command_ConstructElvenBarracks ; << like this
End
I don't know what you mean by making them buildable from outpost flags. In any case, I would recommend you to play around with this, take a look at INI.big and try coding some stuff, and also take a look at complex map.ini files from custom maps like Gladiator. Do you have access to some existing custom maps?