Just a small script, that adds a toggleable bullet time and special effects to some drugs.
This is a script that allows you to slow down time. I have taken it from legend returns skills module and adapted it a bit to use in my playthrough. All the credit goes to exDeMODER for the creation. I'm posting it here just because some people might want to use it to improve the gunfigths and stuff.
Changelog:
04-03-2021: added penalty for using bullet time, in order to add some balance to it. Now using bullet time drains a lot of stamina, if you drain too much of it - you start taking a lot of damage. You can tweak it in the \gamedata\scripts\bullet_time.script. (Just in case - added optional file to remove health drain for all the casuals out there ;] )
18-03-2021:
- did some fixes regarding save-loading and death (now the bullet time turns off).
- added drug module. Now using drugs (adrenaline and cocaine) turns on bullet time without any penalties for 40 seconds. With additional effect too ;3
Works only with debug mode on.
How to use:
- Press C when in game to activate. Or use cocaine/adrenalin (no penalties, unlike normal bullet time).
- To change the keybind - open Anomaly\gamedata\scripts\bullet_time.script with notepad and edit DIK_keys["DIK_C"]. You can reference to DirectInput keyboard scan codes for convenience.
- To change the brightness of the effect - open Anomaly\gamedata\scripts\bullet_time.script with notepad and edit level.set_pp_effector_factor(2004, 0.2) - change the second value in range of 0.0 - 1.0.
- To turn off health drain - install optional file after the main one.
Installation:
Drop the gamedata in your root anomaly folder.
Compatibility:
Should work with any mod and any version of anomaly.
*sudden urge to say "THE WOLRD" ("THE ZONE" in that case) intensifies*
but i still end up saying "ROCK MONOLITH" even playing with clear sky...don't mind me, that's just some cheeki breeki happening with my three neurons
just wow
got debug mode active, have changed the hotkey to:
if(key == DIK_keys["DIK_LContol"] ) then -- here you can change slow-mo key
does not work.
Change to ["DIK_LCONTROL"]. Reference DirectInput keyboard scan codes!
i looked up the codes and it was like that, but thanks, it works now and it's fun as hell. thank you!
you say this is not your script, but maybe you can tell me if there's a way to make the switch effect less bright?
the sound is perfect btw.
Updated it, now you can. Check the description for the instructions.
That works perfectly, you saved my eyes <3
Oh man. Thanks! The addon is a game breaker. But OMFG its so fun)))
Can i take it and use it for some myself modding?)
The script is not really mine, but I guess you can use it.
I would try it Thanks)
Shame that it has to be used with debug mode, the temptation to teleport everywhere is too much for me haha
Excellent choice of SFX for the bullet time trigger.
It would be great if when using bullet time, there would be some penalties.
For example, add to the script:
Health reduction by 1% per second when using bullet time
quick review of the addon: it basically feels like F.E.A.R without dismemberment, but seeing the dust from bullet impacts kicking up in slowmo is a literal gamechanger. besides that, it's entertaining for alotta fun **** too, like playing guitar and listening to some radio while in slowmo, or just observing the beauty of a flesh getting spread over the map by a vortex. it works perfectly and the only ''issue'' i've encountered so far, was in case of dying with bullettime active, because it takes like 10-20 seconds to load a save after that, but even this moments are somehow funny, because enemies still shoot you when you're dead.. so watching your charakter fly over the truckcemetry from a postkill nate explosion is still entertaining :D
I love your mod! I always hated having to use the debug console to manually type the commands to bulletime. How slow is the default bulletime speed at in terms of time_factor?
0.5
In the script (Anomaly\gamedata\scripts\bullet_time.script). There is two lines (one for when you turn on the bullet time and the other for when you turn it off) that look like this:
level.set_pp_effector_factor(2004, 0.2) -- here you can change the brightness of the effect (second value, 0-1)
To change the brightness you need to edit the second value in the brackets(0.2) .
0 - the effect is just off.
1 - really bright.
So the line would look like this when you change it to 0:
level.set_pp_effector_factor(2004, 0.0)
Подскажи правильное название для num8
DIK_NUMPAD8
Where and how to turn on DEBUG MODE?
Checkbox in the Misc Settings of your Anomaly launcher.
Thx
Amazing mod.
Does replacing both the Anomaly-1.5.1.2/gamedata/sounds/slow-mo/slowmo_off.ogg and slowmo_on.ogg not change the default sounds to my own sounds? I checked bullet_time.script and the names are correct.
EDIT:
Nevermind. It was very sensitive. I had to make it 44100 khz and mono. Sound still cuts off randomly sometimes though.
My custom sounds lasts longer than 1-2 seconds. Is there a way to prevent audio cutoff if the sound is too long?
I honestly have no idea, haven't played around with the sounds in stalker. You could ask on the anomaly discord server, maybe someone would help you there.
Noted thanks. It actually works properly now by cutting short the audio.
An unfixable problem would be when activating the bullet time, the sound "Distorts" as time slows down, even when i speed up the audio, it nevertheless will get distorted to 0.5x speed.
Really love this mod though. Great work.
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.
What a welcome Surprise! I had been wondering if it were possible to make an Addon for Anomaly that introduces a working version of the Chem known as "Jet" to the world of S.T.A.L.K.E.R.
Now I know that it's possible and that makes me happy.
Thank You.
JOHN BLYAT!
Can I change this so that it only drains stamina and not health ?
Yeah, there's optional file for that in the archive. Just replace the main an that's it.
I installed the Main addon, then replaced it with the no health drain, but it's still draining my health in no time, any way to fix it ?
Well it shouldn't. Are you sure you replaced it? Check if the bullet_time.script has change_health. If it does - you did something wrong.
You're right my bad, I was using MO2 for the main folder and then placed the optional in gamedata, I forgot MO2 has priority.
Thanks for the reply and the script tho :D
Installed this in my STALKER A.R.E.A mod but it crashes whenever I activate it. I assume this is just because of debug mode not being activated. Anyone have any idea how to enable debug mode for stalker AREA?
Never meant to work with it in the first place.
How can I make the slow-mo even slower?
look for the line: get_console():execute("time_factor 0.5")
in "gamedata/scripts/Bullet_Time.Script"
and change the number after "time factor" to whatever you want.
(time factor of 1 would be real time, where as 0.5 is half speed etc)
i have mine set to 0.3
(i wouldn't suggest going under 0.1, also be sure to back up the file before you edit it incase you mess something up)
ive noticed an issue with the bullet time in that if you use a med kit or another aid item while time is slowed you cannot return time to normal until the animation for said aid item is finished.
(happens with med kits, bandages, food and drink items.)
do you think there is some way to fix this?
(im using the food, drug and drink animations mod, not sure if that's contributing to this issue)
This comment is currently awaiting admin approval, join now to view.
Any chance this will get updated for 1.5.1?
I'd like to try this, anything I should be watching for in the files, for compatibility?