Skip to content

Commit

Permalink
Misc Fixes - Change ATGM firing smoke to be less obstructive (#650)
Browse files Browse the repository at this point in the history
* added vanilla copies to use for ATGMs

* Added cup compat

* Added RHSAFRF compat

* Added GM compat
  • Loading branch information
lambdatiger authored Feb 20, 2025
1 parent 6af6832 commit a4b258f
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 3 deletions.
225 changes: 225 additions & 0 deletions addons/miscFixes/CfgCloudlets.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
class CfgCloudlets {
class Default;
class Missile2_vanilla: Default {
interval = "0.003";
circleRadius = 0;
circleVelocity[] = {0,0,0};
angleVar = 1;
particleFSLoop = 0;
particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
animationName = "";
particleType = "Billboard";
timerPeriod = 1;
lifeTime = 1.2;
moveVelocity[] = {0,0,0};
rotationVelocity = 1;
weight = 1;
volume = 0.8;
rubbing = 0.5;
size[] = {1,2};
color[] = {{0.4,0.4,0.4,0.07},{0.6,0.6,0.6,0}};
animationSpeed[] = {5};
randomDirectionPeriod = 0.1;
randomDirectionIntensity = 0.1;
onTimerScript = "";
beforeDestroyScript = "";
blockAIVisibility = 0;
lifeTimeVar = 0;
positionVar[] = {0.3,0.3,0.3};
MoveVelocityVar[] = {1.2,1.2,1.2};
rotationVelocityVar = 20;
sizeVar = 0.2;
colorVar[] = {0,0,0,0};
randomDirectionPeriodVar = 0;
randomDirectionIntensityVar = 0;
};
class Missile2Med_vanilla: Default {
interval = "0.006";
circleRadius = 0;
circleVelocity[] = {0,0,0};
angleVar = 1;
particleFSLoop = 0;
particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
animationName = "";
particleType = "Billboard";
timerPeriod = 1;
lifeTime = 0.6;
moveVelocity[] = {0,0,0};
rotationVelocity = 1;
weight = 1;
volume = 0.8;
rubbing = 0.5;
size[] = {1,2};
color[] = {{0.4,0.4,0.4,0.07},{0.6,0.6,0.6,0}};
animationSpeed[] = {5};
randomDirectionPeriod = 0.1;
randomDirectionIntensity = 0.1;
onTimerScript = "";
beforeDestroyScript = "";
blockAIVisibility = 0;
lifeTimeVar = 0;
positionVar[] = {0.3,0.3,0.3};
MoveVelocityVar[] = {1.2,1.2,1.2};
rotationVelocityVar = 20;
sizeVar = 0.2;
colorVar[] = {0,0,0,0};
randomDirectionPeriodVar = 0;
randomDirectionIntensityVar = 0;
};
class Missile3_vanilla: Default {
interval = 0.001;
circleRadius = 0;
circleVelocity[] = {0,0,0};
angleVar = 1;
particleFSLoop = 0;
particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
animationName = "";
particleType = "Billboard";
timerPeriod = 1;
lifeTime = 2;
moveVelocity[] = {0,0,0};
rotationVelocity = 1;
weight = 1;
volume = 0.8;
rubbing = 0.5;
size[] = {1,2,2.8};
color[] = {{0.5,0.5,0.5,0.07},{0.6,0.6,0.6,0.02},{0.7,0.7,0.7,0.01},{0.8,0.8,0.8,0.005},{0.9,0.9,0.9,0.003}};
animationSpeed[] = {5};
randomDirectionPeriod = 0.1;
randomDirectionIntensity = 0.1;
onTimerScript = "";
beforeDestroyScript = "";
blockAIVisibility = 0;
lifeTimeVar = 0.2;
positionVar[] = {0.3,0.3,0.3};
MoveVelocityVar[] = {0.4,0.4,0.4};
rotationVelocityVar = 20;
sizeVar = 0.15;
colorVar[] = {0,0,0,0};
randomDirectionPeriodVar = 0;
randomDirectionIntensityVar = 0;
};
class Missile3Med_vanilla: Default {
interval = 0.003;
circleRadius = 0;
circleVelocity[] = {0,0,0};
angleVar = 1;
particleFSLoop = 0;
particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
animationName = "";
particleType = "Billboard";
timerPeriod = 1;
lifeTime = 0.8;
moveVelocity[] = {0,0,0};
rotationVelocity = 1;
weight = 1;
volume = 0.8;
rubbing = 0.5;
size[] = {1,2,2.8};
color[] = {{0.5,0.5,0.5,0.07},{0.6,0.6,0.6,0.02},{0.7,0.7,0.7,0.01},{0.8,0.8,0.8,0.005},{0.9,0.9,0.9,0.003}};
animationSpeed[] = {5};
randomDirectionPeriod = 0.1;
randomDirectionIntensity = 0.1;
onTimerScript = "";
beforeDestroyScript = "";
blockAIVisibility = 0;
lifeTimeVar = 0.2;
positionVar[] = {0.3,0.3,0.3};
MoveVelocityVar[] = {0.4,0.4,0.4};
rotationVelocityVar = 20;
sizeVar = 0.15;
colorVar[] = {0,0,0,0};
randomDirectionPeriodVar = 0;
randomDirectionIntensityVar = 0;
};
class Missile4_vanilla: Default {
circleVelocity[] = {0,0,0};
moveVelocity[] = {0,0,0};
size[] = {2.7,3};
color[] = {{0.8,0.8,0.8,0.05},{1,1,1,0}};
animationSpeed[] = {1};
blockAIVisibility = 0;
positionVar[] = {0.3,0.3,0.3};
MoveVelocityVar[] = {0.4,0.4,0.4};
colorVar[] = {0,0,0,0};
interval = 0.0025;
circleRadius = 0;
angleVar = 1;
particleFSLoop = 0;
particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
animationName = "";
particleType = "Billboard";
timerPeriod = 1;
lifeTime = 8;
rotationVelocity = 1;
weight = 1.24;
volume = 1;
rubbing = 1;
randomDirectionPeriod = 0.1;
randomDirectionIntensity = 0.1;
onTimerScript = "";
beforeDestroyScript = "";
lifeTimeVar = 0.1;
rotationVelocityVar = 20;
sizeVar = 0.2;
randomDirectionPeriodVar = 0;
randomDirectionIntensityVar = 0;
position[] = {0,0,0};
positionVarConst[] = {0,0,0};
MoveVelocityVarConst[] = {0,0,0};
colorCoef[] = {1,1,1,1};
angle = 0;
sizeCoef = 1;
animationSpeedCoef = 1;
};
};

class Missile2 {
class Missile2;
class Missile2Med;
};
class Missile2_vanilla: Missile2 {
class Missile2: Missile2 {
type = "Missile2_vanilla";
};
class Missile2Med: Missile2Med {
type = "Missile2Med_vanilla";
};
};

class Missile3 {
class Missile3;
class Missile3Med;
};
class Missile3_vanilla: Missile3 {
class Missile3: Missile3 {
type = "Missile3_vanilla";
};
class Missile23ed: Missile3Med {
type = "Missile3Med_vanilla";
};
};

class Missile4 {
class Missile4;
};
class Missile4_vanilla: Missile4 {
class Missile4: Missile4 {
type = "Missile4_vanilla";
};
};
1 change: 1 addition & 0 deletions addons/miscFixes/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class RscChatListDefault {
};

#include "CfgAmmo.hpp"
#include "CfgCloudlets.hpp"
#include "CfgEden.hpp"
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
Expand Down
6 changes: 6 additions & 0 deletions addons/miscFixes/patchCUP/CfgAmmo.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class CfgAmmo {
class MissileBase;
class cup_m_9k11_at3_sagger_at: MissileBase {
effectsMissile = "Missile4_vanilla";
};
};
10 changes: 9 additions & 1 deletion addons/miscFixes/patchCUP/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "potato_core", "potato_customGear", "CUP_Weapons_LoadOrder", "CUP_Vehicles_LoadOrder", "CUP_Creatures_People_LoadOrder" };
requiredAddons[] = {
"potato_core",
"potato_miscFixes",
"potato_customGear",
"CUP_Weapons_LoadOrder",
"CUP_Vehicles_LoadOrder",
"CUP_Creatures_People_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = "Bourbon Warfare";
authorUrl = "https://github.com/BourbonWarfare/POTATO";
Expand All @@ -21,6 +28,7 @@ class MainTurret: MainTurret {\
};\
}

