예제 #1
0
파일: cg_lents.cpp 프로젝트: QaleQ/racemod
/*
* CG_ElectroTrail2
*/
void CG_ElectroTrail2( const vec3_t start, const vec3_t end, int team )
{
	vec4_t color = { 1.0f, 1.0f, 1.0f, 1.0f };

	if( cg_ebbeam_time->value < 0.05f ) {
		return;
	}

	if( cg_teamColoredBeams->integer && ( ( team == TEAM_ALPHA ) || ( team == TEAM_BETA ) ) ) {
		CG_TeamColor( team, color );
	}

	if( cg_ebbeam_old->integer )
	{
		CG_ElectroPolyBeam( start, end, team );
		CG_ElectroIonsTrail( start, end, color );
	}
	else
	{
		CG_ElectroPolyBeam(start, end, team);
		CG_ElectroRings( start, end, color );
		CG_ElectroIonsTrail2( start, end, color );
	}
}
예제 #2
0
/*
* CG_ElectroTrail2
*/
void CG_ElectroTrail2( vec3_t start, vec3_t end, int team )
{
	CG_ElectroPolyBeam( start, end, team );
	CG_ElectroIonsTrail( start, end );
}