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

Bug:Start Disabled is not present in code. Use a logic_auto to
(Clarifying something I went to the trouble of making a test map to be sure of.) |
(updates) |
||
Line 1: | Line 1: | ||
{{base brush|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. | |||
{{bug|'''Start Disabled''' is not present in code. Use a {{ent|logic_auto}} to <code>Disable</code> it. A code fix is available below.}} | |||
{{bug| | |||
{{code class|CFuncVPhysicsClip|bmodels.cpp}} | |||
== Keyvalues == | ==Keyvalues== | ||
{{KV|Filter Name|filterclass|Filter to use to see if activator collides with | {{KV|Filter Name (filtername)|filterclass|[[Filter]] to use to see if activator collides with this entity.}} | ||
{{KV EnableDisable}} | {{KV EnableDisable}} | ||
{{KV BaseEntity}} | |||
== Inputs == | ==Inputs== | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
{{I BaseEntity}} | |||
== Outputs == | ==Outputs== | ||
{{O | {{O BaseEntity|l4d=1}} | ||
== | ==Adding StartDisabled== | ||
By default, | 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: | |||
<code> | <source lang=cpp>DEFINE_FIELD( m_bDisabled, FIELD_BOOLEAN ),</source> | ||
Change <code>DEFINE_FIELD</code> to <code>DEFINE_KEYFIELD</code>, and add <code>"StartDisabled"</code> as the last parameter. | |||
<source lang=cpp>DEFINE_KEYFIELD( m_bDisabled, FIELD_BOOLEAN, "StartDisabled" ),</source> | |||
</ | |||
[[Category:Physics]] | [[Category:Physics]] |
Revision as of 05:12, 6 October 2018


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

Disable
it. A code fix is available below. [todo tested in ?]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.
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" ),