Jump to content
suffer4real

[Tutorial] Outro Cam [Copy & Paste] 4.4r3

Recommended Posts

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Difficulty: Easy

Publish by:  suffer4real

Source AltisLifeRPG.com cache

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1.

Open | It is located in core/functions

fn_escInterupt.sqf


2.

Find

 

_abortButton buttonSetAction "[] call SOCK_fnc_updateRequest; [player] remoteExec [""TON_fnc_cleanupRequest"",2];";

and paste right below this :
 

_abortButton ctrlSetEventHandler ["ButtonClick","[] spawn life_fnc_loggedOut; (findDisplay 49) closeDisplay 2; true"];


now go to your Functions.h and paste under core/functions

 

class loggedOut {};


Now Create a new file in core/functions called :  fn_loggedOut.sqf

and paste this code in it :
 

#include "..\..\script_macros.hpp" 

disableSerialization;
 player allowDamage false;
 disableUserInput true;
 showChat false;
 hint "";
 [LIFE_ID_PlayerTags,"onEachFrame"] spawn BIS_fnc_removeStackedEventHandler;
 1 fadeSound 0;
 1 fadeSpeech 0;
 [] call SOCK_fnc_updateRequest;
 _ui = uiNamespace getVariable ["Life_HUD_nameTags",displayNull];
 _outroCam = "camera" camCreate (player modelToWorldVisual [-5,0,1.85]);
 _outroCam cameraEffect ["internal","back"];
 _outroCam camSetFov 2.000;
 _outroCam camSetTarget vehicle player;
 _outroCam camSetRelPos [0,-1,1.85];
 _outroCam camCommit 0;
 waitUntil {camCommitted _outroCam};
 _outroCam camSetFov 2;
 _outroCam camSetRelPos [0,-5,1.85];
 _outroCam camCommit 1;
 8 cutFadeOut 3;
 waitUntil {camCommitted _outroCam};
 _outroCam camSetFov 9;
 _outroCam camSetRelPos [0,-5,1050.85];
 _outroCam camCommit 1.5;
 waitUntil {camCommitted _outroCam};
 cutText ["","BLACK",1];
 sleep 1;
 4 cutRsc ["SplashNoise","BLACK"];
 sleep 0.25; 

_name = name player; 

[
     format[
     "<t size='1.3' color='#00C10D'>Thanks For Playing!</t><br/>Good Bye %1 ! <br/><t size='1.1'>Data Synced And Gear Saved.</t>",_name],
     0,
     0.2,
     10,
     0,
     0,
     8
 ] spawn BIS_fnc_dynamicText;
 private["_activeHC"];
 sleep 4;
 _activeHC = false;
[player] remoteExec ["TON_fnc_cleanupRequest",_activeHC];
 showChat true;
 disableUserInput false;
 ["",0,0.2,10,0,0,8] spawn BIS_fnc_dynamicText;
 failMission "Left";
 _outroCam cameraEffect ["terminate","back"];
 camDestroy _outroCam;


I have this script working on 4.4r3 so that should work :)

Credit's : AlaskaVet

  • Like 2

Share this post


Link to post
Share on other sites
3 minutes ago, AlaskaVet said:

LMAO did you not read the post. It was referring to me.

Even linked to my plays.tv account

sure, but i did get it from somewhere else :o , but no one can actually proof they wrote it anyway i update my post in a sec.

Share this post


Link to post
Share on other sites

Find

_abortButton buttonSetAction "[] call SOCK_fnc_updateRequest; [player] remoteExec [""TON_fnc_cleanupRequest"",2];";

and paste right below this :
 

_abortButton ctrlSetEventHandler ["ButtonClick","[] spawn life_fnc_loggedOut; (findDisplay 49) closeDisplay 2; true"];

Why paste below, loggedOut.sqf do already a sync and cleanup? so why you just dont replace?

 

Edited by DreaM

Share this post


Link to post
Share on other sites
On 13/09/2016 at 5:19 AM, suffer4real said:

private["_activeHC"]; sleep 4; _activeHC = false; [player] remoteExec ["TON_fnc_cleanupRequest",_activeHC];

 

lol 4.4/5.0 people will have a problem with this.

Why private array for defining true or false?

remoteExec ["TON_fnc_cleanupRequest",false];

cleaner / easier or..

remoteExec ["TON_fnc_cleanupRequest",2];

  • Like 1

Share this post


Link to post
Share on other sites

How can I change this script to make it work when click yes after abort. It is this text "If you cancel this mission you will return to lobby. Are you Sure?" 

Share this post


Link to post
Share on other sites
3 hours ago, grim1205 said:

How can I change this script to make it work when click yes after abort. It is this text "If you cancel this mission you will return to lobby. Are you Sure?" 

I don't think you can. You simply change it to run a new function. You could edit the script yourself to ask if they want to abort before doing so.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...