Make a scroll mouse script into a Key toggle

QueZ

Well-Known Member
So I've notice many players cannot get 2 scripts to work on my server that require to scroll mouse to trigger. Normally you scroll mouse and would see SELF BLOODBAG and WARDROBE which most of us can see. But there's still a good 20% of players that cannot see these options when they scroll mouse. No idea why THEY can't but I was wondering...

What if you had to press a key such as F4 or F5 for each of these so you can see the scroll menu? I am fairly confident it would then work for everyone as it would force the menu to open. (looks like a scroll menu like when you switch weapon).

IS IT POSSIBLE?

First things first credit for wardrobe goes to Freaking Fred for wardrobe and Krixes for Self Bloodbag.

SELF BLOODBAG
Code:
// ------------------------------------------------------------------------Krixes Self Bloodbag Start------------------------------------------------------------------------
_mags = magazines player;
 
// Krixes Self Bloodbag
if ("ItemBloodbag" in _mags) then {
hasBagItem = true;
} else { hasBagItem = false;};
if((speed player <= 1) && hasBagItem && _canDo) then {
if (s_player_selfBloodbag < 0) then {
s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_selfBloodbag;
s_player_selfBloodbag = -1;
};
// -------------------------------------------------------------------------Krixes Self Bloodbag End--------------------------------------------------------------------------


WARDROBE
Code:
pathtoclothing = "wardrobe\clothing\";
EXECscript1 = 'player execVM "'+pathtoclothing+'%1"';
if ((getPlayerUID player) in ["#########"]) then {
wardrobe =
[
["",true],
["DayZ Clothing", [2], "#USER:WardrobeDayZ", -5, [["expression", ""]], "1", "1"],
["Custom Clothing", [3], "#USER:WardrobeCustom", -5, [["expression", ""]], "1", "1"],
["Animal Skins", [4], "#USER:WardrobeAnimals", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
 
];} else {
wardrobe =
[
["",true],
["DayZ Clothing", [2], "#USER:WardrobeDayZ", -5, [["expression", ""]], "1", "1"],
["Custom Clothing", [3], "#USER:WardrobeCustom", -5, [["expression", ""]], "1", "1"],
["Animal Skins", [4], "#USER:WardrobeAnimals", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
};
 
WardrobeAnimals =
[
["",true],
["Dog Golden Retreiver", [2], "", -5, [["expression", format[EXECscript1,"fin.sqf"]]], "1", "1"],
["Dog German Sheperd", [3], "", -5, [["expression", format[EXECscript1,"pastor.sqf"]]], "1", "1"],
["Cow Brown & White", [4], "", -5, [["expression", format[EXECscript1,"cow01.sqf"]]], "1", "1"],
["Cow Brown", [5], "", -5, [["expression", format[EXECscript1,"cow02.sqf"]]], "1", "1"],
["Cow Black", [6], "", -5, [["expression", format[EXECscript1,"cow03.sqf"]]], "1", "1"],
["Cow Black & White", [7], "", -5, [["expression", format[EXECscript1,"cow04.sqf"]]], "1", "1"],
["Goat", [8], "", -5, [["expression", format[EXECscript1,"goat.sqf"]]], "1", "1"],
["Chicken", [9], "", -5, [["expression", format[EXECscript1,"hen.sqf"]]], "1", "1"],
["Sheep", [10], "", -5, [["expression", format[EXECscript1,"sheep.sqf"]]], "1", "1"],
["Rabbit", [11], "", -5, [["expression", format[EXECscript1,"rabbit.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
WardrobeCustom =
[
["",true],
["Desert Rocket Uniform", [2], "", -5, [["expression", format[EXECscript1,"desert_rocket.sqf"]]], "1", "1"],
["Desert Camo Clothing", [3], "", -5, [["expression", format[EXECscript1,"desert_clothes.sqf"]]], "1", "1"],
["Desert Soldier Uniform", [4], "", -5, [["expression", format[EXECscript1,"desert_soldier.sqf"]]], "1", "1"],
["Desert Green Uniform", [5], "", -5, [["expression", format[EXECscript1,"desert_green_soldier.sqf"]]], "1", "1"],
["US Soldier Uniform", [6], "", -5, [["expression", format[EXECscript1,"us_soldier.sqf"]]], "1", "1"],
["Czech Soldier Uniform", [7], "", -5, [["expression", format[EXECscript1,"czech_soldier.sqf"]]], "1", "1"],
["Takistan Insurgent Uniform", [8], "", -5, [["expression", format[EXECscript1,"tk_insurgent.sqf"]]], "1", "1"],
["Takistan Civilian", [9], "", -5, [["expression", format[EXECscript1,"tk_civ1.sqf"]]], "1", "1"],
["Guerilla Soldier Uniform", [10], "", -5, [["expression", format[EXECscript1,"gue_soldier.sqf"]]], "1", "1"],
["Russian Soldier Uniform", [11], "", -5, [["expression", format[EXECscript1,"ru_soldier.sqf"]]], "1", "1"],
["MVD Soldier Uniform", [12], "", -5, [["expression", format[EXECscript1,"mvd_soldier.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
WardrobeDayZ =
[
["",true],
["Male Suvivor", [2], "", -5, [["expression", format[EXECscript1,"survivor_male.sqf"]]], "1", "1"],
["Female Suvivor", [3], "", -5, [["expression", format[EXECscript1,"survivor_female.sqf"]]], "1", "1"],
["Male Bandit", [4], "", -5, [["expression", format[EXECscript1,"bandit_male.sqf"]]], "1", "1"],
["Female Bandit", [5], "", -5, [["expression", format[EXECscript1,"bandit_female.sqf"]]], "1", "1"],
["Camo Clothing", [6], "", -5, [["expression", format[EXECscript1,"camo_clothes.sqf"]]], "1", "1"],
["Ghillie Suit", [7], "", -5, [["expression", format[EXECscript1,"ghille.sqf"]]], "1", "1"],
["Soldier Uniform", [8], "", -5, [["expression", format[EXECscript1,"soldier.sqf"]]], "1", "1"],
["Rocket Uniform", [9], "", -5, [["expression", format[EXECscript1,"rocket.sqf"]]], "1", "1"],
["Hero Suit", [10], "", -5, [["expression", format[EXECscript1,"hero.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
WardrobeFake =
[
["",true],
["Desert Rocket Uniform", [2], "", -5, [["expression", format[EXECscript1,"desert_rocket.sqf"]]], "1", "1"],
["Desert Camo Clothing", [3], "", -5, [["expression", format[EXECscript1,"desert_clothes.sqf"]]], "1", "1"],
["Desert Soldier Uniform", [4], "", -5, [["expression", format[EXECscript1,"desert_soldier.sqf"]]], "1", "1"],
["Desert Green Uniform", [5], "", -5, [["expression", format[EXECscript1,"desert_green_soldier.sqf"]]], "1", "1"],
["US Soldier Uniform", [6], "", -5, [["expression", format[EXECscript1,"us_soldier.sqf"]]], "1", "1"],
["Czech Soldier Uniform", [7], "", -5, [["expression", format[EXECscript1,"czech_soldier.sqf"]]], "1", "1"],
["Takistan Insurgent Uniform", [8], "", -5, [["expression", format[EXECscript1,"tk_insurgent.sqf"]]], "1", "1"],
["Takistan Civilian", [9], "", -5, [["expression", format[EXECscript1,"tk_civ1.sqf"]]], "1", "1"],
["Guerilla Soldier Uniform", [10], "", -5, [["expression", format[EXECscript1,"gue_soldier.sqf"]]], "1", "1"],
["Russian Soldier Uniform", [11], "", -5, [["expression", format[EXECscript1,"ru_soldier.sqf"]]], "1", "1"],
["MVD Soldier Uniform", [12], "", -5, [["expression", format[EXECscript1,"mvd_soldier.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
showCommandingMenu "#USER:wardrobe";
 
http://community.bistudio.com/wiki/DIK_KeyCodes and use the debug code as a basis...
Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _kills =        player getVariable["zombieKills",0];
        _killsH =        player getVariable["humanKills",0];
        _killsB =        player getVariable["banditKills",0];
        _humanity =        player getVariable["humanity",0];
        _headShots =    player getVariable["headShots",0];
        _zombies =              count entities "zZombie_Base";
        _zombiesA =    {alive _x} count entities "zZombie_Base";
        _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
        _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
            if (player == vehicle player) then
            {
                _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
            }
                else
            {
                _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
            };
        hintSilent parseText format ["
        <t size='1'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EE0000' >Blood Left:</t><t size='1' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
        <t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
        <img size='3' image='%13'/><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Press F10 to toggle! </t><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Welcome to Pax Extreme DayZ </t><br/>
 
        ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic];
    sleep 1;
    };
};
 
[] spawn fnc_debug;
 
Back
Top