mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update submarine
This commit is contained in:
@@ -14,7 +14,6 @@ class Submarine_DZE_base: Submarine
|
||||
Icon = "\Ca\water\Data\map_ico\icomap_rubber_CA.paa";
|
||||
mapSize = 6;
|
||||
vehicleClass = "DayZ Epoch Vehicles";
|
||||
//vehicle characteristics
|
||||
maxSpeed = 60;
|
||||
brakeDistance = 20;
|
||||
armor = 40;
|
||||
@@ -41,8 +40,6 @@ class Submarine_DZE_base: Submarine
|
||||
rightEngineEffect = "subspray";
|
||||
destrType = DestructWreck;
|
||||
class DestructionEffects;
|
||||
//driverForceOptics = 1;
|
||||
//driverOpticsModel = "\ca\Tracked\optika_M1A1_commander";
|
||||
|
||||
//based on fishing boat
|
||||
transportMaxMagazines = 500;
|
||||
@@ -56,7 +53,6 @@ class Submarine_DZE_base: Submarine
|
||||
typicalCargo[] = {RU_Soldier,RU_Soldier_AR,RU_Soldier_AR};
|
||||
driverAction = PBX_Driver;
|
||||
cargoAction[] = {Truck_Cargo04,Truck_Cargo01,Truck_Cargo01};
|
||||
// FB_Cargo01,FB_Cargo02,FB_Cargo03,FB_Cargo03,FB_Cargo03,FB_Cargo03,FB_Cargo04
|
||||
cargoGetInAction[] = {"GetInLow"};
|
||||
cargoGetOutAction[] = {"GetOutLow"};
|
||||
extCameraPosition[] = {0,4.0,-14.0};
|
||||
@@ -105,30 +101,11 @@ class Submarine_DZE_base: Submarine
|
||||
condition = "(player == (driver this)) && {(this animationphase ""dive"" > 0.5)}";
|
||||
statement = "this animate [""dive"", 0];";
|
||||
};
|
||||
/*
|
||||
class periscope_up
|
||||
{
|
||||
displayName = "Periscope Up";
|
||||
displayNameDefault = "";
|
||||
onlyforplayer = true;
|
||||
position = "zamerny";
|
||||
radius = 3;
|
||||
priority = 99;
|
||||
condition = "(player == driver this) && (this animationphase ""peri_trans"" < 0.5)";
|
||||
statement = "this animate [""peri_trans"", 1]";
|
||||
};
|
||||
class periscope_down : periscope_up
|
||||
{
|
||||
displayName = "Periscope Down";
|
||||
condition = "(player == driver this) && (this animationphase ""peri_trans"" > 0.5)";
|
||||
statement = "this animate [""peri_trans"", 0];";
|
||||
};
|
||||
*/
|
||||
};
|
||||
//damage
|
||||
class HitPoints: HitPoints
|
||||
{
|
||||
class HitHull
|
||||
class HitBody
|
||||
{
|
||||
armor = 0.85;
|
||||
material = -1;
|
||||
@@ -144,6 +121,14 @@ class Submarine_DZE_base: Submarine
|
||||
visual = "zbytek";
|
||||
passThrough = 1;
|
||||
};
|
||||
class HitFuel
|
||||
{
|
||||
armor=0.3;
|
||||
material = -1;
|
||||
name="palivo";
|
||||
visual=""; // no visible fuel tank destruction effects
|
||||
passThrough =0.5;
|
||||
};
|
||||
};
|
||||
class Damage
|
||||
{
|
||||
@@ -242,34 +227,6 @@ class Submarine_DZE_base: Submarine
|
||||
brightness = 5.0;
|
||||
};
|
||||
};
|
||||
//blinkers
|
||||
class MarkerLights
|
||||
{
|
||||
class RedStill
|
||||
{
|
||||
name = "red_light";
|
||||
color[] = {1.0, 0.1, 0.1, 1};
|
||||
ambient[] = {0.1, 0.01, 0.01, 1};
|
||||
brightness = 0.01;
|
||||
blinking = false;
|
||||
};
|
||||
class GreenStill
|
||||
{
|
||||
name = "green_light";
|
||||
color[] = {0.1, 1.0, 0.1, 1};
|
||||
ambient[] = {0.01, 0.1, 0.01, 1};
|
||||
brightness = 0.01;
|
||||
blinking = false;
|
||||
};
|
||||
class WhiteStill
|
||||
{
|
||||
name = "white_light";
|
||||
color[] = {1.0, 1.0, 1.0, 1};
|
||||
ambient[] = {0.1, 0.1, 0.1, 1};
|
||||
brightness = 0.01;
|
||||
blinking = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Submarine_DZE: Submarine_DZE_base
|
||||
|
||||
@@ -20,7 +20,7 @@ _unit = _this select 0;
|
||||
_selection = _this select 1;
|
||||
_total = _this select 2;
|
||||
_totalDmg = if (_selection != "") then {false} else {true};
|
||||
_force = [false,true] select (count _this > 6); // Needed to force update salavage
|
||||
_force = [false,true] select (count _this > 6); // Needed to force update salvage
|
||||
|
||||
if (_total >= 0.98) then {
|
||||
_total = 1.0;
|
||||
|
||||
Reference in New Issue
Block a user