Deathzone/Survivorzone

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
n54
MVP
Posts: 1587
Joined: Sun Dec 21, 2003 12:40 pm

Deathzone/Survivorzone

Post by n54 »

anyone have the Survivorzone script/modification or a link to it? if you do plz post it here.

i saw it some time ago but lost track of where it is, but would like to peek at it (would be nice if we could collect such scripts somewhere on this forum, there doesn't seem to be much at the official armagetron.sourceforge forum)
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

A script? Could that do that? Maybe based on console output, but then if there was a end-of-round bonus, that player would have already gotten it. Theoretically, based on what I know of the source, it would be a realtively easy modification. Simply copy and paste the winzone code, rename everything winzone in the copy to losezone, modify the code so it kills the cycle and subtracts points from the loser, like suicide... But the catch is the winzone code is probably very spread out...
Image
User avatar
n54
MVP
Posts: 1587
Joined: Sun Dec 21, 2003 12:40 pm

Post by n54 »

oki i dunno but i think i saw somewhere that the survivor zone wasn't part of the code itself but something someone wrote as a script for the server, i have no clue if this is the case or not, or maybe i misunderstood something.

anyway you run a server tank, it has a winzone: was it just an option in the server setup?
User avatar
Majination
Hero Of 2004
Posts: 659
Joined: Thu Dec 25, 2003 10:07 pm
Location: California
Contact:

Post by Majination »

src\tron\gWinZone.cpp

Some of the relevant source in gWinZone::InteractWith ...

Code: Select all

if ( ( c->Position() - this->Position() ).NormSquared() < r*r )
{
    if ( c->Player() )
        sg_DeclareWinner( c->Player()->CurrentTeam() );
    }
}
http://bikecolors.shorturl.com -- ArmageTron Multi-Color Bike Picker
"Stimpy, sometimes your wealth of ignorance astounds me!" - Ren Hoek
User avatar
n54
MVP
Posts: 1587
Joined: Sun Dec 21, 2003 12:40 pm

Post by n54 »

ooh that should be very easy to change into a deathzone shouldn't it?
just change sg_DeclareWinner with whatever is used when an explosion occurs + add the explotion of course :mrgreen:

would prob be slightly more to do to add it as a seperate option in the server setup - any takers?
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

If you insist, I will try it. Hold on while I try it...
Image
User avatar
n54
MVP
Posts: 1587
Joined: Sun Dec 21, 2003 12:40 pm

Post by n54 »

thank you :mrgreen:

if it works it will be a hit with the players
User avatar
Seeker
Round Winner
Posts: 302
Joined: Fri Feb 06, 2004 8:37 pm
Location: Pasadena, Maryland, USA
Contact:

Post by Seeker »

Oh great, another way to die!!!! :D

This could be fun.
Post Reply