mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New feature: additional dialogue allows modders to play additional dialogue on man occasions, including reactions to other people speaking
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=tree&goto=351982&#msg_351982 and for a demonstration http://thepit.ja-galaxy-forum.com/index.php?t=tree&goto=351981&#msg_351981 Requires GameDir >= r2400 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8516 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "dialogue control.h"
|
||||
#include "Random.h"
|
||||
#include "gamesettings.h"
|
||||
#include "Dialogue Control.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
// Room Information
|
||||
@@ -278,11 +279,10 @@ void RemoveRoomRoof( INT32 sGridNo, UINT16 usRoomNum, SOLDIERTYPE *pSoldier )
|
||||
// STRUCTURE *pStructure;//, *pBase;
|
||||
|
||||
// LOOP THORUGH WORLD AND CHECK ROOM INFO
|
||||
for ( cnt = 0; cnt < WORLD_MAX; cnt++ )
|
||||
for ( cnt = 0; cnt < WORLD_MAX; ++cnt )
|
||||
{
|
||||
if ( gusWorldRoomInfo[ cnt ] == usRoomNum )
|
||||
{
|
||||
|
||||
SetGridNoRevealedFlag( cnt );//dnl ch56 141009
|
||||
|
||||
//RemoveRoofIndexFlagsFromTypeRange( cnt, FIRSTROOF, SECONDSLANTROOF, LEVELNODE_REVEAL );
|
||||
@@ -319,7 +319,6 @@ void RemoveRoomRoof( INT32 sGridNo, UINT16 usRoomNum, SOLDIERTYPE *pSoldier )
|
||||
// Get XY
|
||||
ConvertGridNoToXY( cnt, &sX, &sY );
|
||||
SetRecalculateWireFrameFlagRadius( sX, sY, 2 );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,17 +330,18 @@ void RemoveRoomRoof( INT32 sGridNo, UINT16 usRoomNum, SOLDIERTYPE *pSoldier )
|
||||
// }
|
||||
//}
|
||||
|
||||
// Flugente: additional dialogue
|
||||
if ( pSoldier )
|
||||
AdditionalTacticalCharacterDialogue_CallsLua( pSoldier, ADE_DISCOVER_ROOM, usRoomNum );
|
||||
|
||||
// DIRTY THE WORLD!
|
||||
InvalidateWorldRedundency();
|
||||
SetRenderFlags(RENDER_FLAG_FULL );
|
||||
|
||||
|
||||
|
||||
CalculateWorldWireFrameTiles( FALSE );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOLEAN AddSpecialTileRange( SGPRect *pSelectRegion )
|
||||
{
|
||||
INT32 cnt1, cnt2;
|
||||
|
||||
Reference in New Issue
Block a user