mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
breakout possessor from char comp (#606)
* breakout possessor from char comp Use the correct component for possessor cleanup scirps that were using possessor improperly beginnings of mounts * fix comments added bounds check
This commit is contained in:
@@ -107,9 +107,12 @@ void SGCannon::OnActivityStateChangeRequest(Entity *self, LWOOBJID senderID, int
|
||||
|
||||
if (characterComponent != nullptr) {
|
||||
characterComponent->SetIsRacing(true);
|
||||
characterComponent->SetVehicleObjectID(self->GetObjectID());
|
||||
characterComponent->SetPossessableType(0);
|
||||
characterComponent->SetCurrentActivity(2);
|
||||
auto possessor = player->GetComponent<PossessorComponent>();
|
||||
if(possessor) {
|
||||
possessor->SetPossessable(self->GetObjectID());
|
||||
possessor->SetPossessableType(0);
|
||||
}
|
||||
|
||||
EntityManager::Instance()->SerializeEntity(player);
|
||||
}
|
||||
|
Reference in New Issue
Block a user