Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about muzzleflash #1

Open
rom4ntic opened this issue Sep 12, 2021 · 3 comments
Open

Question about muzzleflash #1

rom4ntic opened this issue Sep 12, 2021 · 3 comments

Comments

@rom4ntic
Copy link

Hello! Ive been struggling with addons and scripts to disable annoying muzzleflash effect that hurt my eyes while playing my beloved l4d2 and they only thing that 100% worked is your config. Other things either leave my flashlight rapidly flickering or dont work at all. I wanted to ask you if you could explain how did you manage to fix that flashlight flickering and how to get rid of that muzzleflash. Thanks for your time!

@mrbatty
Copy link
Owner

mrbatty commented Sep 13, 2021

Hey, there! Wow it's been a while since I've played with many of these commands because the updates broke them for me.
If I had to guess it's probably one of these following commands:

script Convars.SetValue("r_FlashlightDetailProps", 2) //Better IQ, gorgeus flashlight, pc exclusive feature
script Convars.SetValue("r_flashlight_topdown", 0) //lights when pinned by SI or healing come from above. dont enable or muzzle flash will turn on flashlight when firing (ugly)
script Convars.SetValue("r_flashlightculldepth", 0) //don't cull my flashlight plz
script Convars.SetValue("r_flashlightdepthres ", 3440) //certain values will prevent you from joining multiplayer, be careful
script Convars.SetValue("r_flashlightdepthtexture", 1) //why not?... unknown, potential better IQ
script Convars.SetValue("r_flashlightfov", 58.33522675915558) //perfect 90 degree FOV for survivor flashlight, use FOVcalc for your display
script Convars.SetValue("r_flashlightinfectedfov", 113.78218636276473) //higher FOV for Special infected flashlight, use FOVcalc for your display
script Convars.SetValue("r_flashlightinfectedshadows", 1) //SI flashlight will cast shadows
script Convars.SetValue("r_flashlightmuzzleflashfov", 113.78218636276473)

You'd need to try them yourself, which I am curious as to how you are applying them now. I can still use them with a personal mod, but the injection process is cumbersome.

I also don't quite get the whole picture of your situation, what does happen exactly? If you could record an animated gif with share x of before and after, that would really help me understand your issue.

Glad you appreciate my config, all of these commands I tested the hard way... Applying, starting the game, playtesting, crashing, changing something in the config and trying again. I tried to explicitly state which commands crash the game when set to something specific. Every command has a short and very poorly written explanation of what it did for me.

@rom4ntic
Copy link
Author

Hello ! I will try to describe my issue in details... You see, I am using this type of addon - https://steamcommunity.com/sharedfiles/filedetails/?id=817684084
It disables this yellow flash while firing guns called muzzleflash. But the thing is, it makes muzzleflash disappear tho it also makes flashlight rapidly flicker while shoting guns... the flashlight itself kinda acts like this muzzleflash effect, rapidly blinking. Authors of this addons know about this issue but they cant seem to solve it. I was looking for a solution to this for a long time now, hell, I even reworked whole addon myself adding r_flashlightmuzzleflash 0 commands into the gamemodes.txt file which was in the folder "scripts" in the .vpk addon file itself. Still no wanted results... and then I found your config. I copied script and script2 into my cfg folder, put this exec command into my autoexec, I run the game, the campaign loading sceen popped on my screen so I knew something is working... and poof! It somehow made this addon work properly :D I just wanted to know if there is a way to make it work without that loading screen at the beginning and also I want to help others who struggle with that issue. I hope I explained it good enough for you, you seem to know a lot of config and stuff like that and I am a newbie ;D So please, if you have any ideas how to make this work 100% please share them with me! Looking forward to hear from you soon.

@mrbatty
Copy link
Owner

mrbatty commented Oct 2, 2021

The way I have it set up now doesn't require a level load at the beginning, that's what's happening with the old version.

First, you should familiarize yourself with creating a vpk for addon injection. I can't standardize this method because each change you wish to make will require it's own compilation. I would sstart modifyiong an already existing vpk from the workshop and see what works and what doesn't. There are some good "no post processing" addons that will give you some clue as to how the file system works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants