Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/entities/gmod_wire_gpu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
end

function ENT:UpdateClientMonitorState()
umsg.Start("wire_gpu_monitorstate")

Check warning on line 39 in lua/entities/gmod_wire_gpu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
umsg.Short(#self.Monitors)
for idx=1,#self.Monitors do
Expand Down Expand Up @@ -65,7 +65,7 @@
function()
if not self:IsValid() then return end

umsg.Start("wire_gpu_memorymodel")

Check warning on line 68 in lua/entities/gmod_wire_gpu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
umsg.Long (self.RAMSize)
umsg.Float(self.SerialNo)
Expand All @@ -81,7 +81,7 @@
function()
if not self:IsValid() then return end

umsg.Start("wire_gpu_extensions")

Check warning on line 84 in lua/entities/gmod_wire_gpu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
umsg.String(self.ZVMExtensions)
umsg.End()
Expand Down Expand Up @@ -113,7 +113,6 @@
end
end
hook.Add("PlayerInitialSpawn", "GPUPlayerRespawn", GPU_PlayerRespawn)
concommand.Add("wire_gpu_resendcache", GPU_PlayerRespawn)



Expand Down Expand Up @@ -370,7 +369,7 @@
end
local cpos = WorldToLocal(trace.HitPos, Angle(), pos, ang)
local cx = 0.5+cpos.x/(monitor.RS*(512/monitor.RatioX))
local cy = 0.5-cpos.y/(monitor.RS*(512))

Check warning on line 372 in lua/entities/gmod_wire_gpu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Unnecessary parentheses"

Unnecessary parentheses

self.Memory[65505] = cx
self.Memory[65504] = cy
Expand Down
2 changes: 0 additions & 2 deletions lua/entities/gmod_wire_spu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
function()
if not self:IsValid() then return end

umsg.Start("wire_spu_soundsources")

Check warning on line 54 in lua/entities/gmod_wire_spu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
for i=0,WireSPU_MaxChannels-1 do
umsg.Long(self.SoundSources[i]:EntIndex())
Expand Down Expand Up @@ -94,7 +94,7 @@
function()
if not self:IsValid() then return end

umsg.Start("wire_spu_memorymodel")

Check warning on line 97 in lua/entities/gmod_wire_spu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
umsg.Long (self.RAMSize)
umsg.Float(self.SerialNo)
Expand All @@ -110,7 +110,7 @@
function()
if not self:IsValid() then return end

umsg.Start("wire_spu_extensions")

Check warning on line 113 in lua/entities/gmod_wire_spu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
umsg.String(self.ZVMExtensions)
umsg.End()
Expand Down Expand Up @@ -143,8 +143,6 @@
end
end
hook.Add("PlayerInitialSpawn", "SPUPlayerRespawn", SPU_PlayerRespawn)
concommand.Add("wire_spu_resendcache", SPU_PlayerRespawn)


--------------------------------------------------------------------------------
-- Read cell from SPU memory
Expand Down Expand Up @@ -337,7 +335,7 @@

-- Send update to all clients
if soundEmittersChanged then
umsg.Start("wire_spu_soundstate")

Check warning on line 338 in lua/entities/gmod_wire_spu/init.lua

View workflow job for this annotation

GitHub Actions / lint

"Deprecated"

Deprecated: Use net messages.
umsg.Long(self:EntIndex())
umsg.Short(#self.SoundEmitters)
for idx=1,#self.SoundEmitters do
Expand Down
Loading