// default textures/music/models/skybox for maps

// on every map load, this file will be executed, followed by
// "package.cfg" in the package dir of the map, and "<mapname>.cfg",
// which you can use to override the settings in this file.

// to make a custom version for your map, DO NOT COPY this file,
// but instead make a .cfg with only those things which are different


// play cube soundtrack on any dm maps, play midi/mods on sp maps:

if (= $gamemode -2) [
  at "songs/cubez0r.xm songs/cube1.mid songs/ambient.mid songs/deathB.mid" (rnd 4)    // picks a random song out of 4
][
  //at "pingpong/01-pp-i_am_waiting.ogg pingpong/02-pp-got_the_flag.ogg pingpong/03-pp-kamikadze.ogg pingpong/04-pp-alone.ogg pingpong/05-pp-go_cube_go.ogg pingpong/06-pp-dark_corners.ogg pingpong/07-pp-haunted.ogg pingpong/08-pp-headshot.ogg" (rnd 8)
  
  alias song (rnd 11)
  if (< $song 6) [  // to get around max 256 str len
    at "fanatic/01_fanatic-assault.ogg fanatic/02_fanatic-conquerer.ogg fanatic/03_fanatic-tranquility.ogg fanatic/04_fanatic-unreleased-rage.ogg fanatic/05_fanatic-lost-in-the-mist.ogg fanatic/06_fanatic-hit-them-hard.ogg" $song
  ][
    at "fanatic/07_fanatic-cubed-to-death.ogg fanatic/08_fanatic-waiting-to-strike.ogg fanatic/09_fanatic-disrupting-force.ogg fanatic/10_fanatic-my-destiny.ogg fanatic/11_fanatic-set-free.ogg" (- $song 6)
  ]
]
music $s


// reset the mapmodels used for this map (replace this with your own mapmodel defs if you want):
// the number in comments is what you use with "newent mapmodel N"

mapmodelreset						// start counting from 0 again

mapmodel 1  8 0 0 "tree1"			// 0
mapmodel 4  3 4 2 "bridge"			// 1
 
mapmodel 6 12 0 0 "dcp/tree2"		// 2
mapmodel 2  8 0 0 "dcp/tree3"		// 3
mapmodel 1  9 0 0 "dcp/palmtree"	// 4
mapmodel 1  4 0 0 "dcp/thorns"		// 5
mapmodel 1  2 0 0 "dcp/plant1"		// 6
mapmodel 1  0 0 0 "dcp/grass"		// 7
mapmodel 3  0 0 0 "dcp/ivy"			// 8

mapmodel 1  3 0 0 "dcp/barrel"		// 9
mapmodel 1 11 0 0 "dcp/streetlamp"	// 10
mapmodel 3  2 0 0 "dcp/bench"		// 11
mapmodel 1  8 0 0 "dcp/pillar"		// 12
mapmodel 2  2 0 0 "dcp/waterbowl"	// 13
mapmodel 2  0 0 0 "dcp/jumppad2"	// 14

mapmodel 2  2 0 0 "dcp/leafs"		// 15
mapmodel 3  3 0 0 "dcp/valve"		// 16
mapmodel 3  1 0 0 "dcp/palette"		// 17

mapmodel 2  2 0 0 "dcp/vent"		// 18
mapmodel 1  1 0 0 "dcp/mushroom"	// 19
mapmodel 3  8 0 0 "dcp/biotank"		// 20

mapmodel 1  3 0 0 "dcp/groundlamp"	// 21
mapmodel 2  3 0 0 "dcp/console"		// 22
mapmodel 1  3 0 0 "dcp/turret"      // 23



mapmodel 1  3 0 0 "dcp/cask"		// 24
mapmodel 3  4 0 0 "dcp/cart"		// 25
mapmodel 1  3 0 0 "dcp/candle"		// 26
mapmodel 1  3 0 0 "dcp/vase"		// 27
mapmodel 2  1 0 0 "dcp/sack"		// 28
mapmodel 2  5 0 0 "dcp/chandelier"	// 29
mapmodel 2  3 0 0 "dcp/chest"		// 30
mapmodel 1  5 0 0 "dcp/firebowl"	// 31
mapmodel 1  0 0 0 "dcp/smplant" 	// 32
mapmodel 1  0 0 0 "dcp/insect"	 	// 33
mapmodel 1  0 0 0 "dcp/reed"	 	// 34
mapmodel 1  1 0 0 "dcp/qb2x2" 		// 35
mapmodel 2  1 0 0 "dcp/qb4x4" 		// 36
mapmodel 4  1 0 0 "dcp/qb8x8" 		// 37

