Home
Forum
Rules
Search
Login
Register
April 02, 2023, 12:42:45 am
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join Soldat's community on Discord!
You can follow and get involved in the developing process at the development related channels, as well as play arranged competitive matches at the
#gather
channel.
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
How calculate distance and small sugest
« previous
next »
Pages: [
1
]
Author
Topic: How calculate distance and small sugest (Read 1149 times)
0 Members and 1 Guest are viewing this topic.
soldat-game
Camper
Posts: 406
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
»
Logged
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'.
Logged
urraka
soldat-game
Camper
Posts: 406
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
Logged
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).
Logged
urraka
soldat-game
Camper
Posts: 406
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
Logged
soldat-game
Camper
Posts: 406
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?
Logged
Pages: [
1
]
« previous
next »
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
How calculate distance and small sugest