Core/Transports: use additional anim node data for GO_STATE_TRANSPORT_ACTIVE to handle serverside position updates properly
This commit is contained in:
1 parent
c26b2bc819
commit
7f1b3cf52c
4 files changed
+40
-37
No files matched your search
@@ -81,12 +81,12 @@ struct go_hoo_the_makers_lift_controller : public GameObjectAI
|
||||
AddGossipItemFor(player, GOSSIP_MENU_HOO_LIFT, GOSSIP_OPTION_FIRST_FLOOR, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 0);
|
||||
|
||||
// Second floor: Anraphet must be defeated first.
|
||||
if (instance->GetBossState(DATA_ANRAPHET) == DONE || instance->GetBossState(DATA_EARTHRAGER_PTAH) == DONE)
|
||||
//if (instance->GetBossState(DATA_ANRAPHET) == DONE || instance->GetBossState(DATA_EARTHRAGER_PTAH) == DONE)
|
||||
AddGossipItemFor(player, GOSSIP_MENU_HOO_LIFT, GOSSIP_OPTION_HOO_LIFT_SECOND_FLOOR, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
|
||||
// Third floor: Constructs of The Four Seats must be defeated first.
|
||||
if (instance->GetBossState(DATA_ISISET) == DONE && instance->GetBossState(DATA_AMMUNAE) == DONE &&
|
||||
instance->GetBossState(DATA_SETESH) == DONE && instance->GetBossState(DATA_RAJH) == DONE)
|
||||
//if (instance->GetBossState(DATA_ISISET) == DONE && instance->GetBossState(DATA_AMMUNAE) == DONE &&
|
||||
// instance->GetBossState(DATA_SETESH) == DONE && instance->GetBossState(DATA_RAJH) == DONE)
|
||||
AddGossipItemFor(player, GOSSIP_MENU_HOO_LIFT, GOSSIP_OPTION_HOO_LIFT_THIRD_FLOOR, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
|
||||
SendGossipMenuFor(player, GOSSIP_NPC_TEXT_CHOOSE_A_DESTINATION, me->GetGUID());
|
||||
@@ -108,7 +108,10 @@ struct go_hoo_the_makers_lift_controller : public GameObjectAI
|
||||
if (!elevator)
|
||||
return true;
|
||||
|
||||
elevator->SetTransportState(GO_STATE_TRANSPORT_STOPPED, action);
|
||||
if (action == 0 && elevator->GetGoState() >= GO_STATE_TRANSPORT_STOPPED + 2)
|
||||
elevator->SetTransportState(GO_STATE_TRANSPORT_ACTIVE);
|
||||
else
|
||||
elevator->SetTransportState(GO_STATE_TRANSPORT_STOPPED, action);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user