Auto-Loading Maps

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Auto-Loading Maps

Post by m4rine »

How do you get auto-loading maps like in the original? Like where you load one map like the 'a' part of the campaign and when you reach a certain point it loads the 'b' map. But it doesn't go to the main screen - just straight to a loading screen.

Would this be done by creating a trigger and when it is activated (in my case someone opening a door) run something in the script like the statement

Code: Select all

exec maps/mapname.bsp
???

Would that be the right method?
"We must become the change we want to see in the world" (Mahatma Gandhi)
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

in radiant with a non model/entity selected press N
then you'll see all different options you can enter

there's one for i think transition, just use that as it states :D
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Have a look at the global/missioncomplete.scr two types of transition bsp transition and leveltranision
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

ok heres a good question,,kina pertaining to same line maybe,,lets say i was running a multiplayer server,,and i wanted to load dm/MP_Bahnhof_DM ,,ok run like 4 other maps and then come back and reload same map dm/MP_Bahnhof_DM except this time with different script,,,would there be anyway at the end of the script to say maybe set a time limit for each map ,,example 10 minutes,,and then have script call for next script to load and load same bsp file with different script that may have different spawn points or mods?
<TWZ>Gold <<mohha freak
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

yes you could. all you would have to do is renaim the map to something similar. like map_1 and map_2. make it all appear the same in game, just technicaly its different. that make any sense?
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

yeah makes sense but if i renamed the map wouldnt ppl have to download the newly renamed map be4 they could connect to it,,,this is what im trying to avoid??
<TWZ>Gold<<mohha freak
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

yes that would require a download . On thing you could do is have it all in one script and maybe have the script choose actions randomly maybe . I don't know but is it possible to set a cvar in the script that keeps it's value so the next time you play the map the script will choose other actions ? I mean does the server keep a cvar value map to map ?
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

well, if u put the map in the same pk3 people wouldnt know they were getting two maps :D i know it doesnt solve your problem, i just said it so if there wasnt a solution, you could do that. to bad u cant leave cookie type thing to see if they played the map already.
Post Reply