Jump to content
Sign in to follow this  
manzilla

Unit/Vehicle Replacement File

Recommended Posts

Can someone krank out a few replacement files so I can use these great unit/vehicle addons instead of the default BIS models. I really like to switch up what units I use. Two people told me they would make them for 2 or 3 weeks ago but I can't get a hold of them in a while. I've been told they don't take to long to make but it would take me months to figure it out and make time to do it. If anyone would be willing to do it, PM me and I can provide a list of ones I'd like to use.

I don't know how others feel about them but I'd imagine the community, not just me, would be extremly greatful to be able to use more of these excellent addons creators have spent their personal time to create.

Feel free to PM me if anyone could help me/us out. Thanks in advance.

Share this post


Link to post
Share on other sites

Should be enough to change abrams model for example (if models properties are correctly done, cfgskeletons if needed, cfgmodels etc) :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define VSoft 0

#define VArmor 1

#define VAir 2

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified 3

class CfgPatches {

class MyReplacement {

units[] = {};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {"CATracked"};

};

}; // end of cfgpatches

class CfgVehicles {

class Land;

class LandVehicle : Land {};

class Tank : LandVehicle {};

class Car : LandVehicle {};

class M1Abrams : Tank {

model = "\mypbowihoutextension\myp3d";

}; // end of class m1abrams

}; // end of cfgvehicles

Quick explanation :

#define true 1

...

all those lines are shortcut, if you write true, the engine will understand 1 because he don't know what true does mean (well I'm french so I could write #define vrai 1 and it would mean the same thing for the engine)

class CfgPatches

...

it's your addon name (MyReplacement) and you need to fill correct requiredaddons (especially for mp), here I change abrams config so I need to fill it "CATracked" as the abrams "creation" is in this (bis) addon (tracked.pbo)

class CfgVehicles

...

where your vehicles modifications are stored (= building, characters, vehicles etc, not infantry weapon for example)

class Land;

class LandVehicle : Land {};

class Tank : LandVehicle {};

inheritance tree, you need to start from a core class (here land) you can found it here (just put what you need but never set the same thing twice)

class M1Abrams : Tank {

model = "\mypbowihoutextension\myp3d";

};

I just need to change abrams model so I just overwrite the existing one by writing that

(// end of something = comment, not handled by the engine)

Just put it in a config.cpp in pbo, and it's finished.

Share this post


Link to post
Share on other sites

Thanks for the help but I have no clue what any of that means. I can read financial statements, analyze charts, read economic trends, etc but doing this is way above my head. I do appreciate the advice though.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×