Menu

#3 Pyramid to point out player cycle

closed
nobody
None
5
2014-08-16
2006-03-01
TD-Linux
No

In multiplayer teamed games, it is sometimes very
difficult to determine which cycle is yours during
the game. This patch addresses that: when there are
more than one player on your team, a gray pyramid
hangs over your cycle to help you figure out which
one is yours :)

The only thing that was changed was in:
void gCycle::Render(const eCamera *cam)
The part that is changed has to do with pyramids.
Here is the very slightly changed code block:
if ( bool(player) )
{
if ( player->IsChatting() )
{
// players that are chatting (and
controlled by the AI) get a yellow pyramid
renderPyramid = true;
colorPyramid.b = 0.0f;
}
else if ( !player->IsActive() )
{
// inactive players get a red
pyramid
renderPyramid = true;
colorPyramid.b = 0.0f;
colorPyramid.g = 0.0f;
}
else if ( cam && cam->Center() ==
this && player->CurrentTeam() &&
player->CurrentTeam()->NumPlayers() > 1 )
{
// render a white pyramid to
highlight which player you are when you are in a team
renderPyramid = true;
alpha = timeout - se_GameTime();
// keep alpha at 0.5
if (alpha < 0.5f)
alpha = 0.5f;
}
}

You can also use the attached file, which is new cvs
as of 2/28/06.

Discussion

  • yarrt

    yarrt - 2006-06-22

    Logged In: YES
    user_id=675293

    bump can someone close this one ?

     
  • Manuel Moos

    Manuel Moos - 2006-06-22
    • status: open --> closed