- Added support for automatically loading ACS objects (even for Doom-format
maps). To use it, compile the ACS files as ordinary libraries placed between A_START/A_END markers. Then outside the markers, create a lump called LOADACS. This is just a plain text lump that lists all the libraries you want to autoload with every map. You can do this with as many libraries as you want, and LOADACS lumps are also cummulative. SVN r123 (trunk)
This commit is contained in:
parent
3e9fbf5616
commit
c770d4a99a
6 changed files with 50 additions and 23 deletions
|
|
@ -2777,12 +2777,11 @@ void P_LoadReject (int lump, bool junk)
|
|||
//
|
||||
void P_LoadBehavior (int lumpnum)
|
||||
{
|
||||
level.behavior = FBehavior::StaticLoadModule (lumpnum);
|
||||
FBehavior::StaticLoadModule (lumpnum);
|
||||
if (!FBehavior::StaticCheckAllGood ())
|
||||
{
|
||||
Printf ("ACS scripts unloaded.\n");
|
||||
FBehavior::StaticUnloadModules ();
|
||||
level.behavior = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2866,7 +2865,6 @@ void P_FreeLevelData ()
|
|||
level.killed_monsters = level.found_items = level.found_secrets =
|
||||
wminfo.maxfrags = 0;
|
||||
FBehavior::StaticUnloadModules ();
|
||||
level.behavior = NULL;
|
||||
if (vertexes != NULL)
|
||||
{
|
||||
delete[] vertexes;
|
||||
|
|
@ -3092,7 +3090,6 @@ void P_SetupLevel (char *lumpname, int position)
|
|||
ForceNodeBuild = gennodes;
|
||||
// [RH] Load in the BEHAVIOR lump
|
||||
FBehavior::StaticUnloadModules ();
|
||||
level.behavior = NULL;
|
||||
if (HasBehavior)
|
||||
{
|
||||
P_LoadBehavior (lumpnum+ML_BEHAVIOR);
|
||||
|
|
@ -3106,13 +3103,8 @@ void P_SetupLevel (char *lumpname, int position)
|
|||
{
|
||||
level.flags &= ~LEVEL_LAXMONSTERACTIVATION;
|
||||
}
|
||||
// FIXME: Also load STRFHELP for Strife maps with their own BEHAVIOR.
|
||||
// But since none exist right now, I'm not in a big hurry to do it.
|
||||
if (gameinfo.gametype == GAME_Strife)
|
||||
{
|
||||
P_LoadBehavior (Wads.CheckNumForName ("STRFHELP", ns_acslibrary));
|
||||
}
|
||||
}
|
||||
FBehavior::StaticLoadDefaultModules ();
|
||||
|
||||
P_LoadStrifeConversations (lumpname);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue