Home   Help Search Login Register  

Author Topic: Mando Hitching (ACCEPTED)  (Read 35017 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Mando Hitching (ACCEPTED)
« on: 13 Jun 2008, 22:19:00 »


Allows players to hitch vehicles using choppers. Please do no mirror this resource yet.

You may allow hitching for individual choppers or chopper classes. The pilot has a hud with info about closest detected vehicle and its relative position, so you can proceed with accurate hitching operations without even using external views.

Changes in 1.5:

    * Now you can toggle mando hitch hud ON/OFF from action menu.
    * Now you can set hud scale and X and Y offsets, so you can place it anywhere in the screen.
    * Hud now display cargo type also in text.
    * Destroyed vehicles can be hitched too.
    * You can define heavy choppers and heavy cargo. Heavy cargo classes can be hitched only by heavy transport classes.
    * HUD colours adjusted to be more readable in any condition.

Changes in 1.4:

    * You now can hitch and drop static weapons and static objects.
    * You can hitch only civilian (empty) or your own side cargo.

Changes in 1.3:

    * You now can hitch and drop ammo boxes.
    * Hitching hud does not interfere any more with Mando Missile huds.
    * You now can hitch and drop airplanes, if fast enough they'll keep flying.
    * Cargo will not try to go underground even if you fly really low.
    * Now you can transport cargo as long as the cargo is not destroyed, so you can transport severely damaged vehicles too.
    * Minimum altitude to drop a cargo may be overridden with new mando_hitch_no_check_for_drop global variable.
    * Hitching hud is gone if you are not hitching any cargo and there is no potential cargo nearby.



Get Mando Hitching v1.5 (Please do not mirror this resource yet).
« Last Edit: 12 Aug 2008, 00:06:07 by Mandoble »

Offline GaReb

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #1 on: 14 Jun 2008, 02:20:40 »
Just tried the demo mission and I didn't see any HUD nor any command in the action menu.  ???

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: Mando Hitching (ACCEPTED)
« Reply #2 on: 14 Jun 2008, 14:50:19 »
Excellent work as usual, Mandoble.

One thing though, is it possible to hide the HUD when not in range for hitching a vehicle and only pops up when near? I guess it is since the vehicle icon also pops up on the lower left corner.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #3 on: 14 Jun 2008, 15:02:34 »
Do you mean to hide the background? Yes, just as the other controls _mark, _line, etc.

Offline Manzilla

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #4 on: 14 Jun 2008, 15:30:55 »
Just tried the demo mission and I didn't see any HUD nor any command in the action menu.  ???

GaReb,

What mods/AddOns are you using? I think SLX or one of the others replaces the classname in the mission.sqm file.


First, check the Init file. The line should read:

[["UH60MG"]]execVM"mando_hitch\mando_add_hitch.sqf";

Now, check the mission.sqm file and look for:

items=1;
            class Item0
            {
               position[]={2548.634766,13.860000,2457.171631};
               azimut=260.000000;
               special="FLY";
               id=0;
               side="WEST";
               vehicle="AAMOW008";
               player="PLAYER COMMANDER";
               leader=1;
               skill=0.600000;
               text="heli1";

Look for the line I highlighted in red, "vehicle="AAMOW008"". It should have the class name from the Init file line above, in the example mission, UH60MG. Now if there is something other then, vehicle="UH60MG" , in the mission.sqm line; just take whatever name does appear and exchange "UH60MG" in the Init file to this other name.

Hopefully this helps you out.
« Last Edit: 14 Jun 2008, 15:32:53 by Manzilla »

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #5 on: 14 Jun 2008, 16:25:54 »
Hey Mandoble, just had a play with the hitching m8, having a slight issue with the HUD resource staying in the choppers.  Erm i have the Mando Missile systems active on the choppers aswell, although the hitch HUD appears; it goes once the missile systems are activated.  Could the MMA resource be replacing the HUD when activated?  Or have i just screwed something  :-[.  Just so you know the hitch system itself works fine, just he HUD isnt displayed.

Not a major issue really, as i seem to be the only one who bothers to do logistical stuff :)

Just thought i'd let you know....

Cheers.

Offline Vengeance

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #6 on: 14 Jun 2008, 18:39:38 »
I have found in the demo that if you replace the line:

[["UH60MG"]]execVM"mando_hitch\mando_add_hitch.sqf";

with

[heli1]execVM"mando_hitch\mando_add_hitch.sqf";   

It works fine, i am not using SLX mods and do not know why first line does not show HUD.

I have also found the HUD does not appear after vehicle respawns. I am using Mando Missle as well.



Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #7 on: 14 Jun 2008, 19:26:52 »
You can use a particular vehicle or a vehicle type array, yep. If you use a particular vehicle (heli1), you will need to execute the script again after respawn, if you use an array of vehicle types, it should keep working after vehicle respawn too.

EDIT: First line would show HUD if your chopper class is "UH60MG". To make sure, put hint format["%1", typeOf this] in the init field of your chopper (not that it is case sensitive so UH60MG is different than uh60mg).
« Last Edit: 14 Jun 2008, 19:30:02 by Mandoble »

Offline Vengeance

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #8 on: 14 Jun 2008, 19:58:02 »
Ok working now with this change:

[["UH60mg"]]execVM"mando_hitch\mando_add_hitch.sqf";

Works great on all Helos.  Very Nice work Mandoble!

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #9 on: 14 Jun 2008, 23:00:50 »
Sorry Vegeance, did u say you can get the HUD working along side the mando missile systems? i.e map in top corner.
If so could you just go through how with me? I have tried the above to no avail.

Cheers...

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #10 on: 14 Jun 2008, 23:10:19 »
Quite easy, open mando_add_hitch.sqf and change all the cutRsc by titleRsc
Mando missile hud uses cutRsc too, hence the interference.

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #11 on: 15 Jun 2008, 00:01:52 »
Thankyou m8, all sorted...

EDIT: Sorry bit of a premature sorted there lol....   HUD appears ok, but then does not dissapear once you get out of the chopper.

Getting there though  :D
« Last Edit: 15 Jun 2008, 00:15:46 by Shadow.D. ^BOB^ »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #12 on: 15 Jun 2008, 00:27:11 »
Do you mean that you lose your hud if you get out of the chopper and get in again?

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #13 on: 15 Jun 2008, 01:39:46 »
No sorry, When you get out of the chopper, whatever is displayed on the Hitch HUD at the time stays on the screen.  So you have the green cross etc. while running round.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #14 on: 15 Jun 2008, 01:52:03 »
Ah, sorry, change also the cutText there by titleText