Author Topic: Survival With Lives  (Read 2079 times)

0 Members and 1 Guest are viewing this topic.

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Survival With Lives
« on: August 10, 2008, 06:32:47 pm »
Script Name: Adv. Survival
Script Description: Its Survival Mode with lives!
Original Author(s): Rayanaga
Core Version: 2.6.3

.Overview
I've thought for a while, "How cool would it be to play survival with extra lives?".
I've scripted a short little script for doing so.

Players by default start out with three lives. Everytime they die, they lose a life. IF they have zero lives, they get to spectate their team.

.Features:
-[Survival Timer] -> This is used for everyone who gets those blasted Wrong Map Version errors. It by default gives the player 5 seconds to join the game with no penalities. Everyone else who comes in after the 5 second margin is moved to specs.

-[Easy to Edit Config] -> I put a lot of the configuration inside constants that will make it easy to edit for non-scriptors.

-[Leightweight] -> It's only 4kb...

.Requirements:
-A Soldat Server (duh..) ;)
-Gamemode set to Capture the Flag (GameStyle=3)
-Survival Mode set to OFF  :o

.Known Bugs:
-Bots. This script is not bot-friendly. It will bug up if you add bots (with the exception of the Automatic bot you can set in the script).  8)


.Configuration
Code: [Select]
//EDIT BELOW
const
maxlives = 3; //Starting amount of lives.
checktime = 5; //Amount of time in ticks to check before starting a new round when everyone is dead.
consolecolor = $EE81FAA1; //Color of the messages.
autobot = 1; //Set to 1 to add a bot if only one player exists. 0 to disable it. When another player comes, the bot will be kicked.
autobotname = 'Admiral';
maxsurvtime = 5; //Amount of time a player has from the beginning of round to join without penality. Best to leave at 5 ticks.
steallives = false; //Players gain a life for taking a life.
       antispam = true //Turns off balance to make the console spam-less
//END EDIT

.Download
http://upload.kronex.net/files/advsurvival.zip

*You can flame on bad scripting only if you show an alternative.*
« Last Edit: August 11, 2008, 12:03:05 pm by rayanaga »
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Survival With Lives
« Reply #1 on: August 10, 2008, 07:17:14 pm »
-Gamemode set to Capture the Flag (GameStyle=3)
fixed
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: Survival With Lives
« Reply #2 on: August 10, 2008, 07:26:26 pm »
Thank you ripper.

*Fixed Post*
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Survival With Lives
« Reply #3 on: August 10, 2008, 11:16:56 pm »
Looks interesting, I may give it a try.

*Error: [07:31:46] 
  • advsurvival -> [Error] (143:1): 'BEGIN' expected
« Last Edit: August 10, 2008, 11:34:21 pm by Leo »

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Survival With Lives
« Reply #4 on: August 11, 2008, 01:46:26 am »
delete the extra end; at the end of it and it works fine.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Survival With Lives
« Reply #5 on: August 11, 2008, 04:44:56 am »
Thanks.
Hmm.. when server is empty it spams the console with the message:

Code: [Select]
(18:18:55) Bot Balance is off (0)
(18:18:55) Rounds End.
(18:19:00) Bot Balance is off (0)
(18:19:00) Rounds End.
(18:19:05) Bot Balance is off (0)
(18:19:05) Rounds End.
(18:19:10) Bot Balance is off (0)
(18:19:10) Rounds End.
(18:19:15) Bot Balance is off (0)
(18:19:15) Rounds End.
(18:19:20) Bot Balance is off (0)
(18:19:20) Rounds End.
« Last Edit: August 11, 2008, 10:22:44 am by Leo »

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: Survival With Lives
« Reply #6 on: August 11, 2008, 12:04:47 pm »
delete the extra end; at the end of it and it works fine.
Thats odd. I didnt get that error on any of the servers. But i found the extra end and deleted it.
Sorry for that.

Thanks.
Hmm.. when server is empty it spams the console with the message:

Code: [Select]
(18:18:55) Bot Balance is off (0)
(18:18:55) Rounds End.
(18:19:00) Bot Balance is off (0)
(18:19:00) Rounds End.
(18:19:05) Bot Balance is off (0)
(18:19:05) Rounds End.
(18:19:10) Bot Balance is off (0)
(18:19:10) Rounds End.
(18:19:15) Bot Balance is off (0)
(18:19:15) Rounds End.
(18:19:20) Bot Balance is off (0)
(18:19:20) Rounds End.

I uploaded another version.
In the header, you can turn antispam=true to disable those spammy console messages.
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Survival With Lives
« Reply #7 on: August 11, 2008, 08:42:08 pm »
wow nice idea!
I was wondering if the TM version woulb be fun... and with real survival
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Survival With Lives
« Reply #8 on: August 12, 2008, 09:33:19 pm »
Nice idea; GJ

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: Survival With Lives
« Reply #9 on: August 13, 2008, 07:50:42 am »
Thanks ;D.

I hope to see it in action on some servers. ;)
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/