SDEF
//
// The file declaration section
//
path models/turtop
scale 1.0
turtop_base.sbm
turtop_base.tga

//
// Declare the animation types and files
//
fire      turtop_fire.SAM
down_idle turtop_idledown.SAM
up_idle   turtop_idleup.SAM
lower     turtop_lower.SAM
raise     turtop_raise.SAM

id 200 group turret bone barrel
id 200 group turret bone barrel1
id 210 group turret bone barrel2

//
// The initialization section
//
!init:
server classname actor
server weapon Secgun

//
// Define the animation sound references
//

server aliascache snd_seek1 "monsters/turtop/topmove1.wav"
server aliascache snd_stop1 "monsters/turtop/topstop1.wav"

client aliascache snd_lower1 "monsters/turtop/topretr1.wav"
client aliascache snd_raise1 "monsters/turtop/turrise1.wav"
client aliascache snd_idle1 "monsters/turtop/turrise1.wav"
client aliascache snd_fire1 "weapons/camgun/newmix.wav"

//
// The main section
//
!main:

//
// Define the client/server animation references
//

server fire 0 attack_start
server fire 0 weaponsound
server fire 0 fire
client fire 0 randomsound snd_fire 1 1
client fire 0 attach barrel1 sprites/gunblast.spr time 0.05 scale 0.4 randomroll
server fire 3 weaponsound
server fire 3 fire
client fire 3 randomsound snd_fire 1 1
client fire 3 attach barrel2 sprites/gunblast.spr time 0.05 scale 0.4 randomroll
server fire last attack_finished

server down_idle 0 checkvicinity

server lower 0 endseek
client lower 1 randomsound snd_lower 1 2
client lower end randomsound snd_idle 1 2
server lower end nextanim down_idle 

client raise 1 randomsound snd_raise 1 2
server raise end setsighttime
server raise end seek
server raise end nextanim up_idle

/*SINED trap_securityturret (1 .3 .3) (0 0 0) (0 0 0)
If targeted, Turret will only be activated when triggered
"wakeupdistance - Distance at which the camgun senses players (Default is 750)
"firingdistance - Distance at whicht the camgun will fire at a player (Default is 800)
Make sure that wakeupdistance < firingdistance.
*/
