瀏覽代碼

particle_effects

Thunder 3 年之前
父節點
當前提交
6f4cab4f10

+ 1 - 0
addons/Particle_Effects/$PBOPREFIX$.ht

@@ -0,0 +1 @@
+{{mainprefix}}\{{prefix}}\addons\Particle_Effects

+ 3 - 3
addons/RD501_Particle_Effects/blast_refract/config.cpp → addons/Particle_Effects/blast_refract/config.cpp

@@ -6,17 +6,17 @@
 //Hello, this is namenai. So theres a CUP dev named Taro who gave me this, I did some slight modifications but by large
 //He made these blast refraction effects. Please credit him.
 
-#include "../../RD501_main/config_macros.hpp"
+#include "..\script_component.hpp"
 class CfgPatches
 {
 	class RD501_patch_blast_refract
 	{
-		addonRootClass = MACRO_QUOTE(RD501_patch_particle_effects);
+		addonRootClass = QUOTE(RD501_patch_particle_effects);
 		units[] = {};
 		weapons[] = {};
 		requiredVersion = 0.1;
 		requiredAddons[] = {
-			RD501_patch_particle_effects
+			QUOTE(RD501_patch_particle_effects)
 		};
 		version = 1;
 		author[] = {"Taro"};

+ 6 - 6
addons/RD501_Particle_Effects/config.cpp → addons/Particle_Effects/config.cpp

@@ -1,5 +1,5 @@
 
-#include "../RD501_main/config_macros.hpp"
+#include "script_component.hpp"
 
 
 class CfgPatches
@@ -10,12 +10,12 @@ class CfgPatches
 		requiredAddons[]=
 		{
 			//macro_root_req
-			RD501_patch_main
+			QUOTE(RD501_patch_main)
 		};
 		requiredVersion=0.1;
 		units[]={};
 		weapons[]={
-			MACRO_QUOTE(macro_new_cloudlet(jumppack_spark))
+			QUOTE(macro_new_cloudlet(jumppack_spark))
 		};
 	};
 };
@@ -60,7 +60,7 @@ class CfgCloudlets
 		interval="0.05 * interval + 0.05";
 		circleRadius=0;
 		circleVelocity[]={0,0,0};
-		particleShape="\RD501_Particle_Effects\particle_effects\universal_blue";
+		particleShape=QPATHTOF(particle_effects\universal_blue);
 		particleFSNtieth=16;
 		particleFSIndex=0;
 		particleFSFrameCount=32;
@@ -170,7 +170,7 @@ class CfgCloudlets
 		interval="0.03 * interval + 0.03";
 		circleRadius=0;
 		circleVelocity[]={0,0,0};
-		particleShape="\RD501_Particle_Effects\particle_effects\universal_blue";
+		particleShape=QPATHTOF(particle_effects\universal_blue);
 		particleFSNtieth=16;
 		particleFSIndex=2;
 		particleFSFrameCount=80;
@@ -240,7 +240,7 @@ class CfgCloudlets
 		particleFSFrameCount=32;
 		particleFSLoop=1;
 		angleVar=0.1;
-		particleShape="\RD501_Particle_Effects\particle_effects\universal_blue";
+		particleShape=QPATHTOF(particle_effects\universal_blue);
 		animationName="";
 		particleType="Billboard";
 		timerPeriod=1;

+ 8 - 8
addons/RD501_Particle_Effects/jumppack/config.cpp → addons/Particle_Effects/jumppack/config.cpp

