mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 19:56:38 +00:00
[Dynamic Zones] Implement dz switch id (#2343)
This adds the `dz_switch_id` field to doors and dynamic_zones. It will allow for compasses to be automatically added to dz entrances and will support moving clients to the dz on use without needing to script it. These can be imported for switches/doors from live packet dumps. Also removes compass packet encoders (same struct in all clients)
This commit is contained in:
@@ -195,6 +195,11 @@ void Perl_Expedition_SetSecondsRemaining(Expedition* self, uint32_t seconds_rema
|
||||
self->GetDynamicZone()->SetSecondsRemaining(seconds_remaining);
|
||||
}
|
||||
|
||||
void Perl_Expedition_SetSwitchID(Expedition* self, int dz_switch_id)
|
||||
{
|
||||
self->GetDynamicZone()->SetSwitchID(dz_switch_id, true);
|
||||
}
|
||||
|
||||
void Perl_Expedition_SetZoneInLocation(Expedition* self, float x, float y, float z, float heading)
|
||||
{
|
||||
self->GetDynamicZone()->SetZoneInLocation(x, y, z, heading, true);
|
||||
@@ -250,6 +255,7 @@ void perl_register_expedition()
|
||||
package.add("SetReplayLockoutOnMemberJoin", &Perl_Expedition_SetReplayLockoutOnMemberJoin);
|
||||
package.add("SetSafeReturn", &Perl_Expedition_SetSafeReturn);
|
||||
package.add("SetSecondsRemaining", &Perl_Expedition_SetSecondsRemaining);
|
||||
package.add("SetSwitchID", &Perl_Expedition_SetSwitchID);
|
||||
package.add("SetZoneInLocation", &Perl_Expedition_SetZoneInLocation);
|
||||
package.add("UpdateLockoutDuration", (void(*)(Expedition*, std::string, uint32_t))&Perl_Expedition_UpdateLockoutDuration);
|
||||
package.add("UpdateLockoutDuration", (void(*)(Expedition*, std::string, uint32_t, bool))&Perl_Expedition_UpdateLockoutDuration);
|
||||
|
||||
Reference in New Issue
Block a user