Was disappointed by the little number of officer models, so I had a look at the resources to see, if I could make the pirates models available for the officers, too, but then discovered, that obviously not all officer models were used (I play with AoP super mod + all five updates).
To correct this, open the file <AoP-Folder>/Program/Scripts/utils.c and find the method
void CreateModel(int iChar, string sType, int iSex)
I found it like this:
void CreateModel(int iChar, string sType, int iSex)
{
int iNation = sti(characters[iChar].nation);
string sBody = "";
string sPrefix = "";
int iNumber = -1;
switch (sType)
{
case "pofficer":
sBody = "officer";
iNumber =<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--> rand(11)<!--colorc--></span><!--/colorc-->+1;
break;
case "officer":
// [...]
}
}
[Edit: Had some officers without model! rand(int n) seems to deliver values from 0 to n (normally this is 0 to n-1). Values below are already corrected.]
I found 20 officer models in the resources, so this must be 'rand(19)' instead.
If any of the modders likes texturing: It would be nice to have even more models.
For the interested non-programmers: Using e. g. the pirate models as officers, too, should work with this piece of code:
case "pofficer":
iNumber = rand(29)+1;
if(iNumber <= 20)
{
sBody = "officer";
}
else
{
sBody = "pirate";
iNumber = iNumber - 20;
}
break;
case "officer":
// [...]
Just replace the part between the first 'case' and 'break'.
To correct this, open the file <AoP-Folder>/Program/Scripts/utils.c and find the method
void CreateModel(int iChar, string sType, int iSex)
I found it like this:
void CreateModel(int iChar, string sType, int iSex)
{
int iNation = sti(characters[iChar].nation);
string sBody = "";
string sPrefix = "";
int iNumber = -1;
switch (sType)
{
case "pofficer":
sBody = "officer";
iNumber =<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--> rand(11)<!--colorc--></span><!--/colorc-->+1;
break;
case "officer":
// [...]
}
}
[Edit: Had some officers without model! rand(int n) seems to deliver values from 0 to n (normally this is 0 to n-1). Values below are already corrected.]
I found 20 officer models in the resources, so this must be 'rand(19)' instead.
If any of the modders likes texturing: It would be nice to have even more models.
For the interested non-programmers: Using e. g. the pirate models as officers, too, should work with this piece of code:
case "pofficer":
iNumber = rand(29)+1;
if(iNumber <= 20)
{
sBody = "officer";
}
else
{
sBody = "pirate";
iNumber = iNumber - 20;
}
break;
case "officer":
// [...]
Just replace the part between the first 'case' and 'break'.