generated from Jaysyn/ModuleTemplate
70 lines
3.0 KiB
Plaintext
70 lines
3.0 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Associate: On Spawn In
|
|
|
|
//
|
|
// Modified by Proleric 14-May-2008
|
|
//
|
|
// Added all optional horse variables (commented out) so that the default can be changed
|
|
// globally for horses, without affecting other associates.
|
|
//
|
|
#include "X0_INC_HENAI"
|
|
#include "x3_inc_horse"
|
|
#include "inc_multisummon"
|
|
|
|
void main()
|
|
{
|
|
// CUSTOM CODE FOR HORSES
|
|
//
|
|
if (HorseGetIsAMount(OBJECT_SELF))
|
|
{
|
|
// Mount Control
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_OWNER_TAG", "TagOfNPCOwner"); // Horse becomes henchman of this NPC
|
|
// SetLocalInt(OBJECT_SELF, "X3_HORSE_NOT_RIDEABLE_OWNER", TRUE); // Unavailable for riding
|
|
// SetLocalInt(OBJECT_SELF, "bX3_IS_MOUNT", TRUE); // Mountable (default for standard horses)
|
|
// SetLocalInt(OBJECT_SELF, "X3_NO_MOUNT_ANIMATE", TRUE); // Disable animation during mounting
|
|
// SetLocalInt(OBJECT_SELF, "X3_HORSE_RESTRICT_race", TRUE); // Specified race can't ride
|
|
|
|
//Saddlebags
|
|
// SetLocalInt(OBJECT_SELF, "bX3_HAS_SADDLEBAGS", TRUE); // Can use horse's inventory
|
|
|
|
// Script Hooks
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_PREMOUNT_SCRIPT", "My Script");
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_POSTMOUNT_SCRIPT", "My Script");
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_PREDISMOUNT_SCRIPT", "My Script");
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_POSTDISMOUNT_SCRIPT", "My Script");
|
|
|
|
// Script Over-Rides
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_SCRIPT_MOUNT", "My Script");
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_SCRIPT_DISMOUNT", "My Script");
|
|
// SetLocalString(OBJECT_SELF, "X3_HORSE_SCRIPT_ASSIGN", "My Script");
|
|
|
|
// Custom Mounts
|
|
// SetLocalInt(OBJECT_SELF, "bX3_IS_MOUNT", TRUE); // Custom mount
|
|
// SetLocalInt(OBJECT_SELF, "X3_HORSE_TAIL", TRUE); // tailmodels.2da entry to use when mounted
|
|
// SetLocalInt(OBJECT_SELF, "X3_HORSE_NULL_APPEARANCE", TRUE); // appearance.2da entry for animation scaling
|
|
// SetLocalInt(OBJECT_SELF, "X3_HORSE_FOOTSTEP", TRUE); // footstepsounds.2da entry
|
|
// SetLocalFloat(OBJECT_SELF, "X3_HORSE_MOUNT_DURATION", 3.0); // Mount animation duration (seconds)
|
|
// SetLocalFloat(OBJECT_SELF, "X3_HORSE_MOUNT_SPEED", 1.5); // Speed increase when mounted
|
|
// SetLocalFloat(OBJECT_SELF, "X3_HORSE_DISMOUNT_DURATION", 3.0); // Dismount animation duration (seconds)
|
|
// SetLocalFloat(OBJECT_SELF, "X3_TOTAL_MOUNT_ANIMATION_DELAY", 3.0);// Mount animation time remaining (seconds)
|
|
}
|
|
|
|
// END OF CUSTOM CODE FOR HORSES
|
|
|
|
|
|
//DMFI CODE ADDITIONS BEGIN HERE
|
|
SetListening(OBJECT_SELF, TRUE);
|
|
SetListenPattern(OBJECT_SELF, "**", 20600); //listen to all text
|
|
SetLocalInt(OBJECT_SELF, "hls_Listening", 1); //listen to all text
|
|
//DMFI CODE ADDITIONS END HERE
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|