Author Topic: How calculate distance and small sugest  (Read 1784 times)

0 Members and 1 Guest are viewing this topic.

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
How calculate distance and small sugest
« on: February 11, 2016, 08:42:13 am »
How I can calculate this distance using function distance();

And can add Map.Bullet.AirTime and Map.Bullet.RicochetNum and Map.Bullet.FlyingDistance
« Last Edit: February 11, 2016, 08:44:23 am by soldat-game »

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: How calculate distance and small sugest
« Reply #1 on: February 11, 2016, 10:40:20 am »
Divide the result of distance() by 14 to convert to 'm'.
urraka

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: How calculate distance and small sugest
« Reply #2 on: February 11, 2016, 10:46:22 am »
This does not give the exact values are very different .The values vary depending on the distances of up to 5

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: How calculate distance and small sugest
« Reply #3 on: February 11, 2016, 11:38:39 am »
The exact coordinates it uses to calculate the distance might differ from the ones you are using (this has bullet initial position and something else which I'm not sure what it is).
urraka

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: How calculate distance and small sugest
« Reply #4 on: February 11, 2016, 12:05:34 pm »
But it says invalid data even though I and the opponent dont move

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: How calculate distance and small sugest
« Reply #5 on: March 07, 2016, 12:52:03 pm »
 (this has bullet initial position and something else which I'm not sure what it is). devs what something else?