voldemort@Posted: Sun Sep 10, 2006 9:35 pm :
Tutorial tip doors you shoot open in d3
again its easier just to let you load a map and see the mechanics I might revisit with instructions later but Im preaty bussy mapping right now so maybe later this week
this map was a test map for insane ideas on my part so has a bunch of other crap that might be meaningless to you but there is one door you shoot in here that when destroyed uses brushes for a broken model and starts an emitter
its a crude example where I just tried to figure out the mechanics but taking this basic concept you could create something real nice
Code:
Version 2
// entity 0
{
"classname" "worldspawn"
// primitive 0
{
brushDef3
{
  ( -1 0 0 -1344 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 -1 4 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -444 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 -3004 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -2620 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 1340 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/lfwall13g4" 0 0 0
}
}
// primitive 1
{
brushDef3
{
  ( 0 1 0 -2624 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 -1344 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 -1 4 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -444 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -5500 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 2620 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/lfwall13g4" 0 0 0
}
}
// primitive 2
{
brushDef3
{
  ( 1 0 0 -5504 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -2624 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 -1 4 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -444 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 -3004 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 5500 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/lfwall13g4" 0 0 0
}
}
// primitive 3
{
brushDef3
{
  ( 0 -1 0 -3008 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -5504 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 -1344 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 -1 4 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -444 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 3004 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/lfwall13g4" 0 0 0
}
}
// primitive 4
{
brushDef3
{
  ( 0 0 1 -448 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 -3008 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -5504 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -2624 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 -1344 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 -1 444 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/lfwall13g4" 0 0 0
}
}
// primitive 5
{
brushDef3
{
  ( 0 0 -1 0 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 -3008 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -5504 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -2624 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 -1344 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -4 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/lfwall13g4" 0 0 0
}
}
}
// entity 1
{
"classname" "func_static"
"name" "func_static_1"
"model" "func_static_1"
"origin" "2296 114 50"
// primitive 0
{
brushDef3
{
  ( 0 0 -1 -46 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/collision" 0 0 0
  ( 0 0 1 -46 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/collision" 0 0 0
  ( 0 -1 0 -22 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/collision" 0 0 0
  ( 1 0 0 -20 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/collision" 0 0 0
  ( 0 1 0 -22 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/collision" 0 0 0
  ( -1 0 0 -20 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/collision" 0 0 0
}
}
}
// entity 2
{
"classname" "exhale1_exploding_arcademachine"
"name" "exhale1_exploding_arcademachine_1"
"origin" "2296 112 8"
"clipmodel" "func_static_1"
"health" "5"
"nodrop" "1"
"explode" "1"
// primitive 0
{
brushDef3
{
  ( 0 0 -1 -32 ) ( ( 0.125 0 0 ) ( 0 0.125 0 ) ) "textures/common/overdrawtest" 0 0 0
  ( 0 0 1 -32 ) ( ( 0.125 0 0 ) ( 0 0.125 0 ) ) "textures/common/overdrawtest" 0 0 0
  ( 0 -1 0 -40 ) ( ( 0.125 0 0 ) ( 0 0.125 0 ) ) "textures/common/overdrawtest" 0 0 0
  ( 1 0 0 -40 ) ( ( 0.125 0 0 ) ( 0 0.125 0 ) ) "textures/common/overdrawtest" 0 0 0
  ( 0 1 0 -40 ) ( ( 0.125 0 0 ) ( 0 0.125 0 ) ) "textures/common/overdrawtest" 0 0 0
  ( -1 0 0 -36 ) ( ( 0.125 0 0 ) ( 0 0.125 0 ) ) "textures/common/overdrawtest" 0 0 0
}
}
}
// entity 3
{
"classname" "info_player_start"
"name" "info_player_start_1"
"origin" "1896 200 8"
}
// entity 4
{
"classname" "light"
"name" "light_1"
"origin" "2304 372 140"
}
// entity 5
{
"classname" "light"
"name" "light_2"
"origin" "1556 380 140"
}
// entity 6
{
"classname" "light"
"name" "light_3"
"origin" "1424 -376 140"
}
// entity 7
{
"classname" "light"
"name" "light_4"
"origin" "2340 -404 140"
}
// entity 8
{
"classname" "light"
"name" "light_5"
"origin" "2296 108 140"
}