Func rotating: Difference between revisions
Jump to navigation
Jump to search
Note:This entity behaves strangely in TF2. If you parent an entity to a func_rotating it will not work.
(Compare with) |
Gtamike TSGK (talk | contribs) mNo edit summary |
||
Line 54: | Line 54: | ||
{{IO|OnGetSpeed|Fired when the <code>GetSpeed</code> input is called. The current speed of the func_rotating is passed with this output.|param=integer|since=p2}} | {{IO|OnGetSpeed|Fired when the <code>GetSpeed</code> input is called. The current speed of the func_rotating is passed with this output.|param=integer|since=p2}} | ||
{{O Targetname}} | {{O Targetname}} | ||
== Bug == | |||
There sames to be a new bug from one of Valves server updates for Orange Box Games. (HL2DM, CSS, TF2) | |||
The console may spam this type of message "Bad SetLocalAngles (0.000000,-3601.493652,0.000000) on func_rotating. | |||
This will give the player small lag spikes depending on the number of func_rotating and speed its rotating. | |||
Link References | |||
http://forums.nom-nom-nom.us/topic/15100-july-29-tf2-update/page__st__20 | |||
http://webcache.googleusercontent.com/search?q=cache:XUVAgPBiRlsJ:forum.i3d.net/1297782-post4.html+Bad+SetLocalAngles+on+func_rotating&cd=3&hl=en&ct=clnk&gl=uk | |||
http://lmgtfy.com/?q=Bad+SetLocalAngles+ |
Revision as of 17:04, 6 October 2011
Template:Base brush It is used to create rotating brushes. Compare with func_door_rotating.

Keyvalues
- Max Rotation Speed ([todo internal name (i)]) <integer>
- The maximum rotation speed of the brushes, in degrees per second.
- Friction (0 - 100%) ([todo internal name (i)]) <integer>
- The amount of rotational friction. Value must be between 0 and 100 %.
- Minimum Light Level ([todo internal name (i)]) <string>
- The minimum level of ambient light that hits this brush.
- Blocking Damage ([todo internal name (i)]) <integer>
- Damage done to any entity that blocks the rotation, per frame.
- Solid Type ([todo internal name (i)]) <choices>
- Brush solidity type
- 0 : VPhysics
- 1 : BSP
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Origin:
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
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.
Shadow:
- Disable Shadows (disableshadows) <boolean>
- Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
- Disable Receiving Shadows (disablereceiveshadows) <boolean>
- Prevent the entity from receiving dynamic shadows on itself.
- Shadow Cast Distance (shadowcastdist) <integer> !FGD
- Sets how far the entity casts dynamic shadows. 0 means default distance from the shadow_control entity.
- Disable Shadow Depth (disableshadowdepth) <boolean> (in all games since
)
- Used to disable rendering into shadow depth (for projected textures) for this entity.
- Disable flashlight (disableflashlight) <boolean> (in all games since
)
- Used to disable projected texture lighting and shadows on this entity.
- Projected Texture Cache (shadowdepthnocache) <integer choices> (in all games since
)
- Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
Choices - 0 : Default
- 1 : No cache - render every frame
- 2 : Cache it - render only once
- Render in Fast Reflections (drawinfastreflection) <boolean> (in all games since
)
- If enabled, this entity will render in fast water reflections (i.e. when a water material specifies
$reflectonlymarkedentities
) and in the world impostor pass.
Flags
- 1 : Start ON
- 2 : Reverse Direction
- 4 : X Axis
- 8 : Y Axis
- 16 : Acc/Dcc
- 32 : Fan Pain
- 64 : Not Solid
- 128 : Small Sound Radius
- 256 : Medium Sound Radius
- 512 : Large Sound Radius
- 1024 : Client-side Animation Template:L4D add
Inputs
- SetSpeed <integer >
- Set the speed as a ratio of the specified Max Rotation Speed, where 0 is stopped and 1 is the Max Rotation Speed. Negative values rotate backwards.
- Start
- Start the rotator rotating.
- Stop
- Stop the rotator from rotating.
- StopAtStartPos
Stop
the rotator from rotating when it gets around to the start position again (on its rotation axis).
- StartForward
- Start the rotator rotating forward at maximum speed.
- StartBackward
- Start the rotator rotating backward at maximum speed.
- Toggle
- Toggle the rotator between rotating and not rotating.
- Reverse
- Reverse the direction of rotation of the rotator, preserving the current speed.
- SnapToStartPos (in all games since
)
- Snap to the initial position and stop moving.
- GetSpeed (in all games since
)
- Causes the func_rotating to fire its
OnGetSpeed
output with its current speed.
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
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.
Shadow:
- DisableShadow
- Turn dynamic shadows off for this entity. Identical to applying EF_NOSHADOW.
- EnableShadow
- Turn dynamic shadows on for this entity.
- DisableReceivingFlashlight (in all games since
)
- This object will not receive light or shadows from projected textures.
- EnableReceivingFlashlight (in all games since
)
- This object may receive light or shadows from projected textures.
Reflection:
- DisableDrawInFastReflection (in all games since
)
- Turns off rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
- EnableDrawInFastReflection (in all games since
)
- Turn on rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
Outputs
- OnGetSpeed <integer > (in all games since
)
- Fired when the
GetSpeed
input is called. The current speed of the func_rotating is passed with this output.
Bug
There sames to be a new bug from one of Valves server updates for Orange Box Games. (HL2DM, CSS, TF2) The console may spam this type of message "Bad SetLocalAngles (0.000000,-3601.493652,0.000000) on func_rotating. This will give the player small lag spikes depending on the number of func_rotating and speed its rotating.
Link References http://forums.nom-nom-nom.us/topic/15100-july-29-tf2-update/page__st__20