env_message Created 16 years ago2008-11-04 11:00:51 UTC by D12Eminem989 D12Eminem989

Created 16 years ago2008-11-04 11:00:51 UTC by D12Eminem989 D12Eminem989

Posted 16 years ago2008-11-04 11:00:51 UTC Post #258114
Hello, I need help with the env_message feature. I cannot seem to be able to get it to work when I trigger hurt.

So what I am trying to say is when someone dies I want it to trigger env_message so it can print a message for them and only them. I have tried everything and I cannot seem to get it to work. There must be something I am doing wrong.

Could someone shed some light for me? Thanks a bunch!

Regards,
TFMaps
Posted 16 years ago2008-11-04 11:04:24 UTC Post #258115
game_text is what you're looking for.
Archie ArchieGoodbye Moonmen
Posted 16 years ago2008-11-04 11:09:21 UTC Post #258116
Whoops, I forgot to mention this is for Team fortress Classic :)
Posted 16 years ago2008-11-04 12:12:30 UTC Post #258120
TFC doesn't have game_texts?
Archie ArchieGoodbye Moonmen
Posted 16 years ago2008-11-04 14:22:06 UTC Post #258130
Nope, not that I am aware of.
Posted 16 years ago2008-11-04 14:29:20 UTC Post #258131
tfc must have game_texts... if no ur fgds are old. very old
Skals SkalsLevel Designer
Posted 16 years ago2008-11-05 01:56:45 UTC Post #258164
That must be it, you wouldn't by chance have links to the latest TFC fgd's do you?

UPDATE: I think this is the latest one correct?
http://www.half-life.deltauk.net/Files/Files_FGDs.htm
Posted 16 years ago2008-11-05 02:03:20 UTC Post #258167
I don't think so. Here, take this.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-11-05 02:14:59 UTC Post #258168
Thank you potatis, I have downloaded that and I still do not see a game_texts ent. :(
Posted 16 years ago2008-11-05 02:18:42 UTC Post #258169
Then there isn't one. I gave you the Hammer 3.4 official TFC FGD.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-11-05 04:19:22 UTC Post #258173
Alright, thanks for the latest FGD. :)
Posted 16 years ago2008-11-05 09:49:28 UTC Post #258183
that's really queer. I wonder why they would remove such an important entity.

I don't know a single person who's managed to get an env_message to work.
Archie ArchieGoodbye Moonmen
Posted 16 years ago2008-11-05 12:24:32 UTC Post #258188
Hunter: to get an env_message to work, you'll need the titles.txt file and make this "code block" segments where you refer to in the entity. I got it working multiple times.

As for the game_text, support for this entity may still be available in the TFC game dll. You could try adding the game_text fgd code into the fgd file that potatis linked to a couple posts up, then go into Hammer, place a game_text entity, set up its properties and a trigger and see if the text appears ingame.

This is the fgd code for the game_text:

@PointClass base(Targetname, Target) = game_text : "HUD Text Message"
[
	spawnflags(flags) =
	[
		1: "All Players" : 0
	]

	message(string) : "Message Text"
	x(string) : "X (0 - 1.0 = left to right) (-1 centers)" : "-1"
	y(string) : "Y (0 - 1.0 = top to bottom) (-1 centers)" : "-1"
	effect(Choices) : "Text Effect" : 0 =
	[
		0 : "Fade In/Out"
		1 : "Credits"
		2 : "Scan Out"
	]
	color(color255) : "Color1" : "100 100 100"
	color2(color255) : "Color2" : "240 110 0"
	fadein(string) : "Fade in Time (or character scan time)" : "1.5"
	fadeout(string) : "Fade Out Time" : "0.5"
	holdtime(string) : "Hold Time" : "1.2"
	fxtime(string) : "Scan time (scan effect only)" : "0.25"
	channel(choices) : "Text Channel" : 1 =
	[
		1 : "Channel 1"
		2 : "Channel 2"
		3 : "Channel 3"
		4 : "Channel 4"
	]
	master(string) : "Master"
]
Posted 16 years ago2008-11-05 12:51:00 UTC Post #258189
tfmaps do what muzz said. add that code into the fgd file and then it should work.
Skals SkalsLevel Designer
Posted 16 years ago2008-11-05 13:22:46 UTC Post #258190
Well I added that above code to the fgd file and added a func_hurt and targeted it to the game_text. There must be something I am doing wrong because its not working.

Could someone take a look for me?
http://www.megaupload.com/?d=AY5HMFOJ
Posted 16 years ago2008-11-05 14:36:44 UTC Post #258193
I can't get it to work either. Guess they (Valve) removed the entity completely. I don't understand why they did that... :/
Posted 16 years ago2008-11-05 15:56:11 UTC Post #258194
Darn, well thanks for the help guys I very much appreciate it. :)
Posted 16 years ago2008-11-05 16:40:49 UTC Post #258195
ask muzz how he made the env_messages work. that might work.
Skals SkalsLevel Designer
Posted 16 years ago2008-11-05 16:54:15 UTC Post #258197
could you have a teleport that moves the player to a room that has a message on the wall with a texture? THEN kill them?
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2008-11-05 17:54:50 UTC Post #258198
a bit impractical
Archie ArchieGoodbye Moonmen
Posted 16 years ago2008-11-05 17:57:36 UTC Post #258199
Very true, but if there's no game_text, then what other option is there?
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2008-11-05 19:20:46 UTC Post #258203
env_message.
Skals SkalsLevel Designer
Posted 16 years ago2008-11-05 20:01:59 UTC Post #258205
env_message is no option in a multiplayer map. It requires existing game files to be modified, which is mostly unacceptable.
Daubster DaubsterVault Dweller
Posted 16 years ago2008-11-05 20:27:45 UTC Post #258209
I don't know a single person who's managed to get an env_message to work.
WTF!?

Thats basic modding knowledge you spoon.
monster_urby monster_urbyGoldsourcerer
Posted 16 years ago2008-11-09 00:11:50 UTC Post #258284
does env_message have any advantage over game_text?
Jessie JessieTrans Rights <3
Posted 16 years ago2008-11-09 11:24:39 UTC Post #258293
It supports large amounts of text.
Posted 16 years ago2008-11-11 14:27:56 UTC Post #258370
I know shortbus25a shows you messages when you spawn (or die, don't know which). Decompile it and see how it was done. That's a great map by the way.
Decompilers:
WinBSPC
BSP2MAP
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-11-11 14:47:59 UTC Post #258371
decompilers. potatis potatis potatis.
Skals SkalsLevel Designer
Posted 16 years ago2008-11-12 04:24:29 UTC Post #258415
There is nothing wrong with decompiling a map unless you are copying/stealing something.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-11-14 04:45:01 UTC Post #258509
i dunno, they always screwed over the maps so much there wasn't much chance to steal anything if you wanted to for me. I only used them to find out how certain entity setups were made.
Jessie JessieTrans Rights <3
You must be logged in to post a response.