Welcome,
Guest
. Please
login
or
register
.
August 02, 2025, 05:43:59 AM
Home
Forum
RA2WIKI
Bot Exchange
Downloads
Search
Rules
Login
Register
gametechmods
»
Robot Arena
»
Modifications
»
adding a disable hazard
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: adding a disable hazard (Read 2037 times)
DuckRA2
Posts: 1006
Rep: 1
adding a disable hazard
«
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)
Logged
Madiaba
Posts: 1431
Rep: 8
Awards
adding a disable hazard
«
Reply #1 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?
...
Logged
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...
DuckRA2
Posts: 1006
Rep: 1
adding a disable hazard
«
Reply #2 on:
January 06, 2009, 12:19:25 AM »
oh sry, its an arena, and a spike zone zone
Logged
Madiaba
Posts: 1431
Rep: 8
Awards
adding a disable hazard
«
Reply #3 on:
January 06, 2009, 12:34:42 AM »
And:
destroy or disable?
self or opponent(s)?
Logged
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...
DuckRA2
Posts: 1006
Rep: 1
adding a disable hazard
«
Reply #4 on:
January 06, 2009, 12:46:44 AM »
destroy self
Logged
Madiaba
Posts: 1431
Rep: 8
Awards
adding a disable hazard
«
Reply #5 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
Just drop this python in your "Arenas" folder (stock/DSL).
...
Let me know. Finishing Wham's arena...
...
Logged
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...
DuckRA2
Posts: 1006
Rep: 1
adding a disable hazard
«
Reply #6 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!:)
«
Last Edit: January 06, 2009, 10:07:34 PM by DuckRA2
»
Logged
DuckRA2
Posts: 1006
Rep: 1
adding a disable hazard
«
Reply #7 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)
«
Last Edit: January 06, 2009, 11:55:52 PM by DuckRA2
»
Logged
Serge
Posts: 1530
Rep: 13
adding a disable hazard
«
Reply #8 on:
January 07, 2009, 12:11:52 AM »
*GMID_HAVOK_RIGIDBODY
{
[...]
*ELASTICITY 0.300000
[...]
}
Make it higher.
Logged
home
|
twitter
|
yt
|
gmf de/compiler
|
component freedom
| xmpp: q3k@q3k.org | email: q3k@q3k.org
DuckRA2
Posts: 1006
Rep: 1
adding a disable hazard
«
Reply #9 on:
January 07, 2009, 12:32:00 AM »
thanks serge
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
gametechmods
»
Robot Arena
»
Modifications
»
adding a disable hazard