Product Chat / how to get RED FOG DEATH to stay but NO HEARTBEAT sound....easy way

Author
Message
UNIRD12B
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 8th Apr 2020 23:03 Edited at: 8th Apr 2020 23:05
Ok ,
i figured out how to do it...
- go into the Audiobank folder
- find the folder called voices/player

-make a new subfolder in the voices folder and call it player2

- copy all the files in player folder to player2 folder

- now , replace the file heartbeat.wav in player2 folder
with a copy of that file that has been set to 0 volume. DONT change its name !
( if you need one i have it done )

now,,,when you do a level that you want the heartbeat sound in
go into player properties / soundset and choose the hearbeat sound in player folder

when you want NO heartbeat sound choose the heartbeat.wav in player2 folder

it works , as I have tried it a few times to verify.

UNIRD12B
Let\'s actually make something happen with this one !

Attachments

Login to view attachments
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 8th Apr 2020 23:38
Lol. Sorry, sure this works, but seems a very odd work-around. But hey if it works, it works! I'm sure you could just change the code to stop the effect playing until you are really low on health. Or of course stop it altogether which would be easier still You could just rename the original sound to another name Updates of course would always override that though, so a new folder is the best way to prevent that with this method.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 9th Apr 2020 01:53 Edited at: 9th Apr 2020 01:53
Posted this issue on Github 2 years ago:

Player - Disable Blood Effects / Hurt Sounds
https://github.com/TheGameCreators/GameGuruRepo/issues/107

Related:

Blood Effects Issue #632
https://github.com/TheGameCreators/GameGuruRepo/issues/632
Store Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 9th Apr 2020 04:28
Yes, pretty easy adjustments are possible.
Makes me think... it would be better actually to have this feature
removed from GPC, and to supply a small script that can be used
wherever// whenever one wishes- with custom styles.

But I'm sure-- someone once voted to have this supplied as a stock
thing, and now it's there!
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 9th Apr 2020 06:36
Didn't Lee add lua commands to turn off the death sounds/decals a while back.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Apr 2020 12:15 Edited at: 9th Apr 2020 12:17
This was to disable " Just the heartbeat sound for ONE level only "
Otherwise just replacing the "heartbeat.wav" with a silent one would have been the easiest way.
Hence UNIRD12B's clever jiggery Pokery which I thought was quite cool
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 9th Apr 2020 14:42
Synchromesh wrote: " just replacing the "heartbeat.wav" with a silent one would have been the easiest way"


That's what I did. I've always had a sound file that I named "sounds of silence" Made a copy and renamed it "heartbeat" Since the SoS wave was quite long I also shortened it up to the same length as the HB wave.
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
UNIRD12B
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 10th Apr 2020 00:23 Edited at: 10th Apr 2020 00:31
@belidos...
Quote: "Didn't Lee add lua commands to turn off the death sounds/decals a while back."

cool.....share them with the rest of us ?

@ teabone ...
I put this up quite a while back...

https://forum.game-guru.com/thread/219314

@ Flatlander ..
Quote: "That's what I did. I've always had a sound file that I named "sounds of silence" Made a copy and renamed it "heartbeat" Since the SoS wave was quite long I also shortened it up to the same length as the HB wave."

using that method you cant turn it on or off as you like , from level to level as he asked.

@ Synchr0..
Quote: "Hence UNIRD12B's clever jiggery Pokery which I thought was quite cool "

Thx Synchro...much appreciated.

UNIRD12B
Let\'s actually make something happen with this one !
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Apr 2020 18:33
@UNIRD12B. there's loads new commands now. I'm out of touch with them.

That looks like a way to at least find the needed info out. But there's loads and loads in there to sift and look through

That should allow you to change it.
All theoretical, as I haven't used either command myself.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
UNIRD12B
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 11th Apr 2020 02:18 Edited at: 11th Apr 2020 02:19
Hi ,
those have been there for a long time.
and need to be surrounded by supplemental code to do the job correctly...
---such code that no one seems to know.

IF you can figure out all the extra code also.
Then have to have 2 sets of it.
one to turn it off.
one to turn it on.

My way does seem to be a lot simpler for most game guru-ers....hehehe

UNIRD12B
Let\'s actually make something happen with this one !
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 11th Apr 2020 20:21
If you never try, you never learn...

Simple.
I've remmed out the prompt as it isn't needed, but left it in so you can see what happens. Add that to a barrel or your preferred script objects. Obviously, save it as heartbeatnoise.lua
That stops the heartbeat as far as I can see. It only plays once when you regain some health.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
UNIRD12B
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 11th Apr 2020 20:39 Edited at: 11th Apr 2020 20:58
Thx @ Dvader ,
that seems to work well...except for the irritating BOOM !
when you restart your character.

the other way doesn't have that extra sound and once set up
is as quick to do and requires one less object in the level also.

So , does anyone know the code to stop the single HEARTBEAT on character restart ?

Thx to all for cool input.

UNIRD12B
Let\'s actually make something happen with this one !
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 11th Apr 2020 21:45 Edited at: 11th Apr 2020 22:02
Okay challenge accepted
That will do it. It will override your current controls but all I have added is a way to disable the sound. If you set g_hb to any value above 0 it will play the sound. You also don't need an object to use it now You can always back up your original if you are worried about overwriting it.

Edit - Changed the heartbeat script to allow you to re-enable the heartbeat when within 1000 units of the attached object. Obviously you can increase or decrease that. Basic but allows both on the same level if you needed that
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.

Attachments

Login to view attachments
UNIRD12B
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 12th Apr 2020 00:37
@Dvader ,
well done with the script.......
the other way is still less work for many who cant code and dont wanna
add objects to hold the script also.

thx for the good result.

UNIRD12B
Let\'s actually make something happen with this one !
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 12th Apr 2020 16:00
I'm not trying to mock your solution above, just trying to help with a more elegant way. You don't need to add an object with the gameplayercontrol script, you just run the game. It will stop the heart beat sound completely. So literally one file to copy into your scriptbank folder and your done

The second script is optional, in case you want the heartbeat back at any point and is only one example of how to use it. this one you do have to add to an object, but if you don't want to add one, just use one that is already in the level.

Good luck with your project whichever method you chose to use
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
UNIRD12B
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 12th Apr 2020 16:46
@Dvader
I never felt you were mocking me at all.
For me , we were just discussing 2 different methods to achieve a goal--
benefits and drawbacks of each..no more no less.
keep up your helpfulness and alternative ideas...THAT
brings us all greater growth.

Thx

UNIRD12B
Let\'s actually make something happen with this one !
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 13th Apr 2020 21:34
Hey no problems, it can be hard to read peoples moods here. You seemed a bit miffed from your "the other way is still less work for many who cant code and dont wanna" comment.

For me, you have to have some interest in code to want to make games. It's unavoidable, at least to get more custom stuff working.

Every person I get looking into coding for me is a plus. Really, anyone can code at a basic level. Even simple stuff can be rewarding when you get it working!
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.

Login to post a reply

Server time is: 2024-04-28 09:38:54
Your offset time is: 2024-04-28 09:38:54