Skip to content

Commit a1ce319

Browse files
committed
Fixed mute campfire mercenaries
1 parent e3605fc commit a1ce319

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

SRP v1.1.4 - Readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ Audio fixes:
294294
+ Fixed the issue where zombified stalkers would sometimes shout battle slogans as if they were ordinary stalkers.
295295
+ Fixed the overlapping audio transmissions during the initial cutscene in the Abandoned Hospital.
296296
+ Fixed Professor Beanpolev's overlapping greeting audio.
297+
+ Fixed mercenaries' silent guitar playing around campfires.
297298
+ Fixed some NPCs using the wrong voice files.
298299
+ Fixed unlit campfires emitting a burning sound.
299300

SRP v1.1.4 - Version History.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ v1.1.4
2525
+ Fixed the issue where the Freedom NPCs that hold the player at gunpoint at a Dark Valley entrance would refuse to talk to the player after the hold-up has ended. - Decane
2626
+ Fixed the issue where the Freedom base megaphone could start playing Yar and Ashot's banter even if the player is in Yar's armory or Ashot's shop, resulting in the conversation being abruptly cut off immediately after starting. - Decane
2727
+ Mitigated the issue where the weather would sometimes inexplicably change after loading. - Decane
28+
+ Fixed the issue where mercenaries would fall mute around campfires and play the guitar silently. - Decane
2829
+ Mitigated the issue where the player's character model would revert back to the default rookie jacket model upon picking up another suit of armor. - Artos, Shoker
2930
+ Fixed the issue where the player would be rejected from playing the shooting minigame if their money precisely matches the entry fee instead of exceeding it. - Decane
3031
+ Fixed an SRP v1.1.3 (or v1.0.2 with the optional 'No NPC Weapon Tossing Upon Death' feature) regression that prevented killed NPCs from ever dropping a grenade. - Decane

gamedata/configs/misc/script_sound_music_and_stories.ltx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,31 +163,31 @@ idle = 0,0
163163

164164
[intro_music]
165165
type = npc
166-
avail_communities = csky, stalker, bandit, dolg, freedom, army ; also supported: killer, monolith
166+
avail_communities = csky, stalker, bandit, dolg, freedom, army, killer ; SRP: added killer; also supported: monolith
167167
npc_prefix = true
168168
path = talk\intros\intro_music_
169169
shuffle = rnd
170170
idle = 1,1
171171

172172
[play_guitar]
173173
type = npc
174-
avail_communities = csky, stalker, bandit, dolg, freedom, army ; also supported: killer, monolith
174+
avail_communities = csky, stalker, bandit, dolg, freedom, army, killer ; SRP: added killer; also supported: monolith
175175
npc_prefix = true
176176
path = music\guitar_
177177
shuffle = rnd
178178
idle = 1,1
179179

180180
[harmonica]
181181
type = npc
182-
avail_communities = csky, stalker, bandit, dolg, freedom, army ; also supported: killer, monolith
182+
avail_communities = csky, stalker, bandit, dolg, freedom, army, killer ; SRP: added killer; also supported: monolith
183183
npc_prefix = true
184184
path = music\harmonica_
185185
shuffle = rnd
186186
idle = 1,1
187187

188188
[reac_music]
189189
type = npc
190-
avail_communities = csky, stalker, bandit, dolg, freedom, army ; also supported: killer, monolith
190+
avail_communities = csky, stalker, bandit, dolg, freedom, army, killer ; SRP: added killer; also supported: monolith
191191
npc_prefix = true
192192
path = reactions\music\reaction_music_
193193
shuffle = rnd
@@ -196,7 +196,7 @@ group_snd = true
196196

197197
[intro_joke]
198198
type = npc
199-
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith ; also supported: killer
199+
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith, killer ; SRP: added killer
200200
npc_prefix = true
201201
path = talk\intros\intro_joke_
202202
shuffle = rnd
@@ -205,7 +205,7 @@ group_snd = true
205205

206206
[joke]
207207
type = npc
208-
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith ; also supported: killer
208+
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith, killer ; SRP: added killer
209209
npc_prefix = true
210210
path = talk\jokes\joke_
211211
shuffle = rnd
@@ -214,7 +214,7 @@ group_snd = true
214214

215215
[reac_joke]
216216
type = npc
217-
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith ; also supported: killer
217+
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith, killer ; SRP: added killer
218218
npc_prefix = true
219219
path = reactions\joke\reaction_joke_
220220
shuffle = rnd
@@ -223,7 +223,7 @@ group_snd = true
223223

224224
[reac_laugh]
225225
type = npc
226-
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith ; also supported: killer
226+
avail_communities = csky, stalker, bandit, dolg, freedom, army, monolith, killer ; SRP: added killer
227227
npc_prefix = true
228228
path = reactions\story\laughter_
229229
shuffle = rnd

gamedata/scripts/sound_theme.script

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ function npc_sound:init_npc(npc)
107107
if self.group_snd then
108108
self.can_play_group_sound = true
109109
else
110-
if self.can_play_sound[npc_id] ~= false then
111-
self.can_play_sound[npc_id] = true
112-
end
110+
self.can_play_sound[npc_id] = true
113111
end
114112
end
115113

@@ -264,6 +262,9 @@ function npc_sound:stop()
264262
end
265263
end
266264

265+
-- TODO: Stop saving self.can_play_group_sound and self.can_play_sound[npc_id].
266+
-- They get clobbered in npc_sound:init_npc on NPC net_spawn(), so saving them is useless.
267+
267268
function npc_sound:save(thread)
268269
thread:w_stringZ(tostring(self.played_id))
269270
if self.group_snd then

0 commit comments

Comments
 (0)