For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

Concept - Automatic Map Checkpoints

The section related to UnrealScript and modding. This board is for coders to discuss and exchange experiences or ask questions.
Post Reply
User avatar
LOL_PEANUTS
OldUnreal Member
Posts: 11
Joined: Wed Mar 14, 2007 7:17 pm

Concept - Automatic Map Checkpoints

Post by LOL_PEANUTS »

Alrighty, I've had this multiplayer-oriented idea for a while.

My home is Shivaxi's Da Noodle server, he runs JcoopZ. Often times, on large maps, especially those with dramatic long walks at the beginning, like the Sunspire or Bluff, us admins find ourselves summoning a JZplayerstart after the walk, or when we get closer to the end of the level, for the sake of good gameplay.

I know next to nothing of UScript, but nevertheless I was wondering if it would be possible to make a new "checkpoint" trigger subclass actor. The only changes from a normal trigger are as follows. A manually assignable value in its properties, let's call it "LevelCompleteness," would exist. This value would reflect how far into the map trigger would be, higher numbers being further in the level, lower numbers being closer to the original start. The other difference is that When players came in contact with the trigger, it would spawn a new jzplayerstart, and it would destroy other checkpoint triggers with lower "LevelCompleteness" values, so as those couldn't be activated in the future, setting the jzplayerstart back closer to the beginning, a most undesirable thing.
User avatar
Shivaxi
OldUnreal Member
Posts: 2232
Joined: Wed Mar 08, 2006 4:43 pm

Re: Concept - Automatic Map Checkpoints

Post by Shivaxi »

wow....good idea lol....and thanx too :P

i may be wrong...but didn't Cheese have somethin' like this in his server? :-?
Image  Image
User avatar
Bane
OldUnreal Member
Posts: 493
Joined: Sun Mar 03, 2002 6:32 pm

Re: Concept - Automatic Map Checkpoints

Post by Bane »

You'd be putting that trigger into the map itself? Then yeah, you'd do it exactly like you said. Add the triggers to the map. Use a variable to keep track of the order. An int would work best. set the first checkpoint you could encounter to 1, 2nd to 2, etc. When the trigger is triggered, check that trigger's Completeness var to the global version that keeps track of what has been done already. You can use the class's default as a static variable, which will easily let you keep track of what has been triggered.
e.g.

Code: Select all

if (LevelCompleteness > default.LevelCompleteness)
       {SpawnStarts(); default.LevelCompleteness = LevelCompleteness;}
You should be able to spawn the starts using DynamicLoadObject to avoid needing a reference to JCoopZ1. It's obduscated so you can't make new packages that are dependent on it.

Doing it like that should work.
Author of Hide and Seek mod, and the NALIBALL mod

Hide and Seek can be downloaded from:
http://HideNSeek.5u.com
jackrabbit

Re: Concept - Automatic Map Checkpoints

Post by jackrabbit »

could you add the triggers without creating a version mismatch on the original maps? If so, how is it possible?
User avatar
Bane
OldUnreal Member
Posts: 493
Joined: Sun Mar 03, 2002 6:32 pm

Re: Concept - Automatic Map Checkpoints

Post by Bane »

erm, oh, I thought he was doing it with custom maps. It'd be possible to do it by summoning them at the map start from a config file. I did something like that with HideNSeek. It spawns a bunch of new playerstarts all over the map at pre-set locations. It's a real pain in the ass to set up though :P.

You should probably take a look at HideNSeek to see how I did it. I could send you the source file for PSManager if you want. It was a huge pain to set it all up, and it'd probably be too troublesome to explain it here. I basically have a config'd list of mapnames, each corresponding to a section of playerstarts. On each map, it finds the current mapname, then goes through the list of playerstart locations and spawns them all.

Another option, if you can add new commands, would be to make a SummonAt command for the triggers, then make a text file containing all the desired locations and LevelCompleteness and have an admin exec that. Either way, it won't be fun :P
Author of Hide and Seek mod, and the NALIBALL mod

Hide and Seek can be downloaded from:
http://HideNSeek.5u.com
User avatar
TCP_Wolf
Administrator
Posts: 1078
Joined: Sun Mar 03, 2002 12:04 pm
Contact:

Re: Concept - Automatic Map Checkpoints

Post by TCP_Wolf »

You should probably take a look at HideNSeek to see how I did it. I could send you the source file for PSManager if you want. It was a huge pain to set it all up, and it'd probably be too troublesome to explain it here. I basically have a config'd list of mapnames, each corresponding to a section of playerstarts. On each map, it finds the current mapname, then goes through the list of playerstart locations and spawns them all.
UTF-Domination works the same, ini file contains location of the Domination points. Works like a charm, but is not completely easy to setup the first time....
-=]HONESTY PAYS[=-
User avatar
LOL_PEANUTS
OldUnreal Member
Posts: 11
Joined: Wed Mar 14, 2007 7:17 pm

Re: Concept - Automatic Map Checkpoints

Post by LOL_PEANUTS »

It turns out Cheese was working on this before I suggested it.

Uber-Coop now has fully functional checkpoints, and might I add the server is far more fun to play now.
User avatar
Shivaxi
OldUnreal Member
Posts: 2232
Joined: Wed Mar 08, 2006 4:43 pm

Re: Concept - Automatic Map Checkpoints

Post by Shivaxi »

well ill see if Cheese will gimme his code for it :P
Image  Image
User avatar
deathpax
OldUnreal Member
Posts: 21
Joined: Mon Apr 30, 2007 8:38 pm

Re: Concept - Automatic Map Checkpoints

Post by deathpax »

My server also has had a checkpoint system working for quite a while now
Post Reply

Return to “UScript Board”