Adding image to screen that fades out shortly after login (a la Rape Dungeon)

Kosugi

Member
I saw this when I logged into a Taviana server called Rape Dungeon:

p0dHxSp.jpg


After a few seconds, the image fades away and eventually disappears, like this:

BIZVbqQ.jpg


I have contacted the Rape Dungeon guys and asked them if they'd be willing to share how they did this, and have yet to receive a response. I was wondering if any kind souls here might have an idea of how to approach this.

Any help you can give would be greatly appreciated. Feel free to contact me privately if you'd prefer that.

Thank you very much. :)
 
Got the following bit of code extracted from their mission.pbo but it doesn't do anything when I place the PAA in my own PBO and add this to description.ext:

Code:
class RscTitles
{
        class LoadInLogoDisplay
        {
                idd = 8000;
                movingEnable = 0;
                duration = 5;
 
                class controlsBackground
                {
                };
 
                class objects
                {
                };
 
                class controls
                {
                        class test : RscRDPicture
                        {
                                idc = 1000;
                                text = "logo.paa";
                                x = safezoneW + safezoneX - (0.35 + 0.06);
                                y = safezoneY + 0.12;
                                w = 0.35;
                                h = 0.35 * (1.33333);
                        };
                };
        };
};

Any ideas? :)
 
Look here. In this script created by piXel, there is a option to have a logo that is displayed when you join the server.
 
This is from piXel's addin, taken from his desc.ext. It's the only place I can find code mentioning this, I haven't tested it yet but maybe some brave soul would care to. :)

Code:
        class nicePic : RscPicture
        {
            style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO
            x = safezoneX + safezoneW/2 - 0.25;
            y = safezoneY + safezoneH/2 - 0.2;
            w = 0.5;
            h = 0.4;
            text = "img\nicePic.paa";
        };
        */
 
you need this

place this somewhere by me its in addin\fx\descrExt.h
Code:
class RscTitles
{
    class logo
    {
        idd=-1;
        movingEnable = 0;
        duration=12;
        name = "logo";
        controls[]=
        {
            Picture
        };
        class Picture : RscPicture
        {
            x = -0.5;
            y = -0.5;
            w = 0.15;
            h = 0.2;
            text = "addin\fx\logo.paa";
            sizeEx = 1;
            style=48;
        };
    };
};

open your description.ext
put this unde class Rscpicture code


Code:
#include "addin\fx\descrExt.h"


then go to your int.sqf in your mission file
find this isDedicated

and this is what i got then it will work
Code:
// Run the player monitor
if (!isDedicated) then {
    0 fadeSound 0;
    0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED", 60];
 
    __id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "addin\plrInit.sqf";}];
    //dayZ original _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
    _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
    _nul = [] execVM "addin\plrInit.sqf";
 
}
 
Open file "description.ext" and adds over "class RscLoadingText: RscText":
Code:
class RscTitles
{
    class logo
    {
        idd=-1;
        movingEnable = 0;
        duration=12;
        name = "logo";
        controls[]=
        {
            Picture
        }; 
        class Picture : RscPicture
        {
            x = -0.5;
            y = -0.5;
            w = 0.15;
            h = 0.2;
            text = "logo.jpg";
            sizeEx = 1;
            style=48;
        };
    };
};

Put your logo in your mission file. Rename logo.jpg
 
Thank you! Gonna add that in right now, I assume it works but shall report back once it's been implemented. :)
 
Back
Top