Additional exit marker types.
This commit is contained in:
parent
b22be796bd
commit
d20773a56f
6 changed files with 42 additions and 16 deletions
|
|
@ -297,8 +297,10 @@ extend Class SWWMHandler
|
|||
let a = SWWMTeleportLine(Actor.Spawn("SWWMTeleportLine"));
|
||||
a.tline = l;
|
||||
}
|
||||
if ( !SWWMUtility.IsExitLine(l) )
|
||||
continue;
|
||||
bool isexit;
|
||||
int exittype;
|
||||
[isexit, exittype] = SWWMUtility.IsExitLine(l);
|
||||
if ( !isexit ) continue;
|
||||
if ( skipme.Find(l) < skipme.Size() ) continue;
|
||||
skipme.Push(l);
|
||||
// look for connected lines
|
||||
|
|
@ -362,7 +364,7 @@ extend Class SWWMHandler
|
|||
for ( int i=0; i<con.Size(); i++ )
|
||||
lpos += SWWMUtility.UseLinePos(con[i]);
|
||||
lpos /= con.Size();
|
||||
SWWMInterest.Spawn(lpos,theline:l);
|
||||
SWWMInterest.Spawn(lpos,theline:l,theexit:exittype);
|
||||
}
|
||||
// spawn loot
|
||||
if ( !deathmatch ) Chancebox.SpawnChanceboxes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue