Add special localization for cinder windows and bunker shutter

This commit is contained in:
AirwavesMan
2021-01-07 17:20:41 +01:00
parent 58d342ca07
commit f5e065ef8d
3 changed files with 53 additions and 74 deletions

View File

@@ -16,7 +16,6 @@ class DZE_Base_Object : All {
armor = 2200;
destrType = "DestructBuilding";
damageResistance = 0.004;
// static
reversed = 0;
hasDriver = 0;
accuracy = 0.1;
@@ -506,6 +505,7 @@ class Land_DZE_WoodGate: Land_DZE_WoodDoor_Base {
};
};
};
class Land_DZE_WoodGateLocked: Land_DZE_WoodDoorLocked_Base {
scope = 2;
armor = 3200;
@@ -612,6 +612,7 @@ class Land_DZE_WoodOpenTopGarageDoor: Land_DZE_WoodDoor_Base {
};
};
};
class Land_DZE_WoodOpenTopGarageLocked: Land_DZE_WoodDoorLocked_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\wood\garage_notop\locked_wood_garage_notop.p3d";
@@ -735,7 +736,6 @@ class CinderWallDoorLocked_DZ: CinderWallDoorLocked_DZ_Base {
};
};
class CinderWallDoor_DZ: CinderWallDoor_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch\models\steel_garage_door.p3d";
@@ -771,8 +771,6 @@ class CinderWallDoor_DZ: CinderWallDoor_DZ_Base {
};
};
class CinderWallDoorSmallLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch\models\Steel_door_locked.p3d";
@@ -831,7 +829,6 @@ class CinderWallDoorSmallLocked_DZ: CinderWallDoorLocked_DZ_Base {
};
};
class CinderWallDoorSmall_DZ: CinderWallDoor_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch\models\Steel_door.p3d";
@@ -908,6 +905,7 @@ class CinderGate_DZ: CinderWallDoor_DZ_Base {
};
};
};
class CinderGateLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
armor = 4600;
@@ -1014,6 +1012,7 @@ class CinderGarageOpenTop_DZ: CinderWallDoor_DZ_Base {
};
};
};
class CinderGarageOpenTopLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\locked_cindergarage_notop.p3d";
@@ -1119,6 +1118,7 @@ class CinderDoorHatch_DZ: CinderWallDoor_DZ_Base {
};
};
};
class CinderDoorHatchLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_door_window\cinder_door_hatch_locked.p3d";
@@ -1281,9 +1281,6 @@ class DoorLocked_DZ: CinderWallDoorLocked_DZ_Base {
class DestructionEffects {};
};
/*
Vanilla DayZ buildables are defined in \dayz_buildings\configs\
Only included here to overwrite vanilla ItemPadlock with Epoch ItemComboLock
@@ -1299,4 +1296,4 @@ class WoodenGate_1: WoodenGate_Base
class Disassembly {
requiredTools[] = {"ItemToolbox"};
};
};
};

View File

@@ -88,7 +88,7 @@ class CinderWallWindow_DZ: ModularItems {
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
displayName = $STR_BLD_ACTIONS_OPEN_WINDOW;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
@@ -97,7 +97,7 @@ class CinderWallWindow_DZ: ModularItems {
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
displayName = $STR_BLD_ACTIONS_CLOSE_WINDOW;
condition = "this animationPhase ""Open_door"" >= 0.5";
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
};
@@ -148,7 +148,7 @@ class CinderWallWindowLocked_DZ: CinderWallDoorLocked_DZ_Base {
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
displayName = $STR_BLD_ACTIONS_OPEN_WINDOW;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
@@ -157,25 +157,25 @@ class CinderWallWindowLocked_DZ: CinderWallDoorLocked_DZ_Base {
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
displayName = $STR_BLD_ACTIONS_CLOSE_WINDOW;
condition = "(this animationPhase ""Open_door"" == 1) and (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
};
class Lock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_LOCK;
displayName = $STR_BLD_ACTIONS_LOCK_WINDOW;
condition = "(this animationPhase ""Open_door"" == 0) and (this animationPhase ""Open_latch"" == 1)";
statement = "PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate [""Open_latch"", 0]";
};
class Unlock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_UNLOCK;
displayName = $STR_BLD_ACTIONS_UNLOCK_WINDOW;
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""Open_door"" == 0) and (this animationPhase ""Open_latch"" == 0)";
statement = "this animate [""Open_latch"", 1]";
};
class Unlock_Door_Dialog : Open_Door
{
displayName = $STR_EPOCH_DOORS_UNLOCK;
displayName = $STR_BLD_ACTIONS_UNLOCK_WINDOW;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
@@ -294,7 +294,7 @@ class Concrete_Bunker_DZ: CinderWallDoor_DZ_Base {
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
displayName = $STR_BLD_ACTIONS_OPEN_BUNKER;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
@@ -303,7 +303,7 @@ class Concrete_Bunker_DZ: CinderWallDoor_DZ_Base {
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
displayName = $STR_BLD_ACTIONS_CLOSE_BUNKER;
condition = "(this animationPhase ""raise_all"" >= 0.5)";
statement = "this animate [""raise_all"", 0];this animate [""rollers"", 0];";
};
@@ -341,7 +341,7 @@ class Concrete_Bunker_Locked_DZ: CinderWallDoorLocked_DZ_Base {
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
displayName = $STR_BLD_ACTIONS_OPEN_BUNKER;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
@@ -350,77 +350,27 @@ class Concrete_Bunker_Locked_DZ: CinderWallDoorLocked_DZ_Base {
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
displayName = $STR_BLD_ACTIONS_CLOSE_BUNKER;
condition = "(this animationPhase ""raise_all"" == 1) and (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""raise_all"", 0];";
};
class Lock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_LOCK;
displayName = $STR_BLD_ACTIONS_LOCK_BUNKER;
condition = "(this animationPhase ""raise_all"" == 0) and (this animationPhase ""Open_latch"" == 1)";
statement = "PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate [""Open_latch"", 0]";
};
class Unlock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_UNLOCK;
displayName = $STR_BLD_ACTIONS_UNLOCK_BUNKER;
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""raise_all"" == 0) and (this animationPhase ""Open_latch"" == 0)";
statement = "this animate [""Open_latch"", 1]";
};
class Unlock_Door_Dialog : Open_Door
{
displayName = $STR_EPOCH_DOORS_UNLOCK;
displayName = $STR_BLD_ACTIONS_UNLOCK_BUNKER;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
};
};
/* Model not finshed
class HeliNest_DZ: ModularItems {
scope = 2;
armor = 7000;
model = "\z\addons\dayz_epoch_v\base_building\floors\helinest\all_heli_shop.p3d";
displayName = "Helinest";
GhostPreview = "Helinest_Preview_DZ";
class AnimationSources
{
class door1
{
source = "user";
animPeriod = 2;
initPhase = 0;
};
class door2: door1{};
class door3: door1{};
class door4: door1{};
class door5: door1{};
class door6: door1{};
class door7: door1{};
class door8: door1{};
class door9: door1{};
class door10: door1{};
};
class UserActions
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
condition = "(this animationPhase ""door1"" == 0)";
statement = "this animate [""door1"", 1];this animate [""door2"", 1];this animate [""door3"", 1];this animate [""door4"", 1];this animate [""door5"", 1];this animate [""door6"", 1];this animate [""door7"", 1];this animate [""door8"", 1];this animate [""door9"", 1]; this animate [""door10"", 1];";
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
condition = "(this animationPhase ""door1"" == 1)";
// statement = "this animate [""door1"", 0];this animate [""Open_doorR"", 0];";
statement = "this animate [""door1"", 0];this animate [""door2"", 0];this animate [""door3"", 0];this animate [""door4"", 0];this animate [""door5"", 0];this animate [""door6"", 0];this animate [""door7"", 0];this animate [""door8"", 0];this animate [""door9"", 0]; this animate [""door10"", 0];";
};
};
};
*/
};

View File

@@ -31766,6 +31766,38 @@
<German>Tor schließen</German>
<Russian>Закрыть ворота</Russian>
</Key>
<Key ID="STR_BLD_ACTIONS_OPEN_WINDOW">
<English>Open Window</English>
<German>Fenster öffnen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_CLOSE_WINDOW">
<English>Close Window</English>
<German>Fenster schließen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_UNLOCK_WINDOW">
<English>Unlock Window</English>
<German>Fenster aufschließen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_LOCK_WINDOW">
<English>Lock Window</English>
<German>Fenster abschließen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_OPEN_BUNKER">
<English>Open Shutter</English>
<German>Schießscharten öffnen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_CLOSE_BUNKER">
<English>Close Shutter</English>
<German>Schießscharten schließen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_UNLOCK_BUNKER">
<English>Unlock Shutter</English>
<German>Schießscharten aufschließen</German>
</Key>
<Key ID="STR_BLD_ACTIONS_LOCK_BUNKER">
<English>Lock Shutter</English>
<German>Schießscharten abschließen</German>
</Key>
<Key ID="STR_EPOCH_STONEOVEN">
<English>Stone Oven</English>
<German>Steinofen</German>