Skip to content

Commit

Permalink
Add Overgrown Protuding Pedestal button
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Jan 21, 2017
1 parent f8b74cc commit 71c63bb
Show file tree
Hide file tree
Showing 12 changed files with 1,829 additions and 27 deletions.
11 changes: 11 additions & 0 deletions packages/modified_ped/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"Styles"
{
"BEE2_CLEAN" "protruding_clean"
"BEE2_OVERGROWN"
{
"Base" "BEE2_CLEAN"
"Config" "protruding_over.cfg"
}
"BEE2_PORTAL_1"
{
"Base" "BEE2_CLEAN"
Expand Down Expand Up @@ -81,6 +86,12 @@
"File" "protruding_base_clean.vmf"
}

"BrushTemplate"
{
"ID" "LAUTARO_PROTRUDING_PED_BASE_OVER"
"File" "protruding_base_over.vmf"
}

"BrushTemplate"
{
"ID" "LAUTARO_PROTRUDING_PED_BASE_RETRO"
Expand Down
12 changes: 6 additions & 6 deletions packages/modified_ped/items/protruding_clean/editoritems.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,30 +99,30 @@
{
"0"
{
"Name" "instances/BEE2/clean/lautaro/protrude_ped_left_white.vmf"
"Name" "instances/BEE2/clean/items/lautaro/protrude_ped_left_white.vmf"
}
"1"
{
"Name" "instances/BEE2/clean/lautaro/protrude_ped_left_black.vmf"
"Name" "instances/BEE2/clean/items/lautaro/protrude_ped_left_black.vmf"
}

"2"
{
"Name" "instances/BEE2/clean/lautaro/protrude_ped_mid_white.vmf"
"Name" "instances/BEE2/clean/items/lautaro/protrude_ped_mid_white.vmf"
}

"3"
{
"Name" "instances/BEE2/clean/lautaro/protrude_ped_mid_black.vmf"
"Name" "instances/BEE2/clean/items/lautaro/protrude_ped_mid_black.vmf"
}

"4"
{
"Name" "instances/BEE2/clean/lautaro/protrude_ped_right_white.vmf"
"Name" "instances/BEE2/clean/items/lautaro/protrude_ped_right_white.vmf"
}
"5"
{
"Name" "instances/BEE2/clean/lautaro/protrude_ped_right_black.vmf"
"Name" "instances/BEE2/clean/items/lautaro/protrude_ped_right_black.vmf"
}
}
"TargetName" "pro_ped"
Expand Down
24 changes: 5 additions & 19 deletions packages/modified_ped/items/protruding_clean/vbsp_config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,20 @@
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL>"
"Condition"
{
// Left side
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL:btn_weighted>"
// Left/Right side
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL:btn_weighted, btn_ball>"
"Result"
{
"TemplateBrush"
{
// The part after the colon is the visgroup to use.
"ID" "LAUTARO_PROTRUDING_PED_BASE_CLEAN:single"
"ID" "LAUTARO_PROTRUDING_PED_BASE_CLEAN:single"
// When set to 'white' or 'black' forces colours to that type.
"colorVar" "$color"
}
}
}

"Condition"
{
// Right side
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL:btn_ball>"
"Result"
{
"TemplateBrush"
{
"ID" "LAUTARO_PROTRUDING_PED_BASE_CLEAN:single"
"colorVar" "$color"
}
}
}

"Condition"
{
// Center - double-wide base.
Expand All @@ -42,8 +28,8 @@
{
"TemplateBrush"
{
"ID" "LAUTARO_PROTRUDING_PED_BASE_CLEAN:double"
"invertVar" "$color"
"ID" "LAUTARO_PROTRUDING_PED_BASE_CLEAN:double"
"colorVar" "$color"
}
}
}
Expand Down
70 changes: 70 additions & 0 deletions packages/modified_ped/items/protruding_over.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
"Conditions"
{
"Condition"
{
"Priority" "25"
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL>"
"Condition"
{
// Left/Right side
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL:btn_weighted, btn_ball>"
"Result"
{
"TemplateBrush"
{
"ID" "LAUTARO_PROTRUDING_PED_BASE_OVER:single"
"colorVar" "$color"
}
}
}

"Condition"
{
// Center - double-wide base.
"instance" "<ITEM_LAUTARO_PROTRUDING_PEDESTAL:btn_cube>"
"Result"
{
"TemplateBrush"
{
"ID" "LAUTARO_PROTRUDING_PED_BASE_OVER:double"
"colorVar" "$color"
}
}
}

"Condition"
{
// Turn around if checked.
"instvar" "$start_reversed = 1"
"Result"
{
"ChangeInstance" "instances/BEE2/over/items/lautaro/protrude_ped_rev.vmf"
}
"Else"
{
"ChangeInstance" "instances/BEE2/over/items/lautaro/protrude_ped.vmf"
}
}

"Condition"
{
"LockingIO" "instance:reset_rl;Trigger"
"Result"
{
"suffix" "locking"
}
"ElseCondition"
{
"OR"
{
"instvar" "timer_delay 99999999999"
"instvar" "timer_delay 0"
}
"Result"
{
"suffix" "inf"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
versioninfo
{
"editorversion" "400"
"editorbuild" "6432"
"mapversion" "63"
"formatversion" "100"
"prefab" "0"
}
visgroups
{
}
viewsettings
{
"bSnapToGrid" "1"
"bShowGrid" "1"
"bShowLogicalGrid" "0"
"nGridSpacing" "4"
"bShow3DGrid" "0"
}
world
{
"id" "1"
"mapversion" "63"
"classname" "worldspawn"
"detailmaterial" "detail/detailsprites"
"detailvbsp" "detail.vbsp"
"maxblobcount" "250"
"maxpropscreenwidth" "-1"
"skyname" "sky_day01_01"
}
entity
{
"id" "346"
"classname" "func_noportal_volume"
"origin" "-54 0 -48"
"spawnflags" "0"
solid
{
"id" "347"
side
{
"id" "131"
"plane" "(-76 -16 -64) (-76 16 -64) (-76 16 -32)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "132"
"plane" "(-32 16 -64) (-32 -16 -64) (-32 -16 -32)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 -1 0] 0.25"
"vaxis" "[0 -1 0 0] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "133"
"plane" "(-76 16 -64) (-76 -16 -64) (-32 -16 -64)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 -1 0 0] 0.25"
"vaxis" "[1 0 0 -56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "134"
"plane" "(-76 -16 -32) (-76 16 -32) (-32 16 -32)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 1 0 0] 0.25"
"vaxis" "[1 0 0 -56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "135"
"plane" "(-76 16 -32) (-76 16 -64) (-32 16 -64)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 -1 0] 0.25"
"vaxis" "[1 0 0 -56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "136"
"plane" "(-32 -16 -32) (-32 -16 -64) (-76 -16 -64)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 0] 0.25"
"vaxis" "[1 0 0 -56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 500]"
}
}
entity
{
"id" "222"
"classname" "logic_branch"
"targetname" "output"
connections
{
"OnTrue" "!selfFireUser10-1"
"OnTrue" "!selfFireUser20.01-1"
"OnFalse" "!selfFireUser20-1"
"OnUser1" "proxyProxyRelay0-1"
"OnUser2" "proxyProxyRelay0-1"
}
"origin" "-80.1 0 -32"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 1000]"
}
}
entity
{
"id" "25"
"classname" "func_instance_parms"
"parm1" "$timer_delay float 3"
"parm2" "$timer_sound integer 0"
"origin" "-80.1 -24 -32"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 0]"
}
}
entity
{
"id" "6"
"classname" "prop_button"
"angles" "-90 0 0"
"Delay" "$timer_delay"
"istimer" "1"
"model" "models/props/switch001.mdl"
"preventfastreset" "0"
"renderamt" "255"
"rendercolor" "255 255 255"
"skin" "1"
"solid" "1"
"targetname" "button"
connections
{
"OnPressed" "outputTest0-1"
"OnButtonReset" "outputSetValue00-1"
"OnButtonReset" "outputFireUser10-1"
"OnPressed" "outputSetValue10.01-1"
}
"origin" "-72.1 0 -48"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 500]"
}
}
entity
{
"id" "22"
"classname" "func_instance_io_proxy"
"targetname" "proxy"
"origin" "-80.1 24 -32"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 1500]"
}
}
cameras
{
"activecamera" "-1"
}
cordons
{
"active" "0"
}
Loading

0 comments on commit 71c63bb

Please sign in to comment.