View Full Version : env_globals
Sohood
10-01-2008, 02:51 PM
Anyone have any secrets or hints on reseting env_globals on nextmap change?
I'm in the process of re-creating charlie using ents. I'm making a charlie that switches spawns back and forth at either a map win or timer. I have it all done but I'm having issues with reseting the env_globals. When a map change occurs, the globals are still on when you leave to next map. When you come back to that same map with the globals they are still on. I need a way where I can reset these globals at the beginning of map.
I have used a trigger_auto to reset the globals. It resets 2 of them but not the other 2 as I do not know why.
If you want to do the work on remaking Charlie, great idea, however it would be great if somone in the community wanted to fix Overlord. Man that was a GREAT map, but it hasn't worked since like 1.3 I think. Beta 1.3 I mean...well to answer your question, I can't however I hope that diamond-optic can or one of the other mappers.
Cheers!
Ok, just looking at the code for my avalanche switch, same kinda idea you have there. Which env_variables are you looking at? Let me know, I am going to add in the avalanche ent file here, you can browse it.
Cheers!
PS This file is in *NIX format, so you need to use a program that reads \cr as being a \n or newline, open it with doc or wordpad not textpad.
Sohood
10-03-2008, 04:16 PM
Yes. I have already made an avalanche_switch like this one long time ago. This concept is easy because you are only using 1 global. And it doesnt matter if the trigger is on or off, cuz you either start top or bottom. But when you are facing with multiple triggers its a little bit more troubling.
The "overlord" map is the greatest of all time beach maps, yes i agree with you 100 percent. Good buddy of mine tried to decompile the map and fix all the errors but there were so many and impossible to compile that he gave up on. So I took the same theory as overlord and made another version which i call dod_charlie2. I divided charlie into 2 parts just like overlord. I revised the spawn points and added another objective on the beach.
Allies storm the beach and capture the beach flag which is located on the other side of the shingles. I added some func_walls and env_model to the beach, make a little more interest, along with spawn protect for each side. YOu have to capture the beach before moving up. Once captured, win that part of the map and new spawns are revised and capture the remaining 4 objectives. I use 2 globals in this map.
WARDOG
10-07-2008, 07:05 PM
I think Schwetz has a good example of team switching, look at the ents it uses.
Env_globals are used to change things across levels, in another map for instance, it's usually used for single player maps that move to anothermap storyline, look at dod_schwetz this is what you ar trying to do, it has the right ents..
WARDOG
10-07-2008, 11:48 PM
If you want to do the work on remaking Charlie, great idea, however it would be great if somone in the community wanted to fix Overlord. Man that was a GREAT map, but it hasn't worked since like 1.3 I think. Beta 1.3 I mean...well to answer your question, I can't however I hope that diamond-optic can or one of the other mappers.
Cheers!
The problem with Overlord after looking at it, is that it goes over the 512 precache limit, so it crashes. Tried taking some, sprites, models out, but not quite there yet. It may be unfixable without a remake, because of the engine, which would take some time.
I think dog or dog1 is a remake of it to some extent.
Sohood
10-08-2008, 10:29 PM
Thanks dog.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.