Server: Add hlrendermode hack for FTE

This commit is contained in:
moto 2022-07-10 11:03:29 -04:00
parent 68a8fcb4ac
commit 216d6124a4
2 changed files with 17 additions and 1 deletions

View file

@ -597,6 +597,10 @@ void() func_door =
// the sizes can be detected properly. // the sizes can be detected properly.
self.think = LinkDoors; self.think = LinkDoors;
self.nextthink = self.ltime + 0.1; self.nextthink = self.ltime + 0.1;
#ifdef PC
HalfLife_DoRender();
#endif
}; };
void() func_door_nzp = void() func_door_nzp =
@ -693,4 +697,8 @@ void() func_door_nzp =
// the sizes can be detected properly. // the sizes can be detected properly.
self.think = LinkDoors; self.think = LinkDoors;
self.nextthink = self.ltime + 0.1; self.nextthink = self.ltime + 0.1;
};
#ifdef PC
HalfLife_DoRender();
#endif
};

View file

@ -34,6 +34,10 @@ void() func_wall =
self.movetype = MOVETYPE_PUSH; // so it doesn't get pushed by anything self.movetype = MOVETYPE_PUSH; // so it doesn't get pushed by anything
self.solid = SOLID_BSP; self.solid = SOLID_BSP;
setmodel (self, self.model); setmodel (self, self.model);
#ifdef PC
HalfLife_DoRender();
#endif
}; };
void() func_illusionary = void() func_illusionary =
@ -193,6 +197,10 @@ void() func_button =
self.pos1 = self.origin; self.pos1 = self.origin;
self.pos2 = self.pos1 + self.movedir*(fabs(self.movedir*self.size) - self.lip); self.pos2 = self.pos1 + self.movedir*(fabs(self.movedir*self.size) - self.lip);
#ifdef PC
HalfLife_DoRender();
#endif
}; };
void() flame_update = { void() flame_update = {