-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Clear Sky: Missing variable in gun setting file #1678
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There are some notes about the solution.
3508daa
to
f4f9284
Compare
4295c9d
to
d01b5f8
Compare
src/xrGame/WeaponMagazined.cpp
Outdated
@@ -90,7 +90,7 @@ void CWeaponMagazined::Load(LPCSTR section) | |||
m_sSndShotCurrent = "sndShot"; | |||
|
|||
//звуки и партиклы глушителя, если такой есть | |||
if (m_eSilencerStatus == ALife::eAddonAttachable || m_eSilencerStatus == ALife::eAddonPermanent) | |||
if ((m_eSilencerStatus == ALife::eAddonAttachable || m_eSilencerStatus == ALife::eAddonPermanent) && WeaponSoundExist(section, "snd_silncer_shot")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, don't disable flame particles when shot sound doesn't exist. This code does exactly that.
b5f481f
to
3d6856c
Compare
What was that problem? |
It doesn't have silencer_light_color and family(all silencer_light_*) ;silencer_flame_particles = weapons\generic_weapon03 ;silencer_light_color = 0.6, 0.5, 0.3 |
…sor don't have snd_silncer_shot only snd_shoot
3d6856c
to
9551f3e
Compare
Without it merged or getting feedback I can't continue to test Clear Sky support |
e89fcc8
to
f6fd5cc
Compare
Crash when some weapons(eg. wpn_val) with built in suppressor don't have snd_silncer_shot only snd_shoot