spencershepard / dcs-scripts Goto Github PK
View Code? Open in Web Editor NEWThis project forked from wheelyjoe/dcs-scripts
A small collection of scripts for DCS
License: MIT License
This project forked from wheelyjoe/dcs-scripts
A small collection of scripts for DCS
License: MIT License
I'm not 100% sure this is possible, as I haven't been able to make it work (and I also suck at lua), but doing away with the table and just pulling the explosiveMass and shapedExplosiveMass values from the warhead and scaling them might be easier than maintaining a table.
FFAR Mk1 HE
FFAR Mk5 HEAT
FFAR Mk156 WP
HYDRA_70_M151
HYDRA_70_M156
HYDRA_70_M257
HYDRA_70_M274
HYDRA_70_MK1
HYDRA_70_MK61
HYDRA_70_WTU1B
A bomb that lands on land should do a different amount of damage to nearby objects compared to a bomb landing on a road or in water.
land.SurfaceType returns the following integers:
LAND 1
SHALLOW_WATER 2
WATER 3
ROAD 4
RUNWAY 5
I've been playing with this using the following code:
local surfaceType = land.getSurfaceType(impactPoint)
if surfaceType = 1 then
surfaceType = 1.25
elseif surfaceType > 3 then
surfaceType = 1
end
explosive = explosive / surfaceType
I'm not 100% sure if a water impact should do more or less damage. The explosion itself won't go as far, but the incompressibility of water transfers pressure to waterborne objects very effectively. The code I posted will make it do less damage.
-- 2023-01-21 20:20:59.105 INFO SCRIPTING (Main): AIM-7F missing from Splash Damage script
-- 2023-01-21 20:23:27.614 INFO SCRIPTING (Main): AIM_9 missing from Splash Damage script
-- 2023-01-21 20:20:30.780 INFO SCRIPTING (Main): R_550 missing from Splash Damage script
-- 2023-01-21 19:52:33.879 INFO SCRIPTING (Main): R_530F_EM missing from Splash Damage script
-- 2023-01-21 20:19:28.521 INFO SCRIPTING (Main): AIM_7 missing from Splash Damage script
-- 2023-01-21 19:10:34.547 INFO SCRIPTING (Main): AIM-7P missing from Splash Damage script
-- 2023-01-21 19:46:00.357 INFO SCRIPTING (Main): R-3R missing from Splash Damage script
-- 2023-01-21 21:03:48.074 INFO SCRIPTING (Main): SVIR missing from Splash Damage script
-- 2023-01-21 21:03:37.749 INFO SCRIPTING (Main): TOW2 missing from Splash Damage script
-- 2023-01-21 20:45:31.550 INFO SCRIPTING (Main): HAWK_RAKETA missing from Splash Damage script
-- 2023-01-21 20:27:06.593 INFO SCRIPTING (Main): Ataka_9M120 missing from Splash Damage script
-- 2023-01-21 20:26:55.142 INFO SCRIPTING (Main): AT_6 missing from Splash Damage script
-- 2023-01-21 20:21:50.443 INFO SCRIPTING (Main): P_60 missing from Splash Damage script
-- 2023-01-21 19:47:08.766 INFO SCRIPTING (Main): SA5B27 missing from Splash Damage script
-- 2023-01-21 19:47:05.818 INFO SCRIPTING (Main): Rb 24J missing from Splash Damage script
-- 2023-01-21 19:37:39.259 INFO SCRIPTING (Main): AN-M88 missing from Splash Damage script
-- 2023-01-21 19:34:02.089 INFO SCRIPTING (Main): SA9M33 missing from Splash Damage script
-- 2023-01-21 19:11:21.159 INFO SCRIPTING (Main): SA2V755 missing from Splash Damage script
-- SCRIPTING (Main): ROCKEYE missing from Splash Damage script.
-- 2023-05-06 19:21:54.471 INFO SCRIPTING (Main): 9M317 missing from Splash Damage script
-- 2023-05-06 19:29:34.005 INFO SCRIPTING (Main): HAWK_RAKETA missing from Splash Damage script
-- 2023-05-06 19:37:01.703 INFO SCRIPTING (Main): SM_2 missing from Splash Damage script
-- 2023-05-06 19:45:31.547 INFO SCRIPTING (Main): AIM_7 missing from Splash Damage script
-- 2023-05-06 19:50:55.993 INFO SCRIPTING (Main): AIM_120C missing from Splash Damage script
-- 2023-05-06 19:51:11.529 INFO SCRIPTING (Main): Matra Super 530D missing from Splash Damage script
-- 2023-05-06 19:53:29.687 INFO SCRIPTING (Main): MMagicII missing from Splash Damage script
-- 2023-05-06 19:53:42.093 INFO SCRIPTING (Main): ROLAND_R missing from Splash Damage script
-- 2023-05-06 19:56:29.273 INFO SCRIPTING (Main): SA9M330 missing from Splash Damage script
-- 2023-05-06 20:38:29.759 INFO SCRIPTING (Main): SA2V755 missing from Splash Damage script
-- 2023-05-06 20:38:36.878 INFO SCRIPTING (Main): R_550_M1 missing from Splash Damage script
-- 2023-05-06 20:45:03.919 INFO SCRIPTING (Main): FIM_92C missing from Splash Damage script
-- 2023-05-06 20:52:09.341 INFO SCRIPTING (Main): AIM_9 missing from Splash Damage script
-- 2023-05-06 20:52:21.813 INFO SCRIPTING (Main): P_60 missing from Splash Damage script
-- 2023-05-06 19:21:54.471 INFO SCRIPTING (Main): 9M317 missing from Splash Damage script
-- FFAR Mk1 HE
-- FFAR Mk5 HEAT
-- FFAR Mk156 WP
-- HYDRA_70_M156
-- HYDRA_70_M257
-- HYDRA_70_M274
-- HYDRA_70_MK1
-- HYDRA_70_MK61
-- HYDRA_70_WTU1B
Tested Mk.x bombs and FFAR rockets. There is a visual effect of the secondary blast, but there is no damage increase.
SCRIPTING (Main): ROCKEYE missing from Splash Damage script.
Hi, here is a list from one of our events. Not sure if is should report A/A missiles.
2023-01-21 21:03:48.074 INFO SCRIPTING (Main): SVIR missing from Splash Damage script
2023-01-21 21:03:37.749 INFO SCRIPTING (Main): TOW2 missing from Splash Damage script
2023-01-21 20:45:31.550 INFO SCRIPTING (Main): HAWK_RAKETA missing from Splash Damage script
2023-01-21 20:27:06.593 INFO SCRIPTING (Main): Ataka_9M120 missing from Splash Damage script
2023-01-21 20:26:55.142 INFO SCRIPTING (Main): AT_6 missing from Splash Damage script
2023-01-21 20:23:27.614 INFO SCRIPTING (Main): AIM_9 missing from Splash Damage script
2023-01-21 20:21:50.443 INFO SCRIPTING (Main): P_60 missing from Splash Damage script
2023-01-21 20:20:59.105 INFO SCRIPTING (Main): AIM-7F missing from Splash Damage script
2023-01-21 20:20:30.780 INFO SCRIPTING (Main): R_550 missing from Splash Damage script
2023-01-21 20:19:28.521 INFO SCRIPTING (Main): AIM_7 missing from Splash Damage script
2023-01-21 19:52:33.879 INFO SCRIPTING (Main): R_530F_EM missing from Splash Damage script
2023-01-21 19:47:08.766 INFO SCRIPTING (Main): SA5B27 missing from Splash Damage script
2023-01-21 19:47:05.818 INFO SCRIPTING (Main): Rb 24J missing from Splash Damage script
2023-01-21 19:46:00.357 INFO SCRIPTING (Main): R-3R missing from Splash Damage script
2023-01-21 19:37:39.259 INFO SCRIPTING (Main): AN-M88 missing from Splash Damage script
2023-01-21 19:34:02.089 INFO SCRIPTING (Main): SA9M33 missing from Splash Damage script
2023-01-21 19:11:21.159 INFO SCRIPTING (Main): SA2V755 missing from Splash Damage script
2023-01-21 19:10:34.547 INFO SCRIPTING (Main): AIM-7P missing from Splash Damage script
In the 'explTable', the AGM-154C is incorrectly listed as: ["AGM_154C"] = 305
This is reflected by the missing AoE effect and log warning:
2023-04-29 14:45:59.940 INFO SCRIPTING (Main): AGM_154 missing from Splash Damage script
Renaming the the list entry to ["AGM_154"] fixed the issue, and the weapon now does the correct AoE effect.
As a disclaimer, the CBU based 154 uses the name [AGM-154A]
Today (12/19/23) ED dropped DCS 2.9.2 and the splash damage script is no longer working for me.
AT_6
Controller only works at group level for ground units. We could iterate over the group and apply our controller based damage effects if each unit in the group has the required health levels.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.