CFuncVPhysicsClip
(Redirected from Func clip vphysics)
Jump to navigation
Jump to search
Code classes:
CFuncVPhysicsClip
CBaseEntity
(all ents)
CFuncVPhysicsClip
is a code class in all Source games.
Classnames:
func_clip_vphysics
- A brush which is only solid to VPhysics objects. Hull-simulated objects (QPhysics, such asplayer
s) can pass through.
Bug: Start Disabled is not present in code. Use a logic_auto
to Disable it. A code fix is available below.
Note: func_clip_vphysics
es that are compiled into entity groups are converted to the entity script_clip_vphysics
.
Keyvalues[edit | edit source]
- Filter Name
(filtername)
<filterclass>
- Filter to use to see if activator collides with this entity.
- Start Disabled
(StartDisabled)
<boolean>
- Stay inactive until Enabled. Only available if you use the code fix!
Inputs[edit | edit source]
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.
Adding StartDisabled[edit | edit source]
By default, StartDisabled is unsupported by this entity, but this can easily be corrected.
Find this line in the DataDesc, in bmodels.cpp. It should be at line 1397:
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" ),
If you're using a stock FGD, no changes to it are necessary since the keyvalue was already included.