HPMod Expansion: F-Zero

[Script] HPMod Expansion: F-Zero V4

YOU GOT BOOST POWER



Welcome to the F-Zero expansion for HPMod! This expansion allows for two different modes (Standard and Classic), both with unique playstyles!

Console Commands:​
fz_enabled: Enables F-Zero functionality (Default: On)
fz_classic: Enables Classic Mode (Default: Off)

For intended gameplay (and replay compatibility), please set the following HPMod commands:​
hpmod_wallbonkdamage on
hpmod_maxhp 75
hpmod_maxhpperplayerminplayers 15

Mechanics:​
Boost Power
After reaching Lap 2, you can press CUSTOM2 for a sustained speed boost at the cost of 2HP/s. You cannot kill yourself by burning through Boost Power, as Boost Power shuts off at 1HP as a failsafe. A chat message will pop up, along with the famous YOU GOT BOOST POWER line, to indicate Boost Power is available. While Boost Power is active, in addition to gradual HP loss, you will also leave a sparkle trail behind you. Boost Power remains active until you either manually toggle it off, or if you trip one of the safety checks (to prevent additional damage via Boost Power or prevent Grow from being more powerful than it is):

- Driving into offroad sectors without offroad-ignoring items (Invincibility, Hyudoro, Sneaker effects)
- During Grow
- Holding a banana, Eggman, or mine behind you (Allowing Boost Power here would defeat the purpose of the speed penalty incurred by holding these items behind you)
- Falling off the map
- Being hit with a hazard or an item

Boost Power offers speed and acceleration bonuses depending on your position and your Speed stat. Accel characters like Tails gain a higher acceleration bonus than faster characters like Flicky. 1SPD characters gain a 25% bonus to acceleration, while 9SPD only gain a 10% bonus. Characters in between gain a bonus on a linear basis (e.g. 5SPD gains a 17.5% bonus). 1st place's top speed will be 25% less than the rest of the pack to allow everyone else to catch up. So, 1st place will have +75%/+100% top speed in Standard/Classic respectively compared to the rest of the pack (listed below in Modes).

Healing
Picking up Item Boxes will heal for either 10HP(Standard) or 15HP (Classic), and driving over boost sectors will heal at 1HP/tic. Eggboxes also heal... for 1HP.
SPB Lock
If you are the target of an SPB, you will be unable to heal; boost wisely! Additionally, players who are not in 1st or the SPB target will slowly heal at 1HP/s during the SPB chase.

Offroad Damage
If you are driving through offroad, and you don't have an offroad protection item (Sneaker, Hyudoro, Grow, Invincibility) - or if you are not recovering from a wipeout - you will slowly take damage over time. Stay on the road!

Standard Mode (fz_classic off)​
This is a blend of Kart and F-Zero mechanics. Learn when to go on the offensive and when to boost out of danger.

Boost Power is +100% top speed. Offroad damage is 2HP/s.

Classic Mode (fz_classic on)​
This is what everyone came for: THE FAST. Classic Mode trades items for stronger Boost Power, accurately reflecting F-Zero X. Boost Power is +400% accel and +100% top speed for 4 seconds, at the cost of 20HP per activation! Be careful, though; reckless boosting may spell your doom, as offroad damage doubles to 4HP/s!

As an added layer of challenge, your top speed will drop to 90% at 5HP or less. Drive safely!

Hostmod Support​
Scoreboard lines aplenty for hm_scoreboard and hm_scoreboard_humor!

Changelog:​
V3:​
==Adjustments==
*Boost Power has been overhauled and is now tied to k_speedboost instead of k_boostpower. This makes map and item interactions more consistent.
*Characters now gain an accel boost during Boost Power, proportionate to their speed stat. Ranges from 10-25%, 9-1SPD respectively in even increments.
*Sneaker/Boost sectors, Drift Boosts, and Invincibility now have their k_accelboost values hardcoded during Boost Power to prevent Boost Power's accel boost from overriding a better bonus.
*Grow now completely ignores offroad and has the same accel bonus as Invincibility (+300%), at the cost of being unable to use Boost Power. This makes Grow less situational while also preventing it from making Invincibility weaker by comparison.

==Visuals==
*A status indicator next to your HP Bar will now convey several icons depicting Boost Power state. This allows players to check their Boost Power status during Invincibility in particular, as Boost Power's sparkle trail blends with Invincibility.
-Steady static: Boost Power not ready (Either Lap 1 or during cooldown).
-Flame Shield: Boost Power Ready.
-Sparkles: Boost Power active.
-Eggman: Uh-oh.