mapmodel 0 0 0 0 "makke/nocamp"		// 38
mapmodel 0 0 0 0 "makke/strahler"	// 39

mapmodel 0  0 0 0 "tentus/food-drink/goblet"		// 40
mapmodel 0  0 0 0 "tentus/food-drink/apple"			// 41
mapmodel 0  0 0 0 "tentus/food-drink/pear"			// 42
mapmodel 0  0 0 0 "tentus/food-drink/appleslice"	// 43
mapmodel 0  0 0 0 "tentus/food-drink/meat"			// 44
mapmodel 0  0 0 0 "tentus/food-drink/bowl"			// 45
mapmodel 0  0 0 0 "tentus/food-drink/pieslice"		// 46
mapmodel 0  0 0 0 "tentus/food-drink/mug"			// 47
mapmodel 0  0 0 0 "tentus/food-drink/winebottle"	// 48
mapmodel 0  0 0 0 "tentus/food-drink/pie"			// 49

mapmodel 0  0 0 0 "tentus/books/flat"				// 50
mapmodel 1  2 0 0 "tentus/books/multi"				// 51
mapmodel 0  0 0 0 "tentus/chains/chain"				// 52
mapmodel 0  0 0 0 "tentus/chains/curvechain"		// 53

mapmodel 1  2 0 0 "tentus/barrel"					// 54
mapmodel 2  1 0 0 "tentus/sidebarrel"				// 55
mapmodel 0  0 0 0 "tentus/pot1"						// 56
mapmodel 0  0 0 0 "tentus/rope"						// 57
mapmodel 1  1 0 0 "tentus/ropelamp"					// 58
mapmodel 0  0 0 2 "tentus/ladder"					// 59

mapmodel 2  4 0 0 "tentus/fattree"					// 60
mapmodel 0  0 0 0 "tentus/moneybag"					// 61
mapmodel 1  1 0 0 "tentus/woodbench"				// 62
mapmodel 0  0 0 0 "tentus/hammer"					// 63
mapmodel 1  1 0 0 "tentus/anvil"					// 64
mapmodel 0  0 0 0 "tentus/spear"					// 65
mapmodel 0  0 0 0 "tentus/key"						// 66
mapmodel 0  0 0 0 "tentus/redshield"				// 67
mapmodel 0  0 0 0 "tentus/greenshield"				// 68
mapmodel 0  0 0 0 "tentus/bombs"					// 69


alias test_all_models [ loop 70 [ select (+ (* $i 8) 16) 16 1 1; newent mapmodel $i ] ]

// the skybox for this map:

loadsky "ik2k/env/iklake"
//loadsky "socksky/desert"
//loadsky "socksky/frozen"
//loadsky "socksky/mars"
//loadsky "socksky/emerald"
//loadsky "stecki/snow"


// texture definitions for the map:

// texture 0 is hardcoded as the sky
// texture 1 is hardcoded as the default liquid texture
// texture 2 is the default wall texture (for new maps)
// texture 3 is the default floor texture
// texture 4 is the default ceiling texture


texturereset    // starts the texture slot/index at 0

// ik2k

texture 0 "ik2k/ik_sky_day_back.jpg"     // 0, dummy
texture 0 "golgotha/water2.jpg"
texture 0 "ik2k/ik_brick_3216d.jpg"
texture 0 "ik2k/ik_floor_brick128a.jpg"
texture 0 "ik2k/ik_floor_wood128b.jpg"

