Command map icons on multilayered command maps


(Chruker) #1

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:



(WeblionX) #2

I’ve been having this problem myself. It’s nice to see that someone found the cause pf the problem. I’m poking Bani to see if he’ll put it in ETPro, but as he usually does on IRC he has yet to respond.


(Rain) #3

The command map info is sent completely differently in etpro, but I know bani committed something related to this… It looks like the z coord just wasn’t being transmitted at all for ME_CONSTRUCT, ME_DESTRUCT, ME_DESTRUCT_2, and ME_COMMANDMAP_MARKER in etpro.


(WeblionX) #4

Not only did he commit it, but it works. So don’t touch it, Rain! :o