Author Topic: How do I increase arena hazard damage?  (Read 1294 times)

Offline helloface

  • Ultra Heavyweight
  • Posts: 3902
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
How do I increase arena hazard damage?
« on: September 23, 2013, 12:05:00 PM »
The old stock hazards are basically useless. How to I increase the damage done by the hazards?
« Last Edit: September 23, 2013, 08:06:24 PM by helloface199 »
Oh I'll be doing some banging.......

Offline Galacticruler

  • Antweight
  • Posts: 49
  • Rep: -1
  • Mods everywhere.
    • View Profile
    • Awards
Re: How do I increase arena hazard damage?
« Reply #1 on: September 23, 2013, 12:12:52 PM »
I'd imagine it has something to do with the .py?

Offline helloface

  • Ultra Heavyweight
  • Posts: 3902
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: How do I increase arena hazard damage?
« Reply #2 on: September 23, 2013, 01:19:36 PM »
Probably. I don't delve into that too much so I wouldn't know where to look.
Oh I'll be doing some banging.......

Offline Galacticruler

  • Antweight
  • Posts: 49
  • Rep: -1
  • Mods everywhere.
    • View Profile
    • Awards
Re: How do I increase arena hazard damage?
« Reply #3 on: September 23, 2013, 07:04:06 PM »
alright, should have to to with Hazard.py, though at a quick glance I saw nothing that looked like damage values.

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: How do I increase arena hazard damage?
« Reply #4 on: September 23, 2013, 07:33:47 PM »
in the arena PY, there should be a line similar to this:

Code: [Select]
self.SetSubMaterialSound("floorsaw", "metal", .8, "Sounds\\sawblade_hits_loop.wav")^example from combat arena, or "box.py"
you see that number next to "metal"? that determines how much damage the hazards do. feel free to jack it up to 10000+ if you want sudden-death hazards.
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline helloface

  • Ultra Heavyweight
  • Posts: 3902
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: How do I increase arena hazard damage?
« Reply #5 on: September 23, 2013, 08:05:32 PM »
Thanks  :thumbup
Oh I'll be doing some banging.......

Offline RedSawn

  • aka RedlineM203
  • *
  • Posts: 1922
  • Rep: 4
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: How do I increase arena hazard damage?
« Reply #6 on: September 24, 2013, 05:20:13 AM »
You can also speed up the hazards but yeah, changing the material multiplier (as I call it) is the most straight-forward solution. Notably the self.SetSubMaterialSound line can be used to make the floor and wall colliders do damage to give pure flippers a damage source, but the points aren't attributed to the flipper. (Make the sound the arena material uses slience though, otherwise everything in contact with the surface will make that noise)




Offline helloface

  • Ultra Heavyweight
  • Posts: 3902
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: How do I increase arena hazard damage?
« Reply #7 on: September 24, 2013, 12:05:26 PM »
Awesome! Now wedge rammers can do decent damage too!
I have a good idea...
Oh I'll be doing some banging.......

Offline RedSawn

  • aka RedlineM203
  • *
  • Posts: 1922
  • Rep: 4
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: How do I increase arena hazard damage?
« Reply #8 on: September 25, 2013, 06:00:14 AM »
Yup, just have to find the names in the GMF to use them. Be wary that if you make the number too high for the arena floors/walls it will do damage per second even while the bot is stationary, and the damage potential may be low for DSL without surpassing that limit (Depends how much damage you think a T-Minus toss would do compared to a spinner). I'd tell you the number I settled on but I didn't keep much from my old games after I built my new PC, the bot files mostly.




Offline helloface

  • Ultra Heavyweight
  • Posts: 3902
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: How do I increase arena hazard damage?
« Reply #9 on: September 28, 2013, 02:00:49 PM »
Another question, how can I increase the power of the saws (to trap bots) & spikes (to flip bots) etc?
Oh I'll be doing some banging.......

Offline RedSawn

  • aka RedlineM203
  • *
  • Posts: 1922
  • Rep: 4
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: How do I increase arena hazard damage?
« Reply #10 on: September 29, 2013, 04:50:53 AM »
Certainly. Some hazards when defined in the arena's py file have variables to be declared other then the position of the hazard itself.

Quote from: box.py
self.spikes1 = Hazards.Spikes(prism, 40000, (-3.7, -2.2, -5.2))
For the spikes, the second value is the power it extends and retracts(!) with.

Unfortunately there's no values you can change for the saws within the arena .py, and you'll have to change Hazards.py itself. (Alternatively you could make your own hazard declaration and define the hazard as being that instead inside the arena .py, but that's a bit more in-depth)

Quote from: Hazards.py
class Saws(Hazard):
    def __init__(self, a_prismatic, location = (0, 0, 0)):
        Hazard.__init__(self, location)
        #statuses: 0=off, 1=on
        self.status = 0
        self.prismatic = a_prismatic
        self.prismatic.SetAutoLock(False)
        self.prismatic.SetPowerSettings(2.0, -2000)
        self.timer = 0
        self.refcount = 0
The power is the second value again, and for the saw to work correctly it has to be negative. Just how it's scripted. It works the same as the spikes, it uses the same power for extending and retracting.