Skip to content

Commit

Permalink
Write CanGib, Ignite, remove now unused data
Browse files Browse the repository at this point in the history
  • Loading branch information
marchc1 committed Sep 2, 2024
1 parent aa73ea8 commit 8db6860
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/acf/damage/debris_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ local function SendQueue()
Network.WriteGrainyAngle(Data.Angles, 8)
Network.WriteGrainyVector(Data.Normal, 8, 1)
net.WriteUInt(Data.Power, 16)
net.WriteBool(Data.CanGib)
net.WriteBool(Data.Ignite)

net.SendPVS(Data.Position)

Expand All @@ -37,9 +39,6 @@ local function DebrisNetter(Entity, Normal, Power, CanGib, Ignite)
ID = Entity:EntIndex(),
Position = Entity:GetPos(),
Angles = Entity:GetAngles(),
Material = Entity:GetMaterial(),
Model = Entity:GetModel(),
Color = Color(New.x, New.y, New.z, Current.a),
Normal = Normal,
Power = Power,
CanGib = CanGib or nil,
Expand Down

0 comments on commit 8db6860

Please sign in to comment.