mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
new feature: soldier profiles allows defining individual names/bodytypes/hair/skin/traits of soldiers and militia. The game will choose randomly from this pool.
WARNING: GameDir revision >= 1672 is required. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6071 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -87,6 +87,25 @@ typedef struct
|
||||
|
||||
extern CIV_NAMES_VALUES zCivGroupName[NUM_CIV_GROUPS];
|
||||
|
||||
// Flugente: soldier profiles
|
||||
typedef struct
|
||||
{
|
||||
UINT16 uiIndex;
|
||||
CHAR16 szName[MAX_ENEMY_NAMES_CHARS];
|
||||
UINT8 uiBodyType;
|
||||
UINT8 uiHair;
|
||||
UINT8 uiSkin;
|
||||
UINT8 uiTrait[3];
|
||||
UINT32 uiFlags;
|
||||
} SOLDIER_PROFILE_VALUES;
|
||||
|
||||
#define NUM_SOLDIER_PROFILES 100
|
||||
|
||||
extern SOLDIER_PROFILE_VALUES zSoldierProfile[6][NUM_SOLDIER_PROFILES];
|
||||
|
||||
extern UINT16 num_found_soldier_profiles[6]; // the correct number is set on reading the xml
|
||||
extern UINT16 num_found_profiles; // a helper variable during reading xmls
|
||||
|
||||
extern int INTERFACE_WIDTH; // 640
|
||||
extern int INTERFACE_HEIGHT; // 120
|
||||
extern int INV_INTERFACE_HEIGHT; // 140
|
||||
|
||||
Reference in New Issue
Block a user