Results 1 to 3 of 3

Thread: A personal question to Jack Lusted about melee calculation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default A personal question to Jack Lusted about melee calculation

    Hi. First of all sorry for my English, it's not my native language.

    In kv_rukes we have:
    melee_hit_chance_base
    melee_hit_chance_min
    melee_hit_chance_max

    In land_units_stats we have:
    melee_attack
    melee_defence

    The question is how this parameters used in melee calculation? I mean what is the formula? How you calculate hit chance?

    Thanks.

  2. #2
    crzyrndm's Avatar Artifex
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    2,576

    Default Re: A personal question to Jack Lusted about melee calculation

    Hit_Chance = Clamp((melee_hit_chance_base - Fn(melee_defence) + Fn(melee_attack)), melee_hit_chance_min, melee_hit_chance_max); // Clamp(val, min, max);
    It’s better to excite some and offend others than be bland and acceptable to all
    Creating a mod.pack with PFM - Database Table Fragments

  3. #3

    Default Re: A personal question to Jack Lusted about melee calculation

    And how looks functions Fn(melee_defence), Fn(melee_attack)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •