Template:I BasePropPhysics: Difference between revisions
Jump to navigation
Jump to search
Deprecated (talk | contribs) m (Added to Input Templates category) |
Kestrelguy (talk | contribs) m (added language bar.) |
||
Line 1: | Line 1: | ||
{{minititle|BasePropPhysics}} | {{lang|{{FULLPAGENAME}}}} | ||
* {{param|nohl2|0}} — If nonzero, hides {{ent|weapon_physcannon}}-related inputs. | |||
<onlyinclude>{{minititle|BasePropPhysics}} | |||
{{IO|Sleep|Tell the prop to quit moving. Any physics forces (excluding gravity and water buoyancy) will cause the object to resume moving as usual. Sleeping also occurs automatically when the object has no physics forces to keep it awake, and when it is no longer moving a noticeable amount.}} | {{IO|Sleep|Tell the prop to quit moving. Any physics forces (excluding gravity and water buoyancy) will cause the object to resume moving as usual. Sleeping also occurs automatically when the object has no physics forces to keep it awake, and when it is no longer moving a noticeable amount.}} | ||
{{IO|Wake|If the object was told to sleep, tell it to start moving again.}} | {{IO|Wake|If the object was told to sleep, tell it to start moving again.}} | ||
{{IO|DisableMotion|Tell the object to stop moving completely. No physics forces will re-enable motion, not even <code>Wake</code>.}} | {{IO|DisableMotion|Tell the object to stop moving completely. No physics forces will re-enable motion, not even <code>Wake</code>.}} | ||
{{IO|EnableMotion|If the object's motion has been disabled entirely, tell it to resume movement as usual. This will also <code>Wake</code> the object, if it is <code>Sleep</code>ing.}} | {{IO|EnableMotion|If the object's motion has been disabled entirely, tell it to resume movement as usual. This will also <code>Wake</code> the object, if it is <code>Sleep</code>ing.}} | ||
{{IO|DisableFloating|If the object would normally float when in water, tell it to | {{IO|DisableFloating|If the object would normally float when in water, tell it not to float. There seems to be no way to re-enable floating behavior, but programming a method to do this should be fairly simple (<code>CALLBACK_DO_FLUID_SIMULATION</code>).}}</onlyinclude>[[Category:Input Templates|BasePropPhysics]] | ||
[[Category:Input Templates|BasePropPhysics]] | |||
Revision as of 09:37, 4 May 2022
- {{{nohl2|0}}} — If nonzero, hides weapon_physcannon-related inputs.
BasePropPhysics:
- Sleep
- Tell the prop to quit moving. Any physics forces (excluding gravity and water buoyancy) will cause the object to resume moving as usual. Sleeping also occurs automatically when the object has no physics forces to keep it awake, and when it is no longer moving a noticeable amount.
- Wake
- If the object was told to sleep, tell it to start moving again.
- DisableMotion
- Tell the object to stop moving completely. No physics forces will re-enable motion, not even
Wake
.
- EnableMotion
- If the object's motion has been disabled entirely, tell it to resume movement as usual. This will also
Wake
the object, if it isSleep
ing.
- DisableFloating
- If the object would normally float when in water, tell it not to float. There seems to be no way to re-enable floating behavior, but programming a method to do this should be fairly simple (
CALLBACK_DO_FLUID_SIMULATION
).