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";
|
Icon = "\Ca\water\Data\map_ico\icomap_rubber_CA.paa";
|
||||||
mapSize = 6;
|
mapSize = 6;
|
||||||
vehicleClass = "DayZ Epoch Vehicles";
|
vehicleClass = "DayZ Epoch Vehicles";
|
||||||
//vehicle characteristics
|
|
||||||
maxSpeed = 60;
|
maxSpeed = 60;
|
||||||
brakeDistance = 20;
|
brakeDistance = 20;
|
||||||
armor = 40;
|
armor = 40;
|
||||||
@@ -41,8 +40,6 @@ class Submarine_DZE_base: Submarine
|
|||||||
rightEngineEffect = "subspray";
|
rightEngineEffect = "subspray";
|
||||||
destrType = DestructWreck;
|
destrType = DestructWreck;
|
||||||
class DestructionEffects;
|
class DestructionEffects;
|
||||||
//driverForceOptics = 1;
|
|
||||||
//driverOpticsModel = "\ca\Tracked\optika_M1A1_commander";
|
|
||||||
|
|
||||||
//based on fishing boat
|
//based on fishing boat
|
||||||
transportMaxMagazines = 500;
|
transportMaxMagazines = 500;
|
||||||
@@ -56,7 +53,6 @@ class Submarine_DZE_base: Submarine
|
|||||||
typicalCargo[] = {RU_Soldier,RU_Soldier_AR,RU_Soldier_AR};
|
typicalCargo[] = {RU_Soldier,RU_Soldier_AR,RU_Soldier_AR};
|
||||||
driverAction = PBX_Driver;
|
driverAction = PBX_Driver;
|
||||||
cargoAction[] = {Truck_Cargo04,Truck_Cargo01,Truck_Cargo01};
|
cargoAction[] = {Truck_Cargo04,Truck_Cargo01,Truck_Cargo01};
|
||||||
// FB_Cargo01,FB_Cargo02,FB_Cargo03,FB_Cargo03,FB_Cargo03,FB_Cargo03,FB_Cargo04
|
|
||||||
cargoGetInAction[] = {"GetInLow"};
|
cargoGetInAction[] = {"GetInLow"};
|
||||||
cargoGetOutAction[] = {"GetOutLow"};
|
cargoGetOutAction[] = {"GetOutLow"};
|
||||||
extCameraPosition[] = {0,4.0,-14.0};
|
extCameraPosition[] = {0,4.0,-14.0};
|
||||||
@@ -105,46 +101,35 @@ class Submarine_DZE_base: Submarine
|
|||||||
condition = "(player == (driver this)) && {(this animationphase ""dive"" > 0.5)}";
|
condition = "(player == (driver this)) && {(this animationphase ""dive"" > 0.5)}";
|
||||||
statement = "this animate [""dive"", 0];";
|
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
|
//damage
|
||||||
class HitPoints: HitPoints
|
class HitPoints: HitPoints
|
||||||
{
|
{
|
||||||
class HitHull
|
class HitBody
|
||||||
{
|
{
|
||||||
armor = 0.85;
|
armor = 0.85;
|
||||||
material = -1;
|
material = -1;
|
||||||
name = "karoserie";
|
name = "karoserie";
|
||||||
visual = "zbytek";
|
visual = "zbytek";
|
||||||
passThrough = 1;
|
passThrough = 1;
|
||||||
};
|
};
|
||||||
class HitEngine
|
class HitEngine
|
||||||
{
|
{
|
||||||
armor = 1.2;
|
armor = 1.2;
|
||||||
material = 60;
|
material = 60;
|
||||||
name = "motor";
|
name = "motor";
|
||||||
visual = "zbytek";
|
visual = "zbytek";
|
||||||
passThrough = 1;
|
passThrough = 1;
|
||||||
};
|
};
|
||||||
};
|
class HitFuel
|
||||||
|
{
|
||||||
|
armor=0.3;
|
||||||
|
material = -1;
|
||||||
|
name="palivo";
|
||||||
|
visual=""; // no visible fuel tank destruction effects
|
||||||
|
passThrough =0.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
class Damage
|
class Damage
|
||||||
{
|
{
|
||||||
tex[] = {};
|
tex[] = {};
|
||||||
@@ -242,34 +227,6 @@ class Submarine_DZE_base: Submarine
|
|||||||
brightness = 5.0;
|
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
|
class Submarine_DZE: Submarine_DZE_base
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ _unit = _this select 0;
|
|||||||
_selection = _this select 1;
|
_selection = _this select 1;
|
||||||
_total = _this select 2;
|
_total = _this select 2;
|
||||||
_totalDmg = if (_selection != "") then {false} else {true};
|
_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 {
|
if (_total >= 0.98) then {
|
||||||
_total = 1.0;
|
_total = 1.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user