Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: BIS logo?

  1. #11
    Private First Class
    Join Date
    Nov 27 2003
    Posts
    33
    Author of the Thread
    ive got a config.cpp in mine and that loads infantrymen ingame fine, it contails all essential information like skeleton models and important gibberish. does models.cfg do the same thing, further more where can i find a full example of model.cfg and do i require both model.cfg and config.cpp or maybe im not educated enough in the matter.....I DONT KNOW!

  2. #12
    as far as Ive been told DO NOT include model.cfg stuff in config.cpp,

    It's a big no-no Ive been told. make a separate file "model.cfg" and put pertinent info in it and put into default addon dir with config.cpp, etc then just PBO it up..

    Example of mine:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    class CfgSkeletons
    {
    class Head
    {
    isDiscrete = 0;
    skeletonInherit = &#34;&#34;;
    skeletonBones&#91;&#93; =
    {
    &#34;neck&#34;,&#34;&#34;,
    &#34;neck1&#34;,&#34;neck&#34;,
    &#34;head&#34;,&#34;neck1&#34;,
    &#34;loboci&#34;,&#34;head&#34;,
    &#34;soboci&#34;,&#34;head&#34;,
    &#34;poboci&#34;,&#34;head&#34;,
    &#34;lkoutek&#34;,&#34;head&#34;,
    &#34;skoutek&#34;,&#34;head&#34;,
    &#34;pkoutek&#34;,&#34;head&#34;,
    &#34;vicka&#34;,&#34;head&#34;,
    &#34;spodni ret&#34;,&#34;head&#34;
    };
    };
    class OFP2_ManSkeleton
    {
    isDiscrete = 0;
    skeletonInherit = &#34;Head&#34;;
    skeletonBones&#91;&#93; =
    {
    &#34;weapon&#34;,&#34;&#34;,
    &#34;launcher&#34;,&#34;&#34;,
    &#34;Camera&#34;,&#34;&#34;,
    &#34;Spine&#34;,&#34;&#34;,
    &#34;Spine1&#34;,&#34;&#34;,
    &#34;Spine2&#34;,&#34;&#34;,
    &#34;Spine3&#34;,&#34;&#34;,
    &#34;Pelvis&#34;,&#34;&#34;,
    //Left upper side
    &#34;LeftShoulder&#34;,&#34;&#34;,
    &#34;LeftArm&#34;,&#34;&#34;,
    &#34;LeftArmRoll&#34;,&#34;&#34;,
    &#34;LeftForeArm&#34;,&#34;&#34;,
    &#34;LeftForeArmRoll&#34;,&#34;&#34;,
    &#34;LeftHand&#34;,&#34;&#34;,
    &#34;LeftHandRing&#34;,&#34;&#34;,
    &#34;LeftHandRing1&#34;,&#34;&#34;,
    &#34;LeftHandRing2&#34;,&#34;&#34;,
    &#34;LeftHandRing3&#34;,&#34;&#34;,
    &#34;LeftHandPinky1&#34;,&#34;&#34;,
    &#34;LeftHandPinky2&#34;,&#34;&#34;,
    &#34;LeftHandPinky3&#34;,&#34;&#34;,
    &#34;LeftHandMiddle1&#34;,&#34;&#34;,
    &#34;LeftHandMiddle2&#34;,&#34;&#34;,
    &#34;LeftHandMiddle3&#34;,&#34;&#34;,
    &#34;LeftHandIndex1&#34;,&#34;&#34;,
    &#34;LeftHandIndex2&#34;,&#34;&#34;,
    &#34;LeftHandIndex3&#34;,&#34;&#34;,
    &#34;LeftHandThumb1&#34;,&#34;&#34;,
    &#34;LeftHandThumb2&#34;,&#34;&#34;,
    &#34;LeftHandThumb3&#34;,&#34;&#34;,

    //Right upper side
    &#34;RightShoulder&#34;,&#34;&#34;,
    &#34;RightArm&#34;,&#34;&#34;,
    &#34;RightArmRoll&#34;,&#34;&#34;,
    &#34;RightForeArm&#34;,&#34;&#34;,
    &#34;RightForeArmRoll&#34;,&#34;&#34;,
    &#34;RightHand&#34;,&#34;&#34;,
    &#34;RightHandRing&#34;,&#34;&#34;,
    &#34;RightHandRing1&#34;,&#34;&#34;,
    &#34;RightHandRing2&#34;,&#34;&#34;,
    &#34;RightHandRing3&#34;,&#34;&#34;,
    &#34;RightHandPinky1&#34;,&#34;&#34;,
    &#34;RightHandPinky2&#34;,&#34;&#34;,
    &#34;RightHandPinky3&#34;,&#34;&#34;,
    &#34;RightHandMiddle1&#34;,&#34;&#34;,
    &#34;RightHandMiddle2&#34;,&#34;&#34;,
    &#34;RightHandMiddle3&#34;,&#34;&#34;,
    &#34;RightHandIndex1&#34;,&#34;&#34;,
    &#34;RightHandIndex2&#34;,&#34;&#34;,
    &#34;RightHandIndex3&#34;,&#34;&#34;,
    &#34;RightHandThumb1&#34;,&#34;&#34;,
    &#34;RightHandThumb2&#34;,&#34;&#34;,
    &#34;RightHandThumb3&#34;,&#34;&#34;,
    //Left lower side
    &#34;LeftUpLeg&#34;,&#34;&#34;,
    &#34;LeftUpLegRoll&#34;,&#34;&#34;,
    &#34;LeftLeg&#34;,&#34;&#34;,
    &#34;LeftLegRoll&#34;,&#34;&#34;,
    &#34;LeftFoot&#34;,&#34;&#34;,
    &#34;LeftToeBase&#34;,&#34;&#34;,
    //Right lower side
    &#34;RightUpLeg&#34;,&#34;&#34;,
    &#34;RightUpLegRoll&#34;,&#34;&#34;,
    &#34;RightLeg&#34;,&#34;&#34;,
    &#34;RightLegRoll&#34;,&#34;&#34;,
    &#34;RightFoot&#34;,&#34;&#34;,
    &#34;RightToeBase&#34;,&#34;&#34;
    };
    };

    class default;
    class Flag&#58; Default {};
    class FlagCarrier&#58; Default
    {
    skeletonInherit = &#34;Default&#34;;
    skeletonBones&#91;&#93; =
    {
    &#34;stozar&#34;,&#34;&#34;,
    &#34;vlajka&#34;,&#34;&#34;
    };
    };
    class Weapon&#58; Default
    {
    isDiscrete = 0;
    skeletonInherit = &#34;Default&#34;;
    skeletonBones&#91;&#93;=
    {
    &#34;magazine&#34;,
    &#34;&#34;,
    &#34;ammo_belt&#34;,
    &#34;&#34;,
    &#34;ammo_belt_bottom&#34;,
    &#34;&#34;
    };
    };
    };

    class CfgModels
    {
    class Default { sections&#91;&#93; = {}; sectionsInherit=&#34;&#34;; };
    class flag_vojak &#58; Default
    {
    sections&#91;&#93; = {&#34;latka&#34;};

    };
    class Head&#58; Default
    {
    sections&#91;&#93; =
    {
    &#34;osobnost&#34;,
    &#34;brejle&#34;
    };
    skeletonName = &#34;Head&#34;;
    };
    class ArmaMan &#58; Default
    {
    sections&#91;&#93; =
    {
    &#34;osobnost&#34;,
    &#34;Head_Injury&#34;,
    &#34;Body_Injury&#34;,
    &#34;l_leg_injury&#34;,
    &#34;l_arm_injury&#34;,
    &#34;r_arm_injury&#34;,
    &#34;clan&#34;,
    &#34;l_leg_injury&#34;
    };
    skeletonName = &#34;OFP2_ManSkeleton&#34;;
    };



    class asp_rac_sf01&#58; ArmaMan {};
    class asp_rac_sf02&#58; ArmaMan {};
    class asp_rac_sf03&#58; ArmaMan {};
    class asp_rac_sf04&#58; ArmaMan {};
    class asp_rac_sf05&#58; ArmaMan {};
    class asp_rac_sf06&#58; ArmaMan {};
    class asp_racs_pilot&#58; ArmaMan {};


    };


    };

    [/QUOTE]


    with that said theres a few "popular" addons being used in community with that info in the config.cpp though..Personally I was told to leave it out , so I do..

    Hope that helps a little
    BilOlson aka Storm

  3. #13
    Private First Class
    Join Date
    Nov 27 2003
    Posts
    33
    Author of the Thread
    whao i got my dude ingame, but he is embedded into the ground......meaning he is moving around with half his body sticking out of the ground...with no animations...




  4. #14
    Private First Class
    Join Date
    Nov 27 2003
    Posts
    33
    Author of the Thread
    Does anyone know why?




  5. #15
    Warrant Officer Jackal326's Avatar
    Join Date
    Apr 12 2002
    Location
    Leicestershire, United Kingdom
    Posts
    2,474
    In the part that BilOlsen posted
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class asp_rac_sf01&#58; ArmaMan {};
    class asp_rac_sf02&#58; ArmaMan {};
    class asp_rac_sf03&#58; ArmaMan {};
    class asp_rac_sf04&#58; ArmaMan {};
    class asp_rac_sf05&#58; ArmaMan {};
    class asp_rac_sf06&#58; ArmaMan {};
    class asp_racs_pilot&#58; ArmaMan {};[/QUOTE]

    Remove all the parts that aren&#39;t used by your addon, and add this:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class MODELNAME_WITHOUT_P3D_EXTENSION&#58; ArmaMan {};[/QUOTE]
    So, if your model is called for example &#39;JimBooby_Dude.p3d&#39; it would look like this:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class JimBooby_Dude&#58; ArmaMan {};[/QUOTE]

    "...long story short, he gets a boner" - Messiah
    "If you can't understand english properly then you should lern it" - mr.g-c
    "I think the author should do a barrel roll" - MehMan
    "I feel really leting down form you bis SORRY TO SAY THIS BUT ITS THE TRUE" - UNA-A1-Luke
    Your spelling; its the true.

Page 2 of 2 FirstFirst 12

Posting Permissions

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