leiizko / cod4_new_experience

GNU Affero General Public License v3.0
32 stars 29 forks source link

Change default filmtweaks settings #2

Closed AlexanderCurl closed 7 years ago

AlexanderCurl commented 7 years ago

Hi!

I've installed your mod the new stable cod4x18 release, works fine, but I can't integrate with my filmtweaks settings. I already checked all the scripts, but without luck.. Can you help? Regards.

leiizko commented 7 years ago

Well this one is a bit anoying to change at the moment but filmtweaks are currently at: player.gsx, scriptcommands.gsx, spectating.gsx, rcon_commands.gsx, common.gsx

reminder for me: centralise the vision settings

AlexanderCurl commented 7 years ago

Yeah I found these settings, but every time I changed, nothing happened after SetNakedVision.

leiizko commented 7 years ago

oh wait, are you talking about filmtweaks you get by invoking "promod" command or are you trying to implement your own, that would be active all the time?

If you want the latter, change all settings I linked you in previous post, disable the ability to use promod and fps command ( cmd_fps 0, cmd_promod 0 ) and finally hardcode it to stay on here. Just change promodTweaks to 1 and fullbright to 0

AlexanderCurl commented 7 years ago

No, I'm talking about definitive filmtweak change, so without invoking commands. I've written a filmtweaks.gsx and included to the globallogic.gsx after OnPlayerConnect callback when player has been connected the filmtweak settings applies. I want to add this, but it's really tricky.

leiizko commented 7 years ago

Well if you already have a script written you could just thread it on spawn. You can do that in player onSpawn function

However you would still want to disable promod script command (set cmd_promod 0) and hardcore it to be always off by changing the variable to 0 here

Also you should replace this code with a thread to your script. This should be the easiest way to achieve what you want