From 5e6db2981f78be55e2983e93a95c346ad61c3508 Mon Sep 17 00:00:00 2001 From: Panzer Date: Tue, 2 Dec 2025 12:08:10 -0700 Subject: [PATCH 1/2] Add flight powerup --- db/factories/momentum.txt | 1 + fgd/point/momentum/momentum_powerup_flight.fgd | 10 ++++++++++ fgd/visgroups.cfg | 1 + 3 files changed, 12 insertions(+) create mode 100644 fgd/point/momentum/momentum_powerup_flight.fgd diff --git a/db/factories/momentum.txt b/db/factories/momentum.txt index bf79a1bf2..cc3b589a5 100644 --- a/db/factories/momentum.txt +++ b/db/factories/momentum.txt @@ -230,6 +230,7 @@ momentary_door momentary_rot_button momentum_df_weaponspawner momentum_generic_bomb +momentum_powerup_flight mom_replay_playback mortarshell move_keyframed diff --git a/fgd/point/momentum/momentum_powerup_flight.fgd b/fgd/point/momentum/momentum_powerup_flight.fgd new file mode 100644 index 000000000..976c2c545 --- /dev/null +++ b/fgd/point/momentum/momentum_powerup_flight.fgd @@ -0,0 +1,10 @@ +@PointClass base(MomentumPickup) + appliesto(MOMENTUM) + size(-43 -43 -36, 43 43 66) += momentum_powerup_flight : "Flight Powerup" + [ + FlightTime(float) : "Flight Time" : "30" : "The amount of time in seconds the flight effect lasts. Any negative value is infinite duration." + + // Outputs + output OnPickup(void) : "Fired when the item is picked up." + ] diff --git a/fgd/visgroups.cfg b/fgd/visgroups.cfg index 8adec129d..307892a14 100644 --- a/fgd/visgroups.cfg +++ b/fgd/visgroups.cfg @@ -853,6 +853,7 @@ * `item_boots` # Momentum + * `momentum_powerup_flight` * `momentum_powerup_haste` * `momentum_powerup_damage_boost` From 50d55860dc64c637dc1e7612c4339ba507a42e05 Mon Sep 17 00:00:00 2001 From: Panzer Date: Mon, 29 Jun 2026 12:06:22 -0600 Subject: [PATCH 2/2] Add OnPickup outputs to all powerups --- db/factories/momentum.txt | 2 ++ fgd/bases/MomentumPickup.fgd | 3 +++ fgd/point/momentum/momentum_powerup_flight.fgd | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/db/factories/momentum.txt b/db/factories/momentum.txt index cc3b589a5..aeef37c24 100644 --- a/db/factories/momentum.txt +++ b/db/factories/momentum.txt @@ -230,7 +230,9 @@ momentary_door momentary_rot_button momentum_df_weaponspawner momentum_generic_bomb +momentum_powerup_damageboost momentum_powerup_flight +momentum_powerup_haste mom_replay_playback mortarshell move_keyframed diff --git a/fgd/bases/MomentumPickup.fgd b/fgd/bases/MomentumPickup.fgd index 74072f14a..1b2ba9b45 100644 --- a/fgd/bases/MomentumPickup.fgd +++ b/fgd/bases/MomentumPickup.fgd @@ -3,4 +3,7 @@ = MomentumPickup [ ResetTime(float) : "Delay before reset" : 10 : "How long until the pickup reappears after being picked up. 0 means it won't disappear and negative values mean it won't reappear." + + // Outputs + output OnPickup(void) : "Fired when the item is picked up." ] diff --git a/fgd/point/momentum/momentum_powerup_flight.fgd b/fgd/point/momentum/momentum_powerup_flight.fgd index 976c2c545..a76c46b51 100644 --- a/fgd/point/momentum/momentum_powerup_flight.fgd +++ b/fgd/point/momentum/momentum_powerup_flight.fgd @@ -4,7 +4,4 @@ = momentum_powerup_flight : "Flight Powerup" [ FlightTime(float) : "Flight Time" : "30" : "The amount of time in seconds the flight effect lasts. Any negative value is infinite duration." - - // Outputs - output OnPickup(void) : "Fired when the item is picked up." ]