
; ---------------------------------------------------------------------
; fishdth1.ini

; ---------------------------------------------------------------------
; Note that filename portion of texture pathnames found in meshes
; (both wrl and sqg) will be treated (or looked up) as resources.
; ---------------------------------------------------------------------

[GeometryResources]

fshdeth=deaths\fishdeth\fshdeth.wrl
fspl01=deaths\splash\fspl01.wrl
fspl02=deaths\splash\fspl02.wrl
fspl03=deaths\splash\fspl03.wrl
fspl04=deaths\splash\fspl04.wrl
fspl05=deaths\splash\fspl05.wrl
fspl06=deaths\splash\fspl06.wrl
fspl07=deaths\splash\fspl07.wrl
fspl08=deaths\splash\fspl08.wrl

; ---------------------------------------------------------------------

[TextureResources]
;Fish Texs

eye=deaths\fishdeth\eye.gif
face=deaths\fishdeth\face.gif
fins=deaths\fishdeth\fins.gif
gullet=deaths\fishdeth\gullet.gif
lips=deaths\fishdeth\lips.gif
scales=deaths\fishdeth\scales.gif

[AudioResources]
; Fish death audio
fishDeathEffect=audio\effect\death\splash.wav

; ---------------------------------------------------------------------
[FunctionList]

1001=BeginFishDeath
1002=EndFishDeath
1003=FishSound
1004=CreateFish
1005=TurnOffCamera
1006=MakeSplashFunc
1007=LeaveFishDeath
1008=ResetFishDeathMotion

[BeginFishDeath]
Class=function
1=SetMotionSpeed 0.0
;2=SetSpeed 0.0 0.0 -1.5 -4.5 0.0 0.0 0.0
2=KillSqueezil 3
3=PlayAudioEffect fishDeathEffect
4=DelayedExecute 1 CreateFish
;5=DelayedExecute 2.4 MakeSplashFunc
;6=DelayedExecute 10.3 TurnOffCamera 
6=DelayedExecute 2.0 EndFishDeath
;7=SetJumpable 0

[EndFishDeath]
Class=function
1=Execute ResetFishDeathMotion
2=KillSqueezil 0

[FishSound]
Class=function
1=PlayAudioEffect fishDeathEffect

[CreateFish]
Class=function
;1=CreatePropAtSqueezilPosition FishJump 0.5 0 -0.5 0 1 0
1=CreatePropTrackingSqueezilXform FishJump 0 0 1 0 1 0
5=IfPlayer AnimateCameraPath 0 0 1.2 camPath

[TurnOffCamera]
Class=function
1=AnimateCameraPathOff 4

[MakeSplashFunc]
Class=function
1=CreatePropAtSqueezilPosition Splash 0 0 0 0 0 0
2=PlayAudioEffect fishDeathEffect

[LeaveFishDeath]
; this is the Deactivate function
Class=function
1=DelayedExecute 2 ResetFishDeathMotion

[ResetFishDeathMotion]
Class=function
1=ResetJumpable
2=ResetSpeed


; ---------------------------------------------------------------------
[SurfaceList]

1001=FishDeathSurf

[FishDeathSurf]
Class=surface
Navigable=true
Activate=BeginFishDeath
RebudGoodies=2.0

; ---------------------------------------------------------------------

[BackstagePropList]

1001=FishJump
1002=Splash

[FishJump]
Type=prop
Prop=fshdeth
Position= 0 0 0
Path=fishjumpPath
;PathFunction1=1.35  DelayedExecute 0.001 MakeSplashFunc

[Splash]
Type=Cycle
ChildCount=8
Child1=fspl01
Child2=fspl02
Child3=fspl03
Child4=fspl04
Child5=fspl05
Child6=fspl06
Child7=fspl07
Child8=fspl08

; ---------------------------------------------------------------------
[PathList]

1=fishjumpPath
2=camPath

