Improve trainfuck ent speed

This commit is contained in:
Redox 2024-05-28 20:09:27 +02:00 committed by GitHub
parent 952ef7c8c5
commit 41dcbe3602
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,13 @@ function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetCollisionGroup( COLLISION_GROUP_INTERACTIVE_DEBRIS )
self:PhysWake()
local phys = self:GetPhysicsObject()
if IsValid( phys ) then
phys:EnableDrag( false )
phys:SetMass( 50000 )
phys:Wake()
end
end
function ENT:PhysicsCollide( colData )