Source SDK

Source SDK

pifmgr.dll May 9, 2022 @ 7:43pm
what entity that displays a text in game again?
i forgot the name of the entity that shows a text in game like the hints in hl2 ep2 when you tried to go off the supposed path and there's a text saying "how did you get here?", i'm too lazy to decompile the map and find it
< >
Showing 1-4 of 4 comments
pifmgr.dll May 9, 2022 @ 7:50pm 
nevermind, found it, it was a point_message
Sebbl0r May 9, 2022 @ 8:41pm 
Hi,
it's possible that you're looking for game_text or env_hudhint and not point_message.

Here are a few excerpts from the valve_developer site:


https://developer.valvesoftware.com/wiki/Point_message

point_message is a point entity available in all Source Source games. It displays a text message in the world, at its origin.



https://developer.valvesoftware.com/wiki/Game_text

game_text is a point entity available in all Source Source games. It displays text on players' screens.

EDIT: There is a bug that causes the game_text to disappear for values ​​> __KeyValue FromString("x", "0.7") @csgo

If you are creating a mod with its own files and scripts, it's recommended to use the aforementioned env_message entity, which uses the titles.txt script for text parameters instead of keyvalues, allowing the text to be changed without having to recompile any maps.


https://developer.valvesoftware.com/wiki/Env_message

env_message is a point entity available in all Source Source games. It draws a text message on player HUDs, predefined in the /scripts/titles.txt file.



https://developer.valvesoftware.com/wiki/Env_hudhint

env_hudhint is a point entity available in all Source Source games. It is used to control the display of HUD hints, which show the player what key is bound to a particular command.


I had to search for a bit: here are some useful videos:
https://www.youtube.com/watch?v=RzsQ4F-lJ98
https://www.youtube.com/watch?v=BZB5gY7u2nA
Last edited by Sebbl0r; May 9, 2022 @ 8:56pm
pifmgr.dll May 9, 2022 @ 9:20pm 
Originally posted by Sebbl0r:
Hi,
it's possible that you're looking for game_text or env_hudhint and not point_message.

Here are a few excerpts from the valve_developer site:


https://developer.valvesoftware.com/wiki/Point_message

point_message is a point entity available in all Source Source games. It displays a text message in the world, at its origin.



https://developer.valvesoftware.com/wiki/Game_text

game_text is a point entity available in all Source Source games. It displays text on players' screens.

EDIT: There is a bug that causes the game_text to disappear for values ​​> __KeyValue FromString("x", "0.7") @csgo

If you are creating a mod with its own files and scripts, it's recommended to use the aforementioned env_message entity, which uses the titles.txt script for text parameters instead of keyvalues, allowing the text to be changed without having to recompile any maps.


https://developer.valvesoftware.com/wiki/Env_message

env_message is a point entity available in all Source Source games. It draws a text message on player HUDs, predefined in the /scripts/titles.txt file.



https://developer.valvesoftware.com/wiki/Env_hudhint

env_hudhint is a point entity available in all Source Source games. It is used to control the display of HUD hints, which show the player what key is bound to a particular command.


I had to search for a bit: here are some useful videos:
https://www.youtube.com/watch?v=RzsQ4F-lJ98
https://www.youtube.com/watch?v=BZB5gY7u2nA
actually i was meant to find the point_message entity but thanks i guess
Sebbl0r May 9, 2022 @ 9:52pm 
Oh ok, when I read "hints" in your example, I had the game_text in mind right away.

Sry for the unnecessary post and have a nice week :)
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: May 9, 2022 @ 7:43pm
Posts: 4