Prevent disable player pain audio 2.1
301
13
301
13
This script prevent to disable player pain audio.
How work this script
Till version 1.2
Accesses and modifies memory address of disable player pain audio with a pointer.
The pointer doesn't work when player in interior or player equip some weapon.
The script will not work because can't get memory address of disable player pain audio by those.
It is thought to be more likely to occur in missions where character switches are performed at close range.
But one time be outside in unarmed, script will get the memory address and work.
Once the address got, script keep working till character switch.
May be should work most of situation except in mission.
Since 2.0
Add search by memory pattern to the address get process.
That will be able get the memory address even when player in interior and player equip some weapon.
Requirements
ScriptHookV
ScriptHookVdotNet
Installation
Copy "PreventDisablePlayerPainAudio.dll" to "scripts" folder.
Compatible GTA5 versions
1.0.2944.0
1.0.3028.0
Changelog
2.1
Added wait in failed to get address.
2.0
Bug in address get process fixed.
Removed .ini file.
1.4
Improved script speed in slow mode.
Corrected .ini file.
1.3
Added slow mode and .ini file.
1.2
Added GTA5 version 1.0.3028.0 to compatible version.
1.1
Improved script act in address get, may be reduced GTA5 crash.
How work this script
Till version 1.2
Accesses and modifies memory address of disable player pain audio with a pointer.
The pointer doesn't work when player in interior or player equip some weapon.
The script will not work because can't get memory address of disable player pain audio by those.
It is thought to be more likely to occur in missions where character switches are performed at close range.
But one time be outside in unarmed, script will get the memory address and work.
Once the address got, script keep working till character switch.
May be should work most of situation except in mission.
Since 2.0
Add search by memory pattern to the address get process.
That will be able get the memory address even when player in interior and player equip some weapon.
Requirements
ScriptHookV
ScriptHookVdotNet
Installation
Copy "PreventDisablePlayerPainAudio.dll" to "scripts" folder.
Compatible GTA5 versions
1.0.2944.0
1.0.3028.0
Changelog
2.1
Added wait in failed to get address.
2.0
Bug in address get process fixed.
Removed .ini file.
1.4
Improved script speed in slow mode.
Corrected .ini file.
1.3
Added slow mode and .ini file.
1.2
Added GTA5 version 1.0.3028.0 to compatible version.
1.1
Improved script act in address get, may be reduced GTA5 crash.
최초 업로드: 2023년 09월 25일 (월)
마지막 업로드: 9일 전
마지막 다운로드: 15시간 전
댓글 23
This script prevent to disable player pain audio.
How work this script
Till version 1.2
Accesses and modifies memory address of disable player pain audio with a pointer.
The pointer doesn't work when player in interior or player equip some weapon.
The script will not work because can't get memory address of disable player pain audio by those.
It is thought to be more likely to occur in missions where character switches are performed at close range.
But one time be outside in unarmed, script will get the memory address and work.
Once the address got, script keep working till character switch.
May be should work most of situation except in mission.
Since 2.0
Add search by memory pattern to the address get process.
That will be able get the memory address even when player in interior and player equip some weapon.
Requirements
ScriptHookV
ScriptHookVdotNet
Installation
Copy "PreventDisablePlayerPainAudio.dll" to "scripts" folder.
Compatible GTA5 versions
1.0.2944.0
1.0.3028.0
Changelog
2.1
Added wait in failed to get address.
2.0
Bug in address get process fixed.
Removed .ini file.
1.4
Improved script speed in slow mode.
Corrected .ini file.
1.3
Added slow mode and .ini file.
1.2
Added GTA5 version 1.0.3028.0 to compatible version.
1.1
Improved script act in address get, may be reduced GTA5 crash.
How work this script
Till version 1.2
Accesses and modifies memory address of disable player pain audio with a pointer.
The pointer doesn't work when player in interior or player equip some weapon.
The script will not work because can't get memory address of disable player pain audio by those.
It is thought to be more likely to occur in missions where character switches are performed at close range.
But one time be outside in unarmed, script will get the memory address and work.
Once the address got, script keep working till character switch.
May be should work most of situation except in mission.
Since 2.0
Add search by memory pattern to the address get process.
That will be able get the memory address even when player in interior and player equip some weapon.
Requirements
ScriptHookV
ScriptHookVdotNet
Installation
Copy "PreventDisablePlayerPainAudio.dll" to "scripts" folder.
Compatible GTA5 versions
1.0.2944.0
1.0.3028.0
Changelog
2.1
Added wait in failed to get address.
2.0
Bug in address get process fixed.
Removed .ini file.
1.4
Improved script speed in slow mode.
Corrected .ini file.
1.3
Added slow mode and .ini file.
1.2
Added GTA5 version 1.0.3028.0 to compatible version.
1.1
Improved script act in address get, may be reduced GTA5 crash.
최초 업로드: 2023년 09월 25일 (월)
마지막 업로드: 9일 전
마지막 다운로드: 15시간 전
This mod should PREVENT mute audio it's happen a lot in GTA IV and specially V when character lets say fall from moutain or crash a bike than he gets mute when jump over fence taking damage etc, this should prevent this situation and has nothing to do with muting them, jesus...
Can you also make one where the audio of gunshots gets disabled when there's a complete chaos going on?
@nep nep This is a very good concept! I think if you can get the pain audio to play when your either mp male or an npc model, then that would be fucking awesome! As that would improve my melee combat mod so much! I haven't tried this mod yet to know if this already is a thing or not, but if it isn't then I highly recommend you try and get that to work! it would be a fix for something we all have been wanting to see! It just would be cool to use the AI's pain audio when getting punched and stuff, as it would add more life to your characters! Just an idea, but this mod has some great potential!
@WolfFire23309 I totally agree. I just downloaded the mod, it worked first but when I changed the character it stopped working somehow. When I reloaded the script and changed the character again, then the game crashed. But if this mod gets fixed, this will be saving so much time and effort for me for changing characters when their pain sounds get disabled. This is the mod I wanted so much. I hope you can fix it easily nep nep. I count on you. Good luck :thumbs_up:
@nep nep Im agree with @WolfFire23309 and @SalsaCookies23.
please update the mod to enable pain voice of mp-male and mp-female . thank you
@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.
@vylizanimamrdi
When it will crash? And what did do that time ?
Please tell me that for I try fix.
@nep nep Oh ok, well I like what you're doing nonetheless! I hope you can find a way to work the audio files so that we can fix some of Rockstars mistakes. Maybe while you're fixing the main player protagonist characters you can check the files that correlate for when you the player switches models in game. It would be cool if someone could figure that issue out and make it into a mod as I would gladly make a video using it!
@nep nep YouTubeで確認した限り日本語話すようですから日本語で伝えること書きますね。まず、pain系の音声が全部出なくてもいい(落下の声とかもなくていい)ならDISABLE_PED_PAIN_AUDIOってネイティブ関数あるので、それ使えばアップデートの心配しなくてもよくなるはず。次に、このスクリプトはv1.0.2944.0で動かす限りはクラッシュしないけどアプデでexeの構造は変わります。メモリの内容を直接読み書きするなら、固定のアドレスを使うのでなくsigとかメモリパターンとかいうメモリの中身で探して見つかったところからアドレスを抜き出すとアプデ耐性がはるかにあがりますね。exeはファイルとして置かれてる状態だと暗号化されているので、IDAとかGhidraとかで解析するなら起動した状態で(x64dbgと)Scyllaでも使ってダンプする必要があります。まあsigの作り方はやみくもにexe間の違い見るだけじゃなくて正直x64のアセンブリの動き方でも覚えたほうが近道かな…
For those who speaks English: this script does not work without a flaw, and it may crash your game if the game version is not v1.0.2944.0. I think the author is not too experienced about memory editing and we could forgive for being ignorant.
@nep nep No, actually it works for every ped you choose. If you change your ped BEFORE your head gets shot or hit, it works fine. And another thing is, when it stopped working, i pressed the reload script key of scripthookvdotnet, it worked to me actually. So the script doesn't only work for main characters but other characters too.
@nep nep 最新版以外のexe持ってないけど危険すぎる野良のアップロード物に手を出さずに他のバージョン試したいなら、RTA用のProject 1.27があります。Steam版を持ってるならDepotDownloaderでダウンロードする手も一応使えますね。
@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系音声を有効にすることはできませんでした。
色々と試行錯誤した末、ネイティブ関数での対処は限界を感じたので手探りでメモリ操作に手を出しましたが、やっぱり自分には難度が高すぎたっぽいみたいですね…
@nep nep ああ、pain系の音声が出る状況ならいつでも出るようにしたいのであって無効化したいのじゃなかったんですね。だからメモリ書き換えしてたと。まだDISABLE_PED_PAIN_AUDIOの機械語の中身は見てないけどどうせpain系の音声を出させないフラグ立てるだけのはずやから、これじゃpain系の音声が出ないのを防ぐのは無理でしょうね(無敵フラグは対応するのが1つあれば防げるってののに似てるでしょう)。
For those who speaks English: considering what the author said in the latest comment, this scripts aims to make sure the player ped/character uses pain audio speeches and tries to prevent the player ped from not saying them, not prevent them from using pain speeches. I thought what this script is for wrong until now though.
Thanks for the new update, the script works flawless and I haven't experienced any game crashes until now. Nice work ! I'm lovin it :D
@User555 Let nep nep have a 5 star rating at this mod bruh :D You gave 0.5 stars It's working great
@User555 bruh :d
@nep nep Do you still have v1.1 of the mod ?
@nep nep I'm using the 1.0.2944 still so I need the 1.1 version
@SalsaCookies23
OK. re-released.
@nep nep OMG Thank you so much !! I really appreciate it :D Love you man!!