gametechmods

Robot Arena => Modifications => Topic started by: DuckRA2 on January 05, 2009, 11:43:24 PM

Title: adding a disable hazard
Post by: DuckRA2 on January 05, 2009, 11:43:24 PM
when a bot goes in a zone, how do I make it destroy? I tried using something like this but didnt work

disable(robot_chasis,1)
Title: adding a disable hazard
Post by: Madiaba on January 06, 2009, 12:04:56 AM
Duck,
1. What kind of zone?  Zone='area'; or a Smart Zone (arena or bot) ?
2. "Destroy" or just "Disable"?
.......And what?  Itself, another, all of the others?
 
...
Title: adding a disable hazard
Post by: DuckRA2 on January 06, 2009, 12:19:25 AM
oh sry, its an arena, and a spike zone zone
Title: adding a disable hazard
Post by: Madiaba on January 06, 2009, 12:34:42 AM
And:
destroy or disable?
self or opponent(s)?
Title: adding a disable hazard
Post by: DuckRA2 on January 06, 2009, 12:46:44 AM
destroy self
Title: adding a disable hazard
Post by: Madiaba on January 06, 2009, 10:53:06 AM
The coding would be:
plus.eliminatePlayer(0)
 
Here's how to code it under the appropriate Smart Zone:
if robot ==1: plus.eliminatePlayer(0)
if robot ==2: plus.eliminatePlayer(1)
if robot ==3: plus.eliminatePlayer(2)
if robot ==4: plus.eliminatePlayer(3)
 
 
Here's a little tweek I put together to demo: BoxArena_Lethal_Spike (http://www.madiaba.gametechmods.com/BoxArena_Lethal_Spike.rar)
Just drop this python in your "Arenas" folder (stock/DSL).
...
Let me know. Finishing Wham's arena...
 
 
...
Title: adding a disable hazard
Post by: DuckRA2 on January 06, 2009, 09:42:07 PM
mine is a sumo arena, and BTW: where in the py would I put that?!? EDIT-- Oh ok I looked at that py


THANK YOU very much, without that help I would be stuck foreva!:)
Title: adding a disable hazard
Post by: DuckRA2 on January 06, 2009, 11:25:24 PM
another question, how do i make something bounce in an arena? when I put mass on 0 for that node or whatever it stays in one spot, but when I put mass on It disappears(im guessing it goes down and down...)
edit:nvd i figured it out by playin' around(its the Dis Collision Pairs)
Title: adding a disable hazard
Post by: Serge on January 07, 2009, 12:11:52 AM
*GMID_HAVOK_RIGIDBODY
{
   [...]
   *ELASTICITY   0.300000
   [...]
}

Make it higher.
Title: adding a disable hazard
Post by: DuckRA2 on January 07, 2009, 12:32:00 AM
thanks serge