gametechmods
Robot Arena => General Support => Topic started by: Resetti's Replicas on February 21, 2015, 12:42:18 AM
-
Is there a way to make the arena hazards less potent? My bots keep getting killed too easily from the saws and the flame pit in the Robot Wars arena.
-
I don't know if there's a way to scale down the damage done by flames but for other hazards you can scale back the damage scalar in the arena's .py file.
For example in the hazards on section of DSLRWarena.py you can find this bit
(http://i.gyazo.com/ce922fa8395d70875b6974dc77d95cfb.png)
where the number after the hazard's material (metal) is the number you need to scale back. I'll do a bit of testing for flames and edit back here if I find anything but I don't think it's possible.
-
I can't remember if the Robot Wars arena uses the hazards module or creates its own emitters so I'll just give a high level explaination of how arena flames work. Unlike flamethrower components, arena flames don't do any damage. For this reason, there is usually a call to plus.damage whenever a bot is supposed to get hurt. The flames class found in Hazards does 25 damage per tick (which usually amounts to 100 HP per second). If the RW Arena uses the hazards module, you'll either need to change the damage delivered for all arenas that use it or tweak the Arena.py so that it doesn't use the same class.
-
That could work, I have a copy devoted exclusively to filming. What file do I change to adjust the hazards module?
-
If it is using the Hazards module than that would mean the code from Hazards.py is being imported. The relevant line is going to be the plus.damage found at the bottom of Flame's Tick method (line 326).