mirror of
https://github.com/CFC-Servers/cfc_ulx_commands.git
synced 2025-03-04 03:13:28 -05:00
Improve trainfuck ent speed
This commit is contained in:
parent
952ef7c8c5
commit
41dcbe3602
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user