Author Topic: What for this isolated box on the alphalabs3?  (Read 296 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
What for this isolated box on the alphalabs3?
« 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?

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 897
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: What for this isolated box on the alphalabs3?
« Reply #1 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.

bitterman

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: What for this isolated box on the alphalabs3?
« Reply #2 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         }
« Last Edit: February 23, 2018, 05:49:43 AM by bitterman »

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 897
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: What for this isolated box on the alphalabs3?
« Reply #3 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.  :)