Painkiller: Black Edition

Painkiller: Black Edition

27 ratings
Painkiller FPS limiter
By Peppins and 1 collaborators
Atom0s have made this great fix for painkiller: here[atom0s.com]


I've created a simple rar, with modification, that you can use directly (pk black 1.64): DOWNLOAD HERE[www.pkzone.org] or 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
< >
23 Comments
Peppins  [author] Dec 7, 2020 @ 11:58pm 
@Panopticon Depends on your hardware, probably the gpu. I suggest you to play around 120fps or lower (144 if you have a 144hz monitor), but not more, the game don't like too much fps xD
Panopticon Dec 7, 2020 @ 7:13pm 
thanks for your guide,I don't have to use setmaxfps everytimes I launch the game now
However I have a weird problem that is more hardware related but when the game fps are uncapped I can hear a high pitched noise coming from my GC(after some search I found it's called coil whine)
the problem appears even at 200 fps(but it's far more quiet)
Is it normal?
Peppins  [author] Dec 3, 2020 @ 3:34pm 
@De Seppe: this is just for limit fps in the game not to use vsync. Use 60fps limit on a 60hz monitor isn't like if you have a vsync.
JorisV Dec 2, 2020 @ 11:15pm 
This did not fix screentearing for me.
I was able to fix it using dgVoodoo Direct X to force VSync on.
Maybe you could add this to your guide?
zii Nov 22, 2020 @ 10:49am 
alright
Peppins  [author] Nov 22, 2020 @ 10:27am 
@zii: there is a jumppad to go up from the downplace (where is also the driver electro weapon). If you take it with very high fps you will notice the phisic glitch.
zii Nov 22, 2020 @ 10:24am 
@Peppins: I played the map and only found 1 gold armor but no jump pad and some areas I would randomly get stuck in and take damage but 1 area was a little tough to get in but I had to use shotgun to get boost and get red skull on top.
zii Nov 22, 2020 @ 10:03am 
Alright I've never played a multiplayer map because servers are dead.
Peppins  [author] Nov 22, 2020 @ 6:26am 
@zil: play a multiplayer map like Cursed and try to jump on the jump-pad to the gold armor zone, you can't with high fps xD
zii Nov 21, 2020 @ 10:21pm 
I get like easily over 1000 fps and I didn't mess with anything.