Author Topic: Hazard Damage  (Read 1433 times)

Offline Classicus

  • Middleweight
  • Posts: 315
  • Rep: 5
    • View Profile
    • Awards
Hazard Damage
« on: February 04, 2013, 08:48:53 AM »
What do I change in cube.py to make the hazards do more damage? Thanks.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Hazard Damage
« Reply #1 on: February 04, 2013, 12:44:56 PM »
I don't have a cube.py. Do you mean box.py?

Either way, the easiest way of increasing damage for arena objects is by modifying their material damage value. The floating point number in self.SetSubMaterial or self.SetSubMaterialSound is what you'll want to modify.

Offline Classicus

  • Middleweight
  • Posts: 315
  • Rep: 5
    • View Profile
    • Awards
Re: Hazard Damage
« Reply #2 on: February 04, 2013, 01:42:18 PM »
Thanks for the help. The hazards seem to have a bit more punch now. I also have self.spinner.SetPowerSettings(100,855) self.hammer.SetPowerSettings(20,1000)  would these be relevant?

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Hazard Damage
« Reply #3 on: February 04, 2013, 01:45:55 PM »
I don't have a cube.py. Do you mean box.py?
i have a cube.py, and it is click's containment cube.

the number that determines damage values for most hazards (IE the combat arena's saws, spinners, hammers... etc) should be ' "metal", X, ', you can set it what whatever number you like, including some insanely high number for extra destructiveness :mrgreen:
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 Classicus

  • Middleweight
  • Posts: 315
  • Rep: 5
    • View Profile
    • Awards
Re: Hazard Damage
« Reply #4 on: February 04, 2013, 01:50:38 PM »
Thanks Trov + AS, worked a treat. I know its not a bit thing but I find it more satisfying when hazards give a noticeable hit. Also gives more of a chance to flippers and other non-weapon bots in closed arenas.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Hazard Damage
« Reply #5 on: February 04, 2013, 02:46:39 PM »
I don't have a cube.py. Do you mean box.py?
i have a cube.py, and it is click's containment cube.
Whoops, I guess I didn't have it installed on my USB's version of RA2.

Thanks for the help. The hazards seem to have a bit more punch now. I also have self.spinner.SetPowerSettings(100,855) self.hammer.SetPowerSettings(20,1000)  would these be relevant?
In this context, those are used for controlling torque and speed (prismatics have something similar for force and speed). You can crank those up if you want but you may end up launching a bot out of the arena (straight through the collision mesh).

Offline Classicus

  • Middleweight
  • Posts: 315
  • Rep: 5
    • View Profile
    • Awards
Re: Hazard Damage
« Reply #6 on: February 04, 2013, 03:20:35 PM »
Yeah was funny watching it fly when I tried it. I'm thinking of trying it on Battlebots arena but I think it may cause a black hole and destroy the planet.