Author Topic: Hazard delay times?  (Read 854 times)

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17527
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Hazard delay times?
« 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?

Offline JoeBlo

Re: Hazard delay times?
« Reply #1 on: June 28, 2011, 10:58:38 AM »
First: 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

Offline freeziez

  • Ultra Heavyweight
  • Posts: 4720
  • Rep: 2
  • He's Mr. White Christmas, he's Mr. Snow...
    • youtube.com/freeziezGTM
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Hazard delay times?
« Reply #2 on: June 28, 2011, 11:11:45 AM »
I'll use this for Battlebots S2. ;)
obligatory battlebots 5 comment

GTM Awards 2011

Best Tournament: B4ttlebots (freeziez)
Best New Tournament Host: freeziez
Most Suprising Tournament: B4ttlebots (freeziez)

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17527
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Hazard delay times?
« Reply #3 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