You are not logged in.

Dear visitor, welcome to Nitrado Türkiye Ön Ödemeli Gameserver Kiralama Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

ToprakH

Trainee

  • "ToprakH" is male
  • "ToprakH" started this thread

Posts: 401

Date of registration: Jan 15th 2015

Location: İzmir

Occupation: Öğrenci

  • Send private message

1

Saturday, March 12th 2016, 2:48pm

Logolu Giriş İntro Scripti by ToprakH.

Girişte sunucu logonuzla beraber bir intro scriptini tanıttım.




Adım 1: Yeni dosya oluşturuyoruz. (scripts\cameraHeight.sqf) : Kodları;




Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
   Creater: ToprakH.

*/


private ["_camera", "_camDistance"];

 introSpawn = nil;
 _camDistance = 2500;
waitUntil {alive player};
 showCinemaBorder true;
camUseNVG false;
 for "_x" from 0 to 20 do 
{
   _x cutRsc ["introLife","PLAIN"];
};
 _camera = "camera" camCreate [(position player select 0)+5, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
_camera camSetTarget vehicle player;
_camera camSetFOV 1.000;
_camera camCommit 2;
 waitUntil {camCommitted _camera};
 _camera camSetFOV 4.000;
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,-10,20];
_camera camCommit 5;
 waitUntil {camCommitted _camera};
 _camera camSetFOV 2.000;
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,-1.5,2];
_camera camCommit 1;
 waitUntil {camCommitted _camera};
 _camera camSetTarget vehicle player;
_camera camSetRelPos [0,-1,1.85];
_camera camCommit 2;
 waitUntil {camCommitted _camera};
 _camera camSetTarget vehicle player;
_camera camSetRelPos [0,-0.05,1.85];
_camera camCommit 0.15;
 waitUntil {camCommitted _camera};
 _camera cameraEffect ["terminate","back"];
 camDestroy _camera;
 introSpawn = true;



Adım 2: Yeni dosya oluşturuyoruz. (scripts\cameraScreen.sqf) : Kodları;




Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
    Author: ToprakH

*/

_hndl = ppEffectCreate ["colorCorrections", 1501];

_hndl ppEffectEnable true;
_hndl ppEffectAdjust [1,1,-0.01,[1.0, 1.0, 1.0, 0.7],[1, 1, 1, 1],[0, 0, 0, 1]];
_hndl ppEffectCommit 0;
 sleep 3;
 _hndl ppEffectEnable true;
_hndl ppEffectAdjust [1,1,-0.01,[0, 0, 0, 0],[1, 1, 1, 1],[0, 0, 0, 1]];
_hndl ppEffectCommit 10;
 waitUntil {ppEffectCommitted _hndl};
 ppEffectDestroy _hndl;




Adım 3: Description.ext dosyasına gidip class RscTitles'in altındaki #include'nin aşağısındaki parantezin aldına bu kodları yapıştırıyoruz.



Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 class introLife
{
   idd = -1;
   duration = 6;
   class controls
   {
         class ExampleControl
         {
            idc = -1;
            type = 0;
            style = 2192;
            x = 0.125;
            y = 0.125;
            h = 0.75;
            w = 0.75;
            font = "EtelkaNarrowMediumPro";
            sizeEx = 0.05; 
            colorBackground[] = {1,1,1,0};
            colorText[] = {1,1,1,1};
            text = "textures\logo.paa";      <----  LOGO DOSYANIZIN DİZİNİNİ BURDAN GÖSTERİN
            lineSpacing = 1;
         }; 
      }; 
   }; 
};


Adım 4: Altis_Life.Altis dosyasının içindeki init.sqf dosyasına StartProgress= False; satırının altına

Source code

1
introSpawn = nil;

ekliyoruz.


Adım 5: dialog/functions/fn_spawnconfirm.sqf dosyasının içindeki kodların bazılarını aşağıdaki kodlarla değiştiriyoruz.



Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
[] spawn
{
   private["_handle"];
   cutText ["","BLACK IN"];
   [] execVM "scripts\cameraScreen.sqf";
   _handle = [] execVM "scripts\cameraHeight.sqf";
   waitUntil {scriptDone _handle};
    if(life_firstSpawn) then {
      life_firstSpawn = false;
      [] call life_fnc_welcomeNotification;
   };
   [] call life_fnc_hudSetup;
};


Bunları da aynı şekilde değiştiriyoruz;



Source code

1
2
3
4
5
if(life_firstSpawn) then {
   life_firstSpawn = false;
   [] call life_fnc_welcomeNotification;
};
[] call life_fnc_hudSetup;



İYİ OYUNLAR!



-Karşıyaka-



Rate this thread