@@ -239,13 +239,13 @@ local function flush_scale_queue(queue, recipient)
239239 net .Start (" wire_holograms_set_scale" )
240240 for _ , plyqueue in pairs (queue ) do
241241 for Holo , scale in pairs (plyqueue ) do
242- net .WriteUInt (Holo .ent :EntIndex (), WireLib . MAX_EDICT_BITS )
242+ net .WriteUInt (Holo .ent :EntIndex (), MAX_EDICT_BITS )
243243 net .WriteFloat (scale .x )
244244 net .WriteFloat (scale .y )
245245 net .WriteFloat (scale .z )
246246 end
247247 end
248- net .WriteUInt (0 , WireLib . MAX_EDICT_BITS )
248+ net .WriteUInt (0 , MAX_EDICT_BITS )
249249 if recipient then net .Send (recipient ) else net .Broadcast () end
250250end
251251
@@ -257,15 +257,15 @@ local function flush_bone_scale_queue(queue, recipient)
257257 for _ , plyqueue in pairs (queue ) do
258258 for Holo , holoqueue in pairs (plyqueue ) do
259259 for bone , scale in pairs (holoqueue ) do
260- net .WriteUInt (Holo .ent :EntIndex (), WireLib . MAX_EDICT_BITS )
260+ net .WriteUInt (Holo .ent :EntIndex (), MAX_EDICT_BITS )
261261 net .WriteUInt (bone + 1 , 9 ) -- using +1 to be able reset holo bones scale with -1 and not use signed int
262262 net .WriteFloat (scale .x )
263263 net .WriteFloat (scale .y )
264264 net .WriteFloat (scale .z )
265265 end
266266 end
267267 end
268- net .WriteUInt (0 , WireLib . MAX_EDICT_BITS )
268+ net .WriteUInt (0 , MAX_EDICT_BITS )
269269 net .WriteUInt (0 , 16 )
270270 if recipient then net .Send (recipient ) else net .Broadcast () end
271271end
@@ -279,7 +279,7 @@ local function flush_clip_queue(queue, recipient)
279279 for Holo ,holoqueue in pairs (plyqueue ) do
280280 for _ , clip in pairs (holoqueue ) do
281281 if clip and clip .index then
282- net .WriteUInt (Holo .ent :EntIndex (), WireLib . MAX_EDICT_BITS )
282+ net .WriteUInt (Holo .ent :EntIndex (), MAX_EDICT_BITS )
283283 net .WriteUInt (clip .index , 4 ) -- 4: absolute highest wire_holograms_max_clips is thus 16
284284 if clip .enabled ~= nil then
285285 net .WriteBool (true )
@@ -288,13 +288,13 @@ local function flush_clip_queue(queue, recipient)
288288 net .WriteBool (false )
289289 net .WriteVector (clip .origin )
290290 net .WriteVector (clip .normal )
291- net .WriteUInt (clip .localentid , WireLib . MAX_EDICT_BITS )
291+ net .WriteUInt (clip .localentid , MAX_EDICT_BITS )
292292 end
293293 end
294294 end
295295 end
296296 end
297- net .WriteUInt (0 , WireLib . MAX_EDICT_BITS )
297+ net .WriteUInt (0 , MAX_EDICT_BITS )
298298 if recipient then net .Send (recipient ) else net .Broadcast () end
299299end
300300
@@ -305,10 +305,10 @@ local function flush_vis_queue()
305305 if IsValid ( ply ) and next (plyqueue ) ~= nil then
306306 net .Start (" wire_holograms_set_visible" )
307307 for Holo ,visible in pairs (plyqueue ) do
308- net .WriteUInt (Holo .ent :EntIndex (), WireLib . MAX_EDICT_BITS )
308+ net .WriteUInt (Holo .ent :EntIndex (), MAX_EDICT_BITS )
309309 net .WriteBit (visible )
310310 end
311- net .WriteUInt (0 , WireLib . MAX_EDICT_BITS )
311+ net .WriteUInt (0 , MAX_EDICT_BITS )
312312 net .Send (ply )
313313 end
314314 end
@@ -320,11 +320,11 @@ local function flush_player_color_queue()
320320 net .Start (" wire_holograms_set_player_color" )
321321 for _ , plyqueue in pairs (player_color_queue ) do
322322 for Holo ,color in pairs (plyqueue ) do
323- net .WriteUInt (Holo .ent :EntIndex (), WireLib . MAX_EDICT_BITS )
323+ net .WriteUInt (Holo .ent :EntIndex (), MAX_EDICT_BITS )
324324 net .WriteVector (color )
325325 end
326326 end
327- net .WriteUInt (0 , WireLib . MAX_EDICT_BITS )
327+ net .WriteUInt (0 , MAX_EDICT_BITS )
328328 net .Broadcast ()
329329end
330330
0 commit comments