Scripts / If you want disable the "RED DEATH "code.......try this.....HOPEFULLY

Author
Message
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 17:07 Edited at: 8th Feb 2018 01:40
hi guys ,
if you want to stop the effect of red screen when getting injured,
go on to the SCRIPTBANK / gameplayercontrol.lua

and find these lines of code and just comment it out as in the example below and save it
and overwrite it.
then restart the editor and then play a map with entities that can damage you and see if it works for you.



or now,,,TRY THIS METHOD ALSO



to make the second method work...just add that script to a triggerzone and place the playerstart over it
then try a level in game mode.

I just added a line of code to an existing script to get rid of the heartbeat also..woohoo

Please let me know if it works fully and if it works for killing that heartbeat sound also
as I don't have speakers at work.

P.S. yessss...it does seem to kill the heart beat sound also.. either way...wooohoooo

Thx

UNIRD12B
Let\'s actually make something happen with this one !
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 7th Feb 2018 17:08
FYI Lua supports blockquotes in this fashion:
--[[
blah blah blah
blah blah blah
blah blah blah?
]]--
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 17:20
Ok BAG ,
so your saying using...

--[[.............................]]--

and putting the suggested code between that will have the same effect on the desired code range ?

Very cool then,,,...I will surely try to remember that trick for next time.

Thx

UNIRD12B
Let\'s actually make something happen with this one !
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Feb 2018 17:29 Edited at: 7th Feb 2018 20:38
or you could just go into the settings.fx and put // in front of the line that controls it (can't remember the exact line at the moment) the way it's been designed to be disabled

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.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 17:42 Edited at: 7th Feb 2018 17:58
Quote: " the way it's been designed to be disabled "


or rather,,,ONE WAY ....its been designed to be disabled....

More than one way to do many things ( As B.A.G so graciously showed me) and
just because we are used to one way doesn't mean
there are not others. some maybe even...better.....
at least for those with an open , flexible and non-opinionated mind.

I was looking for a more visible , direct code way of doing it so I can see the code that is being affected
and decide what EXACTLY is being cut out.....the red death thingy...or.....the Heart beat thingy or,,,,BOTH..
this way I see the exposed code for both.

P.S. Belidos....if we stuck with " the way its been designed" philosophy in Game Guru
you ..especially should know where the progress of the engine would be.........DEAD !!

thx again for pointing out the other possible way of doing it tho, much appreciated.

UNIRD12B
Let\'s actually make something happen with this one !
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Feb 2018 17:50
Quote: "the way its been designed"


LOL

Gameguru is literally a "finding a workaround" simulator.

But it's on a good way.
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 17:58 Edited at: 7th Feb 2018 18:01
EXACTLY Duchenkuke ,
you put it so succinctly ...........fully agree.
Which is why I'm so amazed at the number of talented and helpful
and kind people that try to help and teach and encourage others here to expand
the knowledge base and not just jump on small things that might differ from
the known and discovered realms of understanding.

Go Game Guru Go...

UNIRD12B
Let\'s actually make something happen with this one !
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 7th Feb 2018 18:26 Edited at: 7th Feb 2018 18:27
Definitely a cool way of disabling it rather than the shader as this actually kills the sound as well instead of having to replace the sound effect..

Would it be possible just to have a Nored.lua you could just attach to a bin or something ..
That would be better still Save all that editing each time we get updates ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 18:37 Edited at: 7th Feb 2018 19:14
Thank you synchromesh ,
I'll actually look a lil closer at it now that I've discovered where the code is hidden ,
but , i'm sure AmenMoses could have it running in about 3 shakes of a lambs tail.

IF I was in the GITHUB thing...( listening AmenMoses ? ) I would suggest just going into

gameplayercontrol.lua

and just permanently deleting those lines of code so they would no longer have to be disable
in any manner or by any means. Then in the update they would be gone.
anyone wanting some kind of effect similar to that could just make up a small .Lua
script to enable what they personally need , as they like it.


Thx

UNIRD12B
Let\'s actually make something happen with this one !
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Feb 2018 19:12
Can't you just turn it off from the player start marker properties? Or is that something different.
Been there, done that, got all the T-Shirts!
PM
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 19:17 Edited at: 7th Feb 2018 19:31
Hi A.M.

Quote: " player start marker properties"


I'm pretty sure that is different effects.
like blood splatters and similar stuff.


Thx

UNIRD12B
Let\'s actually make something happen with this one !
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Feb 2018 19:22 Edited at: 7th Feb 2018 20:38
Quote: "LOL

Gameguru is literally a "finding a workaround" simulator.

But it's on a good way."


It's not a workaround though, it's a line in the shader put there specifically to turn on and off the red death effect

Edit: I mean in the settings.fx file not he actual shader, it's an actual setting not a code you change

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.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 19:41 Edited at: 7th Feb 2018 20:01
Belidos ,
you totally missed the points made above and WHY it was done this way...

Quote: "It's not a workaround though"


