|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Making good progress... I can drop the Stinger teams, but still would like to get the helicopter's heading. Here is the link to the latest code and test mission -- http://forums.eagle.ru/showthread.php?p=2213275#post2213275WC
|
|
|
|
|
Joined: Mar 2005
Posts: 875
Member
|
|
Member
Joined: Mar 2005
Posts: 875 |
I was looking at code like that I think...
[code:lua] local unit_ref = Unit.getByName("Test Unit #001" if (unit_ref ~= nil) then rtrn_txt = rtrn_txt .. " " .. string.format("%.1f", mist.utils.toDegree(mist.getHeading (unit_ref))) end [/code]
so I think mist.getHeading() allows passing of (accepts) a unit reference, then you just have to convert that vale to degrees.
Fridge ---------- Things which do you no good in aviation: 1) Altitude above you; 2) Runway behind you; 3) Fuel in the truck; 4) The airspeed you don't have.
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Hey Fridge  I just finished the script -- local grpName = 'UH-1H 02 Stinger Team'
local unitName = Group.getByName(grpName):getUnit(1):getName()
local basePos = mist.getLeadPos(grpName)
local baseHeadingRad = mist.getHeading(Unit.getByName(unitName))
local baseHeadingDeg = baseHeadingRad * 180 / math.pi
trigger.action.outText('x = ' .. basePos.x .. ', z = ' .. basePos.z .. ', unit = ' .. unitName .. ', heading Radians = ' .. baseHeadingRad .. ', heading Degrees = ' .. baseHeadingDeg, 6)
local newGroup = mist.getGroupData('BLF VGrp90 Stinger Team')
local newCoords =
{
[1] =
{
x = basePos.x + ((75 * math.cos(baseHeadingDeg)) - (0 * math.sin(baseHeadingDeg))),
y = basePos.z + ((75 * math.sin(baseHeadingDeg)) + (0 * math.cos(baseHeadingDeg))),
heading = baseHeadingDeg,
},
[2] =
{
x = basePos.x + ((-75 * math.cos(baseHeadingDeg)) - (75 * math.sin(baseHeadingDeg))),
y = basePos.z + ((-75 * math.sin(baseHeadingDeg)) + (75 * math.cos(baseHeadingDeg))),
heading = baseHeadingDeg + 40,
},
[3] =
{
x = basePos.x + ((-75 * math.cos(baseHeadingDeg)) - (-75 * math.sin(baseHeadingDeg))),
y = basePos.z + ((-75 * math.sin(baseHeadingDeg)) + (-75 * math.cos(baseHeadingDeg))),
heading = baseHeadingDeg - 40,
}
}
for i = 1, #newGroup.units do
newGroup.units[i].x = newCoords[i].x
newGroup.units[i].y = newCoords[i].y
newGroup.units[i].heading = newCoords[i].heading
end
newGroup.clone = true
mist.dynAdd(newGroup)A copy of the test mission is here -- http://forums.eagle.ru/showthread.php?p=2214262#post2214262
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
A bit more work on Bridge At Zugdidi before it's ready. Need to combine a few functions to get the Hueys to drop off Stinger teams wherever they want to! Huey pilots will need to land for 20 seconds before the Stinger team disembarks. The pilot also needs to key the radio to tell the team to prepare to exit the a/c; and the pilot will then have 3 minutes to land.  WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Spawning MANPADS wherever the Huey lands...  WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
The new Bridge At Zugdidi mission will be up in a few minutes. It's in a **beta** state for the Huey and for dropping Stinger teams -- one Huey right has the capability right now while any bugs get flushed out. This **beta** mission also has Client slots for R&B Combined Arms, two Blue A-10Cs air start, a bunch of F-15Cs air and cold starts, Red Mi-8Ts... I'll be in there to see how it works and to take notes -- give it a try! If the Huey with Stinger teams on board crashes or leaves the mission, then the next Client should get a new set of three Stinger teams to deploy. Each Stinger team has one Comms guy and two missile guys. --- Briefing Bridge At Zugdidi Combined Arms, Air Defense vs F-15Cs F10 View All, Optional Labels (Shift-F10), Summer Start 1000 03JUN **BETA** For Molasses -- Huey 11 drops Stingers -- **BETA** This is also Red Combined Arms TOR fight against Blue F-15Cs! This mission will timeout after four hours and reload. --- Summary The Bridge At Zugdidi is the target of Blue commandos. Blue: Clear the western side of the bridge. Blue commandos will place charges to blow the sucker. Red air defense is heavy. Also expect a Red HIP assault. Rede: Destroy the commandos and any Blue jets and helicopters that may threaten our bridge. --- Red Task Use Combined Arms slots to crew the TOR units and other air defense. Engage F-15Cs and SEAD flights. Defend the Zugdidi Bridge from attack! Protect the Red units west of the bridge. --- Blue Task Take out Red unit just west of Zugdidi Bridge. Blue commandos will then advance on the bridge and set charges to explode. Huey "Stinger Teams" pilots -- deliver Stinger teams to the commandos so they can defend against the Red Mi-8Ts. You have three Stinger teams on board -- and can drop them anywhere! Land for 20 seconds and select your Radio to drop your Stinger teams (Radio F10 Other). F-15C pilots beware of TOR units in the area! F-18 SEAD flights will assist. --- 
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
That was frickin close --  WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Red jets beware --  Stinger team on the move --  Got you -- WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
It's the weekend -- enough development for a while.
Something fun.
WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Was flying this new Zugdidi mission in the Huey and noticed where the Radio menu won't come up on occasion -- but then it will work again. There are Radio commands being added and removed in the mission events. Anybody else see this?
WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
The new Bridge At Zugdidi mission is ready. There is a lot of action over the four-hour run time. Red can play Combined Arms and take air defense shots at Blue F-15Cs and F/A-18Cs with TORs and Tunguskas. Blue also has Combined Arms, and must get Blue infantry commandos up to the Zugdidi Bridge -- and protect these guys for 3-4 minutes while they place charges. Blue can fly A-10Cs, F-15Cs, and there are four Hueys with a special purpose. These Hueys can drop Stinger teams anywhere on the map. Put Stingers near the Blue commandos, or sneak south to Senaki and land some Stinger dudes near the Red airbase for a little surprise. Lots of things going on --  It is still early in the mission development so Labels are on --  But you can always turn them off --  The Zugdidi Bridge is here --  Stinger team on the move --  I have this feeling that some red jets may be wanted -- let me know -- WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Here comes trouble --  WC
|
|
|
|
|
Joined: Jul 2007
Posts: 199
Member
|
|
Member
Joined: Jul 2007
Posts: 199 |
Hey crew, have you done any of your mission making magic to incorporate mig21s or sabers ?
Some of those large battle scenarios you've done might be good for an early 80s / late 70s coldwar scenario adaptation.
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Hey, Skoop, Here is the link to my Air fighters 'The Bridge' missions, if you want to give that a go. https://drive.google.com/file/d/0BwHk38uryutrd3pwTnd2ZHl1d3M/view?usp=sharingI made this mission for the F-15C, and then replaced the more modern jets with the new old ones  I don't fly the vintage jets so my focus remains on the A-10C and the more modern fighters, along with the only available ground units that we have now. When I have brought in the older planes, they haven't fared well in comparison for distance, fuel and weapons. WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
That said ^^^ give me a simple scenario and I can build something. Sometimes the quick simple missions end up as favs.
WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
But I'll run some Combined Arms to mess up any pilots day...
WC
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
The bungie over the cockpit hood is the alternate autopilot system --   WC
|
|
|
|
|
Joined: Nov 2004
Posts: 17,632
Skate Zilla Graphics Veteran
|
|
Skate Zilla Graphics Veteran
Joined: Nov 2004
Posts: 17,632 |
what, you just bring it down and wrap it around the stick and let it control the aircraft with elasticity?
HAF922, Corsair RM850, ASRock Fata1ity 990FX Pro, Modified Corsair H100, AMD FX8350 @ 5.31GHz, 16GB G.SKILL@DDR2133, 2x R7970 Lightnings, +1 HD7950 @ 1.1/6.0GHz, Creative XFi Fata1ity Platinum Champ., 3x ASUS VS248HP + Hanns�G HZ201HPB + Acer AL2002 (5760x1080+1600x900+1680x1050), Oculus Rift CV CH Fighterstick, Pro Throt., Pro Pedals, TM Warthog & MFDs, Fanatec CSR Wheel/Shifter, Elite Pedals Intensity Pro 10-Bit, TrackIR 4 Pro, WD Black 1.5TB, WD Black 640GB, Samsung 850 500GB, My Book 4TB
|
|
|
|
|
Joined: Mar 2007
Posts: 5,111
Smooth Operator Hotshot
|
|
Smooth Operator Hotshot
Joined: Mar 2007
Posts: 5,111 |
Everybody knows that 
|
|
|
|
|
Joined: Oct 1999
Posts: 2,962
Senior Member
|
|
Senior Member
Joined: Oct 1999
Posts: 2,962 |
Plus you can get some wicked tunes out of it while orbiting waiting for tasking. BoiiiiIIINGGGG!
|
|
|
|
|
|
|
|
|
|
|
HOA's
by Terl9999 - 09/18/26 04:12 AM
|
Football
by Terl9999 - 09/18/26 02:42 AM
|
Flags
by Terl9999 - 09/15/26 10:03 PM
|
|
|
|
|
|
|
|
|
|