#   Copyright 2023-2024 Gustaf "Hanicef" Alhäll

#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at

#       http://www.apache.org/licenses/LICENSE-2.0

#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

Freeslot
S_SCALEGHOST0
S_SCALEGHOST1
S_SCALEGHOST2
S_SCALEGHOST3
S_SCALEGHOST4
S_SCALEGHOST5
S_SCALEGHOST6
S_SCALEGHOST7
S_SCALEGHOST8
S_SCALEGHOST9
MT_SCALEGHOST
SFX_GDFLIP
SFX_GDTRST
SFX_GDCLOK
SFX_GDVISR

State S_SCALEGHOST0
SpriteName = SPR_NULL
SpriteFrame = A
Duration = 1
Next = S_SCALEGHOST1

State S_SCALEGHOST1
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS10|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST2

State S_SCALEGHOST2
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS20|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST3

State S_SCALEGHOST3
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS30|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST4

State S_SCALEGHOST4
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS40|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST5

State S_SCALEGHOST5
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS50|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST6

State S_SCALEGHOST6
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS60|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST7

State S_SCALEGHOST7
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS70|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST8

State S_SCALEGHOST8
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS80|A
Duration = 2
Action = A_CopyPlayerState
Next = S_SCALEGHOST9

State S_SCALEGHOST9
SpriteName = SPR_PLAY
SpriteFrame = FF_FULLBRIGHT|FF_TRANS90|A
Duration = 2
Action = A_CopyPlayerState
Next = S_NULL

Object MT_SCALEGHOST
SpawnState = S_SCALEGHOST0
SpawnHealth = 1000
Radius = 1
Height = 1
Flags = MF_NOBLOCKMAP|MF_NOGRAVITY|MF_NOCLIPHEIGHT|MF_SCENERY

Sound SFX_GDFLIP
Priority = 64
Flags = 0
Caption = Gravity flip

Sound SFX_GDTRST
Priority = 64
Flags = 0
Caption = Thrust

Sound SFX_GDCLOK
Priority = 64
Flags = 0
Caption = Cloaking

Sound SFX_GDVISR
Priority = 64
Flags = 0
Caption = Visor toggle
