mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix Mozzies/gyrocopters
Fixes wrecks bouncing 500m into the sky, players not dying when crashing these vehicles, and sound falloff (someone verify in a multiplayer game, I teleported away from a flying mozzie and it appeared fixed). I made a new startup and stop sound for the mozzie which is acceptable I think, but I'm using the MV22 Osprey noise startup and stop noises for the gyrocopter. The osprey startup is fairly well fitting, but the stop noice is out of place, if anyone can come up with a better noise please change it otherwise if it's out of place enough I'll just remove it altogether.
This commit is contained in:
@@ -107,6 +107,7 @@
|
||||
[FIXED] Destroyed objects (i.e. ore veins, ammo crates and wrecked buildables) are now deleted globally after being removed. #1730 @icomrade
|
||||
[FIXED] UH1Y and AH6X unkown animation source RPT errors, and added back observer seats to AH6X and UH1Y without thermal imaging. @icomrade
|
||||
[FIXED] Players can no longer relog over bases in a helicopter, parachute or plane to get inside. @ebaydayz
|
||||
[FIXED] Mozzie helicopter noises, and crashed mozzies bouncing into orbit. @icomrade
|
||||
|
||||
[UPDATED] .hpp files updated in dayz_code\Configs\CfgLoot\CfgBuildingPos. @Uro1
|
||||
[UPDATED] .bat files updated in Config-Examples @Raziel23x
|
||||
|
||||
@@ -12,6 +12,10 @@ class CfgVehicles {
|
||||
class ViewOptics;
|
||||
class Sounds { class Engine; class Movement;};
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
killed = "_this call BIS_Effects_EH_Killed;";
|
||||
};
|
||||
};
|
||||
class Air : AllVehicles
|
||||
{
|
||||
@@ -133,6 +137,17 @@ class CfgVehicles {
|
||||
};
|
||||
};
|
||||
};
|
||||
class Plane: Air
|
||||
{
|
||||
class ViewPilot;
|
||||
class ViewOptics;
|
||||
class AirplaneHUD;
|
||||
class HitPoints
|
||||
{
|
||||
class HitHull;
|
||||
};
|
||||
class AnimationSources;
|
||||
};
|
||||
class Land; // External class reference
|
||||
class LandVehicle : Land
|
||||
{
|
||||
@@ -449,7 +464,7 @@ class CfgVehicles {
|
||||
#include "Animal.hpp"
|
||||
|
||||
//Includes all DayZ Vehilces
|
||||
//Car's
|
||||
//Cars
|
||||
#include "Car\HMMWV.hpp"
|
||||
#include "Car\ArmoredSUV.hpp"
|
||||
#include "Car\BTR90.hpp"
|
||||
@@ -475,7 +490,7 @@ class CfgVehicles {
|
||||
#include "Car\Offroad_DSHKM_INS.hpp"
|
||||
#include "Car\UralCivil_DZ.hpp"
|
||||
#include "Car\BRDM2_DZ.hpp"
|
||||
//Helicopter's
|
||||
//Helicopters
|
||||
#include "Helicopter\MI17.hpp"
|
||||
#include "Helicopter\UH1H.hpp"
|
||||
#include "Helicopter\UH1H2.hpp"
|
||||
@@ -486,12 +501,12 @@ class CfgVehicles {
|
||||
#include "Helicopter\UH60.hpp"
|
||||
#include "Helicopter\CH47.hpp"
|
||||
#include "Helicopter\BAF_Merlin.hpp"
|
||||
//Wreck's
|
||||
//Wrecks
|
||||
//#include "Helicopter\MI8Wreck.hpp"
|
||||
//#include "Helicopter\UH1Wreck.hpp"
|
||||
//#include "Helicopter\UH60Wreck.hpp"
|
||||
#include "CrashSite.hpp"
|
||||
//Plane's
|
||||
//Planes
|
||||
#include "Plane\AN2_DZ.hpp"
|
||||
#include "Plane\MV22.hpp"
|
||||
#include "Plane\C130.hpp"
|
||||
@@ -562,6 +577,7 @@ class CfgVehicles {
|
||||
#include "DZE\Prop_Defs.hpp"
|
||||
#include "DZE\Veins.hpp"
|
||||
#include "DZE\ModularBuilding.hpp"
|
||||
#include "DZE\CSJ_GyroAC.hpp"
|
||||
class Land_A_tent; // External class reference
|
||||
#include "DZE\Grave.hpp"
|
||||
class WeaponHolder; // External class reference
|
||||
|
||||
288
SQF/dayz_code/Configs/CfgVehicles/DZE/CSJ_GyroAC.hpp
Normal file
288
SQF/dayz_code/Configs/CfgVehicles/DZE/CSJ_GyroAC.hpp
Normal file
@@ -0,0 +1,288 @@
|
||||
//it is pertinent that the CSJ_GyroAC addon is loaded before DayZ_code, do not remove it from or move its location in preloadAddon[] in config.cpp
|
||||
class CSJ_GyroP: Plane
|
||||
{
|
||||
scope = 2;
|
||||
faction = "CIV";
|
||||
crew = "Pilot";
|
||||
cabinOpening = 0;
|
||||
driverAction = "UH60_Pilot";
|
||||
vehicleClass = "CSJ_Air";
|
||||
model = "\CSJ_GyroAC\CSJ_GyroP";
|
||||
displayName = "AutoGyro";
|
||||
getInAction = "GetInLow";
|
||||
transportSoldier = 0;
|
||||
picture = "\CSJ_GyroAC\data\gyropic.paa";
|
||||
Icon = "\CSJ_GyroAC\data\gyroIcon.paa";
|
||||
destrType = "DestructWreck";
|
||||
secondaryExplosion = 0;
|
||||
gearRetracting = 0;
|
||||
nameSound = "plane";
|
||||
mapSize = 8;
|
||||
fov = 0.5;
|
||||
side = 3;
|
||||
//soundEngine[] = {"\CSJ_GyroAC\camel1.wss",5.62341,1.8};
|
||||
soundEngineOnInt[] = {"ca\sounds\Air\MV22\ext_start",0.562341,1};
|
||||
soundEngineOnExt[] = {"ca\sounds\Air\MV22\ext_start",0.562341,1,800};
|
||||
soundEngineOffInt[] = {"ca\sounds\Air\MV22\ext_stop",0.562341,1};
|
||||
soundEngineOffExt[] = {"ca\sounds\Air\MV22\ext_stop",0.562341,1,800};
|
||||
insideSoundCoef = 1;
|
||||
airBrake = 0;
|
||||
flaps = 0;
|
||||
wheelSteeringSensitivity = 0.25;
|
||||
nightVision = 0;
|
||||
preferRoads = 0;
|
||||
showWeaponCargo = 0;
|
||||
camouflage = 8;
|
||||
audible = 8;
|
||||
driverCanSee = "2+8";
|
||||
maxSpeed = 150;
|
||||
landingSpeed = 80;
|
||||
landingAoa = "rad 2";
|
||||
armor = 20;
|
||||
ejectSpeed[] = {0,0,0};
|
||||
ejectDamageLimit = 0.8;
|
||||
cost = 1000;
|
||||
formationX = 8;
|
||||
formationZ = 8;
|
||||
castCargoShadow = 0;
|
||||
castCommanderShadow = 0;
|
||||
castDriverShadow = 1;
|
||||
castGunnerShadow = 0;
|
||||
hideWeaponsDriver = 1;
|
||||
hideWeaponsCargo = 1;
|
||||
threat[] = {0,0,0};
|
||||
aileronSensitivity = 0.1;
|
||||
elevatorSensitivity = 0.12;
|
||||
noseDownCoef = 0;
|
||||
brakeDistance = 10;
|
||||
dammageHalf[] = {};
|
||||
dammageFull[] = {};
|
||||
extCameraPosition[] = {0,0,-5};
|
||||
mainRotorSpeed = 2;
|
||||
backRotorSpeed = 1;
|
||||
class Library
|
||||
{
|
||||
libTextDesc = "Auto_Gyro (CSJ)";
|
||||
};
|
||||
class ViewPilot: ViewPilot
|
||||
{
|
||||
initFov = 1;
|
||||
minFov = 0.3;
|
||||
maxFov = 1.2;
|
||||
initAngleX = 25;
|
||||
minAngleX = -65;
|
||||
maxAngleX = 80;
|
||||
initAngleY = 0;
|
||||
minAngleY = -155;
|
||||
maxAngleY = 155;
|
||||
};
|
||||
class AnimationSources: AnimationSources{};
|
||||
class Reflectors{};
|
||||
weapons[] = {"GyroGrenadeLauncher"};
|
||||
magazines[] = {"3Rnd_GyroGrenade"};
|
||||
class UserActions
|
||||
{
|
||||
class rotateLeft
|
||||
{
|
||||
displayName = "rotate aircraft left";
|
||||
position = "osa leve smerovky";
|
||||
onlyforplayer = 0;
|
||||
radius = 2;
|
||||
condition = "(Count (Crew this)==0) and ((getpos this select 2) <1) and (!isengineon this)";
|
||||
statement = "this exec ""\CSJ_GyroAC\scripts\CSJ_rotateGyroLeft.sqs"" ";
|
||||
};
|
||||
class rotateRight
|
||||
{
|
||||
displayName = "rotate aircraft right";
|
||||
position = "osa leve smerovky";
|
||||
onlyforplayer = 0;
|
||||
radius = 2;
|
||||
condition = "(Count (Crew this)==0) and ((getpos this select 2) <1) and (!isengineon this)";
|
||||
statement = "this exec ""\CSJ_GyroAC\scripts\CSJ_rotateGyroRight.sqs"" ";
|
||||
};
|
||||
class push
|
||||
{
|
||||
displayName = "push aircraft";
|
||||
position = "osa leve smerovky";
|
||||
onlyforplayer = 0;
|
||||
radius = 2;
|
||||
condition = "(Count (Crew this)==0) and ((getpos this select 2) <1) and (!isengineon this)";
|
||||
statement = "this exec ""\CSJ_GyroAC\scripts\CSJ_moveGyro.sqs"" ";
|
||||
};
|
||||
};
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
killed = "_this call BIS_Effects_EH_Killed;";
|
||||
};
|
||||
class Sounds
|
||||
{
|
||||
class Engine
|
||||
{
|
||||
sound[] = {"\CSJ_GyroAC\camel1.wss",1,1,800};
|
||||
frequency = "rpm";
|
||||
volume = "(camPos)*(engineOn*(rpm factor[0.55, 1.0]))*1.7";
|
||||
};
|
||||
class EngineIn
|
||||
{
|
||||
sound[] = {"\CSJ_GyroAC\camel1.wss",1,1};
|
||||
frequency = "rpm";
|
||||
volume = "(1-camPos)*(engineOn*(rpm factor[0.55, 1.0]))*1.7";
|
||||
};
|
||||
};
|
||||
};
|
||||
class CSJ_GyroCover: CSJ_GyroP
|
||||
{
|
||||
model = "\CSJ_GyroAC\CSJ_GyroCover";
|
||||
displayName = "AutoGyro enclosed";
|
||||
class Library
|
||||
{
|
||||
libTextDesc = "Auto_Gyro Enclosed(CSJ)";
|
||||
};
|
||||
};
|
||||
class CSJ_GyroC: Helicopter
|
||||
{
|
||||
scope = 2;
|
||||
model = "\CSJ_GyroAC\CSJ_GyroC.p3d";
|
||||
displayName = "Mozzie";
|
||||
destrType = "DestructWreck";
|
||||
secondaryExplosion = 0;
|
||||
mapSize = 8;
|
||||
side = 3;
|
||||
cabinOpening = 0;
|
||||
hiddenSelections[] = {"0","1","2","3","4","5"};
|
||||
vehicleClass = "CSJ_Air";
|
||||
picture = "\CSJ_GyroAC\data\MozPic.paa";
|
||||
maxSpeed = 120;
|
||||
Icon = "\CSJ_GyroAC\data\Cicon.paa";
|
||||
nameSound = "chopper";
|
||||
faction = "CIV";
|
||||
crew = "Pilot";
|
||||
accuracy = 0.3;
|
||||
armor = 30;
|
||||
damageResistance = 0.003;
|
||||
cost = 100000;
|
||||
transportSoldier = 0;
|
||||
cargoAction[] = {};
|
||||
transportAmmo = 0;
|
||||
supplyRadius = 2.5;
|
||||
type = "VAir";
|
||||
fov = 0.5;
|
||||
driverAction = "UH60_Pilot";
|
||||
hasGunner = 0;
|
||||
class Turrets{};
|
||||
insideSoundCoef = 1;
|
||||
formationX = 8;
|
||||
formationZ = 8;
|
||||
threat[] = {0,0,0};
|
||||
extCameraPosition[] = {0,0,-5};
|
||||
soundGetIn[] = {"",0.1,1};
|
||||
soundGetOut[] = {"",0.1,1};
|
||||
//soundEngine[] = {"\CSJ_GyroAC\UH1_v1.wss",10.1189,2};
|
||||
soundEngineOnInt[] = {"\z\addons\dayz_code\Configs\CfgVehicles\DZE\UH1_v1int",1,1};
|
||||
soundEngineOnExt[] = {"\z\addons\dayz_code\Configs\CfgVehicles\DZE\UH1_v1int",1,1,800};
|
||||
soundEngineOffInt[] = {"\z\addons\dayz_code\Configs\CfgVehicles\DZE\UH1_v1stop",1,1};
|
||||
soundEngineOffExt[] = {"\z\addons\dayz_code\Configs\CfgVehicles\DZE\UH1_v1stop",1,1,800};
|
||||
typicalCargo[] = {};
|
||||
weapons[] = {"GyroGrenadeLauncher"};
|
||||
magazines[] = {"3Rnd_GyroGrenade"};
|
||||
transportMaxMagazines = 0;
|
||||
transportMaxWeapons = 0;
|
||||
commanderCanSee = 2+16+32;
|
||||
gunnerCanSee = 2+16+32;
|
||||
driverCanSee = 2+16+32;
|
||||
forceHideDriver = 1;
|
||||
castDriverShadow = 1;
|
||||
mainRotorSpeed = 1.5;
|
||||
backRotorSpeed = 4;
|
||||
class ViewPilot: ViewPilot
|
||||
{
|
||||
initFov = 1;
|
||||
minFov = 0.3;
|
||||
maxFov = 1.2;
|
||||
initAngleX = 35;
|
||||
minAngleX = -45;
|
||||
maxAngleX = 80;
|
||||
initAngleY = 0;
|
||||
minAngleY = -155;
|
||||
maxAngleY = 155;
|
||||
};
|
||||
class Library
|
||||
{
|
||||
libTextDesc = "CSJ_Mozzie";
|
||||
};
|
||||
dammageHalf[] = {};
|
||||
dammageFull[] = {};
|
||||
class Reflectors{};
|
||||
class AnimationSources: AnimationSources{};
|
||||
class UserActions{};
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
killed = "_this call BIS_Effects_EH_Killed;";
|
||||
};
|
||||
class Sounds
|
||||
{
|
||||
class Engine
|
||||
{
|
||||
//sound[] = {"Ca\Sounds_E\Air_E\UH1H\UH1H_engine_ext_2",1,1,800};
|
||||
sound[] = {"\CSJ_GyroAC\UH1_v1.wss",1,1,800};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "camPos*((rotorSpeed-0.72)*5)";
|
||||
};
|
||||
class EngineIn
|
||||
{
|
||||
sound[] = {"\CSJ_GyroAC\UH1_v1.wss",1,1};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "(rotorSpeed-0.72)*5";
|
||||
};
|
||||
};
|
||||
};
|
||||
/*
|
||||
|
||||
soundEngineOnInt[] = {"ca\sounds\Air\UH1Y\int\int-start-final", 0.1, 1.0};
|
||||
soundEngineOnExt[] = {"ca\sounds\Air\UH1Y\ext\ext-motor-start", 1.0, 1.0, 800};
|
||||
soundEngineOffInt[] = {"ca\sounds\Air\UH1Y\int\int-stop-final", 0.1, 1.0};
|
||||
soundEngineOffExt[] = {"ca\sounds\Air\UH1Y\ext\ext-motor-stop", 1.0, 1.0, 800};
|
||||
|
||||
|
||||
class Sounds {
|
||||
class Engine {
|
||||
sound[] = {"\usec_ch53\sound\ch53_turbine", db8, 1.0, 900};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "camPos*((rotorSpeed-0.72)*4)";
|
||||
};
|
||||
|
||||
class RotorLowOut {
|
||||
sound[] = {"\usec_ch53\sound\ch53_rotor_low", db8, 1.0, 1400};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "camPos*(0 max (rotorSpeed-0.1))";
|
||||
cone[] = {1.6, 3.14, 2.0, 0.5};
|
||||
};
|
||||
|
||||
class RotorHighOut {
|
||||
sound[] = {"\usec_ch53\sound\ch53_rotor_high", 3.51189, 1.0, 1600};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "camPos*10*(0 max (rotorThrust-0.9))";
|
||||
cone[] = {1.6, 3.14, 2.0, 0.5};
|
||||
};
|
||||
|
||||
class EngineIn {
|
||||
sound[] = {"\usec_ch53\sound\ch53_turbine_in", db10, 1.0};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
|
||||
};
|
||||
|
||||
class RotorLowIn {
|
||||
sound[] = {"\usec_ch53\sound\ch53_rotor_low", db10, 1.0};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
|
||||
};
|
||||
|
||||
class RotorHighIn {
|
||||
sound[] = {"\usec_ch53\sound\ch53_rotor_high", db18, 1.0};
|
||||
frequency = "rotorSpeed";
|
||||
volume = "(1-camPos)*3*(rotorThrust-0.9)";
|
||||
};
|
||||
};
|
||||
*/
|
||||
BIN
SQF/dayz_code/Configs/CfgVehicles/DZE/UH1_v1int.wss
Normal file
BIN
SQF/dayz_code/Configs/CfgVehicles/DZE/UH1_v1int.wss
Normal file
Binary file not shown.
BIN
SQF/dayz_code/Configs/CfgVehicles/DZE/UH1_v1stop.wss
Normal file
BIN
SQF/dayz_code/Configs/CfgVehicles/DZE/UH1_v1stop.wss
Normal file
Binary file not shown.
@@ -11,6 +11,7 @@ class CfgPatches
|
||||
requiredVersion = 0.1;
|
||||
requiredAddons[] =
|
||||
{
|
||||
"csj_gyroac",
|
||||
"map_eu",
|
||||
|
||||
//dayz_anim references all CA addons
|
||||
@@ -66,6 +67,7 @@ class CfgAddons
|
||||
{
|
||||
list[] =
|
||||
{
|
||||
"csj_gyroac", // do not move down!
|
||||
"dayz_code",
|
||||
"dayz",
|
||||
"dayz_equip",
|
||||
|
||||
Reference in New Issue
Block a user