Should we suppress the default action for this input?
Example
A workaround for weapons created by maps not taking into account spawnflags.
functionSWEP:AcceptInput( name, activator, caller, data )
-- Check for input and spawnflagif ( name =="ConstraintBroken"&&self:HasSpawnFlags( 1 ) ) then-- Freeze the weaponlocal phys =self:GetPhysicsObject()
if ( IsValid( phys ) ) thenphys:EnableMotion( false ) end-- Remove the spawnflag so it doesn't freeze the weapon when it is droppedlocal newflags =bit.band( self:GetSpawnFlags(), bit.bnot( 1 ) )
self:SetKeyValue( "spawnflags", newflags )
endend