<!--quoteo(post=134561:date=Nov 3 2005, 06:53 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Nov 3 2005, 06:53 PM) [snapback]134561[/snapback]</div><div class='quotemain'><!--quotec-->CORPSE_MODE 3 should work though, shouldn't it? Or maybe a different corpsemode would. I would hate to lose that mod just to have boarding working. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
Sorry, the version with the CORPSE_MODE 3 setting was made by Nathan, so I wasn't aware that with THAT setting you can NOT clear away the corpse (you can't even loot it then, huh? Probably because the character stays hostile and won't talk to you. Do we need this setting?). So while the corpse mod basically does not affect boarding the setting CORPSE_MODE 3 causes the problem that Rad had.
Though if you want to use setting 3 during boarding you could try this:
This section in Loc_ai\Lai_events.c keeps the dead hostile character in the game.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> if(CORPSEMODE == 3 && !CheckAttribute(chr, "corpse") ) // NK persist original corpse 05-07-19
{
LAi_GenerateFantomFromMe(chr);
SetCharacterTask_Stay(chr)
//PopCharacterTask(GetCharacter(sti(chr.index)));
LAi_Stunned_MakeCorpse(chr);
LAi_SetImmortal(chr, true);
}<!--c2--></div><!--ec2-->
If you add to the first line a check whether you are in a boardingscene
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> if(CORPSEMODE == 3 && !CheckAttribute(chr, "corpse") && !bAbordageStarted)<!--c2--></div><!--ec2-->
Corpsemode 3 would not affect boarding anymore.
Warning: This is only a proposal which I have not tested much. The safer solution would IMHO be not to use the CORPSE_MODE 3 setting anymore. But I don't know why this option was added and where it may be missed.
Sorry, the version with the CORPSE_MODE 3 setting was made by Nathan, so I wasn't aware that with THAT setting you can NOT clear away the corpse (you can't even loot it then, huh? Probably because the character stays hostile and won't talk to you. Do we need this setting?). So while the corpse mod basically does not affect boarding the setting CORPSE_MODE 3 causes the problem that Rad had.
Though if you want to use setting 3 during boarding you could try this:
This section in Loc_ai\Lai_events.c keeps the dead hostile character in the game.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> if(CORPSEMODE == 3 && !CheckAttribute(chr, "corpse") ) // NK persist original corpse 05-07-19
{
LAi_GenerateFantomFromMe(chr);
SetCharacterTask_Stay(chr)
//PopCharacterTask(GetCharacter(sti(chr.index)));
LAi_Stunned_MakeCorpse(chr);
LAi_SetImmortal(chr, true);
}<!--c2--></div><!--ec2-->
If you add to the first line a check whether you are in a boardingscene
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> if(CORPSEMODE == 3 && !CheckAttribute(chr, "corpse") && !bAbordageStarted)<!--c2--></div><!--ec2-->
Corpsemode 3 would not affect boarding anymore.
Warning: This is only a proposal which I have not tested much. The safer solution would IMHO be not to use the CORPSE_MODE 3 setting anymore. But I don't know why this option was added and where it may be missed.