Results 1 to 6 of 6

Tank Commander

  1. #1

    Tank Commander

    How do i make the tank commander enter tanks

  2. Company of Heroes Senior Member  #2
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Give us an example of what your thinking of doing.

    If your thinking of liek the Blitzkrieg mod where there are crews for the tanks, basically you must give your tanks' entities the hold_ext from a halftrack of a building. I suggest if you've seen a mod do what you what, you should open up that mod in Mod Studio and see how they've done it.

  3. #3
    Member Jagdpanther's Avatar
    Join Date
    Dec 2008
    Location
    Berlin
    @LD I think he mean like an hero. If this hero enter a tank, the tank becomes the special features from the hero (extended sight, autorepair or something else - like in "Panzers").

    @gunner1 I think, then the ai wont be able to use this feature, only human players can work with them.

  4. Company of Heroes Senior Member  #4
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Yeah, i had a feeling that was what he meant.

    Well once you've copied the hold_ext over, go into it and change the num_slots and num_squad_slots to however many men and squads you want the tank to hold. Then go into the on_loaded_hold_actions table (also in the hold_ext), add an apply_modifiers_action, then add whatever modifiers you want the tank to gain while it's garrisoned.

    If you want only a specific squad to be able to go into the tank, go into the type_holdable folder, make a copy of one of those files and call it something unique like hold_tank_commander.rgd. Now go into the vehicle's hold_ext, go into the acceptable_types table and add the new hold type in, the line you add should look like;

    type_holdable\hold_tank_commander.lua

    Now go into that squad you want to go into the tank, go into their squad_holdable_ext, and in the hold_type line paste the hold type line.

    Now only one squad will be able to enter that tank, and when they do the tank will gain special modifiers, and if the unit exits the tank will lose those modifiers.

  5. #5
    Thanks LD, Jagd, I messed arround and found that I had to add him to the slot file and works now.

    LD I cant stop playing your COI mod how are you doing with any new updates..

  6. Company of Heroes Senior Member  #6
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Working towards a release, should be in the next month, we've really picked up the pace today with all the new models that have been released recently, they were pretty much all we were waiting for.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •