Game Development Community

Multiplayer with different player shape

by Juan Lemus · in Torque 3D Professional · 04/19/2010 (2:34 pm) · 4 replies

Hi guys! Every time I host a Multiplayer session in my LAN network every player has my player shape. The weird thing is that we all have different shapes assign in our player datablock. Let’s say I want to play as Gideon and my friend wants to play as BoomBot. In player.cs I assign Gideon as my shapeFile, and my friends assigns BoomBot in his player.cs as his shapeFile. But every time we connect to the same game he ends up with Gideon instead of BoomBot. Is there a way I can host a multiplayer session and have other player use different players shapes?

#1
04/19/2010 (4:49 pm)
Are the datablocks all named the same? The datablocks transmitted from the server supersede those on the clients.
#2
04/20/2010 (9:38 am)
The datablocks are the same except for the shapeFile they are assigning. One is assigning Gideon as the and the other one is assigning BoomBot. Is there a way to accomplish what we want to do?
#3
04/22/2010 (7:44 pm)
Anybody?
#4
04/22/2010 (11:07 pm)
If you've made two separate datablocks (one for BoomBot and one for Gideon), you can edit the field in your spawnpoints saying spawnDatablock to equal the datablock of either Gideon or BoomBot. Then if you have two spawn points, one assigned to Gideon and one to BoomBot, the spawning players will spawn with different players. The minus by using this method is that you cannot decide whether or not to spawn as Gideon or BoomBot. It'll be more random.

As for the mechanism of choosing who to play as, you might have to figure that out yourself (unless someone in the forum has such a code to share) (also, TGEA has such a code, but I see you don't own TGEA =/).