• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] A question regarding transport gameobjects

Status
Not open for further replies.

kiantos

Emulation Addict
Hi, I am trying to find out how gameobjects such as Deeprun Tram subway move exactly. Here is what I have done. I went through the TC solution and searched for Deeprun, Subway, and Tram and could not land on any code. So, I went into the database and queried the subway objects in the gameobjects table. Then, I used the GUIDs and started looking for those in the TC solution. Again, could not find anything. I wonder if anyone could point me in the right direction. Thank you.
 

Rochet2

Moderator / Eluna Dev
things like the tram are a mechanic in the game. A single tram is not coded, the whole mechanic is.
All trams etc are game object type "transport" which means that the mechanic is coded for transport type gameobjects.
Try searching with GAMEOBJECT_TYPE_TRANSPORT, an ulduar tram (194675) for example is this type.

The way the gameobjects (probably) work is by having the animation and all client side, but the animation position values come/are updated from the server.
The server controls the player positions calculated from the position values of the player and of the animation.
 

kiantos

Emulation Addict
Toxicwaste, thanks a lot. I will be waiting for your reply.

Rochet2, thanks. Though, I am looking for some specific information.

From my understanding the database contains 6 entries of Subway object in the gameobject table. Each tram consists of 3 Subways and there are two trams in there. I tried finding the connection between the database and the actual coding without luck.

I have searched on the other forums and I found the suggestions regarding checking other transports such as ulduar tram and gunship encounter. I am not sure if the Mimiron tram is even coded on the current TC core. I tried looking for the Mimiron tram as suggested. Though, I only found around three lines:

ObjectGuid MimironTramGUID;
---
case GO_MIMIRON_TRAM:
MimironTramGUID = gameObject->GetGUID();

Nothing else. MimironTramGUID is not referenced by any code. I found an old custom ulduar script that is said to have the tram somehow working. Though, it did not make sense to me.
 
Status
Not open for further replies.
Top