Page 1 of 3 123 LastLast
Results 1 to 10 of 23

  Click here to go to the first Developer post in this thread.  

Thread: destrType = "DestructWreck";

  1. #1
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    6,567

    destrType = "DestructWreck";

    Probably this ones needs a developer to give a final answer to it:

    Anyone already found out how to implement this option that destoyed planes are replaced with theyr wreck model?

    What i know so far:

    In the planes config, it needs this line:
    Code:
    destrType = "DestructWreck";
    Of course it needs a wrecked p3d also.

    In the cfgVehicles, the wreck has to defined like any other vehicle:
    Code:
    	class PlaneWreck;
    	class GLT_Falcon_MRWreck: PlaneWreck {
    		scope = 1;
    		class Armory {
    			disabled = 1;
    		};
    		model = "\glt_f16\wreck\GLT_FalconWreck.p3d";
    		typicalCargo[] = {};
    		irTarget = 0;
    		transportAmmo = 0;
    		transportRepair = 0;
    		transportFuel = 0;
    		transportSoldier = 1;
    		class Eventhandlers {
    		};
    	};
    So far the destroyed plane disappears into ground but no wreck is created. Since there is no model.cfg around to study i can't tell if it needs something there too.
    Also in the scripts i didn't found anything helpful or i missed it completely.

    I know, without the tools out it's hard to say but i hope a developer will stick his nose in and give some hints.

  2.   This is the last Developer post in this thread.   #2
    BI Developer
    Join Date
    Jun 11 2007
    Location
    Brno, Czech Republic
    Posts
    648
    Is there a DestructWreck class in ArmA2? I'm still waiting for my copy to arrive, so not sure.

    What we've done in the past to achieve this, is to add an event handler on "Killed" for the vehicle, so that when it is killed, you place a new object in that same location, with it's direction, and then delete the crashed object. Pretty straightforward. Although make sure it runs on the server only, or in multiplayer, you'll have chaos.
    "He will come to death. An image of the splendor of the kings of men in glory, undimmed before the breaking of the world."

  3. #3
    Master Sergeant TeRp's Avatar
    Join Date
    Mar 25 2003
    Location
    San Francisco
    Posts
    644
    There is also a setting
    Code:
    wreck="...";
    You might wanna try this.

  4. #4
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    6,567
    Author of the Thread
    @TeRp

    where did you found this?

  5. #5
    Master Sergeant TeRp's Avatar
    Join Date
    Mar 25 2003
    Location
    San Francisco
    Posts
    644
    Quote Originally Posted by Myke View Post
    @TeRp

    where did you found this?
    The Predator UAV (class MQ9PredatorB) uses that one:
    Code:
    wreck="MQ9PredatorWreck";
    Looks like it is a reference to the wreck class.

    I found it while I was reading through the configs, trying to find some new commands

    Haven't tried it myself yet though, still missing a wreck model.
    If you have any success, please let me know

    Cheers TeRp

  6. #6
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    6,567
    Author of the Thread
    No success. There must be something more we didn't found yet. When set to DestructWreck the plane disappear into ground but no wreck is created. I'll keep the eventHandler for now.

  7. #7
    Chief Warrant Officer
    Join Date
    Jan 17 2004
    Location
    Auckland, New Zealand
    Posts
    3,797
    Maybe the game just does it based on the class name. Use the same classname as the aircraft just with "wreck" on the end, like the BIS aircraft.
    I don't think the "wreck" config entry is used, as not all aircraft have it.

    This is just a guess.

  8. #8
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    6,567
    Author of the Thread
    @Maddmatt

    thanks but sadly already had this idea since i've started with experimenting. The planes classname is
    Code:
    class GLT_Falcon_MR
    and therefor the wrecks classname is
    Code:
    class GLT_Falcon_MRWreck
    This was the first guess that it looks for the similar wreck classname with added "Wreck" at the end.

  9. #9
    Sergeant
    Join Date
    Jun 10 2004
    Location
    Germany, Eckernf├Ârde
    Posts
    129
    all Helos and Planes are used a new LOD in p3d with a proxy.

    i don't know the lod is named


    exmaple:
    BIS UH1Y lod 2.1e+016 proxy UH1YWreck

    regreetz
    Marco
    Last edited by Marco-Polo-IV; Jul 11 2009 at 11:36.
    War is the continuation of the policy with other means

  10. #10
    Sergeant Major ])rStrangelove's Avatar
    Join Date
    Jan 24 2002
    Location
    Rainy, foggy, begins with G
    Posts
    1,760
    We need this for trees so that they disappear into the ground when run over by tanks / explosion blasts. An area full of fallen trees is totally unplayable due to the AI seeing through it without problems. :P

    Spoiler:

Page 1 of 3 123 LastLast

Posting Permissions

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