texture 0 "ik2k/ik_brickwall_gry.jpg"	// 5
texture 0 "ik2k/ik_brick_6432a.jpg"
texture 0 "ik2k/ik_brick_6464a.jpg"
texture 0 "ik2k/ik_brick_6464c.jpg"
texture 0 "ik2k/ik_brick_12832a.jpg"
texture 0 "ik2k/ik_brick_12864a.jpg"
texture 0 "ik2k/ik_brick_trimh32a.jpg"
texture 0 "ik2k/ik_cliff256.jpg"
texture 0 "ik2k/ik_floor_brick128b.jpg"
texture 0 "ik2k/ik_floor_tile128b.jpg"
texture 0 "ik2k/ik_floor_wood128d.jpg"
texture 0 "ik2k/ik_ground_cobbles128.jpg"
texture 0 "ik2k/ik_ground_deadgrass128.jpg"
texture 0 "ik2k/ik_ground_grass128.jpg"
texture 0 "ik2k/ik_ground_lawn128.jpg"
texture 0 "ik2k/ik_ground_pavement128.jpg"
texture 0 "ik2k/ik_ground_pebbles128.jpg"
texture 0 "ik2k/ik_stonestep25632.jpg"
texture 0 "ik2k/ik_tree128moss.jpg"
texture 0 "ik2k/ik_woodv256a.jpg"
texture 0 "ik2k/ik_woodwall128128b.jpg"
texture 0 "ik2k/ik_wood_planks128b.jpg"
texture 0 "ik2k/ik_wood_planks128d.jpg"
texture 0 "ik2k/ik_wood_trimh64d.jpg"
texture 0 "ik2k/ik_wood_trimh64e.jpg"
texture 0 "ik2k/ik_wpaperplain128a.jpg"
texture 0 "ik2k/ik_wpaperplain128b.jpg"
texture 0 "ik2k/ik_wpaperplain128c.jpg"
texture 0 "ik2k/ik_wpaperplain128d.jpg"
texture 0 "ik2k/ik_wpaperplain128e.jpg"

// from ikbase dir

texture 0 "ikbase/ik_conc_gmoss.jpg"	// 35
texture 0 "ikbase/ik_cwall03a2.jpg"
texture 0 "ikbase/ik_cwall04a.jpg"
texture 0 "ikbase/ik_cwall06a.jpg"
texture 0 "ikbase/ik_floor_conc128a.jpg"
texture 0 "ikbase/ik_floor_conc128b.jpg"
texture 0 "ikbase/ik_floor_met1f.jpg"
texture 0 "ikbase/ik_floor_met64d.jpg"
texture 0 "ikbase/ik_floor_met64e.jpg"
texture 0 "ikbase/ik_floor_met64f.jpg"
texture 0 "ikbase/ik_floor_met128e.jpg"
texture 0 "ikbase/ik_floor_met128f.jpg"
texture 0 "ikbase/ik_gtrimh_64b.jpg"
texture 0 "ikbase/ik_gtrimh_lit1a.jpg"
texture 0 "ikbase/ik_gtrimv_64b.jpg"
texture 0 "ikbase/ik_gtrimv_lit1a.jpg"
texture 0 "ikbase/ik_gtrimv_lit2b.jpg"
texture 0 "ikbase/ik_gtrimv_lit3b.jpg"
texture 0 "ikbase/ik_gtrimv_lit4b.jpg"
texture 0 "ikbase/ik_htrimh_64b.jpg"
texture 0 "ikbase/ik_htrimh_64c.jpg"
texture 0 "ikbase/ik_htrimh_64d.jpg"
texture 0 "ikbase/ik_htrimv_64b.jpg"
texture 0 "ikbase/ik_htrimv_64c.jpg"
texture 0 "ikbase/ik_itrimv_128b.jpg"
texture 0 "ikbase/ik_metplatef_6464b.jpg"
texture 0 "ikbase/ik_wtrimh_32a.jpg"
texture 0 "ikbase/ik_wtrimh_32b.jpg"
texture 0 "ikbase/ik_wtrimh_32c.jpg"
texture 0 "ikbase/ik_wtrimh_32d.jpg"
texture 0 "ikbase/ik_wtrimh_64a.jpg"
texture 0 "ikbase/ik_wtrimh_64c.jpg"
texture 0 "ikbase/ik_wtrimh_64d.jpg"
texture 0 "ikbase/ik_wtrimv_32a.jpg"
texture 0 "ikbase/ik_wtrimv_32b.jpg"
texture 0 "ikbase/ik_wtrimv_32c.jpg"
texture 0 "ikbase/ik_wtrimv_32d.jpg"
texture 0 "ikbase/ik_wtrimv_64a.jpg"
texture 0 "ikbase/ik_wtrimv_64c.jpg"
texture 0 "ikbase/ik_wtrimv_64d.jpg"

