[Support] Animated Vehicles

Discussion in 'Script/Addon help' started by ebay, Jun 14, 2014.

  1. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
  2. SchwEde

    SchwEde OpenDayZ Rockstar!

    Joined:
    Jul 11, 2013
    Messages:
    989
    Likes Received:
    177
    Another greate work \(^o^)/
     
  3. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
    Thanks =^)

    It was already done. I just cleaned it up, converted for DayZ and made a release so it is easy to install.
     
  4. Yrgen

    Yrgen New Member

    Joined:
    May 17, 2014
    Messages:
    1
    Likes Received:
    0
    It is fine!!!!!
     
  5. Cannorn

    Cannorn New Member

    Joined:
    May 19, 2014
    Messages:
    7
    Likes Received:
    0
    Nice work!
    Do you know if the rear ramp can still be opened and closed as well?
     
  6. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
    Thanks for the suggestion, I just added it. Updated and reuploaded OP files with fixes:

    6/16/14 - Files changed: all
    • Integrated open and close osprey door - thanks Kind-Sir
    • Stopped switching to gunner seat while hatch is closed on SUV
    • Wings always unfold when engine is on now
     
    Last edited: Jun 16, 2014
  7. FoRcE72

    FoRcE72 Member

    Joined:
    Jun 6, 2013
    Messages:
    33
    Likes Received:
    6
    if (!isDedicated) then {
    mv22_pack = compile preprocessFileLineNumbers "\ca\air2\mv22\scripts\pack.sqf";
    };

    Everything works for me but I do not get the pack option for the suv, everything else does what it is supposed to, any suggestions, I am on epoch 1.0.5.1 beta 112555 Dedicated server...

    Thanks again great script if I can get this option to work I will be set...

    Also i can not find this file [pack.sqf] can someone attach this or point me in the right direction, I have searched every CA folder I can find....Thanks in advance
     
  8. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
    You do not need to include that file in your mission. It is part of the game files. I am only precompiling it so I can use call instead of execVM. If you want to look at it go here (need to extract the air2.pbo to see the scripts inside):
    \Arma 2\AddOns\air2.pbo\MV22\scripts


    Not sure why armored SUV is not working for you. I checked the config and the class names are the same in 1.0.5.1. Check RPTs for errors.
     
    Last edited: Aug 23, 2014
  9. FoRcE72

    FoRcE72 Member

    Joined:
    Jun 6, 2013
    Messages:
    33
    Likes Received:
    6
    Thanks for the response, I can not figure it out, everything works but the pack, the hatches open and close fine, I will research it again and check out the files again step by step....thanks again nice script
     
  10. Skwish

    Skwish New Member

    Joined:
    Jun 19, 2014
    Messages:
    1
    Likes Received:
    0
    love this, it adds a little class. the only issue i have is that every time i enter and exit i get another set of open and close commands on the scroll wheel, any thoughts?
     
    Last edited: Jun 28, 2014
  11. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
    Fix one problem, create another >_>

    Fixed in OP now thanks for reporting.
     
    Skwish likes this.
  12. BryanM

    BryanM New Member

    Joined:
    Jun 28, 2014
    Messages:
    1
    Likes Received:
    0
    going through my copied variables.sqf, and not seeing s_player_upgradestroage = -1;
    anywhere in there, alternately, is "storage" spelled wrong?
     
  13. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
    Yeah, that is a typo in the official 1.8.1 files. Just put those lines below whatever the last action in the list is. For Epoch 1.0.5.1 it is:
    s_player_lockUnlock_crtl = -1;
     
  14. billy bloggs

    billy bloggs New Member

    Joined:
    Feb 2, 2014
    Messages:
    18
    Likes Received:
    1
    Hi
    Great script works great players love it :)
     
    Last edited: Jul 2, 2014
  15. billy bloggs

    billy bloggs New Member

    Joined:
    Feb 2, 2014
    Messages:
    18
    Likes Received:
    1
    hi

    any idea if you could have the vodnik close the gun like the suv think it would be great
     
  16. ebay

    ebay OpenDayZ Guru!

    Joined:
    Jan 9, 2013
    Messages:
    828
    Likes Received:
    296
    I don't think so. I checked in the epoch config file. The only animations the vodniks have are reload and revolve. In fact, none of the other vehicles in Epoch's cfgVehicles have HideGun or CloseCover animations apart from the armored SUVs.
     
  17. AdZVaughan

    AdZVaughan New Member

    Joined:
    Jun 8, 2014
    Messages:
    12
    Likes Received:
    0
    Works for me apart from folding the MV22? Very strange. Great work though!!!!
     
  18. TiNkLeS

    TiNkLeS New Member

    Joined:
    Apr 10, 2014
    Messages:
    5
    Likes Received:
    0
    For the packing issues i just took the pack.sqf from air2.pbo/mv22/scripts and put it in my missions script folder in mission pbo and used
    mv22_pack = compile preprocessFileLineNumbers "scripts\pack.sqf";
    all works fine for me great addition.
     
  19. cen

    cen Valued Member!

    Joined:
    Feb 14, 2013
    Messages:
    816
    Likes Received:
    74
    Where is this pbo located?

    air2.pbo/mv22/scripts
     
  20. Rexxenexx

    Rexxenexx Member

    Joined:
    Jan 29, 2013
    Messages:
    72
    Likes Received:
    8
    pack.sqf is literally just:
    Code:
    _mv22 =_this select 0;
    _phase=_this select 1;
    _mv22 animate["engine_prop_1_1_turn",_phase]; 
    _mv22 animate["engine_prop_1_2_turn",_phase]; 
    _mv22 animate["engine_prop_1_3_turn",_phase]; 
    _mv22 animate["engine_prop_2_1_turn",_phase]; 
    _mv22 animate["engine_prop_2_2_turn",_phase];
    _mv22 animate["engine_prop_2_3_turn",_phase]; 
    _mv22 animate["engine_prop_1_1_close",_phase];
    _mv22 animate["engine_prop_1_3_close",_phase]; 
    _mv22 animate["engine_prop_2_1_close",_phase]; 
    _mv22 animate["engine_prop_2_2_close",_phase];
    _mv22 animate["pack_engine_1",_phase];
    _mv22 animate["pack_engine_2",_phase];   
    _mv22 animate["turn_wing",_phase];
    
    so just save that as pack.sqf to your missions scripts folder, then add:

    Code:
        mv22_pack = compile preprocessFile "scripts\pack.sqf";
    
    to compiles.sqf

    Should work.
     

Share This Page