Mineplex Paintball Shotgun Related Programming

Discussion in 'Plugin Development' started by Agentleader1, Jan 21, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Agentleader1

    As you may notice, if you have played Mineplex, and have studied their game, Super Paintball, which yes, I am pretty good at it, I am curious how the shotgun is programmed.

    Things that make me curious about it:
    • The spread of the shotgun
    • The vectors of each snowball/enderpearl
    • The Hit-and-run
    I am wondering how they make the spread of the shotgun so random and well spread. And if you have played the game long enough, you would know a few techniques to it, including the slide-by (pass a person on their side while you shoot them, thus killing them). I have attempted to recreate the Mineplex Paintball Shotgun, and I have closely got the spread, but can't seem to get an instant kill with multiple bullets landing on the person.

    What I want to know how:
    • How to make the same kind of spread or at least a good spread.
    • How to make an instant kill if 4+ projectiles hit them.
    Thank you very much.
     
    GrandmaJam likes this.
  2. Offline

    GrandmaJam

    This is a good question. Hope to see replies soon
     
  3. Offline

    sethrem

  4. Offline

    Agentleader1

    Like it? I LOVED IT, now to get the spread right, you want the butter in good places but not too far

    I just realized a few minutes before posting this, that it doesn't seem to work, does it have to be .setDamage or can it be .setHealth? I used .setHealth, but if I must, I will use .setDamage. Also as well, it may be the spread that caused the damage issue. Need more butter concentrated D:


    Edit: I think I know the problem, I need to use .setDamage but in .setDamage the health is lowered and stuff, so how much in .setDamage(?) is 5 health or 2 and a half hearts?

    Edit 2: I don't think the post you gave me worked, the damages still have a cooldown before they get more damage.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  5. Offline

    ChipDev

    Spread:
    Use locations. Get the players location, add a random amount to the pitch/yaw, then get the direction (Don't make the player teleport to the pitch/yaw, create a new location!)
     
  6. Offline

    Agentleader1

    Thanks, but I think I found it out, now I need to find out exactly what code I need to make a shotgun instant kill with 4 bullet hit.
    Thanks for trying to tell me though ;)
     
    Last edited: Jan 22, 2015
    ChipDev likes this.
  7. Offline

    sethrem

    @Agentleader1 I recreated mineplex paintball 100% with all features and the page I linked you to works becaue that's the code I use for my minigame so obviously you arent registering our events. Post your code.
     
  8. Offline

    Agentleader1

    Bump, still need help.
     
  9. Offline

    Experminator

  10. Offline

    FerusGrim

    @Agentleader1
    Stealing code is not the same thing as re-creating it. Otherwise, Bukkit would go against our very own beliefs. It does, after all, replicate the MC Server.
     
    Last edited by a moderator: Jan 30, 2015
  11. Offline

    Freack100

    I don't really agree with that, because CraftBukkit is based on the MC Server and contains all it's code. Bukkit doesn't replicate anything, because it's just the API.

    Glowstone, for example, is recreating the MC Server.
     
  12. Offline

    nverdier

  13. Offline

    Experminator

    @nverdier What are the features of Glowstone (I heard the name somewhere)?
     
  14. Offline

    nverdier

    @Experminator Glowstone is Open Source. Of course they aren't breaking any laws, because they are 're-creating' Mojang's server. It's also lightweight, and has great performance (all of this is just on their website). And they also say that they have a "Mature API" which means somewhat like the Bukkit API.
     
  15. Offline

    sethrem

  16. Offline

    FerusGrim

    s/bukkit/craftbukkit
    I didn't - I quoted you. I was reiterating to the OP to post his code.
     
  17. Offline

    sethrem

  18. Offline

    Agentleader1

    I will always need help with making the shotgun "instant kill." The day I find the answer is the day I end this thread.
     
  19. Offline

    Agentleader1

    Bump, it's never gonna happen is it? T_T
     
  20. Offline

    ChipDev

    A snowball interacts with a player, use some event like projectilehitEvent
     
Thread Status:
Not open for further replies.

Share This Page