Jump to content
Sign in to follow this  
dmarkwick

Dog to USMC/US Army

Recommended Posts

I'm trying to figure out how to config the Alsatian dog so that it appears as a western unit, that I can group with other western units etc. I figured that I should probably use the Pastor config (which is the Alsatian) and alter that. But I've never been good with configs, and one config leads to another which leads to another, various nestings & inheritances etc have confused me.

What I have so far is this, which as I said is the Pastor config, but I added faction & side values, plus changed the name. In game, I can see the JTD Tracker Dog and can load it & play as it, but it remains firmly an "ambient animal" class.

#define private		0
#define protected		1
#define public		2

class CfgPatches {
class JTD_Tracker_Dog {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"CA_Animals2_Dogs", "CA_Animals2_Anim_Config"};
};
};

class CfgVehicles {
class CAAnimalBase;	// External class reference

class JTD_Tracker_Dog : CAAnimalBase {
	scope = public;
	model = "\ca\animals2\Dogs\Pastor\Pastor";
	displayName = "JTD Tracker Dog";
	moves = "CfgMovesDog";
	faction = "USMC";
	side = 1;

	class VariablesScalar {
		_runDistanceMax = 30;
		_maxIdleTime = 15;
		_movePrefer = 0.5;
		_threatMaxRadius = 50;
		_formationPrefer = 0.5;
		_scareLimit = 0.1;
		_dangerLimit = 1.0;
	};

	class VariablesString {
		_sound1 = "dog_01";
		_sound2 = "dog_02";
		_sound3 = "";
	};
};
};

Can anyone help, or point me toward a resource?

Share this post


Link to post
Share on other sites

You have "External class reference" the CAAnimalBase;

and the western units are under CAManBase class,

Check the CAAnimalBase and CAManBase ,

and in ArmAII\Dta\config

CAAnimalBase reference class Animal

Animal reference class Men

CAManBase reference class Men

Check

	class Animal : Man {
	vehicleClass = "Animals";
	icon = "iconAnimal";
	isMan = 0;
	displayName = $STR_DN_ANIMAL;
	nameSound = "veh_animal";
	accuracy = 0.25;
	weaponSlots = 0;
	weapons[] = {};
	magazines[] = {};
	type = VSoft;
	threat[] = {0, 0, 0};

};

What's isMan = 0;

:)

Go and search all the differents between CAManBase and CAAnimalBase,

I think your dog will be personified.

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  

×