SERVER: Remove PC_fog hack

This commit is contained in:
Steam Deck User 2023-02-07 02:32:14 -05:00
parent 87dde10e3b
commit ab21e3d6e0
2 changed files with 1 additions and 37 deletions

View file

@ -541,10 +541,6 @@ float sndActivCnt;
.float sprintflag;
// PC Fog force
.float PC_fog;
// hl stuff
.float rendermode;
.float renderamt;

View file

@ -487,39 +487,7 @@ void() ClientKill = {};
//called when a client connects to the server
void() ClientConnect =
{
#ifdef FTE
// Maintain old FGD values and just convert them to new ones
//
if (world.fog) {
// Force fog on FTE
if (!world.PC_fog) {
// Don't execute more than once
if (!world_fog) {
string fog_start_end, fog_R, fog_B, fog_G;
// Tokenize our fog
tokenize(world.fog);
// Get values and transmute it a bit if necessary
// Originally: start | end | R | G | B
fog_start_end = ftos(((stof(argv(0))) / stof(argv(1))) / 3.5);
fog_R = ftos(stof(argv(2))/255);
fog_G = ftos(stof(argv(3))/255);
fog_B = ftos(stof(argv(4))/255);
// Restore into our world.fog
world_fog = strcat(fog_start_end, " ", fog_R, " ", fog_G, " ", fog_B);
}
localcmd(strcat("fog ", world_fog));
}
}
#endif // FTE
{
if(cvar("developer") || player_count > 1) {
bprint(PRINT_HIGH, self.netname); //print player name
bprint(PRINT_HIGH, " connected.\n");