id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Level Editing => Topic started by: bitterman on February 21, 2018, 11:01:55 AM

Title: What for this isolated box on the alphalabs3?
Post by: bitterman on February 21, 2018, 11:01:55 AM
This box with no entry/exit have an trigger_relay and some weapons and ammo.

What for it is?
Title: Re: What for this isolated box on the alphalabs3?
Post by: The Happy Friar on February 21, 2018, 08:50:54 PM
could be for if you use the console to load the map it gives you the ammo/guns you "should" have when you get there in game.
Title: Re: What for this isolated box on the alphalabs3?
Post by: bitterman on February 23, 2018, 05:43:31 AM
Yes, that's right.

This is a trigger_relay with set of targets (items) which will be gived to the player when map will be loaded.

All targets will be activated by Code. This trigger must have a "devmap" name.

Perhaps items must be sealed from the Void to prevent some warnings.

Code: [Select]
1830         // trigger playtesting item gives, if we didn't get here from a previous level
 1831         // the devmap key will be set on the first devmap, but cleared on any level
 1832         // transitions

 1833         if ( !gameLocal.isMultiplayer && gameLocal.serverInfo.FindKey( "devmap" ) ) {
 1834                 // fire a trigger with the name "devmap"
 1835                 idEntity *ent = gameLocal.FindEntity( "devmap" );
 1836                 if ( ent ) {
 1837                         ent->ActivateTargets( this );
 1838                 }
 1839         }
Title: Re: What for this isolated box on the alphalabs3?
Post by: The Happy Friar on February 24, 2018, 02:36:46 PM
If they're not sealed then they leak.  This trick was used in all previous id games I think.  :)