Product Chat / Disable muzzle flash lighting when firing a gun

Author
Message
ironstrike
4
Years of Service
User Offline
Joined: 28th Nov 2019
Location:
Posted: 4th Feb 2020 12:12
Is there a way to disable the muzzle flash lighting when firing a gun? The flashing light.
Either directly turning it off or doing some work around or something to just break it so it doesn't work?
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 4th Feb 2020 13:29
Is this for the player or AI?
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




ironstrike
4
Years of Service
User Offline
Joined: 28th Nov 2019
Location:
Posted: 4th Feb 2020 22:37
For the player
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 5th Feb 2020 03:17
You need to set the weapon in the map that the player is using. It can be hidden or in plain sight. In the properties of the set weapons pickup,
Set the spot lighting to no and then apply changes. Press start and test.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




ironstrike
4
Years of Service
User Offline
Joined: 28th Nov 2019
Location:
Posted: 5th Feb 2020 04:14
Thanks I think you are correct that that should do it.

However it stays on even when set to no, even after I save and restart gameguru Must be a glitch with the latest build or something.
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 5th Feb 2020 07:57
Edit file "gunspec.txt" and change "muzzleflash = 4" to "muzzleflash = 0"
I've tried "Game Guru\Files\gamecore\guns\modern\colt1911" and it works.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
ironstrike
4
Years of Service
User Offline
Joined: 28th Nov 2019
Location:
Posted: 5th Feb 2020 22:13
hmm Thanks 3com. That does reduce the strobing effect which I want to (my friend has epilepsy) ... So I think I will go with that fix.

However it still doesn't technically get rid of the light from the gun flash, overall though its much better
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 5th Feb 2020 22:57
Quote: "However it still doesn't technically get rid of the light from the gun flash, overall though its much better"

Are you talking about gun smoke?
Can you load some video reproducing the issue?
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
ironstrike
4
Years of Service
User Offline
Joined: 28th Nov 2019
Location:
Posted: 6th Feb 2020 03:28 Edited at: 6th Feb 2020 03:29
It seems a lot less with the muzzle disabled, but I am speaking about the light from the gun flash on other objects, the red arrow pointing where it is. The "muzzleflash = 0" modification helps a lot though

[video=vimeo]https://vimeo.com/389642480/7b8c79043d[/video]

https://vimeo.com/389642480/7b8c79043d
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 6th Feb 2020 18:05
What type of weapon are you using?
I don't get that glow when I shoot the colt or the uzi.
Honestly I had never tried to eliminate the muzzleflash, so I'm just giving blind sticks.
However, if there is no logical way to suppress this light effect, this effect is most likely achieved using a decal, in which case you only have to create a decal that is equal in size, but transparent, and then replace the original decal with this one, but not before making a backup of the folder.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
ironstrike
4
Years of Service
User Offline
Joined: 28th Nov 2019
Location:
Posted: 6th Feb 2020 18:41
Its an mp40 bought from the store, I get the light effect when I use the uzi too.

However I just discovered if I turn all the shadows down it goes away? The game doesnt look as realistic but thats OK.
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 6th Feb 2020 19:22
Quote: "I get the light effect when I use the uzi too."

Really weird.
It seems that this effect has something to do with the shader.
If you have any knowledge about how shaders work, take a look at the "apbr_core.fx" file, especially the spotlight and muzzle flash section.
The weird thing here is why you experience the effect of light and I don't.

Maybe someone else wants to do a test and post the result.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Feb 2020 09:28
The MP40 is an old pre-pbr weapon so it may be because the wrong shader is being used.

Go into the gunspec.txt file which is in files/gamecore/guns/BSP_WW2/MP40, and change:

effect = effectbank\reloaded\weapon_basic.fx

to

effect = effectbank\reloaded\weapon_bone.fx

and see if that helps

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.

Login to post a reply

Server time is: 2024-11-23 19:41:52
Your offset time is: 2024-11-23 19:41:52