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.

Sample

Example WAD: ex_st00176_customglobalgravity.wad

  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/Rings ParametersCustom Global Gravity