Painkiller: Black Edition

Painkiller: Black Edition

Not enough 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]

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).
 
Rate  
Favorite
Favorited
Unfavorite
< >
8 Comments
Peppins  [author] Jan 6 @ 12:54am 
@† LucYfer †: Use my link that i've modded to work for singleplayer too.
† LucYfer † Aug 22, 2016 @ 11:37am 
Hm. Seems like the forum needs a registration now? Or it is down?
Either way, here is a download:
http://www37.zippyshare.com/v/nAMpCHAm/file.html
Peppins  [author] Apr 20, 2016 @ 5:20am 
Need to put LScripts folder inside Data folder of the game, then the command /setmaxfps is saved for every gamemode you use (the game have problem if you play with too high fps).

If you have 60hz screen and want limit the fps, 60fps is your option instead of the vsync from the driver.

This mod don't fix anything, is just a modification as explained above.
Doom3 pa1ner Apr 14, 2016 @ 9:18am 
Sorry wrong info, all works
Peppins  [author] Apr 14, 2016 @ 8:05am 
@Doom3 pa1ner: It's for black edition not hell & damnation, it work for eveyone but doesn't for you?
Doom3 pa1ner Apr 13, 2016 @ 1:10pm 
Dosent work
TuRoK 2... Nov 6, 2015 @ 10:36am 
cool
moloccio impestato all'arsenico Aug 23, 2015 @ 11:16am 
Grazie per la guida. Molto utile!