Jump to content

jimutt

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About jimutt

  • Rank
    Newbie
  1. Hmm, okay. Well thank you for the reply! :) But how should I then best do if I want to create a base class for all soldier classes as shown in the code I embedded?
  2. I've done some retextures and now I'm trying to create a functional addon. It all worked well when using the code provided in Stiltman's guide to retexturing existing Uniforms and Vests (can't post a link as I'm not allowed to because I haven't been a member for more than one day). But you find it in the thread " Arma3 Characters Modding Tutorial". But now I want to create a "base class" for my soldiers as I will create different soldier classes (riflemen, machine gunners etc) and a lot of the parameters will remain the same. So I had a look at the configuration used in the USMC desert mod which is released here on the forums. And there this class setup is used: class cfgVehicles { /*extern*/ class Man; class CAManBase: Man { /*extern*/ class AnimationSources; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; /*extern*/ class HitHands; /*extern*/ class HitLegs; }; }; class SoldierGB: CAManBase { threat = {1, 0.100000, 0.100000}; }; class USMC_DESERT_Soldier_Base: SoldierGB { ......... I then tried to adapt my config based on the above one. This is what I have come up with: enum { // = 2, // Error parsing: Empty enum name DESTRUCTENGINE = 2, DESTRUCTDEFAULT = 6, DESTRUCTWRECK = 7, DESTRUCTTREE = 3, DESTRUCTTENT = 4, STABILIZEDINAXISX = 1, STABILIZEDINAXESXYZ = 4, STABILIZEDINAXISY = 2, STABILIZEDINAXESBOTH = 3, DESTRUCTNO = 0, STABILIZEDINAXESNONE = 0, DESTRUCTMAN = 5, DESTRUCTBUILDING = 1, }; class CfgPatches { class example_uniform_config { units[] = {}; weapons[] = {}; requiredVersion = 0.100000; requiredAddons[] = {"A3_Characters_F_BLUFOR"}; }; }; class cfgFactionClasses { class Russia { displayName = "Russia"; priority = 3; side = 2; }; }; class CfgVehicles { /*extern*/ class Man; class CAManBase: Man { /*extern*/ class AnimationSources; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; /*extern*/ class HitHands; /*extern*/ class HitLegs; }; }; class SoldierGB: CAManBase { threat = {1, 0.100000, 0.100000}; }; class Russian_Soldier_Base: SoldierGB { _generalMacro = "B_Soldier_F"; //unsure what this does faction = "Russia"; nakedUniform = "U_BasicBody"; //class for "naked" body uniformClass = "Example_CombatUniform_mcam"; //the uniform item hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"pathtoyouraddonretexturefile.paa"}; }; class Russian_Soldier_F : Russian_Soldier_Base { scope = 2; displayName = "Rifleman"; }; }; class cfgWeapons { class Uniform_Base; class UniformItem; class Example_CombatUniform_mcam : Uniform_Base { scope = 2; displayName = "Example Mcam uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "Russian_Soldier_F"; //would be same as our made soldier class containerClass = "Supply20"; //how much it can carry mass = 80; //how much it weights }; }; }; Though this config gives me the error message " Undefined base class "SoldierGB"" when starting the game. Why this? Because as far as I can see the SoldierGB class is defined. Thanks in advance!
×