Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: What object is this cross in a circle?
Post: RE: What object is this cross in a circle?

Hi everyone! I added "ori += 90" into the code above and tried: Code:float dist = -5.0; // <------change this to 5.0 to go in front of the object point pos = item.position; float ori = item.orien...
Rinoldo General 12 29,718 03-26-2016, 06:05 PM
    Thread: What object is this cross in a circle?
Post: RE: What object is this cross in a circle?

malex750, thanks a lot for the code! Would you be so kind to explain, why is 0 and 360 == east, 90 == north and 180 == west? As we know, in a compass 0 is north, 180 is south, 90 is east and 270 is we...
Rinoldo General 12 29,718 03-19-2016, 03:59 PM
    Thread: What object is this cross in a circle?
Post: RE: What object is this cross in a circle?

(03-18-2016, 07:04 PM)tomaszkax86 Wrote: Angle in degrees can be used in sin() and cos() to compute Cartesian direction. In standard math: Code:float radius = 5.0f; float dx = radius * cos(angle); ...
Rinoldo General 12 29,718 03-19-2016, 04:32 AM
    Thread: Falling on land when over trees - how to prevent?
Post: RE: Falling on land when over trees - how to preve...

Thank you everybody for help!
Rinoldo General 15 38,066 03-18-2016, 03:47 PM
    Thread: What object is this cross in a circle?
Post: RE: What object is this cross in a circle?

(03-18-2016, 12:50 PM)tomaszkax86 Wrote: tar2.position is of type point, which has 3 floats. You need to save it to a variable and calculate position: You might want to use object's orientation (a...
Rinoldo General 12 29,718 03-18-2016, 02:52 PM
    Thread: What object is this cross in a circle?
Post: RE: What object is this cross in a circle?

Thank you! I tried to get to that cross by this code: Code:object tar2 = radar(Target2); goto(tar2.position);but there appears massage that the place is already occupied. I understand that I can use c...
Rinoldo General 12 29,718 03-18-2016, 11:34 AM
    Thread: What object is this cross in a circle?
Post: What object is this cross in a circle?

Now I'm in the 4 task of Tropica (3-th mission). I'm going to try pass it using only programming. But I couldn't find in Categories part of the Help anything about this object, cross in a circle. H...
Rinoldo General 12 29,718 03-18-2016, 10:43 AM
    Thread: Falling on land when over trees - how to prevent?
Post: RE: Falling on land when over trees - how to preve...

(03-18-2016, 07:38 AM)melex750 Wrote: Code:int Graviplant = 715;      object obj = radar(Graviplant);      if (distance2d(this.position, obj.position) <= 3...
Rinoldo General 15 38,066 03-18-2016, 09:39 AM
    Thread: Falling on land when over trees - how to prevent?
Post: RE: Falling on land when over trees - how to preve...

(03-17-2016, 04:08 PM)Simbax Wrote: Yeah, I was thinking it would be graviplants, but the description of the "bug" is too odd and ambigous to be sure. I can't believe a person could not know about g...
Rinoldo General 15 38,066 03-18-2016, 05:02 AM
    Thread: Falling on land when over trees - how to prevent?
Post: RE: Falling on land when over trees - how to preve...

(03-17-2016, 04:23 PM)krzys_h Wrote: If this is true, then it is indeed a bug. You are not supposed to be able to fly at all inside graviplants. After reading all posts above I tried once more to fl...
Rinoldo General 15 38,066 03-17-2016, 05:37 PM
    Thread: Falling on land when over trees - how to prevent?
Post: RE: Falling on land when over trees - how to preve...

Here is my full code for flying Shooter: Code:extern void object::HuntAnt() { object ant, power; power = radar(PowerStation); point pos, pos2; jet(0.2); aim(-40); while(true) { while(true) { while(ra...
Rinoldo General 15 38,066 03-17-2016, 02:27 PM
    Thread: Falling on land when over trees - how to prevent?
Post: Falling on land when over trees - how to prevent?

In the 3-d mission "Tropica" in the 3-d part where we need to destory AlienAnts my flying shooter falls on the land when it flies over the trees. It's seems to be a bag because when I fly over those ...
Rinoldo General 15 38,066 03-17-2016, 09:32 AM
    Thread: How to get status of bot's armor?
Post: RE: How to get status of bot's armor?

Thank you very much!
Rinoldo General 3 9,809 03-17-2016, 07:20 AM
    Thread: How to get status of bot's armor?
Post: How to get status of bot's armor?

Hi everyone, I'm new in CBOT. Now I play mission where I need to kill ants. And it's turned out that it's necessary to get status of bot's armor. Couldn't find in the help (F2).
Rinoldo General 3 9,809 03-17-2016, 05:28 AM