View previous topic :: View next topic |
Author |
Message |
Maikl_Russia has entered the game!
Joined: 18 Jul 2005 Location: RU
|
Posted: Mon Jan 18, 2016 7:39 pm Post subject: [DEH] Do not print empty messages from [STRINGS] |
|
|
Well, if we clear one message in [STRINGS] section of DEHACKED zdaemon will print default strings and ignore all other changes after first empty string:
Code: | [STRINGS]
GOTPLASMA = PLASMA # in game will print: PLASMA
GOTLAUNCHER = "" # in game will print: ""
GOTROCKBOX = # in game will print: Picked up a box of rockets.
GOTBFG9000 = BFG # in game will print: You got the BFG9000! Oh, yes. |
In some cases it is necessary not to print certain messages at all.
For example, in my "survival instagib" project the console is filled to ~90% of annoying messages: <Picked up a health bonus.> and <Picked up an armor bonus.>. |
|
Back to top |
|
|
Krawa There is a limit
Joined: 23 Nov 2008 Location: #SDA
|
Posted: Mon Jul 30, 2018 2:44 pm Post subject: |
|
|
Clear strings to nothing with \0. That null character ends the string.
Code: | [STRINGS]
GOTCHAINGUN = \0
GOTPLASMA = PLASMA
GOTLAUNCHER = ""
GOTROCKBOX =
GOTBFG9000 = BFG |
Moved to Rejected Requests. |
|
Back to top |
|
|
|