TA acceleration and unit speed.

Discussion in 'Mod Discussions' started by squishypon3, November 1, 2014.

  1. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    UnitUniverse doesn't give any data on weapon damage nor unit health, or is it just hidden somewhere? :p
  2. Jaedrik

    Jaedrik Active Member

    Messages:
    192
    Likes Received:
    109
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Health is labelled "[ X ] Maximum Damage", in the combat section (X is HP, ie. the maximum amount of damage it can take).
    Click on the weapon name to go to the weapon data.
  4. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Ooh alrighty, thanks! :D Sadly still doesn't give turret rotation rate, fire rate (Sort of), etc... But better than nothin' :p
  5. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Fire rate = reload (simply do 1/reload to get shots/sec).
    Turret rotation is defined in the unit script, not the blueprint, which is why it's not displayed.
  6. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Hm.. And it's not listed in the Unit (Let's say peewee's) section either, guess I'll just have to make educated guesses. :p
  7. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    If you really want to find out, you'll need to open the unit script. Or, you can download SC:TA, and look in the sup com blueprints for the TA units, as I had to look them up and put them in there.

    For the Peewee:
    TurretPitchRange = 360,
    TurretPitchSpeed = 200,
    TurretYawRange = 360,
    TurretYawSpeed = 150,
    squishypon3 likes this.
  8. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Alrighty, I'll go look online for tutorials or something. I'd like to use O:TA's variables, and then balance it myself after the fact.
  9. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Pressing F1 in-game in TA:
    upload_2014-11-2_14-59-46.png

    Blueprint values:
    MaxVelocity=1.8
    Acceleration=0.1
    TurnRate=1120

    Turn Rate:
    Measured in unts/frame, where 65536 units = 360 deg (in one frame).
    with 30 frames/sec, this makes:
    65536/30 = 360 deg/sec
    2184.53 = 360 deg/sec
    6.06814 = 1 deg/sec, so divide the TA value by 6.07 to get the PA value for turn rate.
    (looks like I was off by 0.01 :p).

    Confirmation: 1120 / 6.07 = 184.5705603364458deg/s (or 185 rounded).

    Velocity:
    measured in pixels/frame, which is (30 *pixels)/second
    So how many pixels in a meter? We can reverse the values from the information panel.

    21.6m/s = 1.8 * (30 * pixels_per_meter)/s
    = 0.4 pixels per meter
    Plugging that back in,
    1/12 = 1m/s, so multiply the TA value by 12 to get the PA value for velocity.

    Confirmation:
    1.8 * 12 = 21.6m/s

    I think the difference between this and what I had was due to translation into SupCom units of measurement.

    Acceleration:
    Same as velocity, simply multiply by 12.

    Confirmation: 0.1 * 12 = 1.2m/s/s

    You can either use these factors on the raw values, or build one of every unit and press F1 on each, noting down their values :)

    Ranges and Distances:
    If measured in pixels, use the pixels per meter conversion value: 0.4
    Jaedrik and squishypon3 like this.
  10. Jaedrik

    Jaedrik Active Member

    Messages:
    192
    Likes Received:
    109
    HA!

    I just like typing Poosticks. I'm too lazy to not post redundant information. :eek:
    Thank you for the maths, based Raevn.
    Raevn likes this.

Share This Page