mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Backpack Sounds
This commit is contained in:
@@ -1602,7 +1602,7 @@ class RscDisplayGear
|
|||||||
emptyMag2 = "\ca\ui\data\ui_gear_mag2_gs.paa";
|
emptyMag2 = "\ca\ui\data\ui_gear_mag2_gs.paa";
|
||||||
emptyHGun = "\ca\ui\data\ui_gear_hgun_gs.paa";
|
emptyHGun = "\ca\ui\data\ui_gear_hgun_gs.paa";
|
||||||
emptyHGunMag = "\ca\ui\data\ui_gear_hgunmag_gs.paa";
|
emptyHGunMag = "\ca\ui\data\ui_gear_hgunmag_gs.paa";
|
||||||
onLoad = "_this call fn_gearMenuChecks;[] spawn object_monitorGear; call gear_ui_init;if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\ca\ui\scripts\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\ca\ui\scripts\handleGear.sqf'; _dummy;";
|
onLoad = "_this call fn_gearMenuChecks;[] spawn object_monitorGear; call gear_ui_init; call ui_gear_sound;if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\ca\ui\scripts\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\ca\ui\scripts\handleGear.sqf'; _dummy;";
|
||||||
class ControlsBackground
|
class ControlsBackground
|
||||||
{
|
{
|
||||||
class Mainback: RscPicture
|
class Mainback: RscPicture
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ _num = switch (_type) do {
|
|||||||
case "dog_growl": {3};
|
case "dog_growl": {3};
|
||||||
case "dog_qq": {2};
|
case "dog_qq": {2};
|
||||||
case "keypad_tick": {2};
|
case "keypad_tick": {2};
|
||||||
|
case "open_backpack": {4};
|
||||||
|
case "open_inventory": {4};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (count _this > 4) then {
|
if (count _this > 4) then {
|
||||||
|
|||||||
29
SQF/dayz_code/compile/ui_gear_sound.sqf
Normal file
29
SQF/dayz_code/compile/ui_gear_sound.sqf
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
private["_type"];
|
||||||
|
_type="open_inventory";
|
||||||
|
if( (!isNull cursorTarget) && (player distance cursorTarget < 5) && (vehicle player == player) ) then {
|
||||||
|
private["_cTarget"];
|
||||||
|
_cTarget=cursorTarget;
|
||||||
|
_type = switch true do {
|
||||||
|
case (_cTarget isKindOf "Bag_Base_EP1"):{"open_backpack"}; //backpacks on ground
|
||||||
|
case ( (_cTarget isKindOf "Man") && (alive _cTarget) && !(isNull unitBackpack _cTarget) ):{"open_backpack"}; //Person with backpack
|
||||||
|
default {"open_inventory"}; //unknown, play cloth sounds
|
||||||
|
//case (_cTarget isKindOf "Land_A_tent"):{"open_inventory"}; //Tents
|
||||||
|
//case (_cTarget isKindOf "StashSmall"):{"open_stash_sm"}; //dirt pile stash
|
||||||
|
//case (_cTarget isKindOf "StashMedium"):{"open_stash_md"}; //stash with wooden door
|
||||||
|
//case (_cTarget isKindOf "AllVehicles"):{"open_vehicle"}; //"trunks"
|
||||||
|
//case (typeof _cTarget == "WeaponHolder"):{"open_lootpile"}; //stuff on open ground
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/*Player doesn't have a cursor target, or its too far away, or they are in a vehicle.
|
||||||
|
else{
|
||||||
|
if ( (vehicle player != player) && (vehicle player isKindOf "AllVehicles") ) then {
|
||||||
|
//Player is in a vehicle, placeholder for vehicle trunk sounds(if added)
|
||||||
|
_type="open_vehicle";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
//MP:Player sound
|
||||||
|
[player,_type,0,false,5] call dayz_zombieSpeak;
|
||||||
BIN
SQF/dayz_code/gui/gear/gear_bg.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_bg.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_back.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_back.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_blue_empty.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_blue_empty.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_blue_full.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_blue_full.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_brown_empty.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_brown_empty.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_brown_full.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_brown_full.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_carry.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_carry.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_carry_disabled.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_carry_disabled.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_carrying.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_carrying.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_close.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_close.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_close_down.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_close_down.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_green_empty.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_green_empty.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_green_full.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_green_full.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_grey_full.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_grey_full.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_hold.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_hold.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_hold_disabled.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_hold_disabled.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_holding.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_holding.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_open.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_open.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_open_disabled.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_open_disabled.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_open_down.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_open_down.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_pistol.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_pistol.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_purple_full.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_purple_full.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_slots_backpacks.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_slots_backpacks.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_slots_items.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_slots_items.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_slots_weapons.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_slots_weapons.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_tan_empty.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_tan_empty.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_tan_full.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_tan_full.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_vision1.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_vision1.paa
Normal file
Binary file not shown.
BIN
SQF/dayz_code/gui/gear/gear_ui_vision2.paa
Normal file
BIN
SQF/dayz_code/gui/gear/gear_ui_vision2.paa
Normal file
Binary file not shown.
@@ -109,6 +109,7 @@ if (!isDedicated) then {
|
|||||||
player_gearSync = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_gearSync.sqf";
|
player_gearSync = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_gearSync.sqf";
|
||||||
player_gearSet = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_gearSet.sqf";
|
player_gearSet = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_gearSet.sqf";
|
||||||
ui_changeDisplay = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\ui_changeDisplay.sqf";
|
ui_changeDisplay = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\ui_changeDisplay.sqf";
|
||||||
|
ui_gear_sound = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\ui_gear_sound.sqf";
|
||||||
|
|
||||||
//System
|
//System
|
||||||
player_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\player_monitor.sqf";
|
player_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\player_monitor.sqf";
|
||||||
|
|||||||
@@ -533,6 +533,41 @@ class CfgSounds {
|
|||||||
class z_gore_short_loop : gore_1 {
|
class z_gore_short_loop : gore_1 {
|
||||||
sound[] = {"\dayz_sfx\gore\gore_short_loop.ogg",0.1,1,30};
|
sound[] = {"\dayz_sfx\gore\gore_short_loop.ogg",0.1,1,30};
|
||||||
};
|
};
|
||||||
|
class z_open_backpack_0 {
|
||||||
|
name = "";
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_backpack_0.ogg",1,1,50};
|
||||||
|
titles[] = {};
|
||||||
|
};
|
||||||
|
class z_open_backpack_1 : z_open_backpack_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_backpack_1.ogg",1,1,50};
|
||||||
|
};
|
||||||
|
class z_open_backpack_2 : z_open_backpack_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_backpack_2.ogg",1,1,50};
|
||||||
|
};
|
||||||
|
class z_open_backpack_3 : z_open_backpack_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_backpack_3.ogg",1,1,50};
|
||||||
|
};
|
||||||
|
class z_open_backpack_4 : z_open_backpack_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_backpack_4.ogg",1,1,50};
|
||||||
|
};
|
||||||
|
|
||||||
|
class z_open_inventory_0 {
|
||||||
|
name = "";
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_inventory_0.ogg",0.1,1,30};
|
||||||
|
titles[] = {};
|
||||||
|
};
|
||||||
|
class z_open_inventory_1 : z_open_inventory_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_inventory_1.ogg",0.1,1,30};
|
||||||
|
};
|
||||||
|
class z_open_inventory_2 : z_open_inventory_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_inventory_2.ogg",0.1,1,30};
|
||||||
|
};
|
||||||
|
class z_open_inventory_3 : z_open_inventory_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_inventory_3.ogg",0.1,1,30};
|
||||||
|
};
|
||||||
|
class z_open_inventory_4 : z_open_inventory_0 {
|
||||||
|
sound[] = {"\dayz_sfx\effects\action_open_inventory_4.ogg",0.1,1,30};
|
||||||
|
};
|
||||||
|
|
||||||
// epoch sounds
|
// epoch sounds
|
||||||
class z_keypad_tick_0 {
|
class z_keypad_tick_0 {
|
||||||
|
|||||||
BIN
SQF/dayz_sfx/effects/action_open_backpack_0.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_backpack_0.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_backpack_1.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_backpack_1.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_backpack_2.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_backpack_2.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_backpack_3.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_backpack_3.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_backpack_4.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_backpack_4.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_inventory_0.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_inventory_0.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_inventory_1.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_inventory_1.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_inventory_2.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_inventory_2.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_inventory_3.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_inventory_3.ogg
Normal file
Binary file not shown.
BIN
SQF/dayz_sfx/effects/action_open_inventory_4.ogg
Normal file
BIN
SQF/dayz_sfx/effects/action_open_inventory_4.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user