include duke3d.def
include sewerside.def

// Duke3D HRP HUD Weapons Definitions

tint { pal 17 red 160 green 96 blue 160 flags 0 }
dummytile 8005 16 16

// fogpal [palette number] [red intensity] [green intensity] [blue intensity]
// pal 27 is red
// pal 28 is green
// pal 29 is blue
fogpal 30 0 25 35 // normal water
fogpal 31 0 5 10 // dark water
fogpal 32 0 3 6 // very dark water

fogpal 150 0 0 0
fogpal 151 0 0 0
fogpal 152 0 0 0
fogpal 153 0 0 0
fogpal 154 0 0 0
fogpal 155 0 0 0
fogpal 156 0 0 0
fogpal 157 0 0 0
fogpal 158 0 0 0
fogpal 159 0 0 0
tint { pal 150 red 255 green 0 blue 0 flags 0 }
tint { pal 151 red 220 green 10 blue 10 flags 0 }
tint { pal 152 red 190 green 15 blue 15 flags 0 }
tint { pal 153 red 170 green 20 blue 20 flags 0 }
tint { pal 154 red 150 green 25 blue 50 flags 0 }
tint { pal 155 red 130 green 30 blue 90 flags 0 }
tint { pal 156 red 110 green 40 blue 130 flags 0 }
tint { pal 157 red 80 green 60 blue 170 flags 0 }
tint { pal 158 red 40 green 80 blue 210 flags 0 }
tint { pal 159 red 0 green 100 blue 255 flags 0 }

dummytile 8010 46 17
definetexture 8010 0 0 0 -1 -1 DUKEPLUS_RESOURCES/GRAPHICS/overheat.png

// Pistol (2524)
model "highres/sprites/firstperson/2524_pistol.md3" {
   scale 1.9
   skin { pal 0 file "highres/sprites/firstperson/2524_pistol.png" }
   glow { file "highres/sprites/firstperson/2524_pistol_g.png" }
   frame { name "idle" tile 2524 }
   anim { frame0 "fire1" frame1 "fire2" fps 60 flags 0 }
   frame { name "fire1" tile0 2525 tile1 2526 }
   // anim { frame0 "reload1" frame1 "reload3" fps 12.5 flags 1 }
   anim { frame0 "reload1" frame1 "reload3" fps 12.5 }
   frame { name "reload1" tile0 2528 tile1 2529 }
   // hud { tile0 2524 tile1 2526 xadd -0.15 yadd 1.32 zadd -0.56 angadd -37 flipped }
   // hud { tile0 2528 tile1 2529 xadd -0.15 yadd 1.36 zadd -0.68 angadd -37  flipped }
   hud { tile 2524 xadd -0.15 yadd .60 zadd -0.45  angadd -37 flipped }
   hud { tile0 2525 tile1 2526 xadd -0.15 yadd .50 zadd -0.45  angadd -18 flipped }
   hud { tile0 2528 tile1 2529 xadd -0.10 yadd .25 zadd -0.55 angadd -18  flipped }
}

model "highres/sprites/firstperson/2530_clip.md3" {
   scale 1.9
   skin { pal 0 file "highres/sprites/pickups/0040_pistolammo.jpg" }
   frame { name "idle" tile0 2530 tile1 2531 }
   // hud { tile 2530 xadd 0.38 yadd 0.9 zadd -0.48 angadd -37  flipped }
   hud { tile 2530 xadd -0.48 yadd 0.5 zadd -0.48 angadd -37  flipped }
}

model "highres/sprites/firstperson/2532_cliphand.md3" {
   scale 1.9
   skin { pal 0 file "highres/sprites/firstperson/2532_cliphand.png" }
   frame { name "idle" tile 2532 }
   // hud { tile 2532 xadd 0.35 yadd 1.36 zadd -0.48 angadd -37  flipped }
   hud { tile 2532 xadd -0.45 yadd 0.45 zadd -0.48 angadd -37  flipped }
}


