Adding map things

Designed a level that creates new, exciting, and challenging Armagetron game play? Or maybe just something funky. Put it right here.
Post Reply
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Adding map things

Post by ivantis »

ok, thats not a descriptive subject, but i want to know how to add variables to maps. like this chopped from a map example on the wiki:

Code: Select all

<Zone effect="death">
            <ShapeCircle radius="20" growth="0.17">
                ...
            </ShapeCircle>
        </Zone>
how do i add things to it in the game, and where would they be located? im focusing on zones, so im guessing tron/gWinZone.h/.cpp. for example, like this:

Code: Select all

<Zone effect="death">
            <ShapeCircle variable="value" radius="20" growth="0.17">
                ...
            </ShapeCircle>
        </Zone>
i have already figured out from studying source and tested how to add in-game commands, but not map things.
Image
Image
Image
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

hmm, i don't know if thats possible, but maybe you could try making a bunch of different maps then just switching them out when you want to?


only way I can't think to do anything like that.....

if you have a basic map with random win or something like in the client host game options, to change it to a death zone use the code:

Code: Select all

win_zone_deaths 1
hope that helps.....maybe someone with more knowledge of the game can help further...
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

no, you dont get it. i mean adding code hacks so that other variable fields will do things if they are in a map
Image
Image
Image
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

no, i got it, i just don't know how, so i posted alternatives ;)
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

o
well, ill just search thru source for some of them and figure it out
Image
Image
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Post by kyle »

try the DTD
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

oh, right, its in XML. i dont know that much about DTDs and XML stuff. ill get a book
Image
Image
Image
Post Reply