#include "CfgAmmo.hpp"
class CfgVehicles {
#include "CfgVehiclesA10A.hpp"
// Base classes
Expand Down
18 changes: 17 additions & 1 deletion addons/miscFixes/patchGM/CfgAmmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,20 @@ class CfgAmmo {
ACEGVAR(frag,classes)[] = {QACEGVAR(frag,tiny_HD), QACEGVAR(frag,small_HD), QACEGVAR(frag,small_HD)};
ACEGVAR(frag,fragCount) = 350;
};
};

// Make the missiles aimable by returning old smoke effects
class gm_missile_saclos_base;
class gm_missile_fagot_base: gm_missile_saclos_base {
effectsMissile = "missile2_vanilla";
};
class gm_missile_milan_base: gm_missile_saclos_base {
effectsMissile = "missile2_vanilla";
};
class gm_missile_bastion_base: gm_missile_saclos_base {
effectsMissile = "missile2_vanilla";
};
class gm_missile_maljutka_base: gm_missile_saclos_base {
effectsMissile = "missile2_vanilla";
};

};
24 changes: 23 additions & 1 deletion addons/miscFixes/patchRHSAFRF/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,36 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "potato_core", "rhs_main_loadorder" };
requiredAddons[] = {
"potato_core",
"potato_miscFixes",
"rhs_main_loadorder"
};
skipWhenMissingDependencies = 1;
author = "Bourbon Warfare";
authorUrl = "https://github.com/BourbonWarfare/POTATO";
VERSION_CONFIG;
};
};

class RHS_Missile2 {
class Missile2 {
type = "Missile2_vanilla";
};
class Missile2Med {
type = "Missile2Med_vanilla";
};
};

class RHS_Missile3 {
class Missile3 {
type = "Missile3_vanilla";
};
class Missile3Med {
type = "Missile3Med_vanilla";
};
};

#include "CfgAmmo.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"

0 comments on commit a4b258f

Please sign in to comment.