Inactive [FUN] Paintball v1.4 - Paintball Wars! Now with CTF! [953]

Discussion in 'Inactive/Unsupported Plugins' started by IC3D, Jun 18, 2011.

  1. Offline

    IC3D

    Paintball - Configurable Paintball Battles!
    Version: v1.4
    This is a fairly complicated plugin that allows you to have paintball (with a slight client modification) battles, or if you don't want your users to play paintball, its basically bow tag. The games end when all players are out, and the winner is the team with the last man standing.

    Features:
    • Play paintball!
    • Configurable ammo
    • Configurable messages
    • Configurable team bases
    • Configurable team spectating areas
    • Inventory saving!
    • Killfeed
    • Capture the flag and elimination game modes!
    Commands:
    Commands (open)

    The Permissions node for all commands is paintball.commands
    • /pb help <cmd> - Show command specific help
    • /pb base <red/blue> - Set the specified team's base (where they are teleported when the game starts)
    • /pb spectate <red/blue> - Sets the specified team's spectating area (where they are teleported when they are hit)
    • /pb add <player> <red/blue> - Add the specified player to the specified team
    • /pb remove <player> - Remove the specified player from the team they are on
    • /pb switch <player> - Switches the player's team
    • /pb tdm - Starts an elimination game! Teleports players to their team's base, saves their inventory, and puts 1 gun and the specified ammo in their inventory
    • /pb ctf - Starts a capture the flag game! Teleports players to their team's base, saves their inventory, puts 1 gun and the specified ammo in their inventory, and sets the flag location to the team color wool.
    • /pb end - Ends the game early! Gives players their original inventories back.
    • /pb clear - Clears all paintballs (arrows) from the ground
    • /pb empty <red/blue> - Clear the specified team of all players
    • /pb flag <red/blue> - Sets the flag location for the specified team

    Configuration:
    config (open)

    A file called config.yml will be created at /plugins/Paintball/config.yml. Some of the values are configurable in game, and the others need to be edited directly in the file. It looks like this:
    Code:
    Messages:
        Hit: You're out!
        GameStart: Paintball has started!
        GameEnd: Game over! %team has won!
    Locations:
        BlueFlag:
        RedDeath:
        BlueDeath:
        BlueBase:
        RedBase:
        RedFlag:
    GameTypes:
        2FlagCTF:
            Hits: 1
            FriendlyFire: false
            Lives: 1
            Ammo: 128
        Elimination:
            Hits: 1
            FriendlyFire: true
            Lives: 1
            Ammo: 128
    
    The messages, ammunition, lives, hits, and friendly fire has be edited directly. The locations are set with the ingame commands.

    To have a paintball gun clientside:
    client (open)

    To mod your client, all you have to do is edit your texture pack's image at minecraft.jar/gui/items.txt. Just change the bow to a paintball gun, and the arrow to a ball shape. I would do this, but my image editor for .png cant handle blank space :(
    If you make your own items.png, please PM me with a download link so other people don't have to edit it themselves.
    Then, follow these steps:
    1. Download Sound Mod Enabler here by epinull
    2. Unzip the file that you downloaded
    3. Move cx.class to your minecraft.jar
    4. Move DO_NOT_UPDATE.txt to .minecraft/resources
    5. Download bow.ogg and drr.ogg
    6. Move both of the above files to .minecraft/resources/newsound/random
    7. Your done!


    Downloads:
    The source code is included in the .jar (/me/ic3d/paintball/)

    Planned Changes
    • More game modes (what would you like to see?)
    Changelog:
    Version 1.4
    • The long awaited 953 update (sorry I was busy!)
    • PLEASE report bugs as I am sure there are tons :)
    Version 1.3
    • Fixed the plugin. During later 1.2 I accidentally uploaded a test build without realizing it, and it messed up the plugin.
    • Changed /pb start to /pb tdm, because its a team deathmatch
    • Added per-game type lives, ammo, friendly fire, and hits
    • This was hastily coded at 2:20 AM, so if there are any bugs (there are bound to be a bunch) please let me know as soon as possible!
    • Blocked paintball (arrow) damage (when game is on and you are playing)
    Version 1.2
    • Added a two flag capture the flag game mode! The game mode works like this:
      • Use /pb flag <red/blue> to set the team flag locations (should be near their base)
      • Use /pb ctf to start a capture the flag game
      • Run to the other team's flag and right click it to grab it, the block should turn white and give you one flag
      • Run back to your flag and right click it, you have to have the enemy's flag somewhere in your inventory
      • You win!
    • Added a /empty for easier team clearing
    Version 1.1
    • Fixed everything. There were a million things wrong with the first one.
    • Cleaned the code
    • Better kill handling
    • added killfeed
    Version 1.0
    • Secret Bugfixes!
    • Original Release!
    Credits:
    • @captainawesome7 - All coding
     
    jacob0wnz, mathiash98 and kahlilnc like this.
  2. Offline

    captainawesome7

    Hmm. I don't know, I'm going to go test it now.
     
  3. Offline

    Master Dover

    okay let me know if theres a fix
     
  4. Offline

    captainawesome7

    It seems to be working fine for me. Do you have any other plugins that deal with damage? Do you get any errors in the console?
     
  5. Offline

    brord

    image?
     
  6. Offline

    captainawesome7

    There are some videos that somebody made here.
     
  7. Offline

    Master Dover

    the other plugins i have are:
    essentials
    mobarena
    permissions
    pvparena
    worldedit
     
  8. Offline

    captainawesome7

    I'm pretty sure it would be mobarena, somebody else was using that plugin and having problems.
     
  9. Offline

    Master Dover

    didn't work :/ i took off all my other plugins and it still didnt work
     
  10. Offline

    captainawesome7

    Weird. I just downloaded it from the link provided an a build 860 server and it worked perfectly. Do you have permissions installed?
     
  11. Offline

    Master Dover

    i took it off with all the others, should i have it installed?
     
  12. Offline

    ScaryGpro

    I will get a friend to join my server and i will make a step by step tutorial on how to set it up if it works. I to have Mobarena, so we'll see how it goes
     
  13. Offline

    SirNasty2nd

    Is there anyway you can make it where if someone is hit with an arrow that they go to a specified point that can be set by the owner of the server. also how about selecting the paintball area??
     
  14. Offline

    captainawesome7

    When somebody gets hit by an arrow they do get send to the specified spectating point. Clearly the plugin isn't working correctly for you, what other plugins do you have installed, are there any errors, and what build are you on?
     
  15. Offline

    SirNasty2nd

    im on build 860, no errors
     
  16. Offline

    ScaryGpro

    im interested in testing it on my server whenever my friends get on. I set everything up correctly and it seems to be working fine.

    Excuse me captain would you like to see the video i made when it is uploaded to see if you can use it?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  17. Offline

    captainawesome7

    Maybe
     
  18. Offline

    vampirepiggy9

    i dont understand how the ctf works, wen i right click on the opponent's flag the colored block that ws there becomes white and i get a colored one in my inventory but the game doesnt end
    what am i supposed to do after i get the colored block in my inventory????
     
  19. Offline

    captainawesome7

    Dude, you have to go to your own flag and right click that as well. Do you not know how to player capture the flag irl?
     
  20. Offline

    jacob0wnz

    i am having the EXACT same problem as master Dover.
     
  21. Offline

    captainawesome7

    I would try it with permissions first.
     
  22. Offline

    landstreet

    when playing TDM and for example the blue team has killed the red team, does the match then end?
     
  23. Offline

    captainawesome7

    When the one team has hit each member of the other team the game ends.
     
  24. Offline

    landstreet

    ok, so i have looked at some of the comment's and tried do to as you say. I run rb860, my only plugin is paintball, but when we shoot at eachother i get the problem as everybody else. you loose your health and don't get to the spectate area, but respawns at spawn.

    you know what the problem is, cuz i would really like to have this plugin on my server as an event.
     
  25. Offline

    captainawesome7

    It works absolutely fine for me, I have no idea why it isn't working for you.
     
  26. Offline

    Master Dover

    i copy and pasted the cofig file into the yaml check and got this error:
    Code:
    ERROR:
    
    mapping values are not allowed here
      in "<unicode string>", line 21, column 21:
                FriendlyFire: false
     
  27. Offline

    jacob0wnz

    im just guessing but could it possibly conflict with essentials?
     
  28. Offline

    captainawesome7

    Its supposed to be:
    Code:
    FriendlyFire:
        Allow: false
     
  29. Offline

    Master Dover

    then i get this
    Code:
    ERROR:
    
    mapping values are not allowed here
      in "<unicode string>", line 22, column 21:
                FriendlyFire:
                            ^
     
  30. Offline

    captainawesome7

    This is my config (i lied about the one above i guess):
    Code:
    Messages:
        Hit: You're out!
        GameStart: Paintball has started!
        GameEnd: Game over! %team has won!
    Locations:
        BlueFlag: BlueFlag
        RedDeath: RedSpectate
        BlueDeath: BlueSpectate
        BlueBase: BlueBase
        RedBase: RedBase
        RedFlag: RedFlag
    GameTypes:
        2FlagCTF:
            Hits: 1
            FriendlyFire: false
            Lives: 1
            Ammo: 64
        Elimination:
            Hits: 1
            FriendlyFire: false
            Lives: 1
            Ammo: 64
    
    I don't remember changing it over to this, but I downloaded paintball and this is what it generated. I think what I did was upload a new version of paintball and then I realized that it was broken, but I forgot to take it down. I'm going to look for the version before this one, because something is clearly wrong :(

    @Master Dover @jacob0wnz
    It seems I uploaded a test build (when I was re-designing the entire system). I am working on solving the problem (ie: finishing the next version so it isn't broken), and will upload 1.3 as soon as I am able. It might take a while (few hours, or overnight), and I am sorry for the inconvenience caused.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  31. Offline

    Master Dover

    no problem, glad we figured it out, im pumped to try it out! thanks for the help
     

Share This Page