Hi
I’ve been looking into the problem of command map icons for constructibles, destructables and command map marker, not showing on the correct command map, when using multilayered command maps.
The problems appears to be that the server trashes the xyz coords that are used to detect the layer, before sending the command map info to the client.
I got it working by commenting a few lines. In g_teammapdata.c :: G_PushMapEntityToBuffer
switch( mEnt->type ) {
case ME_CONSTRUCT: // Gordon: these ones don't need much info
case ME_DESTRUCT:
case ME_DESTRUCT_2:
case ME_COMMANDMAP_MARKER:
// CHRUKER: These also needs to be selectable displayed on the current command map layer.
// Q_strcat( buffer, size, va(" %i %i", mEnt->type, mEnt->data ) );
// break;
case ME_TANK:
case ME_TANK_DEAD:
and in cg_commandmap.c :: CG_ParseMapEntity
switch( mEnt->type ) {
case ME_CONSTRUCT: // Gordon: these ones don't need much info
case ME_DESTRUCT:
case ME_DESTRUCT_2:
case ME_COMMANDMAP_MARKER:
// CHRUKER: These also needs to be selectable displayed on the current command map layer.
// break;
case ME_TANK:
case ME_TANK_DEAD: