generated from Jaysyn/ModuleTemplate
47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
|
|
#include "omw_plns"
|
|
#include "habd_include"
|
|
#include "subdual_inc"
|
|
#include "x3_inc_horse"
|
|
void main()
|
|
|
|
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
if (GetCreatureTailType(oPC) == 0)
|
|
{
|
|
SetCreatureTailType(14, oPC);
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((GetIsPC(oPC)||GetIsDM(oPC))&&!GetHasFeat(FEAT_HORSE_MENU,oPC))
|
|
{ // add horse menu
|
|
HorseAddHorseMenu(oPC);
|
|
if (GetLocalInt(GetModule(),"X3_ENABLE_MOUNT_DB"))
|
|
{ // restore PC horse status from database
|
|
DelayCommand(1.0,HorseReloadFromDatabase(oPC,X3_HORSE_DATABASE));
|
|
} // restore PC horse status from database
|
|
} // add horse menu
|
|
if (GetIsPC(oPC))
|
|
{ // more details
|
|
// restore appearance in case you export your character in mounted form, etc.
|
|
if (!GetSkinInt(oPC,"bX3_IS_MOUNTED")) HorseIfNotDefaultAppearanceChange(oPC);
|
|
// pre-cache horse animations for player as attaching a tail to the model
|
|
HorsePreloadAnimations(oPC);
|
|
DelayCommand(3.0,HorseRestoreHenchmenLocations(oPC));
|
|
} // more details
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|