[fishjumpPath]
Position1=0 -2.112734 11.2549
Rotation1=60.73349 0 0
Time1=.05
Position2=0 -1.980401 11.19667
Rotation2=58.79021 0 0
Time2=.05
Position3=0 -0.718272 10.53146
Rotation3=53.52856 0 0
Time3=.05
Position4=0 0.412585 9.768042
Rotation4=45.80079 0 0
Time4=.05
Position5=0 1.408037 8.943762
Rotation5=36.45919 0 0
Time5=.05
Position6=0 2.258663 8.082111
Rotation6=26.35605 0 0
Time6=.05
Position7=0 2.951384 7.2026
Rotation7=16.34361 0 0
Time7=.05
Position8=0 3.471427 6.326619
Rotation8=7.274176 0 0
Time8=.05
Position9=0 3.807236 5.482642
Rotation9=0 0 0
Time9=.05
Position10=0 3.961154 4.709272
Rotation10=-5.762465 0 0
Time10=.05
Position11=0 3.963078 4.049696
Rotation11=-10.95831 0 0
Time11=.05
Position12=0 3.875735 3.535537
Rotation12=-15.72758 0 0
Time12=.05
Position13=0 3.769084 3.17758
Rotation13=-20.21029 0 0
Time13=.05
Position14=0 3.684462 2.961069
Rotation14=-24.54647 0 0
Time14=.05
Position15=0 3.598727 2.775183
Rotation15=-28.87616 0 0
Time15=.05
; zenith of jump
Position16=0 3.497931 2.585525
Rotation16=-33.33939 0 0
Time16=.05
Position17=0 3.371334 2.378373
Rotation17=-38.07618 0 0
Time17=.05
Position18=0 3.204561 2.142769
Rotation18=-43.22658 0 0
Time18=.05
Position19=0 2.979337 1.871692
Rotation19=-48.93059 0 0
Time19=.05
Position20=0 2.721638 1.608314
Rotation20=-55.15581 0 0
Time20=.05
Position21=0 2.463495 1.380942
Rotation21=-62.03251 0 0
Time21=.05
Position22=0 2.136331 .85
Rotation22=-69.94481 0 0
Time22=.05
Position23=0 1.654379 0.0
Rotation23=-79.27682 0 0
Time23=.05
Position24=0 0.9164245 0.0
Rotation24=-90.41267 0 0
Time24=.1
Position25=0 -0.1899719 0.0
Rotation25=-98.0 0 0
Time25=.1
Position26=0 -1.776397 0.0
Rotation26=-104.0 0 0
Time26=.1

; - removed cam path , the viewer sees the sqz getting it
[camPath2]
Position10 = 0 .4 -4.3
Rotation10 = 0 0 0 
Time10= 0.2


Position40 = 1 .2 -4.5
;Rotation40 = -80 0 0 
Time40 = 0.2

Position50 = 2 .4 -4.0 
;Rotation50 = 0 0 0
Time50 = 0.2 

; --
; -- into the maw
; --
[camPath]
Position10 = 0 .5 -0.3
Rotation10 = 0 0 0 
Time10= 1.0

Position10 = 0 .2 -0.3
Rotation10 = 0 0 0 
Time10= 0.2

Rotation20 = -25 0 0 
Time20 = 0.2

Rotation30 = -45 0 0 
Time30 = 0.2

Position40 = 0 .5 -0.8
Rotation40 = -70 0 0 
Time40 = 0.2



; -------------------
[oldCamPath]
;Position1=0.05 0.410 -0.670
;Rotation1=5 0 0
;Time1=.20

;Position2=0.05 0.380 -1.20
;Rotation2=2.5 0 0
;Time2=.20

;Position3=.05 .35 -1.8
;Rotation3=0 0 0
;Time3=.20

;Position4=.50 .325 -1.65
;Rotation4=0 -15 0
;Time4=.20

;Position5=1.0 .3 -1.5
;Rotation5=-1 -35 0
;Time5=.20

;Position6=1.25 .275 -1.25
;Rotation6=-2.5 -60 0
;Time6=.20

;Position7=1.5 .25 1.0
;Rotation7=-5 -80 0
;Time7=.20

;Position8=1.6 .225 0.50
;Rotation8=-6 -85 0
;Time8=.20

;Position9=1.65 .2 .20
;Rotation9= -7.5 -87.5 0
;Time9=.30

;Position10=1.7 .2 0
;Rotation10= -10 -90 0
;Time10=.40

;Position11=1.7 .2 0
;Rotation11= -12.5 -90 0
;Time11=8.0


; ---------------------------------------------------------------------
