mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-05 18:24:12 +00:00
implement jetpack behavior and remove hardcoded jetpacks (#411)
This commit is contained in:
@@ -1000,10 +1000,6 @@ void InventoryComponent::EquipItem(Item* item, const bool skipChecks)
|
||||
{
|
||||
set->OnEquip(lot);
|
||||
}
|
||||
|
||||
if (lot == 1727) GameMessages::SendSetJetpackMode(m_Parent, false, true, false);
|
||||
if (lot == 7292) GameMessages::SendSetJetpackMode(m_Parent, true, true, false);
|
||||
if (lot == 14442) GameMessages::SendSetJetpackMode(m_Parent, false, true, true);
|
||||
|
||||
if (item->GetInfo().isBOE)
|
||||
{
|
||||
@@ -1042,10 +1038,6 @@ void InventoryComponent::UnEquipItem(Item* item)
|
||||
set->OnUnEquip(lot);
|
||||
}
|
||||
|
||||
if (lot == 1727) GameMessages::SendSetJetpackMode(m_Parent, false, false, false);
|
||||
if (lot == 7292) GameMessages::SendSetJetpackMode(m_Parent, true, false, false);
|
||||
if (lot == 14442) GameMessages::SendSetJetpackMode(m_Parent, false, false, true);
|
||||
|
||||
RemoveBuff(item->GetLot());
|
||||
|
||||
RemoveItemSkills(item->GetLot());
|
||||
|
@@ -257,7 +257,7 @@ void RacingControlComponent::LoadPlayerVehicle(Entity *player,
|
||||
m_Parent->GetObjectID(), playerID, UNASSIGNED_SYSTEM_ADDRESS);
|
||||
});
|
||||
|
||||
GameMessages::SendSetJetpackMode(player, false, false, false);
|
||||
GameMessages::SendSetJetPackMode(player, false);
|
||||
|
||||
// Set the vehicle's state.
|
||||
GameMessages::SendNotifyVehicleOfRacingObject(carEntity->GetObjectID(),
|
||||
|
Reference in New Issue
Block a user