Skip to content

Commit

Permalink
Merge pull request #236 from asd417/bezier
Browse files Browse the repository at this point in the history
comp_vactube_bezier implementation
  • Loading branch information
TeamSpen210 authored Sep 20, 2023
2 parents b4fdb08 + e5d1535 commit 8c9e54a
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 50 deletions.
3 changes: 2 additions & 1 deletion fgd/point/comp/comp_prop_cable.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

// Valve's interplator keyvalue just happens to provide the right visuals we want.
positioninterpolator[engine](integer): "Type": 2
positioninterpolator(choices) : "Type" : 2 : "How to interpolate the cable. Straight makes it straight. Spline uses a spline curve, which smoothly blends between points (no visuals). Catenary makes it hang down, like the original move_rope." =
positioninterpolator(choices) : "Type" : 2 : "How to interpolate the cable. Straight makes it straight. Spline uses a spline curve, which smoothly blends between points. Catenary makes it hang down, like the original move_rope. Bezier is an alternate smooth curve, but the visual in Hammer will be incorrect." =
[
0: "Straight"
1: "Spline Curve"
2: "Catenary"
3: "Bezier"
]

segments(integer) : "Segments" : 2 : "Number of nodes to generate between each cable. Higher values make smoother cables, but produce more faces."
Expand Down
3 changes: 2 additions & 1 deletion fgd/point/comp/comp_prop_rope.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

// Valve's interplator keyvalue just happens to provide the right visuals we want.
positioninterpolator[engine](integer): "Type": 2
positioninterpolator(choices) : "Type" : 2 : "How to interpolate the rope. Straight makes it straight. Spline uses a spline curve, which smoothly blends between points (no visuals). Catenary makes it hang down, like the original move_rope." =
positioninterpolator(choices) : "Type" : 2 : "How to interpolate the rope. Straight makes it straight. Spline uses a spline curve, which smoothly blends between points. Catenary makes it hang down, like the original move_rope. Bezier is an alternate smooth curve, but the visual in Hammer will be incorrect." =
[
0: "Straight"
1: "Spline Curve"
2: "Catenary"
3: "Bezier"
]

segments(integer) : "Segments" : 2 : "Number of nodes to generate between each rope. Higher values make smoother ropes, but produce more faces."
Expand Down
13 changes: 11 additions & 2 deletions fgd/point/comp/comp_vactube_spline.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@
1: "Vactube Junction"
]
segments(integer) : "Segments" : 2 : "Number of nodes to generate for this. Higher values make smoother tubes, but produce more faces."
collisions(boolean) : "Enable Collisions" : 1 : "Sholuld a collision mesh should be generated?"
collisions(boolean) : "Enable Collisions" : 1 : "Should a collision mesh should be generated?"
positioninterpolator[engine](integer): "Type": 1
positioninterpolator(choices) : "Type" : 1 : "How to interpolate the tube. Spline uses a spline curve, which smoothly blends between points. Bezier is an alternate smooth curve, but the visual in Hammer will be incorrect." =
[
// These all function, but are kinda pointless.
// 0: "Straight"
1: "Spline Curve"
// 2: "Catenary"
3: "Bezier"
]
vac_separateglass(boolean) : "Separate Glass and Frame" : 0 : "Separating glass and frame can help with transparency sorting issue"

// A selection of prop_static's keyvalues, excluding some that are rather irrelevant.
linedivider_staticprop[!engine](string) readonly : "----------------------------------------------------------------------------------------------------------" : ""
Expand Down Expand Up @@ -44,5 +54,4 @@
enablelightbounce[since_CSGO](boolean) : "Enable Bounced Lighting" : 0 : "Whether VRAD should create indirect lighting from this prop."

movespeed(integer) readonly: "Speed (unused)" : 1 : "This needs to be greater than zero to show the preview lines."
positioninterpolator(integer) readonly : "Rope Mode" : 1 : "Needs to be set to '1' to produce the spline curve preview."
]
Loading

0 comments on commit 8c9e54a

Please sign in to comment.