// some good textures from max payne

texture 0 "payne/Box12b.jpg"		// 75
texture 0 "payne/Brick52a.jpg"
texture 0 "payne/Brick58_512x512.jpg"
texture 0 "payne/Grate09b.jpg"
texture 0 "payne/SlimyTile02_128x128.jpg"
texture 0 "payne/Tile28b.jpg"
texture 0 "payne/Tile41a.jpg"

// from than's industrial tex

texture 0 "than_ind/floor02.jpg"         // 82
texture 0 "than_ind/floor05.jpg"
texture 0 "than_ind/floor06.jpg"
texture 0 "than_ind/light03.jpg"
texture 0 "than_ind/trim04.jpg"
texture 0 "than_ind/trim21.jpg"
texture 0 "than_ind/trlight01.jpg"
texture 0 "than_ind/trlight06.jpg"

// some of John Fitzgibbons' Rubicon textures

texture 0 "jf1/jf32.jpg"                // 90
texture 0 "jf1/jf64.jpg"
texture 0 "jf1/jf128.jpg"
texture 0 "jf1/jfbutn.jpg"
texture 0 "jf1/jfflr.jpg"
texture 0 "jf1/jfgrid.jpg"
texture 0 "jf1/jfhatch.jpg"
texture 0 "jf1/jflite.jpg"
texture 0 "jf1/jflitestr.jpg"
texture 0 "jf1/jfrock.jpg"
texture 0 "jf1/jfrust.jpg"
texture 0 "jf1/jfstripe.jpg"
texture 0 "jf1/jfwall.jpg"

// misc textures (mine/schwenz/some tech1soc)

texture 0 "aard/aardfdry256_1.jpg"      // 103
texture 0 "tech1soc/spring3.jpg"
texture 0 "tech1soc/sqrlig02wb.jpg"
texture 0 "tech1soc/sqrlig03bc.jpg"
texture 0 "tech1soc/zdetlig01bb.jpg"
texture 0 "tech1soc/zdetlig02bb.jpg"
texture 0 "aard/aardmbr16_2.jpg"
texture 0 "tech1soc/zdetlig04bb.jpg"
texture 0 "tech1soc/zdet_trim2a.jpg"
texture 0 "aard/aardmmet32_1.jpg"
texture 0 "tech1soc/zdet_trim5b.jpg"
texture 0 "schwenz/dt_tile_check.01.jpg"
texture 0 "aard/aardograss_1.jpg"


// Sock's egyptian textures

texture 0 "egyptsoc/032-01a.jpg"        // 116
texture 0 "egyptsoc/032-03a.jpg"
texture 0 "egyptsoc/032-04a.jpg"
texture 0 "egyptsoc/032-05d.jpg"
texture 0 "egyptsoc/064-07d.jpg"
texture 0 "egyptsoc/064-08f.jpg"
texture 0 "egyptsoc/128-01pc.jpg"
texture 0 "egyptsoc/128-03c.jpg"
texture 0 "egyptsoc/128-04a.jpg"
texture 0 "egyptsoc/128-04d.jpg"
texture 0 "egyptsoc/256-03b.jpg"
texture 0 "egyptsoc/block01a.jpg"
texture 0 "egyptsoc/block01b.jpg"
texture 0 "egyptsoc/block01d.jpg"
texture 0 "egyptsoc/block07b.jpg"
texture 0 "egyptsoc/block10c.jpg"
texture 0 "egyptsoc/lig_032-01b1.jpg"
texture 0 "egyptsoc/lig_032-01r1.jpg"
texture 0 "egyptsoc/lig_032-03b1.jpg"
texture 0 "egyptsoc/lig_032-03r1.jpg"
texture 0 "egyptsoc/lig_032-04b1.jpg"
texture 0 "egyptsoc/lig_032-04r1.jpg"
texture 0 "egyptsoc/lig_064-01b1.jpg"
texture 0 "egyptsoc/lig_064-02r1.jpg"
texture 0 "egyptsoc/lig_064-04b1.jpg"
texture 0 "egyptsoc/lig_064-04r1.jpg"
texture 0 "egyptsoc/lig_064-04y1.jpg"
texture 0 "egyptsoc/lig_b064-02a.jpg"
texture 0 "egyptsoc/lig_b064-02d.jpg"
texture 0 "egyptsoc/s064-01b.jpg"
texture 0 "egyptsoc/s064-01e.jpg"
texture 0 "egyptsoc/s064-03a.jpg"
texture 0 "egyptsoc/s064-05f.jpg"
texture 0 "egyptsoc/solidgrate1b.jpg"
texture 0 "egyptsoc/stone01a.jpg"
texture 0 "egyptsoc/stone01b.jpg"
texture 0 "egyptsoc/stone03b.jpg"
texture 0 "egyptsoc/stone04b.jpg"
texture 0 "egyptsoc/stone10b.jpg"
texture 0 "egyptsoc/v064-02a.jpg"
texture 0 "egyptsoc/v064-03b.jpg"
texture 0 "egyptsoc/wood17.jpg"
texture 0 "egyptsoc/woodmgrid1a.jpg"