// Chaingun (2536)
model "highres/sprites/firstperson/2536_chaingun.md3" {
   scale 1.9
   skin { pal 0 file "highres/sprites/firstperson/2536_chaingun.png" }
   frame { name "idle" tile 2537 }
   skin { pal 0 file "highres/sprites/firstperson/2536_chaingun_f.png" }
   frame { name "idle" tile0 2538 tile1 2540 }
   // xadd is slightly adjusted for overheating pic to work with both HRP and 8-bit
   hud { tile0 2537 tile1 2540 xadd -0.235 yadd 0.52 zadd -0.65 angadd -24 }
   frame { name "idle" tile 2536 }
   frame { name "idle" tile0 2541 tile1 2543 }
   hud { tile 2536 hide }
}


   // crouch and death anim for Duke Plus bots
   model "highres/sprites/characters/1405_duke.md3" {
      scale 1.55 shade 0 
      // zadd 41
      skin { pal 0 surface 0 file "highres/sprites/pickups/0057_jetpack.png" }
      skin { pal 0 surface 1 file "highres/sprites/characters/1405_duke.png" }
      skin { pal 10 surface 1 file "highres/sprites/characters/1405_duke_10.png" }
      skin { pal 11 surface 1 file "highres/sprites/characters/1405_duke_11.png" }
      skin { pal 12 surface 1 file "highres/sprites/characters/1405_duke_12.png" }
      skin { pal 13 surface 1 file "highres/sprites/characters/1405_duke_13.png" }
      skin { pal 14 surface 1 file "highres/sprites/characters/1405_duke_14.png" }
      skin { pal 15 surface 1 file "highres/sprites/characters/1405_duke_15.png" }
      skin { pal 16 surface 1 file "highres/sprites/characters/1405_duke_16.png" }
      skin { pal 21 surface 1 file "highres/sprites/characters/1405_duke_21.png" }
      skin { pal 23 surface 1 file "highres/sprites/characters/1405_duke_23.png" }
      skin { pal 0 surface 2 file "highres/sprites/pickups/0023_rpg.png" }

      // Crouch
      frame { name "crouch1" tile0 1471 tile1 1475 smoothduration 0.2 }
      frame { name "crouch2" tile0 1476 tile1 1480 smoothduration 0.2 }
      frame { name "crouch3" tile0 1481 tile1 1485 smoothduration 0.2 }
      // Death
      anim { frame0 "die0" frame1 "die1" fps 25 flags 1 }
      frame { name "die0" tile0 1506 tile1 1510 smoothduration 0.2 }
      frame { name "dead" tile 1519 smoothduration 0.3 }
   }

dummytilerange 8011 8014 16 16
model "DUKEPLUS_RESOURCES/GRAPHICS/dukecan.md3"
{
  scale 8.0
  zadd 1 // can on its side
  shade 0
  skin { pal 0 file "DUKEPLUS_RESOURCES/GRAPHICS/DukeCan.jpg" }
  skin { pal 10 file "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_red.jpg" }
  skin { pal 40 file "DUKEPLUS_RESOURCES/GRAPHICS/DukeCan_bust.jpg" } // opened can
  skin { pal 50 file "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_bust_red.jpg" } // opened can
  frame { name "FRAME1" tile 8011 }
}

model "DUKEPLUS_RESOURCES/GRAPHICS/dukecan.md3"
{
  scale 8.0
  shade 0
  skin { pal 0 file "DUKEPLUS_RESOURCES/GRAPHICS/DukeCan.jpg" }
  skin { pal 10 file "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_red.jpg" }
  skin { pal 40 file "DUKEPLUS_RESOURCES/GRAPHICS/DukeCan_bust.jpg" } // opened can
  skin { pal 50 file "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_bust_red.jpg" } // opened can
  frame { name "FRAME1" tile 8012 }
}

model "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_bust.md3" // crushed can
{
  scale 8.0
  shade 0
  skin { pal 0 file "DUKEPLUS_RESOURCES/GRAPHICS/DukeCan_bust.jpg" }
  skin { pal 10 file "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_bust_red.jpg" }
  frame { name "FRAME1" tile 8013 }
}

/*
 model "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_frag.md3" // can destruction
 {
  scale 10.0
  shade 0
  skin { pal 0 file "DUKEPLUS_RESOURCES/GRAPHICS/DukeCan_frag.jpg" }
  skin { pal 10 file "DUKEPLUS_RESOURCES/GRAPHICS/dukecan_frag_red.jpg" }
  frame { name "FRAME1" tile 8014 }
  anim { frame0 "FRAME1" frame1 "FRAME6" fps 25 flags 1 }
}
*/
