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