Func clip vphysics: Difference between revisions
Jump to navigation
Jump to search

Bug:The entity doesn't block players in Counter Strike: Source and Counter Strike: Global Offensive. [todo tested in ?]
Bug:
(Revised article) |
No edit summary |
||
Line 1: | Line 1: | ||
{{lang|Func clip vphysics}} | {{lang|Func clip vphysics}} | ||
{{base brush|func_clip_vphysics}} It is considered solid to [[VPhysics]] objects (such as a {{ent|prop_physics}}). [[QPhysics]] objects (such as {{ent|player}}s) can pass freely.{{confirm}} It can also use a filter to only collide with specific objects. | {{base brush|func_clip_vphysics}} It is considered solid to [[VPhysics]] objects (such as a {{ent|prop_physics}}). [[QPhysics]] objects (such as {{ent|player}}s) can pass freely.{{confirm}} It can also use a filter to only collide with specific objects. | ||
{{bug|The entity doesn't block players in Counter Strike: Source and Counter Strike: Global Offensive.}} | |||
{{bugfix|<code>Start Disabled</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>Start Disabled</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}} | ||
Revision as of 03:06, 12 December 2019


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


Start Disabled
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 ?]Code Fix:In
bmodels.cpp
, findBEGIN_DATADESC( CFuncVPhysicsClip )
and replaceDEFINE_FIELD( m_bDisabled, FIELD_BOOLEAN )
withDEFINE_KEYFIELD( m_bDisabled, FIELD_BOOLEAN, "StartDisabled" )
. No changes to the FGDs or existing maps are required.
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 the
Enable
input).
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.