gametechmods
Robot Arena => Modifications => Topic started by: WhamettNuht on September 19, 2009, 09:31:01 AM
-
Hey All
I was wondering how to add objects like bricks to arenas (like the ones from the test garage ect)
Thanks
Wham
-
You decompile them both, then just transfer the geomobject section over to the arena from the component, and then go down to the bottom and copy the rigid body section. then make sure that works, and you can add a material to the top of the arena for the skin of the component.
-
I think he means how to use Python to make them appear and disappear.
The code for that is
self.AddXtraSound("Obstacle", "arenas\\crates\\crates.gmf", "metal", "Sounds\\crate.wav")
"Obstacle" is the name of the object. Can be anything. Then you put in the path for the gmf you want to add. "metal" is always constant. The last thing is the path for the sound effect when you hit the object.
To remove extras, you do
self.RemoveXtra("Obstacle")
Alternatively, you can do
self.AddXtra("Obstacle", "arenas\\bbeans\\redlights.gmf", "metal")
if you don't want the added objects to make any sound.
-
Wow, so much help. Cool. :-D
.
-
ah thanks Click I was wondering about that
Mad is that how you got the cone in that arena you helped me with ? or was it in the GMF ?
-
I don't remember which way specifically, Joe.
Just check in the arena.py for "self.AddXtraSound".
.
-
@Click: Well, i think, what im mostly after is getting some of the practice arena objects for an obstical course arena (kinda like the one in robotica, the gauntlet) which is why i asked you for the race track arena last night.
So far im having a bit of a play around with the GMF, mostly getting the start zones to a shorter distance (dont think theres enough objects to fit a 500meter track, lol.
I have the starting zones at a good distance, but at the moment the only problem is when i start the game, after the countdown, once the robots are 'let loose' they fall through the floor for some reason.
I havent edited anything apart from the sz and thats it, i cant find a collision mesh in the arenas gmf.
Any help will be greatly appreciated.
I thought i might aswell make a gauntlet type arena since some people would like one to be around (like me for example, i was getting kinda tired with the old dsl one, even though its the most difficult thing to complete lol) so i might aswell do my bit for the community :)
I'll post all results for sure (thats if i can get much help)
Thanks
Wham
-
Not sure when CB will be around next...
Send it over Wham, and I'll get it going for you.
-
Here, Wham. I don't want to infringe on CB/FB's work, so I just made it so that you can drive on it. This arena is at very rudimentary stages.
The GMFs: https://gametechmods.com/uploads/files/Blah.rar
.