@@ -1,14 +1,14 @@
-#include "../../RD501_main/config_macros.hpp"
+#include "..\script_component.hpp"
 class CfgPatches
 {
 	class RD501_patch_jumppack_particle_effects
 	{
-		addonRootClass = MACRO_QUOTE(RD501_patch_particle_effects);
+		addonRootClass = QUOTE(RD501_patch_particle_effects);
 		units[] = {};
 		weapons[] = {};
 		requiredVersion = 0.1;
 		requiredAddons[] = {
-			MACRO_QUOTE(RD501_patch_particle_effects)
+			QUOTE(RD501_patch_particle_effects)
 		};
 		version = 1;
 		author[] = {"RD501"};
@@ -225,7 +225,7 @@ class macro_new_complex_effect(jumppack_pulse)
 	class pulse_light
 	{
 		simulation = "light";
-		type = MACRO_QUOTE(macro_new_light(jumppack_pulse));
+		type = QUOTE(macro_new_light(jumppack_pulse));
 		position[] = {0, 0, 0};
 		intensity = 0.01;
 		interval = 1;
@@ -238,7 +238,7 @@ class macro_new_complex_effect(jumppack_blue_trail)
 	class smoke_trial
 	{
 		simulation = "particles";
-		type = MACRO_QUOTE(macro_new_cloudlet(jumppack_smoke));
+		type = QUOTE(macro_new_cloudlet(jumppack_smoke));
 		position[] = {0, 0, 0};
 		intensity = 1;
 		interval = 3 * 1;
@@ -246,16 +246,16 @@ class macro_new_complex_effect(jumppack_blue_trail)
 	};
 	class spark_trial : smoke_trial
 	{
-		type = MACRO_QUOTE(macro_new_cloudlet(jumppack_spark));
+		type = QUOTE(macro_new_cloudlet(jumppack_spark));
 	};
 	class spark_trial2 : smoke_trial
 	{
-		type = MACRO_QUOTE(macro_new_cloudlet(jumppack_fire_blue));
+		type = QUOTE(macro_new_cloudlet(jumppack_fire_blue));
 	};
 	class trial_light
 	{
 		simulation = "light";
-		type = MACRO_QUOTE(macro_new_light(jumppack_pulse));
+		type = QUOTE(macro_new_light(jumppack_pulse));
 		position[] = {0, 0, 0};
 		intensity = 0.01;
 		interval = 1;

+ 0 - 0
addons/RD501_Particle_Effects/particle_effects/universal_blue.p3d → addons/Particle_Effects/particle_effects/universal_blue.p3d


+ 0 - 0
addons/RD501_Particle_Effects/particle_effects/universal_blue_ca.paa → addons/Particle_Effects/particle_effects/universal_blue_ca.paa


+ 15 - 0
addons/Particle_Effects/script_component.ht.hpp

@@ -0,0 +1,15 @@
+#define COMPONENT Particle_Effects
+#include "\{{mainprefix}}\{{prefix}}\addons\main\script_mod.hpp"
+
+// #define DEBUG_MODE_FULL
+// #define DISABLE_COMPILE_CACHE
+
+#ifdef DEBUG_ENABLED_Particle_Effects
+    #define DEBUG_MODE_FULL
+#endif
+    #ifdef DEBUG_SETTINGS_OTHER
+    #define DEBUG_SETTINGS DEBUG_SETTINGS_Particle_Effects
+#endif
+
+#include "\{{mainprefix}}\{{prefix}}\addons\main\script_macros.hpp"
+#include "\{{mainprefix}}\{{prefix}}\addons\main\config_macros.hpp"

+ 3 - 3
addons/RD501_Particle_Effects/weapon_effects/config.cpp → addons/Particle_Effects/weapon_effects/config.cpp

@@ -1,14 +1,14 @@
-#include "../../RD501_main/config_macros.hpp"
+#include "..\script_component.hpp"
 class CfgPatches
 {
 	class RD501_patch_weapon_impact_effects
 	{
-		addonRootClass = MACRO_QUOTE(RD501_patch_particle_effects);
+		addonRootClass = QUOTE(RD501_patch_particle_effects);
 		units[] = {};
 		weapons[] = {};
 		requiredVersion = 0.1;
 		requiredAddons[] = {
-			MACRO_QUOTE(RD501_patch_particle_effects)
+			QUOTE(RD501_patch_particle_effects)
 		};
 		version = 1;
 		author[] = {"RD501"};