MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aCinematicSimple

Function aCinematicSimple

scripts/DallasFuncs.cpp:3809–3832  ·  view source on GitHub ↗

$$ACTION Cinematics Simple letterbox format cinematic, using path [h:CameraPath], with text [s:Text] targeting [o:Target] for [f:Seconds=10.0f] has fade in [b:FadeIn] aCinematicSimple CinematicSimple This creates a simple cinematic, in Letterbox mode. The camera will follow the given path. And the given text will be shown at the bottom of the screen. There is no 'quick exit' by keypress. To do

Source from the content-addressed store, hash-verified

3807$$END
3808*/
3809void aCinematicSimple(int pathid, const char *Text, int Target, float Seconds, bool FadeIn = false) {
3810 tGameCinematic info;
3811
3812 info.flags = 0;
3813 info.flags = (GCF_LETTERBOX | GCF_USEPATH | GCF_TEXT_WIPEIN | GCF_LAYOUT_BOTTOM);
3814 info.target_objhandle = Target;
3815 info.max_time_play = Seconds;
3816 info.callback = NULL;
3817 info.text_display.min = 0.40f;
3818 info.text_display.max = 1.0f;
3819 info.track_target.min = 0.0f;
3820 info.track_target.max = 1.0f;
3821 info.player_disabled.min = 0.0f;
3822 info.player_disabled.max = 1.0f;
3823 info.in_camera_view.min = 0.0f;
3824 info.in_camera_view.max = 1.0f;
3825 info.quick_exit.min = 1.0f;
3826 info.quick_exit.max = 1.0f;
3827 info.end_transition = GCTT_FADEINOUT;
3828 info.start_transition = (FadeIn) ? GCTT_FADE : GCTT_NONE;
3829 info.pathid = pathid;
3830
3831 Cine_Start(&info, Text);
3832}
3833
3834/*
3835$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected