winzone and killzone

Post here if you need help setting up your server, etc.
Post Reply
User avatar
microbus
Core Dumper
Posts: 128
Joined: Wed Apr 27, 2005 7:35 am
Contact:

winzone and killzone

Post by microbus »

Is there a way to have both a winzone and killzone show up
at the same time, though in random places on the grid?
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

Hi

A small warning: I might have had my nose in the engine for too long and miss out on an easy way ;)

Assuming version 0.2.8.x or 0.3.0
Edit the file src/tron/gWinZone.cpp. IIRC, the first function there (the name start with sg_) is the one that create the win or death zone when no death has occured for a while. It has a if else to decide if it should go for a win or death zone. It should be relatively easy to change that to create both. The change will be server side, and the server sends updates to all the clients when zones are created, so they wont know the difference.

It will be mostly C code, and should be quite straight forward.

-ph
Canis meus id comedit.
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Poor people with clients older than 0.2.8.0... they won't be able to distinguish the zones ;)
There's no place like ::1
User avatar
microbus
Core Dumper
Posts: 128
Joined: Wed Apr 27, 2005 7:35 am
Contact:

Post by microbus »

hmmm... wrtl? this is probably up to AntiX to do, eh?
Post Reply