Serious Sam 4

Serious Sam 4

Not enough ratings
Fight For Your Life (Script)
   
Award
Favorite
Favorited
Unfavorite
Game Mode: Single Player
Type: Additions
File Size
Posted
Updated
1.893 MB
18 Aug, 2023 @ 12:17am
6 Feb, 2024 @ 6:07am
7 Change Notes ( view )

Subscribe to download
Fight For Your Life (Script)

Description
This mod is unlisted since it's pretty buggy.

This mod adds "Fight For Your Life" (FFYL) mechanic from the Borderlands games. When you receive a final blow you enter a "FFYL" state and start to "bleed out". If you (or your companion drone) kill an enemy during this state you get the "Second Wind" and revive with 25 HP and 2 seconds of invulnerability (as well as losing all the armor if you had any).

This state lasts for 10 seconds, if you won't be able to kill an enemy during this time you'll die. State duration is lowered by 25% (50% in survival) each time you enter this mode. In singleplayer duration will be increased back to 10 seconds if you die, use H.E.A.R.T gadget, finish the level, or 30 seconds passes since the last "FFYL" state. In survival duration won't be increased back to normal.

While in the "FFYL" state:
- movement speed decreased by 75%
- sprint disabled
- jumping disabled
- gadget quick use disabled
- dual wielding disabled
- alt fire/aim disabled
- "use" disabled (which also includes melee finishers)
- you exit any vehicle you were riding and you can't re-enter it
- each time you're damaged during a single "FFYL" state "bleed out" rate is increased by 25% (you'll die faster), next time you enter the "FFYL" state "bleed out" rate will be decreased back to the default value

This script should work on any map including survival maps but only in singleplayer!

Note that there also might be some issues on maps (or other mods) that use "ReceiveDamageScriptEvent" on player or block certain player commands, when you get the "Second Wind" all of the player commands are unblocked (because some of them are blocked during the "FFYL", e.g. jumping).

When entering "FFYL" health and armor are set to 200 each to avoid player picking up health and armor items (which will be wasted since all the armor will be lost and HP will be set to 25).
6 Comments
Tayzor Azul 1 Dec, 2023 @ 2:13am 
Will do.
Nekorie  [author] 30 Nov, 2023 @ 5:06am 
If you’re going to do this I also suggest to re-subscribe to this mod before doing it, just to make sure that you have the newest version
Nekorie  [author] 30 Nov, 2023 @ 5:05am 
I had this issue when testing (though at a much lower mech health) but now it shouldn’t put you in the FFYL state if you’re in the mech. The issue now is that you’re probably using the same save file (old script is loaded there, not the new one) so you’ll probably have to start the level again. Can’t really do anything with this, that’s just how the custom world scripts work I’m afraid >.<
Tayzor Azul 30 Nov, 2023 @ 3:06am 
The mech had 70% life, but for some reason a tentacle smack or a thrown debris by that boss would cause you to exit the mech in FFYL state.
Nekorie  [author] 29 Nov, 2023 @ 10:33pm 
It should be fixed now but note that you'll probably die if the mech is destroyed (without entering FFYL).
Tayzor Azul 29 Nov, 2023 @ 12:35pm 
There seems to be a problem when you fight the Giant Tentacle monster while in the Mech.
Being hit by a tentacle gets you into FFYL. Can you fix this ?