lordheart 1 Posted March 25, 2014 (edited) LHM Static Drag Download Allows dragging of static weapons (editor placed or setup) to place them in a more suitable situation. Allows for raising and lowering of dragged objects for better placement. Allows for dragging of smaller crates (optionally larger crate configs are included). Requirements: None Version: 1.1.1 Notes: Needs to be active server side, not just keys While dragging use left shift + scroll wheel to adjust the height of the dragged object There is an optional pbo located in the optional folder that allows for dragging of larger crates (Box_XXX_AmmoVeh_F, XXX_supplyCrate_F) place it in @LHM_StaticDrag\Addons to make use of it Changelog: 1.1.1: Fixed optional crate pbo not loading correctly Fixed dead gunner in weapon being dragged with weapon Fixed required addons, fixes being unable to drag placed items. 1.1.0: Russian translations (thanks NKey) Spanish translations (thanks Kavinsky) Added weight restriction to dragging of objects (prep for crates) Renamed functions to be more agnostic as to what is dragable. LHM_Static_MaxWeight variable added (default 800) for dragging weight. Locking of static weapons when dragging to disallow players to enter it (reverts back to old lock status when dragging stopped) Disassembling weapon will stop drag. Added mortar support (might be fragile to changes by BIS) Added an optional PBO (LHM_StaticDrag_Crates.pbo) that allows dragging of Box_XXX_AmmoVeh_F, XXX_supplyCrate_F crates. Added support for dragging of smaller crates limited by "weight" Fixed dragging and lowering/raising of height on a dedicated server. (I hope) Added variable "LHM_DisableDrag" checking if an object can be dragged or not.example usage: crate1 setVariable ["LHM_DisableDrag", false, true]; 1.0.2: Fixed broken MP 1.0.1: Fixed possibility of JIP causing weapon drag variables to be reset Fixed being able to drag weapons with units in them (was checking for crew and not gunner) If unit is killed while dragging he will release the weapon. Fixed being able to drag weapon and get into a vehicle and have the weapon once you disembark. 1.0.0: Dragging of static weapons Changing height of dragged weapons Edited April 29, 2014 by LordHeart Added note about servers Share this post Link to post Share on other sites
sonsalt6 105 Posted March 25, 2014 Greetings, your new mod v1.0 available at withSIX. Download now by clicking: Share this post Link to post Share on other sites
Guest Posted March 25, 2014 Release frontpaged on the Armaholic homepage. LHM Static Drag v1.0.0 ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites
kiory 404 Posted March 25, 2014 I can see this being real useful, cheers buddy! Share this post Link to post Share on other sites
Plinskin 23 Posted March 25, 2014 Nice!, downloading :). May I suggest for the next update we can drag and also pack it into our backpacks? :confused:. Thank you for your work and regards. Share this post Link to post Share on other sites
lordheart 1 Posted March 25, 2014 Thanks to both Sonsalt6 and Foxhound for hosting. :) @SSplainskin, I'm unsure what you mean? Static weapons already can be disassembled to backpacks. Share this post Link to post Share on other sites
Plinskin 23 Posted March 25, 2014 I´m sorry then, thank you for the information. Regards. Share this post Link to post Share on other sites
Drakenof 11 Posted March 25, 2014 Really great. Could you extend the concept to even more " static " things ? I'm especially thinking about ammoboxes and such, could be great with igiload and such. Thanks. Share this post Link to post Share on other sites
lordheart 1 Posted March 25, 2014 @Drakenof It should be fairly simple to make it work with ammoboxes. In fact, you could probably paste the following into the init for an ammobox and it should work. this call LHM_Static_fnc_initialiseWeapon; Share this post Link to post Share on other sites
nkey 35 Posted March 25, 2014 Looks interesting... Is it affects stamina? Share this post Link to post Share on other sites
lordheart 1 Posted March 25, 2014 It's not coded to effect stamina, but I believe the drag animation that is played seems to effect it. Share this post Link to post Share on other sites
enex 11 Posted March 25, 2014 This reminds me on ace ^^ Good work bud! Share this post Link to post Share on other sites
JamesSaga 1 Posted March 26, 2014 Thank you sooo much :) Share this post Link to post Share on other sites
lordheart 1 Posted March 26, 2014 Thanks guys, let me know if you come across any issues. Share this post Link to post Share on other sites
lordheart 1 Posted April 4, 2014 Version 1.0.1 update Changelog: Fixed possibility of JIP causing weapon drag variables to be reset Fixed being able to drag weapons with units in them (was checking for crew and not gunner) If unit is killed while dragging he will release the weapon. Fixed being able to drag weapon and get into a vehicle and have the weapon once you disembark. Share this post Link to post Share on other sites
Guest Posted April 5, 2014 (edited) Thanks for informing us about the update :cool: New version has been frontpaged on the Armaholic homepage. LHM Static Drag v1.0.2 ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Edited April 6, 2014 by Guest updated to latest version Share this post Link to post Share on other sites
lordheart 1 Posted April 6, 2014 Changelog: 1.0.2: Fixed broken MP Version 1.0.2 update Share this post Link to post Share on other sites
sonsalt6 105 Posted April 6, 2014 update v1.0.2 available at withSIX. Download now by clicking: @ LordHeart ; 1.0.2 fix is included :) Share this post Link to post Share on other sites
toktotte 0 Posted April 11, 2014 Hey LordHeart! Thank you for this addon, best drag script I have used. But I have encountered a couple bugs. * Units can get in the weapon while you are dragging it. Should be fixable by locking the vehicle when dragging and unlocking it upon release. * You can disassemble the weapon while dragging. This will cause you to continue the dragging animation. * The Scroll wheel height adjustment doesn't seem to work on dedicated servers. An it only worked for the host on a clientserver. Share this post Link to post Share on other sites
lordheart 1 Posted April 11, 2014 Hi, Thanks for the report and for steps to solve at least one of them. I will look into it this weekend and see where it goes from there. Share this post Link to post Share on other sites
spanishsurfer 58 Posted April 14, 2014 (edited) Lordheart, great script man! Since you're still hard at work with this mod could you please, please, please add support for ammo boxes. Specifically: 1. Box_Nato_AmmoVeh_F 2. B_supplyCrate_F 3. Box_East_AmmoVeh_F 4. O_supplyCrate_F I read you're having issues with the mortar. In BECTI, when I buy the mortar and it spawns, I still can't drag it. Hope you can fix that. Thanks for your hard work, much appreciated. -SS Edited April 14, 2014 by SpanishSurfer Share this post Link to post Share on other sites
lordheart 1 Posted April 14, 2014 @SpanishSurfer, I have made improvements to the system, so it should work on ammoboxes, I won't include direct support for ammo boxes at least not in the current method of doing it. Very often mission makers and the like do not wish for ammo boxes to be moved so by enabling it by default forces them to have to work around it. I will take another look into the mortar thing and see what is possible. Share this post Link to post Share on other sites
spanishsurfer 58 Posted April 14, 2014 @SpanishSurfer,I have made improvements to the system, so it should work on ammoboxes, I won't include direct support for ammo boxes at least not in the current method of doing it. Very often mission makers and the like do not wish for ammo boxes to be moved so by enabling it by default forces them to have to work around it. I will take another look into the mortar thing and see what is possible. Those of us who use this could really benefit from dragging ammo boxes. Maybe you could pack two PBOs, 1 that allows static weapons and the other that allows ammo crates and static weapons.Thanks for looking into the mortars. Share this post Link to post Share on other sites
lordheart 1 Posted April 14, 2014 There will almost certainly be an update before Wednesday, whether that includes crate dragging as part of it remains to be seen however it will be possible to enable crates to be dragged by calling: this call LHM_Static_fnc_InitialiseWeapon; In the crates init, at the very least. Share this post Link to post Share on other sites
spanishsurfer 58 Posted April 14, 2014 There will almost certainly be an update before Wednesday, whether that includes crate dragging as part of it remains to be seen however it will be possible to enable crates to be dragged by calling:this call LHM_Static_fnc_InitialiseWeapon; In the crates init, at the very least. If I change your PBO around wont that affect the bikey file? The reason I'd like you to provide the PBO with working crate dragging is because I forward all interested players to your forum topic to download your work. If I make changes I'd have to forward player traffic to some Google drive URL, which isn't ideal. Especially if you keep updating your mod as most server admins depend on users to notify them if bikeys are outdated. Look at it this way, you'll have many more people downloading and using your work if you give us server admins the options to choose between a PBO with only static dragging and a PBO with static and crate dragging. :) Share this post Link to post Share on other sites