SphereCommunity
Weapon Sound Fix - fixed in last nightly - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Weapon Sound Fix - fixed in last nightly (/Thread-Weapon-Sound-Fix-fixed-in-last-nightly)



Weapon Sound Fix - fixed in last nightly - darksun84 - 08-09-2017 08:56 PM

Last nightly (10th August) fixed the missing weapon sounds when fightin, so don't use the script below.

Since nightly release of 8-9 June, weapon hit and miss sound are not played. (see: https://github.com/Sphereserver/Source/commit/a933c9b335ae23aafd19f0145ed0579808f21a95)

See this small script for play the hit/miss animation until the sound are re-implemted by script :

Code:
[EVENTS e_player]
ON=@HitMiss
//play miss sound
sound <R0238,023C>
ON=@Hit
sound <playWeaponHitSound>

[FUNCTION playWeaponHitSound]
//Using wrestling, wrestling sound is already implemented.
if !<weapon>
    return
endif
//Swordsmanship weapons
if <weapon.type> == t_weapon_sword
    return <R0236,0237>
elseif <weapon.type> == t_weapon_axe
    return 0232
//Macefighting weapons
elseif <weapon.type> == t_weapon_mace_sharp
    return 0233
elseif <weapon.type> == t_weapon_mace_smith
    return 0233
elseif <weapon.type> == t_weapon_mace_pick
    return 0233
elseif <weapon.type> == t_weapon_mace_staff
    return 0233
elseif <weapon.type> == t_weapon_mace_pick
    return 0233
elseif <weapon.type> == t_weapon_mace_crook
    return 0233
//Fencing weapons
elseif <weapon.type> == t_weapon_fence
    return <R023b,023a>
//Archery Weapons
elseif <weapon.type> == t_weapon_bow
    return 0234    
elseif <weapon.type> == t_weapon_xbow
    return 0234    
endif



RE: Weapon Sound Fix - Coruja - 08-10-2017 03:09 AM

do these sounds still missing on latest builds?

because initially these sounds changes was planned and later I thought that it's better not commit these changes, but I forgot to remove this text from changelog (it got removed on next commit)


RE: Weapon Sound Fix - darksun84 - 08-10-2017 03:23 AM

Yes, in 5th August nightly (last one i think) the weapon hit/miss sounds are still missing.


RE: Weapon Sound Fix - darksun84 - 08-10-2017 06:49 PM

Ok, with last nightly weapons sounds are playing again, thank you


RE: Weapon Sound Fix - fixed in last nightly - Coruja - 08-11-2017 01:26 AM

yea sorry that's my fault, all sounds was there but an wrong IF was making weapons play ~only~ sounds set on AMMOSOUNDHIT/AMMOSOUNDMISS instead fallback to default sounds if there's nothing set. But now it should be working fine again after these changes on latest build


RE: Weapon Sound Fix - fixed in last nightly - Baeguth - 08-11-2017 05:40 PM

Really I was becoming crazy eheh! Fortunately I med darksun84 in sphere chat Smile