SDEF

//
// The SINED declaration section
//
/*SINED Boss_EonAndPeon (1 .5 0) (0 0 0) (0 0 0)
Eon and Peon
*/


//
// The file declaration section
//
path models/peon
scale 1.60
peon.sbm
newpeon.tga
peon.tga
//
// Declare the animation types and files
//
melee1    attacka.sam
melee2    attackb.sam
melee3    attackc.sam
melee4    attackd.sam
melee5    attacke.sam

idle1     idlea.sam
run1      walka.sam
pain1     ppaina.sam
pain2     ppainb.sam
pain3     ppainc.sam
death     deatha.sam
candy     candy.sam
candyidle candyidle.sam
climb     climb.sam
jump      jump.sam
land      jump.sam
spew      spew.sam

id 100 group vent bone goo1 0 0 0 metal
id 200 group vent bone goo2 0 0 0 metal
id 300 group vent bone goo3 0 0 0 metal
id 400 group vent bone goo4 0 0 0 metal
id 500 group vent bone goo5 0 0 0 metal
id 600 group vent bone goo6 0 0 0 metal

//
// The initialization section
//
!init:
server classname EonAndPeon
server setsize "-40 -40 0" "40 40 104"
server script global/peon.scr
server health 4500
server mass 2000
server meleedamage 150
server meleerange 180
server painthreshold 150

//
// Define the aniamtion sound references
//

//
// CLIENT Initialization Commands
//
// Sound Aliases
client aliascache snd_pain1	 	"monsters/peon/pain1.wav" 1
client aliascache snd_pain2	 	"monsters/peon/pain2.wav" 1
client aliascache snd_pain3	 	"monsters/peon/pain3.wav" 1
client aliascache snd_pain4	 	"monsters/peon/pain4.wav" 1
client aliascache snd_pain5	 	"monsters/peon/pain5.wav" 1
client aliascache snd_pain6	 	"monsters/peon/pain6.wav" 1

client aliascache snd_death1	 	"monsters/peon/deth1a.wav" 1

//
// SERVER Initialization Commands
//
// Sound Aliases
server aliascache snd_attacktaunt1 	"monsters/peon/Attack1.wav" 1
server aliascache snd_attacktaunt2 	"monsters/peon/Attack2.wav" 1
server aliascache snd_attacktaunt3 	"monsters/peon/Attack3.wav" 1
server aliascache snd_attacktaunt4 	"monsters/peon/Attack4.wav" 1
server aliascache snd_attacktaunt5 	"monsters/peon/Attack5.wav" 1

server aliascache snd_pain_taunt1  "monsters/peon/Attack1.wav" 1
server aliascache snd_pain_taunt2  "monsters/peon/Attack2.wav" 1
server aliascache snd_pain_taunt3  "monsters/peon/Attack3.wav" 1
server aliascache snd_pain_taunt4  "monsters/peon/Attack4.wav" 1
server aliascache snd_pain_taunt5  "monsters/peon/Attack5.wav" 1

server aliascache  snd_pursuit1    "monsters/peon/Attack4.wav" 1

server aliascache  snd_sightenemy1    "monsters/peon/site1.wav" 1
server aliascache  snd_sightenemy2    "monsters/peon/site2.wav" 1
server aliascache  snd_sightenemy3    "monsters/peon/site3.wav" 1
server aliascache  snd_sightenemy4    "monsters/peon/site4.wav" 1

server aliascache  snd_inmysights1    "monsters/peon/site1.wav" 1
server aliascache  snd_inmysights2    "monsters/peon/site2.wav" 1

server aliascache  snd_idle1          "monsters/peon/idle1.wav" 1
server aliascache  snd_idle2          "monsters/peon/idle2.wav" 1
server aliascache  snd_idle3          "monsters/peon/idle3.wav" 1
server aliascache  snd_idle4          "monsters/peon/idle4.wav" 1

server aliascache  snd_investigate1   "misc/null.wav" 1
server aliascache  snd_locate1        "misc/null.wav" 1

server aliascache  snd_tauntdeath1    "monsters/peon/Attack2.wav" 1

client aliascache snd_whoosh1	 	"weapons/punch/whsh1.wav" 1
client aliascache snd_whoosh2	 	"weapons/punch/whsh2.wav" 1

