Custom Global Gravity

From SRB2 Wiki
Jump to: navigation, search
This article is about the sector type that changes gravity for the whole level. For the linedef type that controls individual sector gravity strength, see Linedef type 1.

Sector type 176, Custom Global Gravity, is a sector type which sets the global gravity for the entire map. It can be used on any sector in the level, though it is usually more practical to put it in a separate control sector outside the map.

The floor height of the sector determines the strength of the gravity. For example, a floor height of 500 gives the default global gravity (0.5 FU/tic2), a height of 1000 gives twice this value (1 FU/tic2), and 250 gives half of this value (0.25 FU/tic2). Note that the sector is only evaluated once when the level is loaded, so the global gravity cannot be adjusted at runtime by changing the floor height of this sector.


Example file: ex_st00176_customglobalgravity.wad (MAP01)
How to use
  • You may load this file into your favorite map editor, such as Zone Builder. Select MAP01 as the map to load.
  • You may also load this file in the game:
    1. Save ex_st00176_customglobalgravity.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_st00176_customglobalgravity.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP01 to access the example map.
  • When you load this file in the game, it replaces Greenflower Zone Act 1.

  Sector types – Group 2 [view]
Trigger Linedef Executor (Pushable ObjectsAnywhere in Sector, All PlayersFloor Touch, All PlayersAnywhere in SectorFloor TouchEmerald CheckNiGHTS Mare)
Check for Linedef Executor on FOFsEgg CapsuleSpecial Stage Time/Spheres ParametersCustom Global Gravity