Author Topic: How to place/move hazards (like flame jets) in arenas?  (Read 1144 times)

Offline cephalopod

How to place/move hazards (like flame jets) in arenas?
« on: November 01, 2009, 01:18:03 PM »
Sorry to sound n00by, I just can't work it out :3

Thanks guys :D
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Madiaba

How to place/move hazards (like flame jets) in arenas?
« Reply #1 on: November 01, 2009, 01:55:11 PM »
Craaig:
The gmf usually deals with the 'objects' of the arena.
The py usually deals with the 'dynamics' of the arena.
So,
1. Make a BU of the original file you're about to mod.
2. Open the arena.py.
3. Paste these blue lines under each section/heading as listed (being careful of spacing).
 
Code: [Select]
   def HazardsOn(self, on):
        if on:
[COLOR=#0000ff]          self.flame_TEST = Hazards.Flame((0, .1, 0), (0, 0.1, 0), (.2, .4, .2), .8)[/COLOR]
[COLOR=blue]          self.AddHazard(self.flame_TEST)[/COLOR]
 
 
    def Tick(self):
[COLOR=blue]      self.flame_TEST.Tick()  [/COLOR]
[COLOR=blue]      self.flame_TEST.FlameOff() # Must add or else will keep adding flames and lag.[/COLOR]
[COLOR=blue]      self.flame_TEST.FlameOn()    [/COLOR]
 

Here how to adjust it's parameters:
# EXPLANATION: self.flame_TEST= Hazards.Flame((XYZ Flame Location), (XYZ Flame Direction), (XYZ Flame size), where damage happens)
 
 
BTW:Note that only the upper part of the flame causes damage, as is...
 
.
« Last Edit: November 01, 2009, 04:07:14 PM by Madiaba »
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline cephalopod

How to place/move hazards (like flame jets) in arenas?
« Reply #2 on: November 01, 2009, 02:14:09 PM »
Aah, I see.

Thanks Mad :D
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15