Overview
In real aviation, excessive G-forces can damage aircraft structures and incapacitate pilots. This plugin simulates that reality by monitoring G-forces and applying damage when limits are exceeded.Configuration
Basic Settings
Configure the G-force limit inconfig.py:
Plugin Settings
Additional settings inplugins/over_g_damage.py:
The
INTERVAL setting prevents spam by limiting damage application frequency to once every 0.3 seconds.How It Works
Detection Logic
The plugin monitors every flight data packet for G-force values:When Damage Occurs
Trigger condition:- Damage packet sent to player’s aircraft
- Warning message displayed to player
- Timestamp updated to enforce interval cooldown
Example Configurations
Realistic Fighter Jet (Strict)
Arcade Mode (Relaxed)
Disabled
To disable the G-limiter, either set a very high value like 100 or set
ENABLED = False in the plugin file.Player Experience
When a player exceeds the G-limit, they see:Technical Details
Plugin Hook
The plugin registers on theon_flight_data hook:
FSNETCMD_AIRPLANESTATE packet received from the client.
Damage Implementation
Damage is applied using theFSNETCMD_GETDAMAGE packet:
Balancing Tips
Finding the Right G-Limit:
- Monitor server logs to see typical G-values during normal flight
- Adjust based on aircraft types in your server
- Consider your server’s realism vs. arcade balance
- Test with various aircraft and maneuvers
Related Features
- Works alongside Smoke on Damage for visual feedback
- Compatible with all anti-cheat features
- Independent of radar and chat systems