Is there a way to make an AI for flail spinners that would use something along the lines of Melty brain to move? i know that I can drive those spinners but AI doesn't work for it.
def __init__(self, **args): self.triggers = ["Fire"] self.spin_range = 3.0 def Tick(self): # fire weapon if self.weapons: # spin up depending on enemy's range enemy, range = self.GetNearestEnemy() if enemy is not None and range < self.spin_range: self.Input("Spin", 0, 1) elif self.GetInputStatus("Spin", 0) != 0: self.Input("Spin", 0, 0)
there might be a way without coding...just have the smartzone not a smartzone, but an actual component. and the sound that the components would make when something hits it or it hits something would be said sound.is this practical? This would be completely possible. All that I think you would need to do is include 'damagesounds = sounds\Whatever.wav' in the text file (although, I've never tried do this with cannons, I'm pretty sure it would still work).the only problem is that i need it to do damage to the chassis when it gets hit... because the smartzone would just let the bullet thing through and hit the chassis. I'm not sure exactly but I think by removing the collisions (from either the GMF or the text file) would result in damagesounds, piercing and concussion to not work. If you were to add a little bit of possibly laggy programming to the Arena.py, I think you could make any damage done to the other components (could be made to work with only specific components, too) result in damage to the chassis or both the chassis and the component.oh this is for rdma2 and i need some good gunz(shotgun sniper machinegun, and maybe roket launcher, grenade launcher....) If you haven't already, take a look at Megaturdbomb's cannons and use the resizer that I made and linked to somewhere on these forums (or one of the other two component resizers) to manipulate/distort them into new shapes and sizes that would resemble any of the components that your asking for. Just be sure to change the folders, names, and text files so that it doesn't cause problems for other people...i also want the robots to respawn when they die, but it would also put +1 pt for the robot who hit it last and -1 to the robot that died. Madiaba and I have been looking for coding that could respawn bots back into their original positions but, currently, it looks like it is coded within the EXE and is only available to the Practice Arena. You could make bots drive/get pushed back or towards a location but just be aware that it is very difficult to flip/turn a bot back into the upright position. Adding and subtracting points is completely possible from within the Arena.py or the AI.py using 'plus.addPoints(BotID, Points)'. To subtract points, just use a negative number.By checking headings and coordinates between bots, you could make the Arena.py generate the sounds and do the damage but it may get a little laggy at times.
Keyboard input is currently not accessible via python in RA2. You can read up on the subject if you would like here, though... Currently, the closest things to it would be to use the practice arena buttons (which are only available to the practice arena) or some python coding from within the FPS window...@nicsan2009: I'm not sure I know what you mean...