• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

[HELP] Horses' animation

Josuviz

Landlubber
Hi again from Spain. Im trying to bring the courtesans from CT to CoAS:

cortesana.jpg


Well... i have no problem with the animation and model, that were fixed and tested, and all is right.

The CoAS' courtesans use the "towngirl" animation, like mostly of female characters. I can't change that animation and courtesans' models cause i would provoke a bug in the others female characters of the game. So, i have to set that the courtesans use the animation "courtesans" instead of "towngirl". So, it is here where i need help:

¿In which file can i edit it? I've tried find it, but im not able to do it.

Your help is my last hope to bring them... dont do for me, do for them, xDDD. (It's a joke, if i am asking help is in order to do it for me... xDDDDD)

Thanks so much, Greetings!
 
I don't think we have a working animation for the horses, it's something we've been trying to correct since the early days of the CM.
 
Mmmm... sorry but i am not sure to understand your reply

i have a working animation for those horses...

This is a test's clip:


So... we dont know in what file is determined the horse's animation?? Oh, what a pity. Anyway, thanks for all.
 
Ah, I think I misread your original post.

You have a working animation file correct?

Okay and your problem is that the NPC female characters all use the towngirl animation correct?

I can't remember off the top of my head what file the horse animation reference is in. Although the other brothel females are also listed in this file and I'm certain they use the towngirl animation as well. Unless a coder can comment on this, I'm not sure if we can have both at the same time. Either you use the original brothel females or use the AoP ones, you can't use both at the same time.

PS: Nice work with the animation, that dainty run they have is quite amusing.
 
You should be able to check what model a character uses and have the animation linked to that model.
Not sure how simple that is to code in CoAS, but in the PotC Build Mod we definitely do have that.
 
C:\Program Files (x86)\Playlogic\Age of Pirates 2\Program\loc_ai

Code:
void CreateBrothels(aref loc)
{
if (CheckAttribute(loc, "brothel"))
{
ref location;
if (findsubstr(loc.id, "SecBrRoom", 0) != -1)
{
location = &locations[FindLocation(loc.fastreload + "_Brothel")];
}
else
{
makeref(location, loc);
}
if (!CheckAttribute(location, "Brothel_date") || GetNpcQuestPastDayParam(location, "Brothel_date") > 100)
{
ref sld;
int iColony, iNation, qty, num, qtyAll;
// ==>  ìàññèâ ìîäåëåê øëþõ, ÷òîá íå äâîèëèñü â ëîêàöèÿõ
string horse[10];
horse[0] = "horse01";
horse[1] = "horse02";
horse[2] = "horse03";
horse[3] = "horse04";
horse[4] = "horse05";
horse[5] = "horse06";
horse[6] = "horse07";
horse[7] = "horse08";
horse[8] = "horse09";
SaveCurrentNpcQuestDateParam(location, "Brothel_date");
if(CheckAttribute(location, "fastreload"))
{
iColony = FindColony(location.fastreload);
}
else return;
iNation = GetCityNation(location.fastreload);
string slai_group = GetNationNameByType(iNation)  + "_citizens";
qty = 1;
qtyAll = rand(2) + 4;
while (qty < qtyAll)
{
num = rand(7);
if (horse[num] != "")
{
sld = GetCharacter(NPC_GenerateCharacter("HorseGen_"+location.index +"_"+ qty, horse[num], "woman", "towngirl", 3, iNation, 100, false));
sld.City = location.fastreload;
sld.CityType = "horse";
sld.dialog.filename = "Common_Brothel.c";
sld.dialog.currentnode = "Horse_talk";
sld.greeting = "whore";
switch (location.fastreload)
{
case "Tortuga":		 sld.quest.price = 1000*(rand(4)+5); break;
case "PortRoyal":	 sld.quest.price = 1100*(rand(4)+5); break;
case "Panama":		 sld.quest.price = 900*(rand(4)+5); break;
case "Marigo":	     	 sld.quest.price = 700*(rand(4)+5); break;
case "Bridgetown":	 sld.quest.price = 400*(rand(4)+5); break;
case "FortFrance":	 sld.quest.price = 500*(rand(4)+5); break;
case "Charles":		 sld.quest.price = 300*(rand(4)+5); break;
case "SantoDomingo":     sld.quest.price = 200*(rand(4)+5); break;
}
LAi_SetCitizenType(sld);
LAi_group_MoveCharacter(sld, slai_group);
ChangeCharacterAddressGroup(sld, location.id, "goto", "goto"+qty);
horse[num] = "";
qty++;
}
}
}
}
}

The girls in the brothel use the towngirl animation. Just edit the code above and replace the original girls with the AoP ones and it should work for you.
 
Back
Top