Permalink
Browse files

Static camera has nocollide by default

  • Loading branch information...
1 parent 3686f7e commit 301346c3bffd2248e468c92d6261e58057380af9 @robotboy655 robotboy655 committed Jan 16, 2014
@@ -74,13 +74,10 @@ function ENT:SetLocked( locked )
self.PhysgunDisabled = true
- local phys = self:GetPhysicsObject()
- if ( phys:IsValid() ) then
- phys:EnableMotion( false )
- end
-
self:SetMoveType( MOVETYPE_NONE )
self:SetSolid( SOLID_BBOX )
+
+ self:SetCollisionGroup( COLLISION_GROUP_WORLD )
else
@@ -17,14 +17,14 @@ local function MakeCamera( ply, key, locked, toggle, Data )
duplicator.DoGeneric( ent, Data )
if ( key ) then
- ent:SetKey( key )
- ent.controlkey = key
-
for id, camera in pairs( ents.FindByClass( "gmod_cameraprop" ) ) do
if ( camera.controlkey && camera.controlkey == key ) then
camera:Remove()
end
end
+
+ ent:SetKey( key )
+ ent.controlkey = key
end
ent:SetPlayer( ply )

0 comments on commit 301346c

Please sign in to comment.