Jump to content
Semprus Gaming

Intuitive Outro Script

Recommended Posts

This is a nice intro script I found so posting it

Not going to post how to add it in fn_escinterrupt.sqf or functions.hpp as that is way to easy.

Add this in core\functions

/*--------------------------------------------------------------------
	Author: IEthanHD 
    OfpecTag: TGH
    File: fn_logout.sqf

	<TGH Gaming>
    Written by IEthanHD
    You're not allowed to use this file without permission from the author!
--------------------------------------------------------------------*/

scriptName "fn_logout";
#define __filename "fn_logout.sqf"

//--- Disable Serialization
disableSerialization;

//--- Sync
[] call SOCK_fnc_updateRequest;

//--- Get highlight colour
_colorHighlight = [ "GUI", "BCG_RGB" ] call BIS_fnc_displayColorGet;

//--- Give the player immunity
player allowDamage false;

//--- Disable user input
disableUserInput true;

//--- Hide chat
showChat false;

//--- Hide hint
hint "";

//--- Fade volume
1 fadeSound 0;
1 fadeMusic 0;
1 fadeRadio 0;
1 fadeSpeech 0;

//--- Fade screen
cutText [ "", "BLACK", 1 ];
sleep 2;

//--- Show sync screen
_effectID = 1 + floor random 3;
_videoFile = "A3\Missions_F_Bootcamp\video\VR_GenericTransition_" + str _effectID + ".ogv";
_video = [ _videoFile ] spawn BIS_fnc_playVideo;
playSound ( "Transition" + str _effectID );
sleep 2;
0 = [ format [ "<br/><t color='%4'>%3</t><br/><br/><t size='0.7'>%1 %2.</t>", "We hope to see you again soon", profileName, "SYNCING DATA WITH SERVER", _colorHighlight ], 0, 0.2, 2, 0.5, 0, 1000 ] spawn BIS_fnc_dynamicText;

//--- Delay
sleep 5;

//--- Enable user input
disableUserInput false;

//--- End Mission
failMission "AbortFL";
endLoadingScreen;

 

Edited by Semprus Gaming
  • Sad 1

Share this post


Link to post
Share on other sites
17 minutes ago, Kvisten GigaGaming.dk ✅ said:
Written by IEthanHD
    You're not allowed to use this file without permission from the author!

OP is IEthanHD

Edited by Wackbatt
  • Haha 1
  • Confused 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×