texture 0 "egyptsoc/032-03c.jpg"        // 159
texture 0 "egyptsoc/048-01a.jpg"
texture 0 "egyptsoc/048-02h.jpg"
texture 0 "egyptsoc/064-02b.jpg"
texture 0 "egyptsoc/064-03a.jpg"
texture 0 "egyptsoc/064-08c.jpg"
texture 0 "egyptsoc/128-02a.jpg"
texture 0 "egyptsoc/256-01a.jpg"
texture 0 "egyptsoc/block02b.jpg"
texture 0 "egyptsoc/block03b.jpg"
texture 0 "egyptsoc/lig_128-05b1.jpg"
texture 0 "egyptsoc/s064-05c.jpg"
texture 0 "egyptsoc/stone01d.jpg"
texture 0 "egyptsoc/stone02b.jpg"
texture 0 "egyptsoc/stone03d.jpg"
texture 0 "egyptsoc/stone04d.jpg"
texture 0 "egyptsoc/stone08d.jpg"
texture 0 "egyptsoc/stone10d.jpg"
texture 0 "egyptsoc/v064-01b.jpg"
texture 0 "egyptsoc/v064-03c.jpg"
texture 0 "egyptsoc/v096-01b.jpg"
texture 0 "egyptsoc/v128-02a.jpg"
texture 0 "egyptsoc/v128-03a.jpg"

// Sock's tech1 textures

texture 0 "tech1soc/032-01c.jpg"
texture 0 "tech1soc/032-02b.jpg"
texture 0 "tech1soc/032-03d.jpg"
texture 0 "tech1soc/032-10a.jpg"
texture 0 "tech1soc/032-10b.jpg"
texture 0 "tech1soc/032-12d.jpg"
texture 0 "tech1soc/032-14b.jpg"
texture 0 "tech1soc/032-15a.jpg"
texture 0 "tech1soc/032-15b.jpg"
texture 0 "tech1soc/032lig10bb.jpg"
texture 0 "tech1soc/032lig11bb.jpg"
texture 0 "tech1soc/032lig11rb.jpg"
texture 0 "tech1soc/032lig12bb.jpg"
texture 0 "tech1soc/032lig12rb.jpg"
texture 0 "tech1soc/032lig12ya.jpg"
texture 0 "tech1soc/032lig20yb.jpg"
texture 0 "tech1soc/064-11b.jpg"
texture 0 "tech1soc/064-12a.jpg"
texture 0 "tech1soc/064-13b.jpg"
texture 0 "tech1soc/064-15b.jpg"
texture 0 "tech1soc/064-20a.jpg"
texture 0 "tech1soc/064-20b.jpg"
texture 0 "tech1soc/064-22b.jpg"
texture 0 "tech1soc/064lig20bb.jpg"
texture 0 "tech1soc/064lig22bb.jpg"
texture 0 "tech1soc/064lig22rb.jpg"
texture 0 "tech1soc/064lig22wb.jpg"
texture 0 "tech1soc/128-05b.jpg"
texture 0 "tech1soc/128-05c.jpg"
texture 0 "tech1soc/blank01a.jpg"
texture 0 "tech1soc/blank01c.jpg"
texture 0 "tech1soc/blank02a.jpg"
texture 0 "tech1soc/blank02b.jpg"
texture 0 "tech1soc/blank03a.jpg"
texture 0 "tech1soc/blank03d.jpg"
texture 0 "tech1soc/block01b.jpg"
texture 0 "tech1soc/block01c.jpg"
texture 0 "tech1soc/block10b.jpg"
texture 0 "tech1soc/block19b.jpg"
texture 0 "tech1soc/chain_mesh2.jpg"
texture 0 "tech1soc/grate1b.jpg"
texture 0 "tech1soc/grate_brown1.jpg"
texture 0 "tech1soc/grate_brown3.jpg"
texture 0 "tech1soc/grill_wall01b.jpg"
texture 0 "tech1soc/half_grill_wall01b.jpg"
texture 0 "tech1soc/half_grill_wall03b.jpg"
texture 0 "tech1soc/mat4b.jpg"
texture 0 "tech1soc/matbrown_lgt2.jpg"
texture 0 "tech1soc/met_wall01a.jpg"
texture 0 "tech1soc/met_wall01c.jpg"
texture 0 "tech1soc/mix_wall03a.jpg"
texture 0 "tech1soc/mix_wall03ab.jpg"
texture 0 "tech1soc/o128-02a.jpg"
texture 0 "tech1soc/octlig01bc.jpg"
texture 0 "tech1soc/panel20c.jpg"
texture 0 "tech1soc/panel40c.jpg"
texture 0 "tech1soc/s064-02a.jpg"
texture 0 "tech1soc/s064-02b.jpg"
texture 0 "tech1soc/s064-02c.jpg"
texture 0 "tech1soc/s064-03a.jpg"
texture 0 "tech1soc/s064-03b.jpg"
texture 0 "tech1soc/s064-03c.jpg"
texture 0 "tech1soc/s128-01c.jpg"
texture 0 "tech1soc/s128-02a.jpg"
texture 0 "tech1soc/s128-02b.jpg"
texture 0 "tech1soc/s128-03b.jpg"
texture 0 "tech1soc/s128-06b.jpg"
texture 0 "tech1soc/s128-07e.jpg"
texture 0 "tech1soc/s256-01c.jpg"
texture 0 "tech1soc/s256-01d.jpg"
texture 0 "tech1soc/s256-02a.jpg"
texture 0 "tech1soc/s256-02b.jpg"
texture 0 "tech1soc/spring1.jpg"
texture 0 "tech1soc/spring2.jpg"

// the following textures are not available in the default map config
// because they fall outside the 256 texture limit. To use them, 
// create a map cfg file and put these inside them together with the
// textures above you still want to use

texture 0 "dg/floor_grass1.jpg"
texture 0 "dg/floor_grass3&soil.jpg"
texture 0 "dg/floor_pavement_stone4_2.jpg"
texture 0 "dg/floor_pavement_stone4_3.jpg"
texture 0 "dg/floor_pavement_stone4_4moss.jpg"
texture 0 "dg/floor_pavement_stone5_2.jpg"
texture 0 "dg/floor_pavement_stone_four2.jpg"
texture 0 "dg/floor_pavingStone.jpg"
texture 0 "dg/floor_pavingStone_ceramic.jpg"
texture 0 "dg/floor_paving_littleStones3.jpg"
texture 0 "dg/floor_paving_littleStones3_2.jpg"
texture 0 "dg/floor_paving_littleStones_2.jpg"
texture 0 "dg/floor_soil&grave3.jpg"
texture 0 "dg/floor_tile_ceramicBlue.jpg"
texture 0 "dg/floor_tile_stoneIrregular.jpg"
texture 0 "dg/mad013.jpg"
texture 0 "dg/mad015.jpg"
texture 0 "dg/mad063.jpg"
texture 0 "dg/mur059.jpg"
texture 0 "dg/mur073.jpg"
texture 0 "dg/mur078.jpg"
texture 0 "dg/mur079.jpg"
texture 0 "dg/mur142.jpg"
texture 0 "dg/muv158.jpg"
texture 0 "dg/muv185.jpg"
texture 0 "dg/muv204.jpg"
texture 0 "dg/sue011.jpg"
texture 0 "dg/sup075.jpg"
texture 0 "dg/sup079.jpg"
