Fix collectibles not spawning in Kinsie's Test Map.
"Excess" replacer chanceboxes should at least leave an item behind in case they are meant to trigger a script.
This commit is contained in:
parent
cdb2aa773f
commit
a4ec1d124d
3 changed files with 12 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.1.10 \cu(Mon 27 Sep 12:29:21 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw1.1.10 \cu(2021-09-27 12:29:21)\c-";
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.1.10 \cu(Tue 28 Sep 14:26:51 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw1.1.10 \cu(2021-09-28 14:26:51)\c-";
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ Class SWWMLevelCompatibility : LevelPostProcessor
|
|||
case '959A613006CC3AA912C4A22908B7566A':
|
||||
// add collectibles
|
||||
for ( int i=0; i<12; i++ )
|
||||
AddThing(4206900+i,(1472+64*i,640,0),SKILLS_ALL,MTF_SINGLE|MTF_COOPERATIVE);
|
||||
AddThing(4206900+i,(1472+64*i,640,0),0,SKILLS_ALL,MTF_SINGLE|MTF_COOPERATIVE);
|
||||
// add some chance boxes
|
||||
for ( int i=0; i<3; i++ )
|
||||
AddThing(4206920,(3616,1824-64*i,0),180,SKILLS_ALL,MTF_SINGLE|MTF_COOPERATIVE);
|
||||
|
|
|
|||
|
|
@ -719,6 +719,9 @@ Class ChanceboxSpawner : Actor
|
|||
if ( deathmatch )
|
||||
{
|
||||
// not in DM
|
||||
let b = Spawn("HealthNuggetItem",pos);
|
||||
SWWMUtility.TransferItemProp(self,b);
|
||||
ClearCounters();
|
||||
Destroy();
|
||||
return;
|
||||
}
|
||||
|
|
@ -728,6 +731,9 @@ Class ChanceboxSpawner : Actor
|
|||
if ( numbox >= 3 )
|
||||
{
|
||||
// there's three boxes in the map already
|
||||
let b = Spawn("HealthNuggetItem",pos);
|
||||
SWWMUtility.TransferItemProp(self,b);
|
||||
ClearCounters();
|
||||
Destroy();
|
||||
return;
|
||||
}
|
||||
|
|
@ -748,6 +754,9 @@ Class ChanceboxSpawner : Actor
|
|||
if ( tbox[1] > l.bbox[0] ) continue;
|
||||
if ( SWWMUtility.BoxOnLineSide(tbox[0],tbox[1],tbox[2],tbox[3],l) != -1 ) continue;
|
||||
// there isn't enough space to spawn a box here
|
||||
let b = Spawn("HealthNuggetItem",pos);
|
||||
SWWMUtility.TransferItemProp(self,b);
|
||||
ClearCounters();
|
||||
Destroy();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue