Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: zyxstand on August 14, 2007, 04:38:56 pm

Title: New Game Mode: Ultimate Survival
Post by: zyxstand on August 14, 2007, 04:38:56 pm
Ultimate Survival
[/size]

The goal: to survive

This game mode is broken up into levels.  The more levels you survive the more points you gain.  When you have been eliminated, you're out for the level, but you'll be placed back in when the next level starts.
The best part is that it's extremely easy for someone to make a new level and even easier for server-hosts to add these levels to their current ones.
Use /reload to reload the levels.txt file - no need to bring down the whole server!  Use /remove to take eliminate yourself.

Please read the ReadMe.txt if you want to host a server to learn what settings to use.  The only map to be used is the survive.pms map - levels are designed to be compatible with only this map.

To create your own levels, open the zyx.pas and read how I have my levels setup.  Make sure not to use existing procedure names.
Use timer := x; to set the time (in seconds) to run your level.  Set X to -1 to turn off the timer function - you must set timer := 0; when you want the script to go to the next level.
Always run a check to make sure the script is still in your level:
Code: [Select]
while (timer > 2) and (LevelList[curlevel - 1] = 'zyx3') doThis is the main loop in the level 'zyx3'.

When you use CreateBullet, set the player ID to 1 (spectating bot) - all weapons do 0 damage but if the ID is set to 1 then a hit player will be automatically removed.  You may manually remove a player using the RP(ID) function in Survival.pas and you may manually bring back a player using the BBP(ID) function in Survival.pas.  You should put all your levels into one .pas file.  A level currently lasts about 35 seconds on average.  People don't want to have to wait too long when they're out.  Also note that when a player somehow happened to catch a weapon, the weapon is immediately removed!

PLEASE test levels for ANY bugs before publishing them.  To publish your levels, use the following format:

Author:  zyxstand
Number of Levels:  5
Level Names:  zyx1, zyx2, zyx3, zyx4, zyx5
Description:  Simple knives flying around.

As you can see from the zyx.pas file, a level can be as short as a total of 12 lines (my highest has a total of only 18)!  Do not limit yourself to making it be knives killing people.  You can be as creative as you want.  However, I believe you might get errors if you try to run a threaded function within your threaded function (all levels are loaded threaded).
PM me your level so I can verify it and add it up here!

The attached image has some useful info on the map.

Download (http://forums.soldat.pl/index.php?action=dlattach;topic=18804.0;id=9383)
- Please read the "Readme Survival.txt" file! -
updated 6/15/07 8:14pm EST
Map modified
/reload modified
Displays winner


EDIT 8/14/07  8:03pm EST:
made a minor change in Survival.pas
Title: Re: New Game Mode: Ultimate Survival
Post by: XfalconX on August 14, 2007, 04:40:05 pm
Lol sounds pretty fun. INFIN KNIVES!!!  [retard]
Title: Re: New Game Mode: Ultimate Survival
Post by: DorkeyDear on August 14, 2007, 05:31:01 pm
:D already released it huh? Sweet!
Title: Re: New Game Mode: Ultimate Survival
Post by: Tosty on August 14, 2007, 07:07:09 pm
wont let me down load keeps sayin 'You are not allowed to access this section'
Title: Re: New Game Mode: Ultimate Survival
Post by: zyxstand on August 14, 2007, 07:27:48 pm
wont let me down load keeps sayin 'You are not allowed to access this section'

are you sure?  try again!  Which link do you use?  The bid Download link or the attachment (they should be the same)?
Title: Re: New Game Mode: Ultimate Survival
Post by: Tosty on August 14, 2007, 10:13:33 pm
ok its working now
Title: Re: New Game Mode: Ultimate Survival
Post by: miketh2005 on August 15, 2007, 01:17:21 pm
I don't unerstand I have the script on right now, I join and it  puts me in a box, do I have to wait for more players? after more come then what?

Date Posted: August 15, 2007, 02:14:05 PM
the bot always say Die! NaMe and then I restarted and I'm out in the open this time but there are no lvls going on
Title: Re: New Game Mode: Ultimate Survival
Post by: zyxstand on August 15, 2007, 07:22:05 pm
Hey miketh, I had a ReadMe in the scripts\Ultimate Survival\ folder which I guess you didn't read because it wasn't there so obvious.  Download the newest version and read the ReadMe Survival.txt file and change your settings to those indicated.  These settings are there for good reasons!

updated 6/15/07 8:14pm EST
Map modified
/reload modified
Displays winner
Title: Re: New Game Mode: Ultimate Survival
Post by: miketh2005 on August 18, 2007, 02:08:59 pm
Actually I did read it with all the settings, it's in DM and everything dude

Date Posted: August 17, 2007, 12:21:03 PM
can someone tell me whats going on? the levels don't start the bot doesn't join on his own and each time a player joins they go to the box and /reload doesn't work!
Title: Re: New Game Mode: Ultimate Survival
Post by: Xxypher on August 18, 2007, 02:22:37 pm
Anyone have a server up?
Title: Re: New Game Mode: Ultimate Survival
Post by: miketh2005 on August 18, 2007, 03:08:42 pm
I do but the script doesn't work!
Server Name: !Elite-NS-Ultimate Surival
Max Players: 12
Server IP: 72.232.225.68 (server3.enesce.com)
Port: 23110
Title: Re: New Game Mode: Ultimate Survival
Post by: Ttil_Np.csWoW on August 18, 2007, 04:33:21 pm
I do but the script doesn't work!
Server Name: !Elite-NS-Ultimate Surival
Max Players: 12
Server IP: 72.232.225.68 (server3.enesce.com)
Port: 23110

Noooooo.... you killed the race server for a script that doesn't work!  :'(

P.S- cool script
Title: Re: New Game Mode: Ultimate Survival
Post by: Coolio on August 18, 2007, 04:42:41 pm
I do but the script doesn't work!
Server Name: !Elite-NS-Ultimate Surival
Max Players: 12
Server IP: 72.232.225.68 (server3.enesce.com)
Port: 23110

Holy already? I gotta try this sometime.
Title: Re: New Game Mode: Ultimate Survival
Post by: Xxypher on August 18, 2007, 05:11:07 pm
Ima get on riiiiiiiiiiight now.
Title: Re: New Game Mode: Ultimate Survival
Post by: miketh2005 on August 18, 2007, 05:23:22 pm
why would you get on if the script no work? All it could be is a chat room
Title: Re: New Game Mode: Ultimate Survival
Post by: Xxypher on August 18, 2007, 05:48:45 pm
Well... What in particular is the reason it wont work?
Title: Re: New Game Mode: Ultimate Survival
Post by: Ttil_Np.csWoW on August 18, 2007, 05:52:13 pm
u apear in the little box and nothing happens
Title: Re: New Game Mode: Ultimate Survival
Post by: Xxypher on August 18, 2007, 05:56:36 pm
Ah, moveplayer malfunction?
Title: Re: New Game Mode: Ultimate Survival
Post by: miketh2005 on August 21, 2007, 03:10:23 pm
omg it doesn't work
Title: Re: New Game Mode: Ultimate Survival
Post by: zyxstand on August 24, 2007, 04:47:22 pm
omg... it works perfectly for me:
when you first join you get put into a little room.
as soon as the next level starts you get moved outside the room into the arena
You may have to WAIT 35 seconds for it to start.  If you die you get taken out.  It's really fun and it works.
Just PLEASE read the ReadMe text file it comes with - there are some important server settings to be set!
Title: Re: New Game Mode: Ultimate Survival
Post by: DorkeyDear on August 25, 2007, 09:28:24 am
You should have a count-down thing being drawn to the screen. That would be sweet!
Title: Re: New Game Mode: Ultimate Survival
Post by: zyxstand on August 25, 2007, 07:25:29 pm
you mean to those who are currently out?
that's managable...

EDIT:
nvm - some levels aren't based on timers - It is possible to display the time for only those levels that do use the timer while for the other levels it would just not show a timer.
Title: Re: New Game Mode: Ultimate Survival
Post by: Geistlort on August 28, 2007, 04:46:39 pm
thanks good mode
Title: Re: New Game Mode: Ultimate Survival
Post by: deguix on September 04, 2007, 07:02:42 pm
Hmm... this is buggy somewhat... it works at the beginning, but later on, the player might not be able to get out of the small section whenever a new lvl starts... also, I would like a more complex map + jets...
Title: Re: New Game Mode: Ultimate Survival
Post by: BingBong on December 20, 2007, 04:13:21 am
how could i do something like this but not a circle ( i want to do a spiral not a circle)
Title: Re: New Game Mode: Ultimate Survival
Post by: plasticpie on February 12, 2008, 10:07:29 pm
I have this set up on my server if anyone wants to test it.  It works perfectly and I made about 5 or 6 maps for it.  zyx, could you help me with your levels I don't quote understand them.  I tried but they crashed the server.

Edit: its in my sig[i called it ultimate dodgeball].
Title: Re: New Game Mode: Ultimate Survival
Post by: miketh2005 on July 10, 2009, 07:52:12 pm
I hope no one minds if I bump this...I need this at the top of my Show Posts list. Because freakin SMF doesn't have the feature to show Threads...
Title: Re: New Game Mode: Ultimate Survival
Post by: scarface09 on July 10, 2009, 10:10:04 pm
Cool script :D