This topic contains 2 replies, has 0 voices, and was last updated by  Thrax 8 years, 9 months ago.

  • Author
    Posts
  • #6746

    Frankie
    Participant

    According to the specs on your site, the NumParse class is freaking awesome for modding.

    First question: does the actual game match those specs? Is the use of RANGE and DISTRIBUTION recommended, or is it considered unstable?

    Second question: If I understand the syntax correctly, then the following little snippet:


    false
    false
    0
    DISTRIBUTION(-10,0,10)

    ... whatever ...

    … should be identical in function to this much longer chunk:



    10
    ... whatever ...


    10

    false
    false
    0
    10

    ... whatever ...




    10

    false
    false
    0
    -10

    ... whatever ...



    Is that correct? ❓

    And it would be trivial to add even more variation just by adjusting the two redirect lines?

    #54726

    Thrax
    Participant

    @frankie wrote:

    According to the specs on your site, the NumParse class is freaking awesome for modding.

    First question: does the actual game match those specs? Is the use of RANGE and
    DISTRIBUTION recommended, or is it considered unstable?

    Second question: If I understand the syntax correctly, then the following little
    snippet:
    —-snip—
    Is that correct? ❓

    And it would be trivial to add even more variation just by adjusting the
    two redirect lines?

    In theory, you are correct. It would fire the effect at one of 3 random angles.
    If replaced with a RANGE(10,-10, 1), it would in fact pick any random angle
    between those limits, at 1 degree adjustments.

    The Random/numparse addition was extremely helpfull to modders. It let us
    create a specific level of variance, or a random-angle set, with only a few lines
    of code, instead of hundreds.

    Combining that, with the enhanced repeat / goto-loop feature, many of my
    complex weapons were simplified to a fraction of there code size.

    The living flame weapon, Lava-Worm, is nasty with it’s life-like intellegence; yet
    it’s code is merely a single repeated loop.[code]
    —-snip—
    Is that correct? ❓

    And it would be trivial to add even more variation just by adjusting the
    two redirect lines?
    In theory, you are correct. It would fire the effect at one of 3 random angles.
    If replaced with a RANGE(10,-10, 1), it would in fact pick any random angle
    between those limits, at 1 degree adjustments.

    The Random/numparse addition was extremely helpfull to modders. It let us
    create a specific level of variance, or a random-angle set, with only a few lines
    of code, instead of hundreds.

    Combining that, with the enhanced repeat / goto-loop feature, many of my
    complex weapons were simplified to a fraction of there code size.

    The living flame weapon, Lava-Worm, is nasty with it’s life-like intellegence; yet
    it’s code is merely a single repeated loop.

    #54727

    Frankie
    Participant

    @thrax wrote:

    @frankie wrote:

    First question: does the actual game match those specs? Is the use of RANGE and DISTRIBUTION recommended, or is it considered unstable?

    In theory, you are correct. It would fire the effect at one of 3 random angles.

    Thanks. But is there a “But…” that follows your “In theory…”? 😕

    In theory, theory and practice are the same. But in practice, they aren’t.

    #54728

    Thrax
    Participant

    @frankie wrote:

    @thrax wrote:

    @frankie wrote:

    First question: does the actual game match those specs? Is the use of RANGE
    and DISTRIBUTION recommended, or is it considered unstable?

    In theory, you are correct. It would fire the effect at one of 3 random angles.

    Thanks. But is there a “But…” that follows your “In theory…”? 😕

    In theory, theory and practice are the same. But in practice, they aren’t.

    It’s called Experementing. There are a few occasions that the code you twist
    will not act as you intended, but instead create a new and unexpected result.
    This can actually be a good thing, as it helps us all by discovering abilities even
    the author diddn’t know he added in. Like Vaccuum Mag shields, Multi-turn
    weapons, or the ability to control your targets movement against thier will.

    As you try new things, share your findings with other modders. We all can
    learn together.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.