Files
firestorm/Gameleap/mw4/Content/ShellScriptsDev/CampaignCinema.script
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

112 lines
1.7 KiB
Plaintext

#include "Content\\ShellScripts\\stddefs.h"
#define nMSG_StopMovie 69
#define nMSG_MovieStop 70
main
{
GUI_CREATE
{
object o_cinema = cinema_script
focus(o_cinema)
}
GUI_DRAW
{
setpencolor(0,0,0,255)
drawrect 0,0 to getresx(),50
drawrect 0,(getresy() - 50) to getresx(), getresy()
}
}
cinema_script
{
GUI_CREATE
{
@mouse@pointer.showMousePointer = 0
@SHELL@bkg = GPATH "CC_Background.tga"
stop 0
location = 0, 0, 10
movie cinema = szPATH_MOVIES "Campopen.mpg"
scale (cinema) = 209,209,100
play cinema
region = 0,0 to 800,600
int cleared = 0
framerate = 10
int mstop
}
LBUTTON_UPDATE
{
if (mouse.left == BUTTON_PRESSED)
{
mail(nMSG_StopMovie,this)
}
}
GUI_DRAW
{
if (cleared == 0)
{
render @SHELL@bkg,@SHELL@location
cleared = 1
}
render cinema,0,30
}
GUI_MAILBOX
{
if(mstop ==1)
{
return
}
if (getmessage() == nMSG_StopMovie || getmessage() == nMSG_MovieStop)
{
mstop = 1
stop cinema
unfocus
if (getvolume(0))
loop @SHELL@music, 0
if(exists(@CampaignScreen@))
{
script_continue @CampaignScreen@
}
if(exists(@Cinema_Credits@))
{
script_continue @Cinema_Credits@
}
script_end
@mouse@pointer.showMousePointer = 1
}
}
GUI_EXECUTE
{
if (getstatus(cinema) == 3)
{
mail(nMSG_MovieStop,this)
}
}
GUI_CHAR
{
int ch = getchar()
if (ch == char(" ")) // only escape or space exit the cinema
{
mail(nMSG_StopMovie,this)
}
if (ch == 27)
{
mail(nMSG_StopMovie,this)
}
}
}