- Added the ACS script type "return". These are executed by players who return
to a map they've previously been to. This is analagous to enter scripts, but whereas enter scripts execute only the first time a player enters a map, return scripts execute all but the first time. - Improved map scrolling when rotation is on and follow mode is off. SVN r742 (trunk)
This commit is contained in:
parent
99c4c9461e
commit
2e5257d347
5 changed files with 69 additions and 44 deletions
|
|
@ -2311,6 +2311,10 @@ void G_FinishTravel ()
|
|||
inv->LinkToWorld ();
|
||||
inv->Travelled ();
|
||||
}
|
||||
if (level.FromSnapshot)
|
||||
{
|
||||
FBehavior::StaticStartTypedScripts (SCRIPT_Return, pawn, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2340,6 +2344,7 @@ void G_InitLevelLocals ()
|
|||
level.fadeto = info->fadeto;
|
||||
level.cdtrack = info->cdtrack;
|
||||
level.cdid = info->cdid;
|
||||
level.FromSnapshot = false;
|
||||
if (level.fadeto == 0)
|
||||
{
|
||||
R_SetDefaultColormap (info->fadetable);
|
||||
|
|
@ -2828,6 +2833,7 @@ void G_UnSnapshotLevel (bool hubLoad)
|
|||
arc.SetHubTravel ();
|
||||
G_SerializeLevel (arc, hubLoad);
|
||||
arc.Close ();
|
||||
level.FromSnapshot = true;
|
||||
|
||||
TThinkerIterator<APlayerPawn> it;
|
||||
APlayerPawn *pawn, *next;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue