GunGame

GunGame event for EventManager

Total Downloads: 3,899 - First Release: Dec 1, 2015 - Last Update: May 21, 2017

5/5, 18 likes
  1. Download EventManager, there's instructions in the overview on how to set it up
     
  2. When i start the gungame event, we dont start with anything. the clothes and the belt has nothing.
     
  3. A little help please?
    Code:
    (21:32:17) | [RCON][98.185.22.42:60563] oxide.unload EventManager
    (21:32:17) | [Oxide] 21:32 [Info] Unloaded plugin Event Manager v1.2.20 by Reneb
    (21:32:33) | [RCON][98.185.22.42:60563] oxide.load EventManager
    (21:32:33) | [Oxide] 21:32 [Info] Loaded plugin Event Manager v1.2.20 by Reneb
    (21:32:34) | [Oxide] 21:32 [Info] [Event Manager] Registered event game: Last Man Standing
    (21:32:34) | [Oxide] 21:32 [Error] Failed to call hook 'OnSelectEventGamePost' on plugin 'GunGame v0.3.4' (NullReferenceException: Object reference not set to an instance of an object)
    (21:32:34) | [Oxide] 21:32 [Error] Failed to call hook 'RegisterGame' on plugin 'GunGame v0.3.4' (NullReferenceException: Object reference not set to an instance of an object)
    (21:32:58) | [RCON][98.185.22.42:60563] status
    What did I screw up here?

    No idea why it says last man standing, event.launch 0 is the GunGame
     
    Last edited by a moderator: Apr 30, 2016
  4. k1lly0u updated GunGame with a new update entry:

    0.3.5

     
  5. I have a problem with the GunGame.
    when the event is over, I have to restart the plugin if the players turn a event with their own stuff and they lose by dying.
    Sorry I speak very little English
     
  6. Hey guys,
    Can anyone tell me a bit about tokens/rewards?
    I use ServerRewards plugin and would like kills/wins to award points in there.

    With tokensonwin at 10, I an awarded 5 points in ServerRewards
    With tokensonwin at 20, I'm awarded 6 points in ServerRewards.
    I haven't seen any points awarded per kill yet but have tried tokensperkill 1 and tokensperkill2

    No public or private announcement is made - I just check /s and see my points difference.

    Thanks.
     
  7. k1lly0u updated GunGame with a new update entry:

    0.3.51

     
  8. I must apologise - I had been putting 'tokensperkill' and 'tokensonwin' into EventsManager json in error, and this was the cause of the imbalanced awards.
    Putting them in GunGame json works just fine (yesterday's version).

    I apologise if I've wasted your time at all.
     
  9. Good day! Can live in stages to write what commands in what order to prescribe to configure ?
     
  10. 16:26 [Error] Failed to call hook 'OnSelectEventGamePost' on plugin 'GunGame v0.3.51' (NullReferenceException: Object reference not set to an instance of an object)
    16:26 [Debug] at Oxide.Plugins.GunGame.OnSelectEventGamePost (System.String name) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GunGame.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  11. Please elaborate on what your are saying?
    Post your config please
     
  12. That happened on the server restart, once I reload the plugin it was fine
     

    Attached Files:

  13. I don't think it is a issue really besides seeing the error, once the last event loads they all get reloaded. You don't even need to reload it once the server has started or at least I don't have to
     
  14. how I use tokens ??
     
  15. The event don't seam to end when i change the weapon(Bone club) for the last rank(15) to some thing else(F1 Grenade) it just keeps going and forced me to manually end the event. I tried changing the config file and doing it manually trough /gg rank 15 50, they both add the weapon and every thing but it dosnt end the event as suppose to. Nothing in the debug log as to why.
     
  16. Update on testing this plugin and a rewrite of the how the game is played to better understand the rules : Gun Game

    The rules of GunGame are simple. Each kill you get will advance you 1 rank, each rank comes with a new weapon. The weapons get harder to kill with the higher you go (you must kill with the weapon you are given or your score will not advance). The first person to get a kill on rank 15 wins. Kills with a machete will lower the victim's rank (Your score will stay the same and not advance). Reward points are issued to the winner.
     
  17. Since I couldnt find any other configs around here, I wrote my own :)
    If anybody wants to try it out, here you go.
    Code:
    {
      "ArmourType": "metal.plate.torso",
      "CloseEventAtStart": true,
      "DowngradeWeapon": {
        "amount": 1,
        "container": "belt",
        "name": "Machete",
        "shortname": "machete",
        "skin": 0
      },
      "EventName": "GunGame",
      "Meds": [
        {
          "amount": 2,
          "container": "belt",
          "name": "Medical Syringe",
          "shortname": "syringe.medical",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "belt",
          "name": "Bandage",
          "shortname": "bandage",
          "skin": 0
        }
      ],
      "PlayerGear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10044
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Baseball Cap",
          "shortname": "hat.cap",
          "skin": 10055
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Longsleeve T-Shirt",
          "shortname": "tshirt.long",
          "skin": 10125
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10078
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Bandana Mask",
          "shortname": "mask.bandana",
          "skin": 10065
        }
      ],
      "RankLimit": 15,
      "SpawnFile": "ggspawnfile",
      "StartHealth": 100.0,
      "TokensOnWin": 5,
      "TokensPerKill": 1,
      "UseArmour": true,
      "UseMachete": true,
      "UseMeds": true,
      "Weapons": {
        "1": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "Revolver",
          "shortname": "pistol.revolver",
          "skin": 10114
        },
        "2": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "SemiAutoPistol",
          "shortname": "pistol.semiauto",
          "skin": 10081
        },
        "3": {
          "ammo": 40,
          "ammoType": "ammo.handmade.shell",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "WaterpipeShotgun",
          "shortname": "shotgun.waterpipe",
          "skin": 10143
        },
        "4": {
          "ammo": 60,
          "ammoType": "ammo.shotgun",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "PumpShotgun",
          "shortname": "shotgun.pump",
          "skin": 10074
        },
        "5": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "SMG",
          "shortname": "smg.2",
          "skin": 0
        },
        "6": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "Thompson",
          "shortname": "smg.thompson",
          "skin": 10120
        },
        "7": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "SemiAutoRifle",
          "shortname": "rifle.semiauto",
          "skin": 0
        },
        "8": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "AssaultRifle",
          "shortname": "rifle.ak",
          "skin": 10138
        },
        "9": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "BoltAction",
          "shortname": "rifle.bolt",
          "skin": 10116
        },
        "10": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "M249",
          "shortname": "lmg.m249",
          "skin": 0
        },
        "11": {
          "ammo": 20,
          "ammoType": "ammo.rocket.basic",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "RocketLauncher",
          "shortname": "rocket.launcher",
          "skin": 0
        },
        "12": {
          "ammo": 40,
          "ammoType": "arrow.wooden",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "HuntingBow",
          "shortname": "bow.hunting",
          "skin": 0
        },
        "13": {
          "ammo": 40,
          "ammoType": "arrow.hv",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.holosight"
          ],
          "name": "Crossbow",
          "shortname": "crossbow",
          "skin": 0
        },
        "14": {
          "ammo": 0,
          "ammoType": null,
          "amount": 2,
          "container": "belt",
          "contents": [],
          "name": "StoneSpear",
          "shortname": "spear.stone",
          "skin": 0
        },
        "15": {
          "ammo": 0,
          "ammoType": null,
          "amount": 4,
          "container": "belt",
          "contents": [],
          "name": "LongSword",
          "shortname": "longsword",
          "skin": 0
        },
        "16": {
          "ammo": 40,
          "ammoType": "ammo.handmade.shell",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "EokaPistol",
          "shortname": "pistol.eoka",
          "skin": 0
        },
        "17": {
          "ammo": 0,
          "ammoType": null,
          "amount": 2,
          "container": "belt",
          "contents": [],
          "name": "SalvagedCleaver",
          "shortname": "salvaged.cleaver",
          "skin": 0
        },
        "18": {
          "ammo": 0,
          "ammoType": null,
          "amount": 2,
          "container": "belt",
          "contents": [],
          "name": "Mace",
          "shortname": "mace",
          "skin": 0
        },
        "19": {
          "ammo": 0,
          "ammoType": null,
          "amount": 2,
          "container": "belt",
          "contents": [],
          "name": "BoneClub",
          "shortname": "bone.club",
          "skin": 0
        },
        "20": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "BoneKnife",
          "shortname": "knife.bone",
          "skin": 0
        },
        "21": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SalvagedSword",
          "shortname": "salvaged.sword",
          "skin": 0
        },
        "22": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SalvagedIcepick",
          "shortname": "icepick.salvaged",
          "skin": 0
        },
        "23": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SalvagedAxe",
          "shortname": "axe.salvaged",
          "skin": 0
        },
        "24": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Pickaxe",
          "shortname": "pickaxe",
          "skin": 0
        },
        "25": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Hatchet",
          "shortname": "hatchet",
          "skin": 0
        },
        "26": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Rock",
          "shortname": "rock",
          "skin": 0
        },
        "27": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Torch",
          "shortname": "torch",
          "skin": 0
        },
        "28": {
          "ammo": 0,
          "ammoType": null,
          "amount": 20,
          "container": "belt",
          "contents": [],
          "name": "TimedExplosive",
          "shortname": "explosive.timed",
          "skin": 0
        },
        "29": {
          "ammo": 0,
          "ammoType": null,
          "amount": 20,
          "container": "belt",
          "contents": [],
          "name": "SurveyCharge",
          "shortname": "surveycharge",
          "skin": 0
        },
        "30": {
          "ammo": 0,
          "ammoType": null,
          "amount": 20,
          "container": "belt",
          "contents": [],
          "name": "F1Grenade",
          "shortname": "grenade.f1",
          "skin": 0
        }
      },
      "ZoneName": "GunGame"
    }
     
  18. Hi, Wonder if you can help. Just updated / wiped my servers and rebuilt my GunGame arena's. Tested it on one server and all is OK with the first weapon but as soon as you get killed you respawn naked with a rock & torch. I'm using the same configs as last map cycle so there should be no difference unless a change has been made by facepunch on the update.

    Any ideas? Thanks in advance...
     
  19. Getting the same issue here with gun game and chopper survival which, I think, makes it an EventManager issue.
    I've posted there - could you back me up please?

    Out of interest, do your guys spawn naked with rock in the normal place, or do you briefly see the normal place then spawn miles away?
    My guys see the normal spawn point, click to wake up, then get transported to the bottom of the ocean!

    My arena is in the sky. Is yours?

    I have disabled eject sleepers in zone manager, and disabled kill deserters in event manager.
    It didn't help, but you might try that just incase.
     
  20. 11:27 [Error] Failed to call hook 'OnSelectEventGamePost' on plugin 'GunGame v0.3.51' (NullReferenceException: Object reference not set to an instance of an object)
    11:27 [Debug] at Oxide.Plugins.GunGame.OnSelectEventGamePost (System.String name) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GunGame.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    How to fix?