Serious Sam 4

Serious Sam 4

Custom maps, mods, skins & campaigns
Discover and download custom maps, character skins, weapon modifications, skins, enemy modifications, campaign mods, and much more.
321321 16 Apr, 2021 @ 9:35am
Please add a new accessible cht_fSeriousRageTime float variable to the game's console
This float variable cht_fSeriousRageTime determines how much time in seconds the serious rage mode lasts once Sam Stone drinks the Serious Rage gadget.

If Serious Rage mode lasts too few time for you then you probably want to increase the value of cht_fSeriousRageTime to make Serious Rage mode last more time.

If Serious Rage mode lasts too much time for you then you probably want to decrease the value of cht_fSeriousRageTime to make Serious Rage mode last less time.

If you want that Serious Rage mode will last indefinitely then simply set cht_fSeriousRageTime to any number that is not positive (zero and all negative numbers that are smaller than zero).

If you do so (set cht_fSeriousRageTime to any non positive number) when there are at least one active serious rage on the screen then all active serious rage if there any are removed from the screen and then you see on the screen only one serious rage but it has the infinity icon instead of a bar.

In case that cht_fSeriousRageTime <= 0 then the Serious Rage gadget toggles Serious Rage mode.

By default Serious Rage mode is OFF obviously!

Drink a Serious Rage gadget to activate Serious Rage mode (turn it ON) and then you see on the screen the serious rage icon and next to it the infinity icon instead of a bar.

Drink another Serious Rage gadget to deactivate Serious Rage mode (turn it OFF) and then you no longer see the serious rage and the infinity icons on the screen.

Another way to both immediately and instantly deactivate (turn OFF) Serious Rage mode without drinking another Serious Rage gadget is to set cht_fSeriousRageTime to any very little number that is greater than zero (also called "epsilon" in math) like 0.001 (1 millisecond), but you probably don't want to do this, because while cht_fSeriousRageTime is equal to such tiny or very small number then the Serious Rage gadget has no more significant effect on Sam Stone when he drinks it obviously!

You can also set cht_fSeriousRageTime to any positive number (even large/big) that is greater than zero to turn the infinity icon next to the serious rage icon into initially full but shrinking bar being empty, but then you will have to wait all the time that you set in cht_fSeriousRageTime until Serious Rage mode deactivates (turns OFF) automatically.

Note that setting cht_fSeriousRageTime to any non positive number (so cht_fSeriousRageTime <= 0) never activates (turns ON) Serious Rage mode!

The only way to activate or turn ON Serious Rage mode is to drink a Serious Rage gadget!

Changing the value of cht_fSeriousRageTime has no effect on the currently active serious rage!

cht_fSeriousRageTime both only and just determines the life time or duration of a new active serious rage!

Serious Rage mode is ON as long as there is at least one active serious rage on the screen.

The default value of cht_fSeriousRageTime is the time in seconds that the developers decided that Serious Rage mode will last in the release of Serious Sam 4 Planet Badass.

You can use any command or function that restores any variable to it's default value to restore cht_fSeriousRageTime to it's default value if you want Serious Rage mode to last like how it does in the original Serious Sam 4 Planet Badass (not moddable version).

Also note that you need to enable developer (not regular) cheats (set cht_bEnableCheats to any positive integer greater than 1) to have access to the cht_fSeriousRageTime at all.

Also note that enabling any cheats (regular or developer) disables all Steam achievements so if you want any Steam achievements enabled then you must disable all cheats, including regular and developer, by setting cht_bEnableCheats back to zero (0 is the default value of cht_bEnableCheats obviously).

Also note that if developer cheats are disabled (cht_bEnableCheats is less than 2) then the actual value of cht_fSeriousRageTime is ignored and only the default value of cht_fSeriousRageTime is used instead. This means that Serious Rage mode (once Sam Stone drinks Serious Rage gadget) lasts how much time that the developers decided it to last in the release of Serious Sam 4 Planet Badass.

Disabling developer cheats while cht_fSeriousRageTime <= 0 and Serious Rage mode is ON makes the active Serious Rage mode to last to the default value of cht_fSeriousRageTime that is the time that the developers decided it to last in the release of Serious Sam 4 Planet Badass so here is another third way to deactivate or turn OFF Serious Rage mode!

To view the value of cht_fSeriousRageTime bring down and show the game's console by pressing the tilde key `, then type the word "cht_fSeriousRageTime" and then press the Enter key (also called "return").

To change the value of cht_fSeriousRageTime to any number N repeat the above steps, but before pressing the Enter key right after the cht_fSeriousRageTime type " = N" where N is the desired new value of cht_fSeriousRageTime.

For example to disable Serious Rage mode while developer cheats are enabled press the tilde ` key, type "cht_fSeriousRageTime = 0.001" and then press the Enter/Return key (N = 0.001 in this example).

To bring up and hide the game's console just press the tilde ` key again.

Do the same to view/change cht_bEnableCheats.

This is just so both simple and easy!

That's all!

OPTIONAL:

You can also add a new chtToggleSeriousRageMode parameterless function (function without parameters).

Invoking this function in game's console (by pressing the tilde key ` to bring down and show game's console, typing "chtToggleSeriousRageMode()" and then press the Enter/Return key)
while Serious Rage mode is OFF is exactly the same like drinking a Serious Rage gadget but this command does not consume serious rage gadget because this function does not require a serious rage gadget to work properly so you can invoke this function any time you want even if you don't have any serious rage gadget.

Invoking this function while Serious Rage mode is ON simply makes Serious Rage expire or fade out both immediately and instantly no matter how much time was left or was remaining for Serious Rage mode to last.

Note that developer cheats must be enabled to have access to the chtToggleSeriousRageMode function!

You must have access to chtToggleSeriousRageMode function to invoke it in game's console!
Last edited by 321321; 16 Apr, 2021 @ 5:40pm