Func clip vphysics: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(-added class hierarchy)
Line 1: Line 1:
{{CD|CFuncVPhysicsClip|file1=bmodels.cpp}}
{{entity|func_clip_vphysics|type=e2}} It is considered solid to [[VPhysics]] objects (such as a {{ent|prop_physics}}). [[QPhysics]] objects (such as {{ent|player}}s) can pass freely. It can also use a filter to only collide with specific objects.
{{entity|func_clip_vphysics|type=e2}} It is considered solid to [[VPhysics]] objects (such as a {{ent|prop_physics}}). [[QPhysics]] objects (such as {{ent|player}}s) can pass freely. It can also use a filter to only collide with specific objects.
{{bugfix|<code>StartDisabled</code> is a keyvalue in Hammer, but it is not present in the code. Use a {{ent|logic_auto}} and the <code>Disable</code> input instead.|In <code>bmodels.cpp</code>, find <code>BEGIN_DATADESC( CFuncVPhysicsClip )</code> and replace <code>DEFINE_FIELD( m_bDisabled, FIELD_BOOLEAN )</code> with <code>DEFINE_KEYFIELD( m_bDisabled, FIELD_BOOLEAN, "StartDisabled" )</code>. No changes to the FGDs or existing maps are required.|code}}
{{bugfix|<code>StartDisabled</code> is a keyvalue in Hammer, but it is not present in the code. Use a {{ent|logic_auto}} and the <code>Disable</code> input instead.|In <code>bmodels.cpp</code>, find <code>BEGIN_DATADESC( CFuncVPhysicsClip )</code> and replace <code>DEFINE_FIELD( m_bDisabled, FIELD_BOOLEAN )</code> with <code>DEFINE_KEYFIELD( m_bDisabled, FIELD_BOOLEAN, "StartDisabled" )</code>. No changes to the FGDs or existing maps are required.|code}}
{{code class|CFuncVPhysicsClip|bmodels.cpp}}


==Keyvalues==
==Keyvalues==

Revision as of 09:39, 6 August 2023

C++ Class hierarchy
CFuncVPhysicsClip
CBaseEntity
C++ bmodels.cpp

Template:Entity It is considered solid to VPhysics objects (such as a prop_physics). QPhysics objects (such as players) can pass freely. It can also use a filter to only collide with specific objects.

Icon-Bug.pngBug:StartDisabled is a keyvalue in Hammer, but it is not present in the code. Use a logic_auto and the Disable input instead.  [todo tested in ?]
Cpp.pngCode Fix:In bmodels.cpp, find BEGIN_DATADESC( CFuncVPhysicsClip ) and replace DEFINE_FIELD( m_bDisabled, FIELD_BOOLEAN ) with DEFINE_KEYFIELD( m_bDisabled, FIELD_BOOLEAN, "StartDisabled" ). No changes to the FGDs or existing maps are required.

Keyvalues

Filter Name (filtername) <filter>
Filter to use to see if activator collides with this entity.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

EnableDisable:

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