1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Tweaks Through The Platform 1.1

Tired of annoying archers shooting from the platforms? Then this is for you.

  1. Diprog

    Diprog Bison Rider Tester
    1. FUN Servers

    Messages:
    149
    Diprog submitted a new resource:

    Through The Platform - Tired of annoying archers shooting from the platforms? Then this is for you.

    Read more about this resource...
     
  2. Anonymuse

    Anonymuse Arsonist

    Messages:
    443
    Interesting concept, what exactly is the chance that it will go through percentage-wise?
     
  3. Diprog

    Diprog Bison Rider Tester
    1. FUN Servers

    Messages:
    149
    Let's see. Max value is 4. Random function generates values from 1 to 4 (max value). So the chance is 1/4 = 0.25 = 25%. You can change it in the script.
    --- Double Post Merged, May 25, 2015, Original Post Date: May 25, 2015 ---
    I'll add it to the recource's thread
     
    Anonymuse likes this.
  4. Skinney

    Skinney THD Team THD Team Forum Moderator Tester

    Messages:
    468
    You forgot to remove the print, some slight cleanup
    Code:
    bool doesCollideWithBlob(CBlob@ this, CBlob@ blob)
    {
        if(blob.getName() == "arrow")
        {
            return XORRandom(4) == 0? false : true;
        }
        return true;
    }
    You could additionally check the arrow type, so only regular arrows would ignore collisions.
    Code:
    #include "ArcherCommon.as";
    
    if(blob.get_u8("arrow type") == ArrowType::normal)
    {
        // perform random check
    }
     
    Anonymuse likes this.
  5. Diprog

    Diprog Bison Rider Tester
    1. FUN Servers

    Messages:
    149
    Thanks, Skinney. I already made an update, will post it tomorrow. But also, you did "!=" instead of "==", if we only need to check if it's normal arrow. I think holding random value as a variable is better, than doing everything without it, that's why I don't do something like you wrote.
     
  6. AmestriStephen

    AmestriStephen Haxor Forum Moderator Staff Alumni Tester

    Messages:
    335
    Small but.... Nice! You've always got the best creative ideas, Diprog, congratulations! Amazing modder.
     
  7. Diprog

    Diprog Bison Rider Tester
    1. FUN Servers

    Messages:
    149
  8. heX_

    heX_ Bison Rider

    Messages:
    193
    Really cool idea, hope this gets added to vanilla if it works well.
     
  9. Diprog

    Diprog Bison Rider Tester
    1. FUN Servers

    Messages:
    149
    Thanks. I also want to add some effects and sounds after the passage
     
    Last edited: May 27, 2015
  10. duke54

    duke54 Catapult Fodder

    Messages:
    27
    So the weakest class which has little protection now has no protection at all? Why dont u make a mode that makes all archers die when a knight looks at them?
     
  11. bunnie

    bunnie Haxor Tester

    Messages:
    1,319
    Stop fucking trolling you moron. Archers can stomp knights, can be 2x faster, can climb fucking trees, can fight at melee range too (fcking triple shots). Archers that camp just can be killed by archers now - what's the damn problem man!!!!

    Also people can do whatever mods their want. Why you're so fucking butthurt?