TeamBattlefield

Two teams, adjustable friendly-fire, kits, individual team items, spectator mode

Total Downloads: 1,922 - First Release: Sep 4, 2015 - Last Update: Apr 19, 2018

5/5, 7 likes
  1. Could you tell me why the last belt slot is empty? I want the large Medkits in the last belt slot
    Code:
    {
      "Admin_Chat_Color": "<color=#00ff04>",
      "Admin_Chat_Prefix": "[Admin] ",
      "BroadcastDeath": true,
      "FF_DamageScale": 0.0,
      "MaximumTeamCountDifference": 4,
      "RemoveSleeper_Timer": 5,
      "Spectator_Chat_Color": "<color=white>",
      "Spectator_Chat_Prefix": "[Spectator] ",
      "TeamA_Chat_Color": "<color=#0066ff>",
      "TeamA_Chat_Prefix": "[Team A] ",
      "TeamA_Spawnfile": "team_a_spawns",
      "TeamB_Chat_Color": "<color=#ff0000>",
      "TeamB_Chat_Prefix": "[Team B] ",
      "TeamB_Spawnfile": "team_b_spawns",
      "UsePluginChatControl": true,
      "z_Admin_Gear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Hoodie",
          "shortname": "hoodie",
          "skin": 10129
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10078
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Gloves",
          "shortname": "burlap.gloves",
          "skin": 10128
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10023
        }
      ],
      "z_CommonGear": [
        {
          "amount": 1,
          "container": "belt",
          "name": "Machete",
          "shortname": "machete",
          "skin": 0
        },
        {
          "amount": 4,
          "container": "belt",
          "name": "Large Medkit",
          "shortname": "largemedkit",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "belt",
          "name": "Bandage",
          "shortname": "bandage",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "belt",
          "name": "Paper Map",
          "shortname": "map",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Metal ChestPlate",
          "shortname": "metal.plate.torso",
          "skin": 0
        }
      ],
      "z_StartingWeapons": [
        {
          "ammoType": "ammo.rifle.hv",
          "amount": 1,
          "container": "belt",
          "name": "Assault Rifle",
          "shortname": "rifle.ak",
          "skin": 10137
        },
        {
          "ammo": 120,
          "ammoType": "ammo.rifle.hv",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.small.scope"
          ],
          "name": "Bolt Actin Rifle",
          "shortname": "rifle.bolt",
          "skin": 10115
        },
        {
          "ammo": 120,
          "ammoType": "ammo.pistol.hv",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.silencer"
          ],
          "name": "SemiAutoPistol",
          "shortname": "pistol.semiauto",
          "skin": 10087
        },
        {
          "amount": 2,
          "container": "belt",
          "name": "F1 Grenade",
          "shortname": "grenade.f1"
        }
      ],
      "z_TeamA_Gear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Hoodie",
          "shortname": "hoodie",
          "skin": 14178
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10020
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Gloves",
          "shortname": "burlap.gloves",
          "skin": 10128
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10023
        }
      ],
      "z_TeamB_Gear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Hoodie",
          "shortname": "hoodie",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10019
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Gloves",
          "shortname": "burlap.gloves",
          "skin": 10128
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10023
        }
      ]
    }
    Inventory.PNG
     
  2. Through the config
    It may be bugging out because you have 8 items assigned to your belt in the config
     
  3. Could you tell me which container is the rest of the inventory?
     
  4. main is the big one
     
  5. Doesn't work, even after correcting it.
    Code:
    {
      "Admin_Chat_Color": "<color=#00ff04>",
      "Admin_Chat_Prefix": "[Admin] ",
      "BroadcastDeath": true,
      "FF_DamageScale": 0.0,
      "MaximumTeamCountDifference": 4,
      "RemoveSleeper_Timer": 5,
      "Spectator_Chat_Color": "<color=white>",
      "Spectator_Chat_Prefix": "[Spectator] ",
      "TeamA_Chat_Color": "<color=#0066ff>",
      "TeamA_Chat_Prefix": "[Team A] ",
      "TeamA_Spawnfile": "team_a_spawns",
      "TeamB_Chat_Color": "<color=#ff0000>",
      "TeamB_Chat_Prefix": "[Team B] ",
      "TeamB_Spawnfile": "team_b_spawns",
      "UsePluginChatControl": true,
      "z_Admin_Gear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Hoodie",
          "shortname": "hoodie",
          "skin": 10129
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10078
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Gloves",
          "shortname": "burlap.gloves",
          "skin": 10128
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10023
        }
      ],
      "z_CommonGear": [
        {
          "amount": 1,
          "container": "belt",
          "name": "Machete",
          "shortname": "machete",
          "skin": 0
        },
        {
          "amount": 5,
          "container": "belt",
          "name": "Large Medkit",
          "shortname": "largemedkit",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "main",
          "name": "Bandage",
          "shortname": "bandage",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "main",
          "name": "Paper Map",
          "shortname": "map",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Metal ChestPlate",
          "shortname": "metal.plate.torso",
          "skin": 0
        }
      ],
      "z_StartingWeapons": [
        {
          "ammoType": "ammo.rifle.hv",
          "amount": 1,
          "container": "belt",
          "name": "Assault Rifle",
          "shortname": "rifle.ak",
          "skin": 10137
        },
        {
          "ammo": 120,
          "ammoType": "ammo.rifle.hv",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.small.scope"
          ],
          "name": "Bolt Actin Rifle",
          "shortname": "rifle.bolt",
          "skin": 10115
        },
        {
          "ammo": 120,
          "ammoType": "ammo.pistol.hv",
          "amount": 1,
          "container": "belt",
          "contents": [
            "weapon.mod.silencer"
          ],
          "name": "SemiAutoPistol",
          "shortname": "pistol.semiauto",
          "skin": 10087
        },
        {
          "amount": 2,
          "container": "belt",
          "name": "F1 Grenade",
          "shortname": "grenade.f1"
        }
      ],
      "z_TeamA_Gear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Hoodie",
          "shortname": "hoodie",
          "skin": 14178
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10020
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Gloves",
          "shortname": "burlap.gloves",
          "skin": 10128
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10023
        }
      ],
      "z_TeamB_Gear": [
        {
          "amount": 1,
          "container": "wear",
          "name": "Hoodie",
          "shortname": "hoodie",
          "skin": 0
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Pants",
          "shortname": "pants",
          "skin": 10019
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Gloves",
          "shortname": "burlap.gloves",
          "skin": 10128
        },
        {
          "amount": 1,
          "container": "wear",
          "name": "Boots",
          "shortname": "shoes.boots",
          "skin": 10023
        }
      ]
    }
     
  6. K1ll you! didnt realise you developed this?

    In spectate mode - the spectator wields a weapon and is able to shoot/kill the person they are watching. Have you encountered this before?

    *failing that can I just remove the Spectate button?

    *Is the clickable admin permissions based?

    *Changing starting weapons, are the codes the prefab names?

    Thanks bro!

    (THis solves my sleeping bag issue we talked about this morning!)
     
    Last edited by a moderator: Apr 23, 2016
  7. The shouldn't be able to use anything. Something may of changed, I'll take a look later.
    You could remove the spectate button but you would have to modify the plugin to do so
    You need to have auth level to see or use the admin buttons
    Use item short names for gear. There is a list of item short names and skins the the docs (link at the top of the page)
     

  8. Thanks Bro! =] Got any logos or anything I can put out on all of out server and stuff in return for your help?

    *****"There is a list of item short names and skins the the docs (link at the top of the page)"

    I have looked to find this several times now - am I compleltey being blind??

    All I require is the Stone Hatchet & Stone Pickaxe Codes - be great if you could pass them over.
    [DOUBLEPOST=1461537208,1461458374][/DOUBLEPOST]

    Did you manage to fix this? I've done the same thing nd now bags are availble but you cannot choose a team, have you tested /switchteam? does that work?
     
  9. Any way for a private team chat? So people on teams can communicate without the opposite team knowing? Unless it's already been added and I am just missing it.
     
  10. Check out server called North vs South.
     
  11. Just comment out this section of OnPlayerRespawned like shown below
    Code:
    //if (team == Team.A) newpos = Spawns.Call("GetRandomSpawn", new object[] { configData.TeamA_Spawnfile });
                            //else if (team == Team.B) newpos = Spawns.Call("GetRandomSpawn", new object[] { configData.TeamB_Spawnfile });                        //if (newpos is Vector3)
                                //MovePlayerPosition(player, (Vector3)newpos);
                        }
    Click this link to see item short names and skins --> Oxide API for Rust

    Just added it, will be in next update
     
  12. k1lly0u updated TeamBattlefield with a new update entry:

    2.0.3

     
  13. Any way to be able to see team mates with LustyMap? :)
     
  14. Not without modification to LustyMap
     
  15. k1ll you brilliant work yet again =]

    Any further advise on allowed each team to spawn in beds/sleeping bags? WIlling to make the modification with some guidance.

    Thanks dude - donate link?
     
  16. so sorry - I missed this. TAKE MY MONEY!
    [DOUBLEPOST=1463764419][/DOUBLEPOST]
    Still having an issue with the kit swap - I don't want them to start with any weapons but just a stone hatchet and the clothes, could you advise on the config?
     
  17. Can the teams be locked and kept between server restarts?
     
    Last edited by a moderator: Jun 3, 2016
  18. Just set the items you want them to have in the config.
    Example;
    Code:
     "z_StartingWeapons": [
        {    
          "amount": 1,
          "container": "belt",
          "name": "Stone Hatchet",
          "shortname": "stonehatchet"
        }
      ],
    I may look into doing to sometime, other wise check out Factions for Rust | Oxide It's similar to this plus @Absolut has been busy adding alot of features to it
     
  19. Thanks, I'll check it out.