GunGame

GunGame event for EventManager

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

5/5, 18 likes
  1. Hi!
    Some bug reports, I am not really sure how to fix this one but it seems certain weapons and specifically y ive confirmed the rocket launcher does not advance you forward once you kill someone with it. I used to have a way around a bug like this where id spawn in a gun to see if that gun would advance me but that didnt even work for the rocket round.

    I also noticed that you cant use the chat command for C4 apparently because you cant actually arm it the same way you do guns and grenades. This is still easy to fix through the cfg but the rocket issue is quite annoying.
     
  2. I still cannot get this to run automatically thru EventManager, any help mate?
     
  3. Hello i tried using some skins but had no luck so far:

    {
    "amount": 1,
    "container": "wear",
    "name": "T-Shirt",
    "shortname": "tshirt",
    "skin": "10046"
    }

    Does anyone have an Idea how get skins working?

    Thank you in advance for your help :)
     
  4. So i wiped my server and copy-pasted the arena to my fresh wiped map. Created new zone and spawn file and deleted old ones. Somehow they still spawn randomly to the place my arena was on the last map
     
  5. You must repl
    You have not updated your spawnfile most likely, remove the old one and replace it with 1 that has the same name
     
  6. Did that.
     
  7. I still find ppl to get stuck in the arena from time time after the event is over. Not sure if this is this plugin or EventManager

    @k1lly0u any ideas?
     
  8. When you saw wiped what exactly did you wipe, make sure you reload the relevant plugins. I am no expert so id reload both GunGame, EventManager and probably SpawnsDb, then check your auto event settings and your spawn file setting. When creating the game you can force a specific spawnfile with event.spawnfile "spawnfilename" after you chose what game mode you want and before you launch. Try these things, see if you get the same issue. Backup your plugins and configuration beforehand
     
  9. Hello.
    Tt is possible to change the Reward Points as reward to 500 High Quality Metal
     
  10. k1lly0u updated GunGame with a new update entry:

    0.3.3


    [DOUBLEPOST=1457739338][/DOUBLEPOST]
    Should be fixed in latest update

    All I can suggest is make sure your settings in eventmanagers autoevent setup are all valid, EventManager will validate everything you set in it, if anything doesnt check out it wont work. It didn't work for me because I misspelled the spawnfile name

    The only way for this to happen is if you are using old spawn files. Remove your spawn files and make new ones

    Unsure, Event Manager handles all the major things like homes, gear etc. I remember I used to get this issue occasionally when I used to run servers, I would got o the arena and kill any stragglers and then they were sent home. Perhaps check to see if they kill themselves they go home with their gear?

    Reward points are handled through EventManager
     
    Last edited by a moderator: Mar 11, 2016
  11. Quick report, rockets are working no new issues that I know of. Have not tested other explosive weapons for bugs.

    A persistent bug that I am not sure what to do about: Occasionally people seem to spawn in at a random level at the start, possibly the last level they were on when they lost? It fixes itself after they get a kill.

    The skins do not seem to work for me though I only tried to get it to work twice. I never really cared too much about this but its a neat feature, if anyone has it working share dem configs!
     
  12. [Oxide] 14:08 [Info] [Gun Game] stripgive
    [Oxide] 14:08 [Error] Failed to call hook 'OnEventPlayerSpawn' on plugin 'GunGame v0.3.3' (NullReferenceException: Object reference not set to an instance of an object)
    ins.GunGame.OnEventPlayerSpawn (.BasePlayer player) [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.CSPlu[Oxide] 14:08 [Debug] at Oxide.Plugins.GunGame.GiveRankKit (.BasePlayer player, Int32 rank) [0x00000] in <filename unknown>:0 gin.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
    how to repair
    --- And dont give items in arena
    my GunGame.cs
    class ConfigData
    {
    public string EventName = "GunGame";
    public string SpawnFile = "Event";
    public string ZoneName = "Event";
    public string ArmourType { get; set; }
    public float StartHealth = 100;
    public bool UseMachete { get; set; }
    public bool UseArmour { get; set; }
    public bool UseMeds { get; set; }
    public bool CloseEventAtStart { get; set; }
    public int RankLimit = 29;
    public int TokensPerKill = 1;
    public int TokensOnWin = 10;
    public Gear DowngradeWeapon { get; set; }
    public List<Gear> Meds { get; set; }
    public List<Gear> PlayerGear { get; set; }
    public Dictionary<int, RankItem> Weapons { get; set; }
    }
    how i cant set " public bool UseMachete { get; set; }" - true to AUTOMATIC?
    If the default file it does not work at EventManager non-download it

    public string EventName { get; set; }
    public string SpawnFile { get; set; }
    public string ZoneName { get; set; }
    public string ArmourType { get; set; }
    public float StartHealth { get; set; }
    public bool UseMachete { get; set; }
    public bool UseArmour { get; set; }
    public bool UseMeds { get; set; }
    public bool CloseEventAtStart { get; set; }
    public int RankLimit { get; set; }
    public int TokensPerKill { get; set; }
    public int TokensOnWin { get; set; }
    public Gear DowngradeWeapon { get; set; }
    public List<Gear> Meds { get; set; }
    public List<Gear> PlayerGear { get; set; }
    public Dictionary<int, RankItem> Weapons { get; set; }

    and when say /gg kit
    [Oxide] 14:33 [Error] Failed to call hook 'cmdGunGame' on plugin 'GunGame v0.3.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 14:33 [Debug] at Oxide.Plugins.GunGame.SetPlayerKit (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GunGame.cmdGunGame (.BasePlayer player, System.String command, System.String[] args) [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

    sry my english+)
     

    Attached Files:

    Last edited by a moderator: Mar 16, 2016
  13. k1lly0u updated GunGame with a new update entry:

    0.3.4


    [DOUBLEPOST=1458254797,1458192520][/DOUBLEPOST]
    Don't ever edit the plugin directly, edit the config file in /server/oxide/cfg/
    Delete the plugin and download a fresh copy
    If you don't want items in the arena use the chat commands to save the game gear and have a empty inventory
     
  14. Hi, FriendlyFire is disable after open event, but not enable after end event, any ideas ?
     
  15. can you make it or is there a way I can make it where the event can't be opened while the game is going on.
     
  16. Event manager handles friendly fire
    You shouldn't be able to open another game if there is already one playing. That's handled by event manager
     
  17. Anyway to save Food and Water levels so after the event it is the same as before? Sorry if someone asked already!
     
  18. Sorry, but I do not work the skins weapons.
    Code:
        "10": {
          "ammo": 40,
          "ammoType": "ammo.handmade.shell",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "WaterpipeShotgun",
          "shortname": "shotgun.waterpipe",
          "skin": 10143
        },
        "11": {
          "ammo": 40,
          "ammoType": "arrow.wooden",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Crossbow",
          "shortname": "crossbow",
          "skin": 0
        },
        "12": {
          "ammo": 40,
          "ammoType": "arrow.wooden",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "HuntingBow",
          "shortname": "bow.hunting",
          "skin": 0
        },
        "13": {
          "ammo": 40,
          "ammoType": "ammo.handmade.shell",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "EokaPistol",
          "shortname": "pistol.eoka",
          "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": 2,
          "container": "belt",
          "contents": [],
          "name": "SalvagedCleaver",
          "shortname": "salvaged.cleaver",
          "skin": 0
        },
        "16": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "BoneKnife",
          "shortname": "knife.bone",
          "skin": 0
        },
        "17": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "LongSword",
          "shortname": "longsword",
          "skin": 0
        },
        "18": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SalvagedSword",
          "shortname": "salvaged.sword",
          "skin": 0
        },
        "19": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SalvagedIcepick",
          "shortname": "icepick.salvaged",
          "skin": 0
        },
        "2": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "AssaultRifle",
          "shortname": "rifle.ak",
          "skin": 10137
        },
        "20": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SalvagedAxe",
          "shortname": "axe.salvaged",
          "skin": 0
        },
        "21": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Pickaxe",
          "shortname": "pickaxe",
          "skin": 0
        },
        "22": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Hatchet",
          "shortname": "hatchet",
          "skin": 0
        },
        "23": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Rock",
          "shortname": "rock",
          "skin": 0
        },
        "24": {
          "ammo": 0,
          "ammoType": null,
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Torch",
          "shortname": "torch",
          "skin": 0
        },
        "25": {
          "ammo": 40,
          "ammoType": "arrow.hv",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Crossbow",
          "shortname": "crossbow",
          "skin": 0
        },
        "26": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "M249",
          "shortname": "lmg.m249",
          "skin": 0
        },
        "27": {
          "ammo": 0,
          "ammoType": null,
          "amount": 20,
          "container": "belt",
          "contents": [],
          "name": "TimedExplosive",
          "shortname": "explosive.timed",
          "skin": 0
        },
        "28": {
          "ammo": 0,
          "ammoType": null,
          "amount": 20,
          "container": "belt",
          "contents": [],
          "name": "SurveyCharge",
          "shortname": "surveycharge",
          "skin": 0
        },
        "29": {
          "ammo": 0,
          "ammoType": null,
          "amount": 20,
          "container": "belt",
          "contents": [],
          "name": "F1Grenade",
          "shortname": "grenade.f1",
          "skin": 0
        },
        "3": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Thompson",
          "shortname": "smg.thompson",
          "skin": 10120
        },
        "30": {
          "ammo": 20,
          "ammoType": "ammo.rocket.basic",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "RocketLauncher",
          "shortname": "rocket.launcher",
          "skin": 0
        },
        "4": {
          "ammo": 60,
          "ammoType": "ammo.shotgun",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "PumpShotgun",
          "shortname": "shotgun.pump",
          "skin": 10074
        },
        "5": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SMG",
          "shortname": "smg.2",
          "skin": 0
        },
        "6": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "BoltAction",
          "shortname": "rifle.bolt",
          "skin": 10117
        },
        "7": {
          "ammo": 120,
          "ammoType": "ammo.rifle",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SemiAutoRifle",
          "shortname": "rifle.semiauto",
          "skin": 0
        },
        "8": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "SemiAutoPistol",
          "shortname": "pistol.semiauto",
          "skin": 10087
        },
        "9": {
          "ammo": 120,
          "ammoType": "ammo.pistol",
          "amount": 1,
          "container": "belt",
          "contents": [],
          "name": "Revolver",
          "shortname": "pistol.revolver",
          "skin": 0
        }
     
  19. deleted
     
  20. Sorry I am a bit stupid in this department, but I do not see how to start the GG, I have been on servers where you join the event and are TPed to a site. What am I missing?