crusher Prefab

Cynder loves Portal

L420: High Member
Jan 9, 2016
434
103
I've noticed that the last person who posted a crusher prefab made a few mistakes in the coding for the crusher.

I've corrected the mistakes and here is the revised file.

versioninfo
{
"editorversion" "400"
"editorbuild" "5032"
"mapversion" "5"
"formatversion" "100"
"prefab" "0"
}
visgroups
{
}
viewsettings
{
"bSnapToGrid" "1"
"bShowGrid" "1"
"bShowLogicalGrid" "0"
"nGridSpacing" "8"
"bShow3DGrid" "0"
}
world
{
"id" "1"
"mapversion" "5"
"classname" "worldspawn"
"detailmaterial" "detail/detailsprites"
"detailvbsp" "detail.vbsp"
"maxpropscreenwidth" "-1"
"skyname" "blacksky"
}
entity
{
"id" "55"
"classname" "logic_auto"
"spawnflags" "1"
connections
{
"OnMapSpawn" "brush_collision_leftSetParentAttachmentMaintainOffsetbase_attach0.05-1"
"OnMapSpawn" "trigger_hurt_leftSetParentAttachmentMaintainOffsetbase_attach0.05-1"
"OnMapSpawn" "trigger_hurt_rightSetParentAttachmentMaintainOffsetbase_attach0.05-1"
"OnMapSpawn" "brush_collision_rightSetParentAttachmentMaintainOffsetbase_attach0.05-1"
"OnMapSpawn" "crucher_relay_inTrigger5-1"
}
"origin" "-136 16 -118"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 6500]"
}
}
entity
{
"id" "57"
"classname" "logic_relay"
"targetname" "crucher_relay_in"
connections
{
"OnTrigger" "crusher_leftSetAnimationsmash_in0-1"
"OnTrigger" "crusher_rightSetAnimationsmash_in0-1"
"OnTrigger" "trigger_hurt_leftEnable0-1"
"OnTrigger" "trigger_hurt_rightEnable0-1"
"OnTrigger" "sound_crusher_closePlaySound0-1"
"OnTrigger" "sound_crusher_hitPlaySound0.6-1"
"OnTrigger" "crusher_leftSetDefaultAnimationsmash_idle0.1-1"
"OnTrigger" "crusher_rightSetDefaultAnimationsmash_idle0.1-1"
"OnTrigger" "trigger_hurt_leftDisable0.6-1"
"OnTrigger" "trigger_hurt_rightDisable0.6-1"
"OnTrigger" "crusher_relay_outTrigger2-1"
}
"origin" "-136 0 -118"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 7500]"
}
}
entity
{
"id" "59"
"classname" "logic_relay"
"targetname" "crusher_relay_out"
connections
{
"OnTrigger" "crusher_leftSetAnimationsmash_out0-1"
"OnTrigger" "crusher_rightSetAnimationsmash_out0-1"
"OnTrigger" "sound_crusher_openPlaySound0-1"
"OnTrigger" "crusher_leftSetDefaultAnimationsmash_out_idle0.1-1"
"OnTrigger" "crusher_rightSetDefaultAnimationsmash_out_idle0.1-1"
"OnTrigger" "trigger_hurt_leftDisable1-1"
"OnTrigger" "trigger_hurt_rightDisable1-1"
"OnTrigger" "crucher_relay_inTrigger5-1"
}
"origin" "-136 -16 -118"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 8000]"
}
}
entity
{
"id" "61"
"classname" "ambient_generic"
"cspinup" "0"
"fadeinsecs" "0"
"fadeoutsecs" "0"
"health" "10"
"lfomodpitch" "0"
"lfomodvol" "0"
"lforate" "0"
"lfotype" "0"
"pitch" "100"
"pitchstart" "100"
"preset" "0"
"radius" "1250"
"spawnflags" "48"
"spindown" "0"
"spinup" "0"
"targetname" "sound_crusher_open"
"volstart" "0"
"origin" "0 0 -22"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[1000 3500]"
}
}
entity
{
"id" "64"
"classname" "ambient_generic"
"cspinup" "0"
"fadeinsecs" "0"
"fadeoutsecs" "0"
"health" "10"
"lfomodpitch" "0"
"lfomodvol" "0"
"lforate" "0"
"lfotype" "0"
"message" "World.MpCoopTbeamMazeCrusherImpact"
"pitch" "100"
"pitchstart" "100"
"preset" "0"
"radius" "1250"
"spawnflags" "48"
"spindown" "0"
"spinup" "0"
"targetname" "sound_crusher_hit"
"volstart" "0"
"origin" "0 0 -54"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[1000 3000]"
}
}
entity
{
"id" "67"
"classname" "ambient_generic"
"cspinup" "0"
"fadeinsecs" "0"
"fadeoutsecs" "0"
"health" "10"
"lfomodpitch" "0"
"lfomodvol" "0"
"lforate" "0"
"lfotype" "0"
"message" "World.MpCoopTbeamMazeCrusherTravel"
"pitch" "100"
"pitchstart" "100"
"preset" "0"
"radius" "1250"
"spawnflags" "48"
"spindown" "0"
"spinup" "0"
"targetname" "sound_crusher_close"
"volstart" "0"
"origin" "0 0 -86"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[1000 2500]"
}
}
entity
{
"id" "70"
"classname" "func_brush"
"disablereceiveshadows" "0"
"disableshadows" "1"
"drawinfastreflection" "0"
"InputFilter" "0"
"invert_exclusion" "0"
"origin" "0 290 -14"
"parentname" "crusher_left"
"renderamt" "255"
"rendercolor" "255 255 255"
"renderfx" "0"
"rendermode" "0"
"solidbsp" "0"
"Solidity" "0"
"spawnflags" "2"
"StartDisabled" "0"
"targetname" "brush_collision_left"
"vrad_brush_cast_shadows" "0"
solid
{
"id" "71"
side
{
"id" "43"
"plane" "(92 320 -110) (92 260 -110) (92 260 82)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 56] 0.25"
"vaxis" "[0 -1 0 -40.0403] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "44"
"plane" "(-92 260 -110) (-92 320 -110) (-92 320 82)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 56] 0.25"
"vaxis" "[0 -1 0 -40.0403] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "45"
"plane" "(-92 320 -110) (-92 260 -110) (92 260 -110)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[-1 0 0 -16] 0.25"
"vaxis" "[0 -1 0 -16] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "46"
"plane" "(-92 260 82) (-92 320 82) (92 320 82)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[1 0 0 16] 0.25"
"vaxis" "[0 -1 0 -16] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "47"
"plane" "(92 260 82) (92 260 -110) (-92 260 -110)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 54.96] 0.25"
"vaxis" "[1 0 0 16] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "48"
"plane" "(-92 320 82) (-92 320 -110) (92 320 -110)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 -1 -54.96] 0.25"
"vaxis" "[1 0 0 16] 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" "[1000 4000]"
}
}
entity
{
"id" "73"
"classname" "trigger_hurt"
"damage" "1000"
"damagecap" "1000"
"damagemodel" "0"
"damagetype" "1"
"nodmgforce" "0"
"origin" "0 268 -14"
"parentname" "crusher_left"
"spawnflags" "4097"
"StartDisabled" "1"
"targetname" "trigger_hurt_left"
solid
{
"id" "74"
side
{
"id" "72"
"plane" "(100 312 -110) (100 224 -110) (100 224 82)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 1 0 16] 0.25"
"vaxis" "[0 0 1 56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "71"
"plane" "(-100 224 -110) (-100 312 -110) (-100 312 82)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 1 0 16] 0.25"
"vaxis" "[0 0 1 56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "70"
"plane" "(-100 312 -110) (-100 224 -110) (100 224 -110)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 1 0 16] 0.25"
"vaxis" "[-1 0 0 -16] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "69"
"plane" "(-100 224 82) (-100 312 82) (100 312 82)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 1 0 16] 0.25"
"vaxis" "[-1 0 0 -16] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "68"
"plane" "(100 224 82) (100 224 -110) (-100 224 -110)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[1 0 0 16] 0.25"
"vaxis" "[0 0 1 56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "67"
"plane" "(-100 312 82) (-100 312 -110) (100 312 -110)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[1 0 0 16] 0.25"
"vaxis" "[0 0 1 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" "[1000 4500]"
}
}
entity
{
"id" "76"
"classname" "prop_dynamic"
"angles" "0 270 0"
"DefaultAnim" "smash_out_idle"
"fademindist" "-1"
"fadescale" "1"
"MaxAnimTime" "10"
"MinAnimTime" "5"
"model" "models/anim_wp/cursher/crusher.mdl"
"renderamt" "255"
"rendercolor" "255 255 255"
"skin" "0"
"solid" "6"
"spawnflags" "0"
"targetname" "crusher_left"
"origin" "0 364 126"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 1500]"
}
}
entity
{
"id" "80"
"classname" "trigger_hurt"
"damage" "1000"
"damagecap" "1000"
"damagemodel" "0"
"damagetype" "1"
"nodmgforce" "0"
"origin" "0 -268 -14"
"parentname" "crusher_right"
"spawnflags" "4097"
"StartDisabled" "1"
"targetname" "trigger_hurt_right"
solid
{
"id" "81"
side
{
"id" "78"
"plane" "(-100 -312 -110) (-100 -224 -110) (-100 -224 82)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 -1 0 -48] 0.25"
"vaxis" "[0 0 1 56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "77"
"plane" "(100 -224 -110) (100 -312 -110) (100 -312 82)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 -1 0 -48] 0.25"
"vaxis" "[0 0 1 56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "76"
"plane" "(-100 -224 -110) (-100 -312 -110) (100 -312 -110)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 -1 0 -48] 0.25"
"vaxis" "[1 0 0 48] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "75"
"plane" "(-100 -312 82) (-100 -224 82) (100 -224 82)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0 -1 0 -48] 0.25"
"vaxis" "[1 0 0 48] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "74"
"plane" "(-100 -224 82) (-100 -224 -110) (100 -224 -110)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[-1 0 0 -48] 0.25"
"vaxis" "[0 0 1 56] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "73"
"plane" "(100 -312 82) (100 -312 -110) (-100 -312 -110)"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[-1 0 0 -48] 0.25"
"vaxis" "[0 0 1 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" "[1000 4500]"
}
}
entity
{
"id" "83"
"classname" "func_brush"
"disablereceiveshadows" "0"
"disableshadows" "1"
"drawinfastreflection" "0"
"InputFilter" "0"
"invert_exclusion" "0"
"origin" "0 -290 -14"
"parentname" "crusher_right"
"renderamt" "255"
"rendercolor" "255 255 255"
"renderfx" "0"
"rendermode" "0"
"solidbsp" "0"
"Solidity" "0"
"spawnflags" "2"
"StartDisabled" "0"
"targetname" "brush_collision_right"
"vrad_brush_cast_shadows" "0"
solid
{
"id" "84"
side
{
"id" "84"
"plane" "(-92 -320 -110) (-92 -260 -110) (-92 -260 82)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 56] 0.25"
"vaxis" "[0 1 0 23.96] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "83"
"plane" "(92 -260 -110) (92 -320 -110) (92 -320 82)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 56] 0.25"
"vaxis" "[0 1 0 23.96] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "82"
"plane" "(-92 -260 -110) (-92 -320 -110) (92 -320 -110)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[1 0 0 48] 0.25"
"vaxis" "[0 1 0 48] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "81"
"plane" "(-92 -320 82) (-92 -260 82) (92 -260 82)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[-1 0 0 -48] 0.25"
"vaxis" "[0 1 0 48] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "80"
"plane" "(-92 -260 82) (-92 -260 -110) (92 -260 -110)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 1 54.96] 0.25"
"vaxis" "[-1 0 0 -48] 0.25"
"rotation" "0"
"lightmapscale" "16"
"smoothing_groups" "0"
}
side
{
"id" "79"
"plane" "(92 -320 82) (92 -320 -110) (-92 -320 -110)"
"material" "TOOLS/TOOLSINVISIBLE"
"uaxis" "[0 0 -1 -54.96] 0.25"
"vaxis" "[-1 0 0 -48] 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" "[1000 4000]"
}
}
entity
{
"id" "86"
"classname" "prop_dynamic"
"angles" "0 90 0"
"DefaultAnim" "smash_out_idle"
"fademindist" "-1"
"fadescale" "1"
"MaxAnimTime" "10"
"MinAnimTime" "5"
"model" "models/anim_wp/cursher/crusher.mdl"
"renderamt" "255"
"rendercolor" "255 255 255"
"skin" "0"
"solid" "6"
"spawnflags" "0"
"targetname" "crusher_right"
"origin" "0 -364 126"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 1500]"
}
}
cameras
{
"activecamera" "-1"
}
cordons
{
"active" "0"
}
 

Cynder loves Portal

L420: High Member
Jan 9, 2016
434
103
I've fixed the logic commands because they weren't working properly.
 

Attachments

  • Crusher_Double.zip
    2 KB · Views: 170

Werewolf

Probably not a real Werewolf
aa
Apr 12, 2011
873
309
OK, but it would help if you just said in your opening post what you had changed and why, instead of them having to delve through your attached download.
 

Cynder loves Portal

L420: High Member
Jan 9, 2016
434
103
I'll do that in future... Thanx
 

Three Million

L4: Comfortable Member
Jul 2, 2015
197
75
I've noticed that the last person who posted a crusher prefab made a few mistakes in the coding for the crusher.
Where is this thread? No idea what you are talking about here. Also what was changed or incorrect about the original code? Do you even know no one has posted in these parts since 2011? The Archives section is pretty much dead.
 

Three Million

L4: Comfortable Member
Jul 2, 2015
197
75
TIL we have a Portal 2 section
Time to blow off the dust right?
anigif_enhanced-8076-1431971975-2.gif