baltic_dragon Posted April 8, 2015 Posted April 8, 2015 Hi guys, I have tried to build a simple mission that would evaluate how far from target the bomb dropped by player would land with message sent to coalition about the effect of a bombing run. What I did was: a) creating five zones, one on top of another with different size (5m, 10m, 25m, 50m and 100m) b) turn a flag whenever the bomb is in each of the zones (switched condition, 1 bomb in zone, flag 1 for 5m, 2 for 10m etc. up to 5 for 100m) c) creating following triggers: 5m zone - switched cond. / flags 1-5 true / message to coalition (direct hit) - flags 1-5 off 10m zone - switched cond./ flag 1 false, 2-5 true / message to coalition (bomb 10m off target) - flags 1-5 off 25m zone - switched cond./ flags 1-2 false, 3-5 true / message to coalition (bomb 25m off target) - flags 1-5 off and so on up to 100m zone (where only flag 5 is true) My logic being that since the zones are on top of each other, the bomb hitting the center one (5m) will be in all other zones as well, while the bomb hitting more than 50m from the center would only be in the last zone (100 m) - hence the true / false flag system (all flags true for 5m, flags 1-4 false and 5 true for 100m) However it does not work, on direct hit I get no message, in other places I only get the 50m one. Sometimes DCS will show that 2 bombs hit the target when there qwas only one released... has anyone tried this or have a script that would do the job? I really could use some help here. Thanks in advance! BD For more information, please visit my website. If you want to reach me with a bug report, feedback or a question, it is best to do this via my Discord channel. Details about the WinWing draw can be found here. Also, please consider following my channel on Facebook.
Belgeode Posted April 8, 2015 Posted April 8, 2015 That sounds interesting. Question... Does the trigger bomb in zone fire when a bomb is RELEASED, or when the bomb hits the ground? I used bomb in zone before but it triggered on release to give me the desired action. [sIGPIC][/sIGPIC] YouTube ~ Twitch
lanmancz Posted April 9, 2015 Posted April 9, 2015 (edited) The problem is that triggers are checked only once per second and therefore are too slow to evaluate this. I made a script for this but it does not work at the moment :-/ as there is currently a bug in DCS that bomb release does not trigger the "ON_SHOT" event. For munition that triggers it correctly it works fine. Grimes mentioned that its fixed already internally so once the fix is rolled out you can use this : http://forums.eagle.ru/showpost.php?p=2369278&postcount=1 Edited April 9, 2015 by lanmancz [sIGPIC][/sIGPIC] Gigabyte Aorus Z390 Elite, Intel i9 9900K, Fractal Design Kelvin S36, Zotac GTX 1070 8GB AMP Extreme, 32GB DDR4 HyperX CL15 Predator Series @ 3000 MHz, Kingston SSD 240GB (OS), Samsung 970 EVO 1TB M.2 NVMe (sim), Fractal Design Define R5 Black Window, EVGA SuperNOVA 750 G2, Win 10 Home x64, Thrustmaster Warthog HOTAS, Saitek Pro Flight Rudder Pedals, Thrustmaster MFD Cougar Pack, TrackIR (DelanClip), 3x 27" BenQ EW2740L, Oculus Rift S
baltic_dragon Posted April 9, 2015 Author Posted April 9, 2015 That sounds interesting. Question... Does the trigger bomb in zone fire when a bomb is RELEASED, or when the bomb hits the ground? I used bomb in zone before but it triggered on release to give me the desired action. It seems to work when the bomb hits the ground - if I get the message, it is at the impact. Still, I don't see a hole in the logic I use, but no luck with the final effect. The problem is that triggers are checked only once per second and therefore are too slow to evaluate this. I made a script for this but it does not work at the moment :-/ as there is currently a bug in DCS that bomb release does not trigger the "ON_SHOT" event. For munition that triggers it correctly it works fine. Grimes mentioned that its fixed already internally so once the fix is rolled out you can use this : http://forums.eagle.ru/showpost.php?p=2369278&postcount=1 Thanks, this looks interesting! Will it work for Hydras as well? Or for guns? Or the gun is not seen as 'on shot' event neither? Also, I will wait for more news from Grimes. Thanks, I will check it and report back! edit: one more thing, isn't continuos action checked once per second. and switched condition is true the moment something happens? For more information, please visit my website. If you want to reach me with a bug report, feedback or a question, it is best to do this via my Discord channel. Details about the WinWing draw can be found here. Also, please consider following my channel on Facebook.
mwd2 Posted April 9, 2015 Posted April 9, 2015 SNAFU had build a Script for DCS 1.2.5: http://forums.eagle.ru/showthread.php?t=109174 Playing: DCS World Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof. Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh Ghost0815
baltic_dragon Posted April 9, 2015 Author Posted April 9, 2015 Thanks, it doesn't seem to work though - or I am doing something wrong. Might try to revive the old thread :) So far I only got lanmancz's script to work for rockets... is it possible to create similar one for the guns? For more information, please visit my website. If you want to reach me with a bug report, feedback or a question, it is best to do this via my Discord channel. Details about the WinWing draw can be found here. Also, please consider following my channel on Facebook.
Recommended Posts