Play_sound?

正在查看此主题的用户

Domovoi

Recruit
For some reason, my rifles will no longer make shooting sounds :sad:
Does anyone else have this problem?

Here's the code.

插入代码块:
["crc_a_a", "crc", [("crc_a_a",0)], itp_type_crossbow |itp_merchandise|itp_primary ,itcf_shoot_musket, 230 , weight(1.5)|abundance(100)|difficulty(0)|spd_rtng(28) | shoot_speed(500) | thrust_damage(41 ,pierce)|max_ammo(5)|accuracy(95),imodbits_none,
 [(ti_on_init_item,[(set_position_delta,10,10,0),(particle_system_add_new, "psys_pistol_smoke")]),
  (ti_on_weapon_attack, [(play_sound,"snd_rfl_3"),(play_sound,"snd_pistol_dist"),(particle_system_emit, "psys_pistol_smoke", 30)])]],

And the sounds code.
插入代码块:
 ("rfl_3",sf_priority_1|sf_vol_10, ["rifle_shot3.wav"]),
 ("rfl_2",sf_priority_1|sf_vol_10, ["rifle_shot2.wav"]),
 ("rfl_1",sf_priority_1|sf_vol_10, ["rifle_shot1.wav"]),
 ("rvl_2",sf_priority_1|sf_vol_10, ["revolver_shot2.wav"]),
 ("rvl_1",sf_priority_1|sf_vol_10, ["revolver_shot1.wav"]),
 ("pst_2",sf_priority_1|sf_vol_10, ["pistol_shot2.wav"]),
 ("pst_1",sf_priority_1|sf_vol_10, ["pistol_shot1.wav"]),
 ("pst_3",sf_priority_1|sf_vol_10, ["pistol_shot3.wav"]),

No idea what the hell is going on here :sad: It just plays the normal crossbow firing sound.
 
I dunno, but I do notice that the snippet you put up there doesn't have pistol_dist, the pistol sounds are all numbered.  Maybe you renamed pistol_dist and so now the game can't find it and is using whatever its number used to be, or something?
 
no, i only showed those sounds as examples of how my sound script is layed out.

This is a critical problem and anyone with any info would be rewarded.
 
for anyone with this problem;
It was just a dumb mistake, Forgot to change the default module.ini to load custom sounds.
scan_module_sounds
 
后退
顶部 底部