Skip to content

Commit

Permalink
Dodgeball: Fixed sizing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffyXVI committed Apr 20, 2019
1 parent 99b4368 commit ff5db3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fluffy_dodgeball/entities/entities/db_dodgeball.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ function ENT:Initialize()
self:SetModel( "models/Combine_Helicopter/helicopter_bomb01.mdl" )

local size = self.Size
self:PhysicsInitSphere(size, "metal_bouncy")
self:SetCollisionBounds(Vector(-size, -size, -size), Vector(size, size, size))
local hsize = self.Size/2
self:PhysicsInitSphere(hsize, "metal_bouncy")
self:SetCollisionBounds(Vector(-hsize, -hsize, -hsize), Vector(hsize, hsize, hsize))
self:PhysWake()
end

Expand Down

0 comments on commit ff5db3d

Please sign in to comment.