Home
Forum
Rules
Search
Login
Register
December 21, 2024, 09:37:26 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
G&S Host
is hosting quality Soldat servers for rental (USA, Australia, Germany). 24/7 Uptime servers in High Quality+Super Fast Datacenters! Please support these communities by renting a server.
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 2216 times)
0 Members and 1 Guest are viewing this topic.
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
»
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: 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
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: 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
Logged
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?
Logged
Pages: [
1
]
« previous
next »
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
How calculate distance and small sugest