Tutorial for Colored Quad Team in CTF ( a la lithium2)


 

Posted by VK (193.250.225.*) on March 27, 1999 at 13:24:21:

open up p_view.c anf find : remaining = ent->client->quad_framenum - level.framenum;

look this functions :
{
remaining = ent->client->quad_framenum - level.framenum;
if (remaining > 30 || (remaining & 4) )
add this line in comment->ent->s.effects |= EF_QUAD;
and add this :
///NEW CODE START
{
if (ent->client->resp.ctf_team == CTF_TEAM1)
ent->s.effects |= EF_PENT;
}
{
if (ent->client->resp.ctf_team == CTF_TEAM2)
ent->s.effects |= EF_QUAD;
}
///NEW CODE END
and voila :-)))

Regards
Valerian