@Herobrine7707 That issue already reduced in last update.
To fix issue will must be restrict zombies spawn coordinate.
And unable complete fix then that do.
@ariana23@SalsaCookies23@WolfFire23309 This script prevent Franklin, Trevor and Michael's pain audio disable only.
May be not for mp player and other peds.
And not make be able play pain audio for those.
The script just changes value of the memory address of disable player pain audio to 0.
Not tested When use those as player.
Those were unexpected for when making script.
@Michael21107
This script working in that video.
Franklin in that video whose pain audio not disabled.
@SalsaCookies23
I'm not sure but edited code to use native "DISABLE_PED_PAIN_AUDIO" just in case.
Try latest version.
@SalsaCookies23
I'm not sure because no Script Hook V for latest version still.
@Starfox1993
I don't know because didn't try it.
But may work.
you try it.
@Herobrine7707
That issue already reduced in last update.
To fix issue will must be restrict zombies spawn coordinate.
And unable complete fix then that do.
@GHDavor
This script doesn't run in game loading.
May be cause other anything.
@SalsaCookies23
OK. re-released.
@kagikn
pain系の音声を出さないようにするのではなく、その逆でpain系の音声が出なくなってしまうのを防ぐためのスクリプトです…
DISABLE_PED_PAIN_AUDIOの存在は知っていますが、それは目的のプレイヤーpedのpain系音声が出なくなってしまう現象の対処には機能しなかったのです。
GTA5のプレイ中、原因は不明ですがプレイヤーpedがpain系音声を一切発さなくなる現象が頻発します。
トレーナーなどでpedを再生成するか、wastedなどでpedを復活させるとまた出るようになるのですが、それら以外でまたpain系音声を出るようにする方法をメモリの直接操作以外で見つけることはできなかったのです。
先述の様にpedを再生成か復活でまた音声が出るので、ped周りが原因かと思いMenyooでped config flagを可能な限り調べてみましたが関係性は見られなかったです。
このゲームプレイ中にプレイヤーpedのpain系音声が出なくなる現象が起きる前はDISABLE_PED_PAIN_AUDIOでpain音声のオンオフ操作が可能ですが、現象が発生すると関数では再度pain系音声を有効にすることはできませんでした。
色々と試行錯誤した末、ネイティブ関数での対処は限界を感じたので手探りでメモリ操作に手を出しましたが、やっぱり自分には難度が高すぎたっぽいみたいですね…
@vylizanimamrdi
When it will crash? And what did do that time ?
Please tell me that for I try fix.
@ariana23 @SalsaCookies23 @WolfFire23309
This script prevent Franklin, Trevor and Michael's pain audio disable only.
May be not for mp player and other peds.
And not make be able play pain audio for those.
The script just changes value of the memory address of disable player pain audio to 0.
Not tested When use those as player.
Those were unexpected for when making script.