SDEF
//
// The file declaration section
//
path models/pulse3
origin 0 -25 -73
pulse_base.tga
pulse_base.sbm

ready1 	    pulse_ready.SAM
pulsefire1	pulse_fire1.SAM
beamfire1	pulse_fire2.SAM
idle1       pulse_idle1.SAM
pulseidle1	pulse_idle1.SAM
beamidle2	pulse_idle2.SAM
pchange		pulse_switchto.SAM
bchange		pulse_switchback.SAM
spindown	pulse_fire2spindown.SAM
putaway1	pulse_putaway.SAM

//
// Define model group areas
//
id 10 group hatch twosided translucent66
id 20 group redlight fullbright
id 30 group cell envmapped
id 40 group bluecell fullbright translucent66

id 200 group weapon bone barrel 0 180 90


//
// The initialization section
//
!init:
//
// Define the animation sound references
//
client aliasprefix Pulse2_

//client aliascache snd_fire1 "weapons/pulse/fanmix5.wav"
client aliascache snd_fire1 "weapons/pulse/fire1.wav"
//client aliascache snd_fire2 "weapons/pulse/fire2.wav"
//client aliascache snd_fire3 "weapons/pulse/fire3.wav"
client aliascache snd_spark1 "weapons/pulse2/spark2.wav"
client aliascache snd_open1 "weapons/pulse/open1.wav"
//client aliascache snd_prefire1 "weapons/pulse/fanstartmix1.wav"
//client aliascache snd_postfire1 "weapons/pulse/fanendmix1.wav"
client aliascache snd_loop1 "weapons/pulse/loop1.wav"
//client aliascache snd_loopdip1 "weapons/pulse/loopdip2.wav"
client aliascache snd_close1 "weapons/pulse/close1.wav"


//
// The main section
//
!main:
//
// Define the client/server animation references
//

client ready1 last randomsound snd_loop .8 7

client pulsefire1 first attach barrel sprites/pulse_muzzle.spr time 0.1 scale 1.0 
client pulsefire1 first randomsound snd_fire 1 1
server pulsefire1 first weaponsound
server pulsefire1 first shoot

client beamfire1 first attach barrel sprites/pulse_muzzle.spr time 0.6 animate fast
client beamfire1 first randomsound snd_spark 1 1
server beamfire1 first weaponsound
server beamfire1 1 shoot
server beamfire1 2 shoot
server beamfire1 3 shoot
server beamfire1 4 shoot
server beamfire1 5 shoot
server beamfire1 6 shoot
client beamfire1 last randomsound null_sound 1

client putaway1 first randomsound snd_close 1 2
server putaway1 first movementsound
