GithubHelp home page GithubHelp logo

dcs-scripts's People

Contributors

frozendroid avatar kervinou avatar lazyboot avatar spencer-ki avatar spencershepard avatar wheelyjoe avatar xanax914 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dcs-scripts's Issues

Use explosiveMass and shapedExplosiveMass instead of explTable

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.

Missing Weapons - FFAR & Hydra

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

Scale explosions by surfaceType

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.

synthesis : some weapons without informations


-- Air-Air Missiles (06/03/2023)

-- 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


-- Relevé des manquants (KERV: 10/05/2023)

-- 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


-- Manquants : #9

-- 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

Missing Weapon

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

AGM-154C incorrect listing name

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]

'Damage model' affects entire group

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.