Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Keyframe rope
From HalfLife 2 Knowledge Base
Contents |
[edit]
keyframe_rope
Source(core) KeyFrame Entity
[edit]
description
A node entity that marks a point in a rope. The first node in the rope should be a move_rope, followed by 1 or more keyframe_ropes.
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Parent parentname(target_destination)
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. - Pitch Yaw Roll (Y Z X) angles(angle) - default: 0 0 0
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. - Next KeyFrame NextKey(target_destination)
Name of the next keyframe along this keyframe path. - Speed (units per second) MoveSpeed(integer) - default: 64
- Slack Slack(integer) - default: 25
How much extra length the rope has (by default it has the length between its two endpoints in the editor). - Type Type(choices)
- 0 - Rope
- 1 - Semi-rigid
- 2 - Rigid
- Subdivision Subdiv(integer) - default: 2
Number of subdivisions between each rope segment. Maximum value is 8. Higher values make smoother ropes, but are slower to render. - Barbed Barbed(choices) - default: Test effect that makes the rope look sharper and more barbed.
- 0 - No
- 1 - Yes
- Width (1-64) Width(string) - default: 2
Width of the rope. - Texture Scale TextureScale(string) - default: 1
This changes the texture resolution. The default resolution is 4 pixels per inch. Larger values stretch the texture and smaller values scrunch it up. - Collide with world Collide(choices)
- 0 - No
- 1 - Yes
- Start Dangling Dangling(choices) - default: When set to Yes, the rope starts out detached from its target endpoint.
- 0 - No
- 1 - Yes
- Breakable Breakable(choices) - default: When set to yes, the rope can be detached from either endpoint when shot.
- 0 - No
- 1 - Yes
- Rope Material RopeMaterial(material) - default: cable/cable.vmt
The material to use when rendering the rope.
[edit]
spawn flags
- 1: Auto Resize - default: OFF
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - SetParent(string)
Changes the entity's parent in the movement hierarchy. - SetParentAttachment(string)
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. - ClearParent(void)
Removes this entity from the the movement hierarchy, leaving it free to move independently. - SetScrollSpeed(float)
Set the speed at which the texture scrolls. - SetForce(string)
Apply a force instantaneously to the rope. The parameter should be a vector containing the force to be applied (X Y Z). - Break(void)
Break the rope, if it's marked to do so.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input.
[edit]
related tutorials
Submit your tutorial for keyframe_rope

