mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
New feature: random items allow spawn not themselves, but an item from a brad selection
- specify random items in RandomItems.xml - when the game creates a random item, it searches all vialbe items according to random item class and picks one randomly - this allows mappers to place items in maps that are more independent of the xml-set used, however the random items themselves msut be the same in map&mod - can also be used to broaden the enemy gun/item choices selection - for more reference, see http://www.bears-pit.com/board/ubbthreads.php/topics/310793.html#Post310793 FIX: sector curfew value was interpreted wrong git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5594 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+6
-1
@@ -68,6 +68,7 @@ typedef PARSE_STAGE;
|
||||
#define DRUGSFILENAME "Drugs.xml"
|
||||
#define FOODFILENAME "Food.xml"
|
||||
#define CLOTHESFILENAME "Clothes.xml"
|
||||
#define RANDOMITEMFILENAME "RandomItem.xml"
|
||||
#define AMMOFILENAME "AmmoStrings.xml"
|
||||
#define AMMOTYPESFILENAME "AmmoTypes.xml"
|
||||
#define INCOMPATIBLEATTACHMENTSFILENAME "IncompatibleAttachments.xml"
|
||||
@@ -299,7 +300,7 @@ extern BOOLEAN WriteMercStartingGearStats();
|
||||
extern BOOLEAN ReadInExplosiveStats(STR fileName);
|
||||
extern BOOLEAN WriteExplosiveStats();
|
||||
|
||||
// Flugente: externalisation of drugs
|
||||
// Flugente: drugs
|
||||
extern BOOLEAN ReadInDrugsStats(STR fileName);
|
||||
extern BOOLEAN WriteDrugsStats();
|
||||
|
||||
@@ -311,6 +312,10 @@ extern BOOLEAN WriteFoodStats();
|
||||
extern BOOLEAN ReadInClothesStats(STR fileName);
|
||||
extern BOOLEAN WriteClothesStats();
|
||||
|
||||
// Flugente: random items
|
||||
extern BOOLEAN ReadInRandomItemStats(STR fileName);
|
||||
extern BOOLEAN WriteRandomItemStats();
|
||||
|
||||
extern BOOLEAN ReadInAmmoStats(STR fileName);
|
||||
extern BOOLEAN WriteAmmoStats();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user