New feature: interactive actions allow various actions (hacking/reading/drinking/...) from user-defined xml acttions. The exact results can be set in a lua function.

For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23144&goto=346447&#msg_346447

This is fully savegame compatible.

GameDir >= r2333 is required.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8278 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-08-02 19:03:28 +00:00
parent 41dcb598dd
commit 99f5be0ed7
48 changed files with 1406 additions and 60 deletions
+6
View File
@@ -231,6 +231,7 @@ enum
MERC_BUILD_FORTIFICATION,
MERC_HANDCUFF_PERSON,
MERC_APPLYITEM,
MERC_INTERACTIVEACTION,
};
// ENUMERATIONS FOR THROW ACTIONS
@@ -565,6 +566,7 @@ enum
MTA_NONE = 0,
MTA_FORTIFY,
MTA_REMOVE_FORTIFY,
MTA_HACK,
NUM_MTA,
};
@@ -1626,6 +1628,7 @@ public:
void EVENT_SoldierBuildStructure( INT32 sGridNo, UINT8 ubDirection ); // added by Flugente
void EVENT_SoldierHandcuffPerson( INT32 sGridNo, UINT8 ubDirection ); // added by Flugente
void EVENT_SoldierApplyItemToPerson( INT32 sGridNo, UINT8 ubDirection ); // added by Flugente
void EVENT_SoldierInteractiveAction( INT32 sGridNo, UINT16 usActionType ); // added by Flugente
BOOLEAN EVENT_InternalGetNewSoldierPath( INT32 sDestGridNo, UINT16 usMovementAnim, BOOLEAN fFromUI, BOOLEAN fForceRestart );
void EVENT_InternalSetSoldierDestination( UINT16 usNewDirection, BOOLEAN fFromMove, UINT16 usAnimState );
@@ -1935,6 +1938,9 @@ public:
// Flugente: chance to defeat a water snake instead of being hit by it
UINT8 GetWaterSnakeDefenseChance( );
// Flugente: interactive actions
UINT16 GetInteractiveActionSkill( INT32 sGridNo, UINT8 usLevel, UINT16 usType );
//////////////////////////////////////////////////////////////////////////////
}; // SOLDIERTYPE;