Home   Help Search Login Register  

Author Topic: Mando Move (ACCEPTED)  (Read 10214 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Mando Move (ACCEPTED)
« on: 06 Jan 2008, 13:29:17 »
Quite accurate vehicle movements for land vehicles and ships.
See usage in script header.

YouTube example

Get Mando Move 0.2
« Last Edit: 07 Feb 2009, 20:12:21 by Mandoble »

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Mando Move
« Reply #1 on: 09 Jan 2008, 00:44:24 »
Great-- very useful not only for convoys but making vehicles "behave" properly during cutscenes.

Offline ARMAVIDZ

  • Members
  • *
Re: Mando Move
« Reply #2 on: 15 Feb 2008, 10:50:38 »
What a great script. A question, after the end of the preset markers, the unit(in this case a HMMWV) turns around and races back to the original marker. Is there any way to terminate the script after x markers is reached, or perhaps make the unit keep the kph speed on its way back?

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Move
« Reply #3 on: 15 Feb 2008, 11:43:15 »
The script doesnt move the unit to the first marker after last one has been reached, the vehicle will keep at that last position unless there is some waypoint taking the control.

Check it.
« Last Edit: 06 Feb 2009, 18:46:11 by hoz »

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Mando Move (ACCEPTED)
« Reply #4 on: 07 Feb 2009, 03:16:43 »
Somehow I missed this script.

I spent hours modifying Mando_Chaser to use a path of markers instead of a list of units to chase.  It works great.  I was going to post this on the Mando_Chaser beta thread this week as a useful mod to the brilliant mando_chaser routine... too funny.

Oh well.

Mando, a few suggestions:

1. When you force vehicles through rough terrain or tight corners so they bump objects sometimes, its very possible to have a unit tip on its side or flip upside down.  In my modified version of Mando_Chaser, this would happen, but the code would happily keep the vehicle following its path forever (upside down or on its side).  This Mando Move script may have the same problem.  Here's the code I used to fix it:

Code: [Select]
// If vehicle is flipped over, then wait ten seconds.  If still flipped (or on its side)
   // then end the script.  Otherwise vehicles keep following path even if upside down.
   if ((vectorUp (vehicle _unit)) select 2 < 0.5) then
   {
        player globalchat "vehicle flipped, wait a bit to see if it rights itself...";
        sleep 10;
if ((vectorUp (vehicle _unit)) select 2 < 0.5) then
{
_continue = false;
player globalchat "vehicle flipped, so end script";
};
};

2. It would be great if you could add a "reverse" flag, so units would move to a marker in reverse also.  This would be great for having units back out of parking places or garages, etc.

3. I'm not sure if its true of mando_move, but my version will allow a vehicle to get stuck heading straight on against against a solid object (building, wall, etc.).  The code should sense this, and either end the script, or attempt to back up at an angle, and re-attempt a move forward to next marker. 

I'm attaching my modified version of mando_chaser, called mando_chaser_path, just for the hell of it...

But it does illustrate the following well (which is probably true of Mando Move also):

1. Gunners in moving vehicles will engage enemy while moving through their path of markers.
2. Vehicles are relentless in moving through their paths (will plow through units in their way).
3. Player can be a gunner in a vehicle, making for great chase and shoot game play (I turn off the w,a,s,d keys when you switch to gunner, so the driver only follows the path, but you as gunner are free to shoot...this makes making a mission like  the humvees blazing through towns in "Generation Kill" very possible.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline schuler

  • Contributing Member
  • **
Re: Mando Move (ACCEPTED)
« Reply #5 on: 07 Feb 2009, 04:56:17 »
very impressive  :yes:
is there any plans for it with use of soldiers?  like LeeHunt said. with cut scenes, and civis might be nice!
Semper Fi

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Move (ACCEPTED)
« Reply #6 on: 07 Feb 2009, 20:11:54 »
Updated to v0.2 including some suggestions by johnnyboy:

- You can set an array of classes to be considered obstacles to avoid (Ex. ["House", "Man"]).
- The script checks for vehicle flipped condition, if flipped for 10 secs the script stops.
- The vehicle will start evasive maneouvers if damage increases.
- Each position now includes a minimum distance to accomplish (check script header for more details)

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Move (ACCEPTED)
« Reply #7 on: 16 Apr 2009, 12:32:28 »
Hey guys, sorry for dragging this up, but i have a question...

Could anyone give me an example of what the init.sqf would look like, if i wanted a vehicle to move through say 4 markers positioned on the map.

I have tried to modify the example mission, played around with the script, but cannot get it to work.

Any help would be greatly appreciated.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Move (ACCEPTED)
« Reply #8 on: 17 Apr 2009, 11:00:41 »
Code: [Select]
_wps = [[getMarkerPos "mk_1", 0, 5],[getMarkerPos "mk_2", 0, 5],[getMarkerPos "mk_3", 0, 5],[getMarkerPos "mk_4", 0, 5]];

_script = [your_vehicle, 20, 0.1, 1, _wps, ["House"]]execVM"mando_move.sqf";

waitUntil {scriptDone _script};
hint "Route finished";

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Move (ACCEPTED)
« Reply #9 on: 17 Apr 2009, 20:49:29 »
Thanks Mandoble, sorry another quick question...  Would it be possible to get the vehicle to stop at say marker 3, and load the players squad before continuing?

Fantastic script, cant believe i missed it.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Mando Move (ACCEPTED)
« Reply #10 on: 18 Apr 2009, 00:56:11 »
You could run the move script once with 3 markers only.  Upon completion, do your boarding via another script or waypoints.  After boarding completed, run the move script again with a second set of markers to resume the journey.

El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Move (ACCEPTED)
« Reply #11 on: 18 Apr 2009, 01:51:49 »
Now there's an idea...

Offline Vengeance

  • Members
  • *
Re: Mando Move (ACCEPTED)
« Reply #12 on: 18 Jul 2009, 22:43:41 »
Mandoble,

I can't seem to find Mando Land to ask the Question so hope you see this.

I have inserted Mando Land in ARMA 2 and it does work. I get two errors that pop up that I don't know how to get rid of.  Below are the links to pictures of these errors, I believe they both have to to with the Mando_Land_Titles.hpp.  

http://img213.imageshack.us/img213/74/mandolanderror1.jpg

http://img31.imageshack.us/img31/4250/mandolanderror2.jpg


Thanks
« Last Edit: 22 Jul 2009, 04:35:56 by Vengeance »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Mando Move (ACCEPTED)
« Reply #13 on: 19 Jul 2009, 19:14:29 »
Please don't attach full screenshots when recording errors. The text of every error is easily copied from your arma.rpt file.

Both those errors were caused by changes to the way dialogs operate in A2 (as you probably guessed). I have no idea if Mandoble even owns A2 or intends to support this script in A2 (he isn't very active any more, but does check the board occassionally), so please be patient waiting for a reply.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Mando Move (ACCEPTED)
« Reply #14 on: 27 Jul 2009, 07:10:13 »
Like Spooner said, no way of knowing if Mando is supporting Mando_Move for ARMA2, but here goes anyway...

Mando_move is causing flying in ARMA2 for land units.  I made 40 markers along a road, and run mando_move for a bmp2 to folllow the markers.  For awhile the BMP2 acts as desired, but then it begins flying!   ???  The route in question is from Polana to Orlovets.

Since ARMA2 driving AI is pretty bad I was hoping to use this to make a well behaved convoy...

Note that on flat land on Utes, I have successfully used mando_move for mountain bikes and motorcycles.  I also have successfully used mando_move in ARMA2 for boats.

My only problem so far is in Chernarus.  Maybe it is the elevation changes between markers that cause a problem...

Edit: Solution to Flying problem

The problem occurs when path has sudden down dip in terrain.  I fixed it by changing this code:

Code: [Select]
        if ((_posp select 2) > 0.1) then
         {
           _vz = -0.5;
          }
else
{
        _vz = velocity _veh select 2;
         }

to this code:

Code: [Select]
      if ((_posp select 2) > 0.6) then
      {
         _vz = -3;
    player sidechat "z down -3";
       }
      else
      {
         if ((_posp select 2) > 0.1) then
         {
           _vz = -0.5;
          }
else
{
        _vz = velocity _veh select 2;
         }
      };

Down velocity is now greater when vehicle is suddenly high off the ground.
« Last Edit: 02 Aug 2009, 20:04:25 by johnnyboy »
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...