client aliascache snd_kneefall1 "impact/bodyfall/big/sml1.wav" 1
client aliascache snd_kneefall2 "impact/bodyfall/big/sml2.wav" 1
client aliascache snd_partfall1 "impact/bodyfall/big/med1.wav" 1
client aliascache snd_partfall2 "impact/bodyfall/big/med2.wav" 1
client aliascache snd_partfall3 "impact/bodyfall/big/med3.wav" 1
client aliascache snd_bodyfall1 "impact/bodyfall/big/lrg1.wav" 1
client aliascache snd_bodyfall2 "impact/bodyfall/big/lrg2.wav" 1
client aliascache snd_drag1 "impact/bodyfall/big/drag1.wav" 1
client aliascache snd_run1 "impact/bigfoot.wav" 1
client aliascache snd_walk1 "impact/bigfoot2.wav" 1

server aliascache  snd_eat1          "monsters/peon/eat1.wav" 1
server aliascache  snd_eat2          "monsters/peon/eat2.wav" 1
server aliascache  snd_eat3          "monsters/peon/eat3.wav" 1
server aliascache  snd_eat4          "monsters/peon/eat4.wav" 1


//
// The main section
//
!main:
//
// Define the clinet/server animation references
//
client death first randomsound snd_death 1 2
client death 2 randomsound snd_run .7 3
client death 9 randomsound snd_run .7 3
client death 10 randomsound snd_run .7 3
client death 12 randomsound snd_run .7 4
client death 14 randomsound snd_run .7 3
client death 15 randomsound snd_run .7 4
client death 17 randomsound snd_run .7 3
client death 19 randomsound snd_run .7 4
client death 20 randomsound snd_run .7 3
client death 21 randomsound snd_run .7 4
client death 22 randomsound snd_run .7 3
client death 23 randomsound snd_run .7 4
client death 25 randomsound snd_run .7 3
client death 26 randomsound snd_run .7 4
client death 27 randomsound snd_run .7 3
client death 28 randomsound snd_run .7 4
client death 30 randomsound snd_run .7 3
client death 32 randomsound snd_run .7 4
client death 33 randomsound snd_run .7 3
client death 34 randomsound snd_run .7 4
client death 35 randomsound snd_run .7 3
client death 37 randomsound snd_run .7 4
client death 39 randomsound snd_run .7 3


server pain1 first painsound
client pain1 first randomsound snd_pain 1
server pain2 first painsound
client pain2 first randomsound snd_pain 1
server pain3 first painsound
client pain3 first randomsound snd_pain 1

server spew 3 movementsound
client spew 3 randomsound snd_run 1
server spew 3 spawngoo
server spew 5 spawngoo
server spew 7 spawngoo
server spew 9 spawngoo
server spew 11 spawngoo

server melee1 0 movementsound
client melee1 0 randomsound snd_run 1 3
server melee1 5 movementsound
client melee1 5 randomsound snd_run 1 3
server melee1 5 movementsound
server melee1 5 melee 100
client melee1 5 randomsound snd_whoosh 1 4

server melee2 0 movementsound
client melee2 0 randomsound snd_run 1 3
server melee2 5 movementsound
client melee2 5 randomsound snd_run 1 3
server melee2 5 movementsound
server melee2 5 melee 100
client melee2 5 randomsound snd_whoosh 1 4

server melee3 0 movementsound
client melee3 0 randomsound snd_run 1 3
server melee3 5 movementsound
client melee3 5 randomsound snd_run 1 3
server melee3 6 movementsound
server melee3 6 melee 100
client melee3 6 randomsound snd_whoosh 1 4

server melee4 0 movementsound
client melee4 0 randomsound snd_run 1 3
server melee4 5 movementsound
client melee4 5 randomsound snd_run 1 3
server melee4 6 movementsound
server melee4 6 melee 100
client melee4 6 randomsound snd_whoosh 1 4

server melee5 0 movementsound
client melee5 0 randomsound snd_run 1 3
server melee5 5 movementsound
client melee5 5 randomsound snd_run 1 3
server melee5 6 movementsound
server melee5 6 melee 100
client melee5 6 randomsound snd_whoosh 1 4
server melee5 7 movementsound
client melee5 7 randomsound snd_run 1 3

server candy 4 movementsound
client candy 4 randomsound snd_drag
server candy 12 movementsound
client candy 12 randomsound snd_run 1 3

server climb 7 movementsound
client climb 7 randomsound snd_run 1 3
server climb 17 movementsound
client climb 17 randomsound snd_run 1 3
server climb 30 movementsound
client climb 30 randomsound snd_run 1 3

server run1 0 movementsound
client run1 0 randomsound snd_run 1 1
server run1 4 movementsound
client run1 4 randomsound snd_run 1 1

server jump 4 nextframe 4

server land first setframe 5
server land last movementsound
client land last randomsound snd_run1 1 1
