From ZDoom Wiki
Jump to: navigation, search

216:Sector_SetGravity (tag, ipart, fpart)

  • tag: Tag of affected sector
  • ipart: Integral part of the gravity multiplier
  • fpart: Fractional part of the gravity multiplier

Sets the amount of gravity in a sector. The actual formula used is sv_gravity * (ipart + fpart * 0.01). sv_gravity is a cvar that defines “normal” gravity. So Sector_SetGravity(1, 0, 50) would set a sector to half normal gravity, Sector_SetGravity(1, 2, 0) would be double normal gravity, Sector_SetGravity(1, 1, 0) would be normal gravity, etc.