Prop physics multiplayer: Difference between revisions
Jump to navigation
Jump to search
Note:Page left for viewable history, content moved to prop_physics
Note:Page left for viewable history, content moved to prop_physics
Note:Page left for viewable history, content moved to prop_physics
Note:Page left for viewable history, content moved to prop_physics
m (Category:Physics) |
mNo edit summary |
||
Line 6: | Line 6: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Physics Mode|choices|Sets the physics mode used by the prop.}} | |||
: {{physicsmode choices}} | : {{physicsmode choices}} | ||
{{KV RenderFields}} | {{KV RenderFields}} | ||
Line 14: | Line 12: | ||
== Flags == | == Flags == | ||
{{Fl BasePropPhysics}} | {{Fl BasePropPhysics}} | ||
== Inputs == | == Inputs == | ||
{{IO|Ignite|Ignite, burst into flames.}} | |||
{{IO|IgniteLifetime|<code>Ignite</code> with the given lifetime. {{todo|Before the flames extinguish, or before health reaches zero?}}|param=float}} | |||
{{IO|IgniteNumHitboxFires|<code>Ignite</code> with the given number of hitbox fires.|param=integer}} | |||
{{IO|IgniteHitboxFireScale|<code>Ignite</code> with the given hitbox fire scale.|param=float}} | |||
{{I BasePropPhysics}} | |||
{{I RenderFields}} | {{I RenderFields}} | ||
== Outputs == | == Outputs == | ||
{{O BasePropPhysics}} | {{O BasePropPhysics}} | ||
[[Category:Physics]] | [[Category:Physics]] |
Revision as of 15:52, 28 July 2011
Template:Base point It is identical to prop_physics except that it bounces away from collision (if sv_turbophysics is enabled), which helps to avoid the prediction errors that normal physics objects typically generate. Template:Wrongtitle
See also
- Alternate Multiplayer Physics - an article on modifying the source code to this entity.
Keyvalues
- Physics Mode ([todo internal name (i)]) <choices>
- Sets the physics mode used by the prop.
Number | Name | Description |
---|---|---|
1 | Solid, Server-side | Solid, pushes the player away. |
2 | Non-Solid, Server-side | Non-solid, but gets pushed away by the player. |
3 | Non-Solid, Client-side | Non-solid, clientside simulated only. |
RenderFields:
- Render Mode (rendermode) <byte choices>
- Set a non-standard rendering mode on this entity.
Render Modes
- Render FX (renderfx) <byte choices>
- Various somewhat legacy alpha effects. See render effects.
- Render Amount / Transparency (renderamt) <byte>
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <color255>
- Color tint.

Flags

Inputs
- Ignite
- Ignite, burst into flames.
- IgniteLifetime <float >
Ignite
with the given lifetime.Todo: Before the flames extinguish, or before health reaches zero?
- IgniteNumHitboxFires <integer >
Ignite
with the given number of hitbox fires.
- IgniteHitboxFireScale <float >
Ignite
with the given hitbox fire scale.

RenderFields:
- Alpha <integer 0–255>
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its
rendermode
set to a number other than0
.
- Color <color255 >
- Sets an RGB color for the entity.
Outputs
