Skip to content

Commit

Permalink
Fix zoom networking
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Jun 12, 2024
1 parent d704d3b commit 4f0549b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/entities/acf_vehicle/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ net.Receive("ACF_RequestVehicleInfo", function()
local Pod = net.ReadEntity()
local SequenceID = net.ReadInt(10)
local Offset = net.ReadVector()
local ZoomBehavior = net.ReadUInt(3)
local ZoomBehavior = net.ReadUInt(2)

local Vehicle = Pod:GetParent()

Expand Down
2 changes: 1 addition & 1 deletion lua/entities/acf_vehicle/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ do -- Spawning and Updating
net.WriteEntity(Pod)
net.WriteInt(Vehicle.HandleAnimation(_, Entity:CPPIGetOwner()), 10)
net.WriteVector(Entity.CamOffset)
net.WriteInt(Entity.CamZoom, 3)
net.WriteUInt(Entity.CamZoom, 2)
net.Broadcast()

Pod:SetNoDraw(true)
Expand Down

0 comments on commit 4f0549b

Please sign in to comment.