Jump to content
Sign in to follow this  
ShadowOps

Creating a new unit

Recommended Posts

Hi

For a mission that i'm working on, I'm looking to create a new unit type, specifically a Female Civilian Doctor. The unit would be based off the CDF Medic, but would use the model for Damsel 2 (Green). I remember back in ArmA that this would be done by creating a config.cpp which would have all the class definitions, e.g.

// some basic defines
#define East 0
#define West 1
#define Guerrila 2
#define Civilian 3
#define SideUnknown 4
#define Enemy 5
#define Friendly 6
#define Logic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot 0 			// dummy weapons
#define WeaponSlotPrimary 1 		// primary weapons
#define WeaponSlotSecondary 16 		// secondary weapons
#define WeaponSlotItem 256 		// items
#define WeaponSlotBinocular 4096 	// binocular
#define WeaponHardMounted 65536

class CfgPatches
{
class COTD
{
	units[] = {"Female_Doctor"};
	requiredAddons[] = {"CACharacters"};  		
                         weapons[] = {};
	requiredVersion = 1.00;
};
};

class CfgVehicleClasses
{
class Civilians
{
	displayName = "Civilians";
};
};

class CfgVehicles
{
class CDF_Soldier_Medic; 

class Female_Doctor: CDF_Soldier_Medic
{
	displayName="Female Doctor";
	vehicleClass = "COTDClass";
	side=1;	
	model = "\ca\characters\Damsel2";
};	
};

Is there anything different I need to do to make a unit like this for ArmA 2?

Share this post


Link to post
Share on other sites
Hi

For a mission that i'm working on, I'm looking to create a new unit type, specifically a Female Civilian Doctor. The unit would be based off the CDF Medic, but would use the model for Damsel 2 (Green). I remember back in ArmA that this would be done by creating a config.cpp which would have all the class definitions, e.g.

// some basic defines
#define East 0
#define West 1
#define Guerrila 2
#define Civilian 3
#define SideUnknown 4
#define Enemy 5
#define Friendly 6
#define Logic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot 0 			// dummy weapons
#define WeaponSlotPrimary 1 		// primary weapons
#define WeaponSlotSecondary 16 		// secondary weapons
#define WeaponSlotItem 256 		// items
#define WeaponSlotBinocular 4096 	// binocular
#define WeaponHardMounted 65536

class CfgPatches
{
class COTD
{
	units[] = {"Female_Doctor"};
	requiredAddons[] = {"CACharacters"};  		
                         weapons[] = {};
	requiredVersion = 1.00;
};
};

class CfgVehicleClasses
{
class Civilians
{
	displayName = "Civilians";
};
};

class CfgVehicles
{
class CDF_Soldier_Medic; 

class Female_Doctor: CDF_Soldier_Medic
{
	displayName="Female Doctor";
	vehicleClass = "COTDClass";
	side=1;	
	model = "\ca\characters\Damsel2";
};	
};

Is there anything different I need to do to make a unit like this for ArmA 2?

You need to add:

woman=1;

and you have not defined (at least not in your config shown here)

"COTDClass" vehicle class anywhere

I would say you have an easier life, if you inherit the damsel

which has all female attributes including animations, skeleton etc.

and then just add

attendant=1;

You would also get more help here : Arma2 Editing configs and scripting

Edited by Charon Productions

Share this post


Link to post
Share on other sites

AFAIK the women in ArmA2 are nerfed. Big time, can't run, can't drive, can't use weapons. Quite an annoyance really.

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  

×