View Full Version : [SOLVED] A question regarding transport gameobjects
03-24-2015, 02:47 PM
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.
03-24-2015, 02:49 PM
I'll have a look. I am sure there is somewhere around it.
03-24-2015, 03:36 PM
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.
03-24-2015, 05:48 PM
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:
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.