Painkiller: Black Edition

Painkiller: Black Edition

38 ratings
Painkiller FPS limiter
By Peppins and 1 collaborators
Atom0s have made this great fix for painkiller.


I've created a simple rar, with modification, that you can use directly (pk black 1.64): HERE[drive.google.com].

The default maxfps is now 120, for SinglePlayer, you can change it by writing in the console "/setmaxfps" and the number you want. After that the settings will be writed in the Config.ini in the Bin folder. Value 0 is unlimited, as default.

Modification are:

######Cfg.lua######

Added:

MaxFpsSP = 120,

below:

MaxFpsMP = 120,


######Game.lua######

Added:

WORLD.SetMaxFPS(Cfg.MaxFpsSP);

below:

--AddAction({{"Wait:1"},{"L:StringToDo = 'Console:Cmd_EXPO()'"}})

Added also:

WORLD.SetMaxFPS(Cfg.MaxFpsMP)

below:

self:OnMultiplayerClientTick(delta)


#####Console.lua######

Find the line:

function Console:Cmd_SETMAXFPS(val)

Then replace:

if Game.GMode == GModes.MultiplayerClient then

with:

if Game.GMode == GModes.MultiplayerServer or Game.GMode == GModes.MultiplayerClient then

Also add:

else
Cfg.MaxFpsSP = val

below:

Cfg.MaxFpsMP = val


Just put the LScripts folder in the Data folder, enjoy!

If you mod the same files of the game like above, you can use it for other Painkiller games too (don't use that one, but mod them yourself).
   
Award
Favorite
Favorited
Unfavorite
35 Comments
Muleke_Trairao 5 Apr @ 12:38am 
The link is working now! Thank you, Peppins!
Muleke_Trairao 3 Apr @ 12:56pm 
MediaFire is a good mirror, too. :) Just a suggestion.
Peppins  [author] 3 Apr @ 12:46pm 
@ Muleke_Trairao Was already free, i don't know why google locked it again even if he said was shared already too. In any case i've updated it nad it work again, same link. Stupid google ;-)
Muleke_Trairao 3 Apr @ 11:37am 
The download link requires permission to access. Could you make it public, please? Thanks in advance! :)
tynwar 28 Jul, 2022 @ 6:56am 
@Peppins OK, that it is great, thank you for answer!
Is possible to play mp? I have original box, but in i have just empty mp. However i remenber when mp wasn't empty and it was really long time ago. Some mods for activating mp? Or i just don't know how to play mp? :D
"the jump pad in the multiplayer maps" oh yeah, i just reminded that jump pad couldn't let me jump enoughy high in some chapters in sp, because i forgot to write setmaxfps :D.
Peppins  [author] 28 Jul, 2022 @ 12:05am 
@tynwar This is exactly what this fix do, for multiplayer and for singleplayer separately :D

About physics problem, the most noticeable one is for example the jump pad in the multiplayer maps. Load for example DM_Cursed, limit the fps example to 60-120, and b-hop to the jump pad below the Golden Armor area (where is also the electro and the shotgun). You can go up easily, as supposed. Now go back, remove the fps limit and try to do it again, you will see that you can't jump up again with jump pad.
tynwar 27 Jul, 2022 @ 1:41pm 
Can I set a default fps with this fps limiter and not have to type commands every time to set the max fps every time I start the game?
Honestly i didn't notice any bug physic or any bad thing(even with 60hz screen and game 400 fps it hasn't any tearing, but it begins when game has 60 fps, yeah weird.), but i just like to take care of a gpu and so i reduce not needed excess fps that dont change, so gpu doesn't need to work too much without needing(in order to work longer without a problem, just don't like pc working without a needing instead saving itself and by that work longer). With 60 or 400 i didn't see any difference in physics between these fps.
So can i set default fps with this fix?
Peak Engineering 27 Jul, 2022 @ 1:21pm 
Ok good to know :), what I meant was that I could jump up walls, example I could jump to a secret, but when limiting FPS that wasn't possible anymore.
Peppins  [author] 27 Jul, 2022 @ 1:15pm 
@Gordon Feetman Without limiting fps, so if you have thousands of fps, game physics will be bugged (so it's the opposite).
Peak Engineering 27 Jul, 2022 @ 1:12pm 
I don't know why but when I tried limiting the FPS it caused me to b-hop worse. I used the console for that, maybe it has to do something with that.