gametechmods

Robot Arena => General Support => Topic started by: Badnik96 on June 28, 2011, 10:36:09 AM

Title: Hazard delay times?
Post by: Badnik96 on June 28, 2011, 10:36:09 AM
I/m editing the Battlebox to turn heckraisers off but no other hazards, and I decided I was gonna do it like GK did for Resetti's arena (edit the hazard delay times)
 
Code: [Select]
            #Hellraiser stuff
            hinge = self.GetHinge("Hinge01")
            self.RegisterZone("heckzone1", 1)
            self.Hell1 = Hazards2.HellRaiser(hinge, (3.034, 0.0, -6.926))
            self.AddHazard(self.Hell1)
           
            hinge = self.GetHinge("Hinge02")
            self.RegisterZone("heckzone2", 2)
            self.Hell2 = Hazards2.HellRaiser(hinge, (-3.049, 0.0, -6.926))
            self.AddHazard(self.Hell2)

What line do I have to edit, and what value should I use so that it doesn't activate during a 3-minute match?
Title: Re: Hazard delay times?
Post by: JoeBlo on June 28, 2011, 10:58:38 AM
First: https://gametechmods.com/forums/index.php/topic,6589.0.html (https://gametechmods.com/forums/index.php/topic,6589.0.html)

Second: Just remove the hazard itself from the python.. I have done it to the Battlebox before in the past..

Just put a # in front of the lines you think you you dont want, The game will ignore everything on the line that comes after a # symbol

so if you screw it up, just remove the # symbols, and no actual data is lost
Title: Re: Hazard delay times?
Post by: freeziez on June 28, 2011, 11:11:45 AM
I'll use this for Battlebots S2. ;)
Title: Re: Hazard delay times?
Post by: Badnik96 on June 28, 2011, 11:39:48 AM
Thanks Joe

All I needed to do was put a # in the self.RegisterZone line and they didn't work :D