Difference between revisions of "Template:KV RopekeyFrame"

From Valve Developer Community
Jump to: navigation, search
m
 
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{kv dxlevelchoice}}
+
{{ScrollBox|title=RopeKeyFrame|
* '''Slack'''
+
{{KV|Slack|integer|How much extra length the rope has (by default it has the length between its two endpoints in the editor).}}
: <integer> How much extra length the rope has (by default it has the length between its two endpoints in the editor).
+
{{KV|Type|choices|Rope type.}}
* '''Type'''
+
:* 0 : Rope
: <choices>
+
:* 1 : Semi-rigid
:{|
+
:* 2 : Rigid
! Literal Value || Description
+
{{KV|Subdivision|integer|Number of subdivisions between each rope segment. Maximum value is 8. Higher values make smoother ropes, but are slower to render.}}
|-
+
{{KV|Barbed|boolean|Test effect that makes the rope look sharper and more barbed.}}
| 0 || Rope
+
{{KV|Width (1-64)|string|Width of the rope. Decimal values lower than 1 may also be used.}}
|-
+
{{KV|Texture Scale|string|This changes the texture resolution. The default resolution is 4 pixels per inch. Larger values stretch the texture and smaller values scrunch it up.}}
| 1 || Semi-rigid
+
{{KV|Collide with world|boolean|If set, the rope collides with world. Ropes never collide with anything else. }}
|-
+
{{KV|Start Dangling|boolean|If set, the rope starts out detached from its target endpoint.}}
| 2 || Rigid
+
{{KV|Breakable|boolean|If set, the rope can be detached from either endpoint when shot. {{note|If collide with world is set, the rope will not appear to break if the endpoint touches world geometry. This includes touching vertices and edges of brushes as well as being placed inside them.}}}}
|}
+
{{KV|Rope Material|material|The material to use when rendering the rope. {{note|Source will not render ropes using the ''cable/chain.vmt'' material.}}}}
* '''Subdiv'''
+
{{KV|Disable Wind|boolean|If set, the rope will no longer act as though it's being affected by wind.}}
: <integer> Number of subdivisions between each rope segment. Maximum value is 8. Higher values make smoother ropes, but are slower to render.
+
{{KV DXLevelChoice}}
* '''Barbed'''
+
}}<noinclude>
: {{boolean}} Test effect that makes the rope look sharper and more barbed.  
+
[[Category:Keyvalue Templates|RopeKeyFrame]]
* '''Width'''
+
</noinclude>
: <integer> Width of the rope.
 
* '''TextureScale'''
 
: <float> 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'''
 
: {{boolean}} If set, collides with world
 
* '''Dangling'''
 
: {{boolean}} If set, the rope starts out detached from its target endpoint.
 
* '''Breakable'''
 
: {{boolean}} If set, the rope can be detached from either endpoint when shot.
 
* '''RopeMaterial'''
 
: <material> The material to use when rendering the rope. Suggested material: cable/cable.vmt
 

Latest revision as of 02:53, 1 February 2012

RopeKeyFrame:

Slack <integer>
How much extra length the rope has (by default it has the length between its two endpoints in the editor).
Type <choices>
Rope type.
  • 0 : Rope
  • 1 : Semi-rigid
  • 2 : Rigid
Subdivision <integer>
Number of subdivisions between each rope segment. Maximum value is 8. Higher values make smoother ropes, but are slower to render.
Barbed <boolean>
Test effect that makes the rope look sharper and more barbed.
Width (1-64) <string>
Width of the rope. Decimal values lower than 1 may also be used.
Texture Scale <string>
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 <boolean>
If set, the rope collides with world. Ropes never collide with anything else.
Start Dangling <boolean>
If set, the rope starts out detached from its target endpoint.
Breakable <boolean>
If set, the rope can be detached from either endpoint when shot.
Note.png Note: If collide with world is set, the rope will not appear to break if the endpoint touches world geometry. This includes touching vertices and edges of brushes as well as being placed inside them.
Rope Material <material>
The material to use when rendering the rope.
Note.png Note: Source will not render ropes using the cable/chain.vmt material.
Disable Wind <boolean>
If set, the rope will no longer act as though it's being affected by wind.

DXLevelChoice:

Minimum DX Level (mindxlevel) <choices>
The entity will not exist if the engine is running outside the given range of DirectX Versions. Replaced by SystemLevelChoice from <Left 4 Dead> Left 4 Dead onwards.
Warning.png Warning: If these are used, the object may break when the user switches their DirectX settings.
Maximum DX Level (maxdxlevel) <choices>