Template:I BasePropPhysics: Difference between revisions
Jump to navigation
Jump to search
Kestrelguy (talk | contribs) m (added language bar.) |
Kestrelguy (talk | contribs) m (can tell it to mark all inputs as !FGD.) |
||
Line 1: | Line 1: | ||
{{lang|{{FULLPAGENAME}}}} | {{lang|{{FULLPAGENAME}}}} | ||
* {{param|nohl2 | * {{param|nohl2}} — If nonzero, hides {{ent|weapon_physcannon}}-related inputs. | ||
* {{param|nofgd}} — If nonzero, marks all inputs as !FGD.}} | |||
<onlyinclude>{{minititle|BasePropPhysics}} | <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.|nofgd={{{nofgd|}}}}} | ||
{{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.|nofgd={{{nofgd|}}}}} | ||
{{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>.|nofgd={{{nofgd|}}}}} | ||
{{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.|nofgd={{{nofgd|}}}}} | ||
{{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]] | {{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>).|nofgd={{{nofgd|}}}}}</onlyinclude>[[Category:Input Templates|BasePropPhysics]] |
Revision as of 21:35, 18 May 2022
- {{{nohl2}}} — If nonzero, hides weapon_physcannon-related inputs.
- {{{nofgd}}} — If nonzero, marks all inputs as !FGD.}}
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
).