Core/Vehicles: implement vehicle seat addon table to specify seat ori…

Port From (https://github.com/TrinityCore/TrinityCore/commit/a91be4995b45695d8585068d0c5e955b93027d89)
This commit is contained in:
hondacrx
2022-01-06 22:23:34 -05:00
parent 8586381f6a
commit fa5dae93cc
7 changed files with 145 additions and 35 deletions
-26
View File
@@ -2350,32 +2350,6 @@ namespace Scripts.World.NpcSpecial
creature.SetDisplayFromModel(0);
}
}
[Script]
class npc_traveler_tundra_mammoth_exit_pos : UnitScript
{
public npc_traveler_tundra_mammoth_exit_pos() : base("npc_traveler_tundra_mammoth_exit_pos") { }
public override void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos)
{
if (passenger.IsCreature())
{
switch (passenger.GetEntry())
{
// Right side
case CreatureIds.DrixBlackwrench:
case CreatureIds.Gnimo:
pos.RelocateOffset(new Position(-2.0f, -2.0f, 0.0f, 0.0f));
break;
// Left side
case CreatureIds.Mojodishu:
case CreatureIds.HakmudOfArgus:
pos.RelocateOffset(new Position(-2.0f, 2.0f, 0.0f, 0.0f));
break;
}
}
}
}
class CastFoodSpell : BasicEvent
{