Sling loading a light aircraft, sling camera example.
Introduction:
I created this for myself. I wanted an out of the box sling loading functionality as I like to quickly throw a few things into the editor and quickly create a basic functional mission for myself.
This allows sling loading operations to be easily created, without effecting any other missions created by others with their own sling loading scripts triggers etc.
History: Spoiler:
0.2.4a
Added ability to show the sling cam in the action screen.
Decreased the time it takes the loader to attach loads to six seconds.
Increased the maximum speed while the loader is loading to better suit players not using
autohover.
Changed the camera code to be compatible with my Mobile parts cameras.
0.2.3a
Fixed oversight when packing, where the signature was not being updated.
0.2.2a
Fixed incorrect signature files.
0.2.1a
Fixed problem where sling camera stayed active in all vehicles.
0.2a
Made speed more flexible, meaning less tolerance for ai hookups.
Created the ability to set the desired speed, for those that don't like to rely on autohover.
Created the ability to set the time required for an ai hookup.
Increased the range that the ai can hookup an object. Current version didn't allow the ai to move close enough to trigger the hooking sequence for large objects.
Added Sling load camera in the monitors. Can be turned off and on in the action menu.
Added two zoom settings for the camera accessed via the action menu.
Only tested in single player. Although I did try and code it with MP in mind, I wouldn't be surprised if something didn't work seeing as it had no testing in that area.
This hasn't had a lot of testing, created it more for myself, but happy with the result and thought it might be enjoyed by others in the community.
I find it easier to disable my track ir when using the menus to connect the line to helicopters and objects. It requires you to place the cursor over them to make the menu item visible. The track ir makes knowing where the cursor position is hard.
Features:
Manual connection of the sling line to ensure no conflicts with other missions. To connect the line crawl under the helicopter until you get the menu item.
You can disconnect either by the remote release in the pilots seat(action menu) or crawling under to manually release via the action menu.
Electric hook releases for both loads and the line. Menu items.
Hot key for the menu items can be setup for use as buttons on a joystick if desired.
Found under custom controls in the controls dialog.
User 1 = Line release.
User 2 = Load release.
The ability to manually connect and un-connect a load to your line if the load is close enough to the helicopter. Menu option becomes available when close enough and looking at the object.
AI Loader unit Found under Civilian -> American -> People -> Blakes Loader in the editor.
Loader will move to the nearest load it has been synced with in the editor if it is closer than 100m. Note if the loader is a member of your group you will need to order him to move close the the load. Designed to be in his own group of one ideally.
If a helicopter with a sling line is close enough and slow enough the loader will attempt to hook the nearest load onto the line.
Distance for connection is between helicopter and Load object. Must be less than the line length. Tried using a token object to track the end of the line, but they would bounce around like tied up rabbits until snapping off the line.
Set AI loader values:
Max hookup speed:
Place the code in the ai loaders initialization field. Units are m/s. Default value is 3
this setvariable ["maxhookupspeed",1.4,true];
Load Time:
Place the code in the ai loaders initialization field. Units are seconds. Default value is 6
this setvariable ["loadtime",10,true];
Sling camera:
Turn on and off at the action menu.
Once on, there will be the option to change the zoom.
At this stage I haven't figured out how to define whether the overlayed version of the camera appears or not. In testing if i spawn the code in the init field, I get the overlay. Running the addon I only get the vehicle's monitor displaying? Hopefully as more people experiment with this a better understanding of how it functions will prevail.
Sorry for the slow reply, and thanks for the kind words.
Originally Posted by [DirTyDeeDs]-Ziggy-
I'll check it out, experiment, and give feedback. thanks for sharing.
Cheers constructive feedback is always welcome
Originally Posted by DeadlyDave
is there a way to shorten the time the line takes to connect?
great mod by the way.
Will be in the next version now
I almost have an update ready.
Changes will include:
More flexible speed tolerance for ai hookups. Ability to set the desired speed, for those that like to not rely on autohover.
Ability to set the time required for an ai hookup.
Increased the range that the ai can hookup an object. Current version didn't allow the ai to move close enough to trigger the hooking sequence for large objects.
Added Sling load camera in the monitors. Can be turned off and on in the action menu.
Edit: HotFix Uploaded
Sorry I found a small logical error which caused only the heavy helicopters menu items to not appear correctly.
Light and medium were ok.
If you downloaded before you saw this edit please re-download.
Ok I have uploaded a new version.
First post updated with the new download.
Blake's Sling Loading v0.2a
History:
Made speed more flexible, meaning less tolerance for ai hookups.
Created the ability to set the desired speed, for those that don't like to rely on autohover.
Created the ability to set the time required for an ai hookup.
Increased the range that the ai can hookup an object. Current version didn't allow the ai to move close enough to trigger the hooking sequence for large objects.
Added Sling load camera in the monitors. Can be turned off and on in the action menu.
Added two zoom settings for the camera accessed via the action menu.
Originally Posted by DeadlyDave
blake thats the things id like improved this mod deserves more credit than you are getting its great fun.
Cheers, I'm glad you like it.
@Sickboy - I have updated my tools, so sigs should be ok now.