Author Topic: Range  (Read 1626 times)

Offline tcbuster

  • Rank: Private
  • *
  • Posts: 168
    • http://www.thecompanyhub.com/
Range
« on: January 08, 2009, 04:05:13 pm »
Ok, some of you know I made the weapons modification for CoD4. The range modifications I did were kind of trial by error.

This time for World at War I really want to nail down a definite.

My question:

In the weapons scripts they have ranges set as something like the example below...

maxDamageRange = 1500
minDamageRange = 2000

I am trying to figure out what 1 is equal to in game... meters, yards, etc...

I have a few conflicting answers.


The first is provided by Zeroy a very reliable source...

1Unit = 0.02778 Yards
1Unit = 0.0254 Meters

So for example 500 meters is about 20000 Units.

It seems a bit off for weapons not sure..

The other was the following and I cant remember where I got it.

1 unit = 1 yards...

so 2000 would be somewhere in the neighborhood of 660 yards

Looking for a final answer thanks...

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Range
« Reply #1 on: January 09, 2009, 10:21:03 am »
I'll have some more info for you in a bit Buster

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Range
« Reply #2 on: January 09, 2009, 10:38:44 am »
This is from {LSB}Alfa

Was wandering about the units in radiant when deciding on distances in maps. In a test map I placed 4 targets at different distance and measured the distance in game with our scope.

The following are the results of the measurements:
(RU) = Radiant Units

500 RU = 19 yards = 57' = 684" => 1 RU = 1.368"
1000 RU = 38 yards = 114' = 1368" => 1 RU = 1.368"
1500 RU = 57 yards = 171' = 2052" => 1 RU = 1.368"
2000 RU = 76 yards = 228' = 2736" => 1 RU = 1.368"

Guess these measurements give very good results. So now we know that based on the "distometer" (in the scopes in game) 1 unit in radiant is 1.368". This is a bit different than posted in all other forums where it says that 1 RU is approximately the same as 1". But in fact we have about 37% error which is huge when looking at building bigger maps.

So in radiant in order to get a 1000 yard distance we would need (1000 x 3 x 12)/1.368 = 26,315.8 RU's (approx.)

So to have some sort of guideline I thought this would be of some help

SUMMARY / GUIDELINES (for mapping):

1 RU = 1.368"
1" = 0.731 RU's (approx.)
1' = 8.772 RU's (approx.)
1 Yard = 26.3158 RU's (approx.)

Offline tcbuster

  • Rank: Private
  • *
  • Posts: 168
    • http://www.thecompanyhub.com/
Re: Range
« Reply #3 on: January 09, 2009, 12:48:14 pm »
Very interesting and eXtremely helpful.  :)

So I am betting it would be safe to say they are using RU's when setting the following below.

maxDamageRange = 1500
minDamageRange = 2000

You kind of have to shrink yourself inside the game also. Being a golfer I have used my yardage sense to be able to tell how far targets are with just the naked eye.

We did this when setting up our shotguns in CoD4. Believe it or not we wound up very close to what is in the calculations you posted... 500 is around 20 yards... This should be interesting to tinker with further now that I have a touch bit more sound information.

Good Deal  :wink: