Search found 10 matches

by LettuceTurnipTheBeet
Sun Aug 07, 2022 8:56 pm
Forum: Command: Modern Operations series
Topic: For those you struggling with ABM engagements...
Replies: 49
Views: 3601

Re: For those you struggling with ABM engagements...

I did some experiments and I think I got closer to understanding how ABM radars work in CMO. Namely, since update 1147.40 all radars have vertical scan limits of 30° above and below horizontal - except not exactly.

Non-ABM radars like the FPS-117 can only track targets approximately 8° above the ...
by LettuceTurnipTheBeet
Sun Aug 07, 2022 11:13 am
Forum: Command: Modern Operations series
Topic: For those you struggling with ABM engagements...
Replies: 49
Views: 3601

Re: For those you struggling with ABM engagements...

Recently (1265.1) the most common reason I have when trying to engage ballistic missiles is not the interceptor being unsuccessful but that even dedicated ABM sensors cannot track them in time. When, say, a Burke with a SPY-1D detects a DF-21 RV the projected intercept point is already too low to be ...
by LettuceTurnipTheBeet
Mon Jul 11, 2022 10:41 am
Forum: Lua Legion
Topic: Generate Patrol Mission & RPs @ Randomized airbase
Replies: 1
Views: 481

Re: Generate Patrol Mission & RPs @ Randomized airbase

I'm note entirely sure what you mean by hardcoded - your code already adds 4 reference points relative to the base added. But I guess you could generate a circle of reference points and set them as the patrol area for your mission.

If you modified the CreateAirBase() function to return the base ...
by LettuceTurnipTheBeet
Thu Feb 03, 2022 1:18 pm
Forum: Command: Modern Operations series
Topic: Discussion Thought: PLAN CVBG in the Indian Ocean.
Replies: 4
Views: 183

RE: Discussion Thought: PLAN CVBG in the Indian Ocean.

<t> Considering even OSINT amateurs can sometimes get a fix on carriers through commercial satellites, US probably has all potential enemy ships pinned down to 500 miles or less at all times. The carrier can't go into into port to refuel or restock, even a friendly one like Djibouti lest it be ...
by LettuceTurnipTheBeet
Wed Jan 19, 2022 9:13 pm
Forum: Lua Legion
Topic: Lua Script for ToT Cruise Missile Strikes
Replies: 2
Views: 604

Lua Script for ToT Cruise Missile Strikes

<t> I wrote a script to automate path plotting to achieve ToT (Time on Target) cruise missile impacts. While neat to have in some scenarios, it currently only plans one turning waypoint and cannot really use terrain to its advantage. The main ToT script creates an event with an area trigger that is ...
by LettuceTurnipTheBeet
Mon Jan 10, 2022 9:11 pm
Forum: Lua Legion
Topic: Radom position for surf unit initaite
Replies: 2
Views: 200

RE: Radom position for surf unit initaite

I think you need to seed your rng before calling math.random, with os.time for example, like this:

math.randomseed(os.time())
by LettuceTurnipTheBeet
Sun Jan 02, 2022 4:37 pm
Forum: Lua Legion
Topic: Possible issue with readytime_v?
Replies: 1
Views: 156

Possible issue with readytime_v?

<r> I noticed a certain issue with the recently added return value readytime_v which is supposed to return the time to ready a loadout in seconds. When used on an unit accessed with ScenEdit_GetUnit(), it works properly, but when applied to an unit resolved with VP_GetUnit(), it returns KeraLua ...
by LettuceTurnipTheBeet
Sat Jan 01, 2022 9:15 pm
Forum: Lua Legion
Topic: Convert airfields and ports multi-unit to singe-unit(saving loadout and missions))
Replies: 2
Views: 253

RE: Convert airfields and ports multi-unit to singe-unit(saving loadout and missions))

<t> Here is a somewhat naive script that kinda does what you asked for. However, a multi-component airfield AFAIK may have any number of runways and other elements which can not always be accurately represented by the selection of single-unit variants in the DB. Therefore, this script simply adds a ...
by LettuceTurnipTheBeet
Sat Dec 18, 2021 1:43 pm
Forum: Lua Legion
Topic: LUA Script to automate EMCON when ELINT satellites are near
Replies: 3
Views: 448

LUA Script to automate EMCON when ELINT satellites are near

<t> I wrote a script to automate EMCON control when an ELINT sat approaches. Found it useful in scenarios with a lot of satellites, like "A Helping Hand 1979". Turns off radar if a satellite is within a specified range and turns it back on if it leaves said range. Had to loop through units and ...

Go to advanced search