V2-hotfix3:​
*Fixed a bug where Boost Power could still be toggled on/off if you DNF.
V2-hotfix2:​
*Fixed a bug where Boost Power wasn't enabled if KAR Drag Race 3 is the first map loaded in a dedicated server via randommap.
V2-hotfix:​
*Fixed an audio bug where boost power sound would still play at the start of the next race if you DNF'd the previous race.
*Fixed a bug where the mod breaks if someone spectates mid-race.
V2:​
==Mechanics==
*Boost Power is now a toggle, rather than being held. 17tic cooldown between button presses to avoid accidental double-toggles.
*HP drain is now 2HP/s (from 3).
*Additional safety checks to accompany the new toggle.
*SPB Rush now heals anyone who either isn't 1st or the SPB target at 1HP/s, even while using Boost Power.
*Offroad Damage reduced to 2HP/s (Standard), 4HP/s (Classic) (from 5, 10 respectively). This makes it less punishing for people who get yeeted square into offroad.
*Standard Item objects now heal for 10HP (from 5).
*Classic Item objects now heal for 15HP (from 5), but now have a cooldown. This is to prevent the first person to reach an item set from clearing house.
*You now have unlimited boost power while using Grow, Hyudoro, or Invincibility.
*Grow is now immune to offroad. You will still hear offroad sound effects, but the offroad speed penalty will not apply.
*Classic Mode Speed penalty increased to 90% top speed at 5HP or less (from 80%).

==Audio==
*F-Zero GX Announcer, thanks to DarkyBenji.
*Audio indicator when Boost Power is active.

==Visuals=
*Activating Boost Power now gives you a sparkle trail as a visual indicator, but no longer spawns a boost trail, to eliminate confusion as to whether someone is under the effects of a sneaker boost (hello, Sneaker Ramming).

==Cross-Mod Support==
*Boost Power is adjusted to support Marsh's F-Zero maps. Additionally, recharge sectors in F-Zero maps now heal at the same rate as boost sectors.
*Boost Power is amplified and enabled at the start of Dreamscape Garden's KAR Drag Race 3.
v1.1 hotfix:​
- Added a special boost condition for 1-Lap maps (KAR Drag Race 3). Boost Power will be available from the start, and accel boost is +600% with +200% top speed.
V1.1:​
- SPB Heal denial rewritten to allow compatibility with Acrobatics' trick denial.
- Boost Power is now set to CUSTOM2 and can be used when in possession of an item, but not if you're holding it behind you (Banana, Eggbomb). This now allows compatibility with Hornmod and Acrobatics' Store style.
- Boost sectors' additional speed/accel bonus normalized to prevent ramps with multiple boost sectors (Grand Metropolis, Boiling Bedrock) from sending you off the map.
V1:​
Initial release.

Warnings:
~ F-ZERO is not a standalone mod. HPMod must be loaded first, or else this mod will not work.
~Please do not run with the F-Zero GX Announcer(sounds already exist), CombiRing(overlapping inputs), or Team Sonic Racing(same as Combi).


Supporters / Co-Authors:

 

Attachments

  • kart0000.png
    kart0000.png
    452.4 KB · Views: 359
  • kart0114.gif
    1.4 MB · Views: 252
  • kart0110.gif
    3.3 MB · Views: 225
  • kart0002.png
    kart0002.png
    207.7 KB · Views: 291
  • kart0113.gif
    2.2 MB · Views: 200
  • kart0117.gif
    3.2 MB · Views: 203
  • KL_HPXFZEROv3.pk3
    586.5 KB · Views: 289
  • kart0122.gif
    kart0122.gif
    4.3 MB · Views: 326
Last edited:
For the next update, you might consider disabling wall damage while in the blinking state after having taken a hit, or add a toggle for it. It feels like overkill to suffer extra damage after having already taken a big hit. Maybe reduce terrain damage after a hit as well.

Other than that, I've been having a fun time with F-Zero mode.
 
Last edited:
If you go to a map that has only 1 lap as the default number of laps, your boost power will make you go over 250 km/h, it only works if the map "naturally" have 1 lap
 
Relevant:


As for actual feedback, it'd be nice if there was a small window between running over grass and other terrain and you losing your boost. If you so much as breathe on a corner of grass jutting out into the track you lose boost.
 
Last edited:
RetroStation updated HPMod Expansion: F-Zero with a new update entry:

V4 Update

Classic mode overhaul, bug fixes, and more!

*Classic Mode's Boost Power now closely resembles F-Zero X. Activating it gives you a stronger boost than Standard Mode for four seconds, at the cost of 20HP. Acceleration is +400% during Classic Boost, since Driftboost is used as part of the visuals to differentiate it from Standard Boost Power. Classic Boost's fastline color matches your skincolor.

*Code has been adjusted to support v2 Grow recreation (coming soon alongside v2 Eggbomb).

*Speed...

Read the rest of this update entry...
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top