Jump to content

Two Oldies Remake (Spawn Camera&DebugMonitor)


juandayz

Recommended Posts

HI, this is a remake for the old spawn camera and other old debug monitor.

DEBUG MONITOR  (toggle whit mousewheel) exelent for use whit snap pro.

 

1- Make a .sqf file called "custom_monitor.sqf" and paste this code

Spoiler

if (isNil "debugMonitor") then { debugMonitor = false; };
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {
    debugMonitor = true;
    while {debugMonitor} do
    {
    
    
     hintSilent parseText format ["
    <t size='0.75' font='Bitstream' align='left' color='#6476ff'>survivors: </t><t size='0.95' font='Bitstream' align='left'color='#FF0000'>%7</t>
    <t size='0.75' font='Bitstream' align='right' color='#6476ff'>Restart: </t><t size='0.95' font='Bitstream' align='right'color='#FF0000'>%9 mins.</t><br/>
    
    <t size='0.75' font='Bitstream' align='left' color='#FFBF00'>Zeds: </t><t size='0.95' font='Bitstream' align='right'color='#FFBF00'>%2</t><br/>
    <t size='0.75' font='Bitstream' align='left' color='#ee6023'>Murders: </t><t size='0.95' font='Bitstream' align='right'color='#ee6023'>%4</t><br/>
    <t size='0.75' font='Bitstream' align='left' color='#ee6023'>Bandits Kills: </t><t size='0.95' font='Bitstream' align='right'color='#ee6023'>%5</t><br/>
    <t size='0.75' font='Bitstream' align='left' color='#ee6023'>Shoots on Brains: </t><t size='0.95' font='Bitstream' align='right'color='#ee6023'>%3</t><br/>
    <t size='0.75' font='Bitstream' align='left' color='#a3ff00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'color='#a3ff00'>%6</t><br/>
    <t size='0.75' font='Bitstream' align='left' color='#ff0000'>Blood: </t><t size='0.95' font='Bitstream' align='right'color='#FF0000'>%8</t><br/>
    <t size='0.95' font='Bitstream' align='center' color='#2d3469'>Your Server Name</t><br/>
    <t size='0.65' font='Bitstream' align='center'>toggle whit mousewheel</t>

    ",
    (name player), //1
    (player getVariable['zombieKills', 0]), //2
    (player getVariable['headShots', 0]),  //3
    (player getVariable['humanKills', 0]), //4
    (player getVariable['banditKills', 0]), //5
    (player getVariable['humanity', 0]), //6
    (playersNumber west), //(count playableUnits), //7
    r_player_blood, //8
    (180-(round(serverTime/60))) //9
    
    

];
sleep 2;
};
};

2- Make a .sqf called "debug_init.sqf" and copy this code inside:

Spoiler

if (isnil "debuginit") then {debuginit = true;};

    if (debuginit) then
    {
        []spawn
        {
            private["_veh", "_idb", "_idb2"];
            _idb = -1;
            while {alive player} do
            {
                if (_idb == -1) then
                {
                    _idb = (vehicle player) addaction [("<t color=""#08088A"">" + ("Debug Toggle") +"</t>"),"custom\custom_monitor.sqf","",0,false,true,"",""];
                    _veh = vehicle player;
                };
                if (_veh != vehicle player) then
                {
                    _veh removeAction _idb;
                    _idb = -1;      
                };
                Sleep 2;
            };
        };
        debuginit = false;
    };
    waituntil {!alive player ; sleep 2;};
    debuginit = true;

3- now, move this two files to YourServerRoot\MPMissions\DayZ_Epoch_11.Chernarus\custom\

4-open your init.sqf , and paste in the botton:

Spoiler

//debug
[] execVM "custom\debug_init.sqf";
[] execVM "custom\custom_monitor.sqf";

Done!!!

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

Second Mod

SPAWN CAMERA: (whit intro sound)

1-Make a .sqf file called "camera.sqf" and paste this inside.  (**note: change your welcome msg in lines in red)

Spoiler

private [ "_camera", "_welcomeMessage", "_camDistance" ];
_welcomeMessage = format["welcome to paradise %1, enjoy",format["%1", name player]];
_camDistance = 60;
 
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
playsound "introSong";
 
//intro move
showCinemaBorder true;
camUseNVG false;
 
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
 
_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};
 
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 12;
 
cutText [_welcomeMessage, "PLAIN DOWN"];

waitUntil {camCommitted _camera};
 
_camera cameraEffect ["terminate","back"];
camDestroy _camera;

2-now move this file to YourServerRoo\MPMissions\DayZ_Epoch_11.Chernarus\custom\

3-open your init.sqf and find this line

Spoiler

//REALLY IMPORTANT VALUES
dayZ_instance =    11;                    //The instance
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
server_name = "your server name";

and paste this below (dont worry if u dont have "server_name = "your server name";")

Spoiler

PVDZE_plr_LoginRecord = nil; //intro camara

4- in your init.sqf find:

Spoiler

//Lights
    _nil = [] execVM "custom\remote\remote.sqf";
    //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
    execVM "ZSC\compiles\playerHud.sqf";

and paste this below

Spoiler

_nul = [] execVM "custom\camera.sqf";   //camera

***Note: if u dont have "//Lights" just paste into your   if (!isDedicated) then {

5- Add Sound.

open your description.ext and look for your "class CfgSounds" if you dont have. Paste This at the end of your Class section.

Spoiler

class CfgSounds
{
    sounds[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={introSong.ogg,0.9,1};
    titles[] = {};
    };
};

If you have "class CfgSounds"  use my example to add:

Spoiler

class CfgSounds
{
    sounds[] =
    {
        Radio_Message_Sound
        
    };
    class Radio_Message_Sound
    {
        name = "Radio_Message_Sound";
        sound[] = {custom\remote\radio.ogg,0.4,1};
        titles[] = {};
    };

    sounds2[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={custom\introSong.ogg,0.9,1};
    titles[] = {};
    }
};

6-Now you need do a .ogg sound file. 

use this:

cutting tool:http://cut-mp3.com/

mp3 to .ogg online:http://media.io/

7-Onces you have your .ogg sound.  Rename as "introSong.ogg" and move to YourServerRoot\MPMissions\DayZ_Epoch_11.Chernarus\custom

DONE!!!

 

 

Link to comment
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
  • Discord

×
×
  • Create New...