Quote: "Definitely a cool way of disabling it rather than the shader as this actually kills the sound as well instead of having to replace the sound effect.."


THAT is the main reason for this method..AS I STATED in MY FIRST POST ABOVE....BUT...
I'm sure.....YOU...will have some kind of response to that also....................

thx

UNIRD12B
Let\'s actually make something happen with this one !
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Feb 2018 19:51
I am actually searching for a way to have the RED DEATH screen in another color !

Is that possible ?
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 7th Feb 2018 19:52
Quote: "Can't you just turn it off from the player start marker properties? Or is that something different."

No that literally is the blood splatter when you kill ...

Removing the \\ only works when prebens test shaders are enabled as he put that one in and it doesn't work else
Hence thinking the " nored.lua " would be perfect ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Feb 2018 20:40
Quote: "Removing the \\ only works when prebens test shaders are enabled as he put that one in and it doesn't work else "


That one was done by preben, but was officially released with the last live version, so should work with or without test shaders.

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.

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: 7th Feb 2018 22:04 Edited at: 7th Feb 2018 22:05
Quote: "so should work with or without test shaders."

It didn't a few days ago .. Perhaps its different in the DX11 and not integrated yet ?
Don't take my word for it though just in case ... Give it a try ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 7th Feb 2018 22:23 Edited at: 7th Feb 2018 22:25
Oh I found this ... Just attach it to an entity ..
No idea where I got it and ironically it looks simple.
The only person ever to get all his work done by "Friday" was Robinson Crusoe..

Attachments

Login to view attachments
PM
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 7th Feb 2018 23:22
Wow synchromesh ,
Now,,,,THAT , is the way to respond and be helpful.....
THAT was the specific line of code I was looking for,,,wow ,
Thank you so much....now I can add that line to a script I just made
And kill 2 birds with one stone.

Thxxxxxxxxx

Unird12b
Let\'s actually make something happen with this one !
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 8th Feb 2018 00:29 Edited at: 8th Feb 2018 00:52
Quote: "now I can add that line to a script I just made
And kill 2 birds with one stone."

But does it kill the sound ?
If not can anyone add the lines that do ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 8th Feb 2018 01:33
Hi Synchromesh ,
I FOUND IT and IT WORKS....
Just add this line to that code you had and no heart beat till you die,,,,then ONE and dead.

SetGamePlayerControlHeartbeatTimeStamp(0)

I added both those line in to a script I gave to Duchenkuke..to change the redscreen to black or dark screen




thank for you great info and ideas...

UNIRD12B
Let\'s actually make something happen with this one !
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 8th Feb 2018 02:05
Excellent thanks ...
That's so much easier than messing with the shaders and editing SFX
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 8th Feb 2018 02:17
hey Synchromesh ,
if you try it , could you please let me know it works for you also.

Thx

and thx again for helping point me in the right direction,,,

UNIRD12B
Let\'s actually make something happen with this one !
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 8th Feb 2018 02:29
Moved to scripts ...
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Feb 2018 06:37 Edited at: 8th Feb 2018 06:39
Good find. It certainly is usefull to be able to turn it on and off at will via luau. I can't see syncs script as I'm on my phone, but what I would recommend doing if putting it in a script is to add destroy (e) at the end. That way it turnshould it off and doesn't keep running over and over. It should help performance, not a lot but every litthe helps.

I'd recommend that for any script that only needs to run once, everyone a script loops that isn't needed it uses a tiny amount of resources, and it all soon builds up.

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.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 8th Feb 2018 15:50
Hi Belidos ,
I'm NOT 100% sure but , I THINK it would have to loop
in order to be able to get the latest state of the health , first off
to detect WHEN health goes to 80 or lower and then later
once health goes to zero in order to go back to the original
brightness settings as they were at start of level.
I could be way off in my thinking , but , was only using basic
reasoning to work thru the actions of the script since there are at least 3 states to analyse
1- start and health above 80---LOOP 1
2- health hits 80 or lower but above zero still----LOOP 2
3- health hits zero and player dies...so Brightness gets reset---LOOP 3


If a Destroy(e) was added...would not the second and third steps be nullifed.
or would it repeat anyways remembering the last health levels ..,,sorry...NOT a Lua guy at all.

Am I reasoning this wrong?

Thx

UNIRD12B
Let\'s actually make something happen with this one !
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jan 2019 17:21
As far as i know they're toggles, 0 off 1 on.

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.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 22nd Jan 2019 04:02
Well glad it's still active.

Hey anyone? Belidos? I tried this method at least the one where you set a dynamic crate in the map (always active to be sure)

with the lua script attached, but not quite working for me. I tried destroy entity and without. The speakers buzz and the scene seems to ?? be fighting showing red to normal- back and forth? Anyone actually test it- any suggestions? I've looked all over for the settings.fx file you mentioned- the other method you described. Where? Help!
PM

Login to post a reply

Server time is: 2024-12-22 14:17:59
Your offset time is: 2024-12-22 14:17:59