()
| 1109 | * Emits all entities, particles, and lights to the refresh =============== |
| 1110 | */ |
| 1111 | static void AddEntities() { |
| 1112 | if (ClientGlobals.cls.state != Defines.ca_active) |
| 1113 | return; |
| 1114 | |
| 1115 | if (ClientGlobals.cl.time > ClientGlobals.cl.frame.servertime) { |
| 1116 | if (ClientGlobals.cl_showclamp.value != 0) |
| 1117 | Com.Printf("high clamp " + (ClientGlobals.cl.time - ClientGlobals.cl.frame.servertime) + "\n"); |
| 1118 | ClientGlobals.cl.time = ClientGlobals.cl.frame.servertime; |
| 1119 | ClientGlobals.cl.lerpfrac = 1.0f; |
| 1120 | } else if (ClientGlobals.cl.time < ClientGlobals.cl.frame.servertime - 100) { |
| 1121 | if (ClientGlobals.cl_showclamp.value != 0) |
| 1122 | Com.Printf("low clamp " + (ClientGlobals.cl.frame.servertime - 100 - ClientGlobals.cl.time) + "\n"); |
| 1123 | ClientGlobals.cl.time = ClientGlobals.cl.frame.servertime - 100; |
| 1124 | ClientGlobals.cl.lerpfrac = 0; |
| 1125 | } else |
| 1126 | ClientGlobals.cl.lerpfrac = 1.0f - (ClientGlobals.cl.frame.servertime - ClientGlobals.cl.time) * 0.01f; |
| 1127 | |
| 1128 | if (ClientGlobals.cl_timedemo.value != 0) |
| 1129 | ClientGlobals.cl.lerpfrac = 1.0f; |
| 1130 | |
| 1131 | /* |
| 1132 | * is ok.. CL_AddPacketEntities (cl.frame); CL_AddTEnts (); |
| 1133 | * CL_AddParticles (); CL_AddDLights (); CL_AddLightStyles (); |
| 1134 | */ |
| 1135 | |
| 1136 | CalcViewValues(); |
| 1137 | // PMM - moved this here so the heat beam has the right values for the |
| 1138 | // vieworg, and can lock the beam to the gun |
| 1139 | AddPacketEntities(ClientGlobals.cl.frame); |
| 1140 | |
| 1141 | CL_tent.AddTEnts(); |
| 1142 | CL_fx.AddParticles(); |
| 1143 | CL_fx.AddDLights(); |
| 1144 | CL_fx.AddLightStyles(); |
| 1145 | } |
| 1146 | |
| 1147 | /* |
| 1148 | * =============== CL_GetEntitySoundOrigin |
no test coverage detected