Func clip vphysics

From Valve Developer Community
Revision as of 05:12, 6 October 2018 by Pinsplash (talk | contribs) (updates)
Jump to navigation Jump to search
English (en)Translate (Translate)

Template:Base brush It is considered solid to VPhysics objects (such as a prop_physics). QPhysics objects (such as players) can pass freely.

Icon-Bug.pngBug:Start Disabled is not present in code. Use a logic_auto to Disable it. A code fix is available below.  [todo tested in ?]
C++ In code, it is represented by theCFuncVPhysicsClipclass, defined in thebmodels.cppfile.

Keyvalues

Filter Name (filtername) ([todo internal name (i)]) <filter>
Filter to use to see if activator collides with this entity.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs

Adding StartDisabled

By default, StartDisabled is unsupported by this entity, but this can be easily corrected in code.

Find this line in the DataDesc, in bmodels.cpp. It should be at line 1358:

DEFINE_FIELD( m_bDisabled, FIELD_BOOLEAN ),

Change DEFINE_FIELD to DEFINE_KEYFIELD, and add "StartDisabled" as the last parameter.

DEFINE_KEYFIELD( m_bDisabled, FIELD_BOOLEAN, "StartDisabled" ),