mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
New feature: spawn extra civilians via Lua, see also http://thepit.ja-galaxy-forum.com/index.php?t=tree&th=22998&goto=344843&#msg_344843
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8132 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -49,6 +49,33 @@ enum
|
||||
NUMHEADS
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
WHITEVEST,
|
||||
GYELLOWSHIRT,
|
||||
YELLOWVEST,
|
||||
GREYVEST,
|
||||
BROWNVEST,
|
||||
PURPLESHIRT,
|
||||
BLUEVEST,
|
||||
JEANVEST,
|
||||
GREENVEST,
|
||||
REDVEST,
|
||||
BLACKSHIRT,
|
||||
NUMSHIRTS
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
BLUEPANTS,
|
||||
BLACKPANTS,
|
||||
JEANPANTS,
|
||||
TANPANTS,
|
||||
BEIGEPANTS,
|
||||
GREENPANTS,
|
||||
NUMPANTS
|
||||
};
|
||||
|
||||
//Kris: SERIALIZING INFORMATION
|
||||
//All maps must have:
|
||||
// -MAPCREATE_STRUCT
|
||||
@@ -448,6 +475,8 @@ SOLDIERTYPE* TacticalCreateEnemyJeep( );
|
||||
// Flugente: create an armed civilian
|
||||
SOLDIERTYPE* TacticalCreateArmedCivilian( UINT8 usSoldierClass = SOLDIER_CLASS_ARMY );
|
||||
|
||||
SOLDIERTYPE* TacticalCreateCivilian( INT32 sGridNo, UINT8 usCivilianGroup, INT8 sBodyType, INT8 aVest, INT8 aPants, INT8 aHair, INT8 aSkin, INT16 sItem1, INT16 sItem2, INT16 sItem3, INT16 sItem4 );
|
||||
|
||||
// Flugente: assassins are elite soldiers of the civ team that go hostile on a certain event, otherwise they just blend in
|
||||
SOLDIERTYPE* TacticalCreateEnemyAssassin(UINT8 disguisetype);
|
||||
void CreateAssassin(UINT8 disguisetype);
|
||||
@@ -563,6 +592,6 @@ BOOLEAN AssignTraitsToSoldier( SOLDIERTYPE *pSoldier, SOLDIERCREATE_STRUCT *pCre
|
||||
INT32 ChooseHairColor( UINT8 usBodyType, INT32 skin );
|
||||
|
||||
// Flugente: set palettes for vest/shirt
|
||||
void SetClothes(SOLDIERTYPE* pSoldier, INT8 aVest, INT8 aPants);
|
||||
void SetClothes( SOLDIERTYPE* pSoldier, INT8 aVest, INT8 aPants, INT8 aHair = -1, INT8 aSkin = -1 );
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user