Generic Battlefield Gamemode

I don't support this anymore, for a fixed version check out https://github.com/Tomelyr/gm13-battlefield

This is a gamemode which I made a few weeks ago. It is a TDM based anarchy style gamemode where the main objective is to just hold the control point, level up, and unlock new weapons and vehicles. The gamemode has to be ran on gm_bigcity, although with a few modifications in the code you'd be able to change it to another map. It's sort of customizable, although it is designed to work with FA:S and Customizable Weaponry, so once again, you'll have to change things if you want it to work with your own weapon base. Everything you need if you want to change it is in shared.lua.

Useful stuff:
Running the console command saveprops will delete the existing prop file and write a new one. Since saveprops is one of the addons you can switch to sandbox without having to copy anything over.
There is built in donation perk management, check shared.lua for more info
The gamemode is desgined for the collection here: http://steamcommunity.com/sharedfiles/filedetails/?id=402520580, however, it's fairly easy to change the weapons and even completely remove WAC.
Fire can be made using the CreateFire( Vector ) function.

Not so useful stuff:
Sometimes the capture point stops capturing (should be fixed next gmod update)
The scoreboard is terrible in every way possible and is also branded with my old servers name on.
The UI isn't that great.
There's a massive timer abomination which controls the capture points, which is basically made redundant by the next update.

Screenshots (ignore the error):
[t]http://i.gyazo.com/893adbb9f7ba76dbd2083125d857044d.png[/t]
[t]http://i.gyazo.com/88fa9b0c82dc0cf0fa903d78612c4c04.png[/t]
[t]http://i.gyazo.com/3031eaf7e73417d54f85c1e83cb2939f.jpg[/t]

Other stuff:
If you use this, PM me your IP, I'd like to see what happens when other people host this.

This download looks like a lua file. You need to place it in your lua folder inside the Garry's Mod folder.

You should end up with a directory structure similar to below:

  • steamapps
    • common
      • garrysmod
        • garrysmod
          • lua
            • autorun
              • addons/
                • levels/
                  • lua/
                    • autorun/
                      • level_init.lua
                    • levels/
                      • sh_levels.lua
                      • sh_config.lua
                      • sv_levels.lua
                      • cl_levels.lua
                • harrysshit/
                  • lua/
                    • entities/
                      • bf_car/
                        • init.lua
                        • shared.lua
                        • cl_init.lua
                    • autorun/
                      • client/
                        • cl_harrysshit.lua
                      • server/
                        • sv_harrysshit.lua
                      • sh_harrysshit.lua
                • playermodels/
                  • materials/
                    • codmw2/
                      • opfor/
                        • eye.vtf
                        • face.vmt
                        • shoes.vmt
                        • gear2_n.vtf
                        • face2.vtf
                        • gear2.vtf
                        • gear_n.vtf
                        • pants.vtf
                        • face2.vmt
                        • shimag_n.vtf
                        • pants.vmt
                        • gear2.vmt
                        • eye.vmt
                        • helmeit_n.vtf
                        • pants_n.vtf
                        • face_n.vtf
                        • face.vtf
                        • shoes.vtf
                        • glass.vtf
                        • face2_n.vtf
                        • skimask_n.vtf
                        • shimag.vtf
                        • vest.vtf
                        • skimask.vtf
                        • vest_n.vtf
                        • helmeit.vmt
                        • gear.vmt
                        • skimask.vmt
                        • helmeit.vtf
                        • vest.vmt
                        • glass_n.vtf
                        • gear.vtf
                        • glass.vmt
                        • shimag.vmt
                    • models/
                      • codmw2/
                        • traitors/
                          • back_exp.vtf
                          • back_norm.vtf
                          • helmet.vmt
                          • vest_norm.vtf
                          • back.vtf
                          • face.vtf
                          • casco01_norm.vtf
                          • pants_norm.vtf
                          • pockets_s_r.vmt
                          • ct_urban_glass.vtf
                          • face.vmt
                          • pockets_s_r.vtf
                          • ct_urban_glass.vmt
                          • helmet.vtf
                          • back.vmt
                          • pockets_s_norm.vtf
                          • pockets_r_norm.vtf
                          • pockets_r.vtf
                          • ct_urban_glass_spec.vtf
                          • casco01_exp.vtf
                          • pants.vmt
                          • vest.vmt
                          • casco02.vtf
                          • ojos.vtf
                          • casco02_exp.vtf
                          • pockets_s_exp.vtf
                          • casco.vmt
                          • casco01.vmt
                          • casco02_norm.vtf
                          • ojos.vmt
                          • face_exp.vtf
                          • casco.vtf
                          • face_norm.vtf
                          • casco01.vtf
                          • head.vmt
                          • pants.vtf
                          • vest.vtf
                          • casco02.vmt
                          • pockets_r.vmt
                        • rangers/
                          • pants_norm.vtf
                          • glasses.vtf
                          • helmet3_norm.vtf
                          • face.vtf
                          • helmet3.vmt
                          • glasses_norm.vtf
                          • helmet.vmt
                          • pockets_s_norm.vtf
                          • face2_norm.vtf
                          • ct_urban_glass.vmt
                          • helmet2.vmt
                          • 006.vmt
                          • pockets_s_exp.vtf
                          • back.vtf
                          • vest_norm.vtf
                          • 006_n.vtf
                          • back_norm.vtf
                          • helmet_exp.vtf
                          • 006.vtf
                          • back.vmt
                          • ct_urban_glass.vtf
                          • helmet2.vtf
                          • helmet3.vtf
                          • ct_urban_glass_spec.vtf
                          • glasses.vmt
                          • face.vmt
                          • helmet.vtf
                          • face_exp.vtf
                          • helmet3_exp.vtf
                          • pants.vmt
                          • ojos.vtf
                          • mask.vmt
                          • head.vtf
                          • face2.vmt
                          • face_norm.vtf
                          • helmet2_exp.vtf
                          • pockets_s_r.vtf
                          • face3.vmt
                          • pockets_r.vmt
                          • back_exp.vtf
                          • vest.vmt
                          • mask_norm.vtf
                          • pockets_s_r.vmt
                          • face3.vtf
                          • vest.vtf
                          • head_norm.vtf
                          • pockets_r.vtf
                          • mask.vtf
                          • pants.vtf
                          • ojos.vmt
                          • helmet_norm.vtf
                          • helmet2_norm.vtf
                          • face3_norm.vtf
                          • pockets_r_norm.vtf
                          • face2.vtf
                          • head.vmt
                  • models/
                    • cod players/
                      • opfor4.phy
                      • opfor3.vvd
                      • opfor1.xbox.vtx
                      • opfor3.xbox.vtx
                      • opfor5.xbox.vtx
                      • opfor1.mdl
                      • opfor2.sw.vtx
                      • opfor5.sw.vtx
                      • opfor2.vvd
                      • opfor5.phy
                      • opfor5.dx90.vtx
                      • opfor1.dx90.vtx
                      • opfor3.dx90.vtx
                      • opfor2.mdl
                      • opfor6.dx80.vtx
                      • opfor4.dx80.vtx
                      • opfor3.mdl
                      • opfor2.dx80.vtx
                      • opfor6.phy
                      • opfor1.vvd
                      • opfor1.dx80.vtx
                      • opfor3.dx80.vtx
                      • opfor5.dx80.vtx
                      • opfor5.vvd
                      • opfor2.phy
                      • opfor6.sw.vtx
                      • opfor2.dx90.vtx
                      • opfor6.dx90.vtx
                      • opfor1.sw.vtx
                      • opfor4.dx90.vtx
                      • opfor6.mdl
                      • opfor3.phy
                      • opfor4.vvd
                      • opfor1.phy
                      • opfor6.vvd
                      • opfor4.mdl
                      • opfor4.sw.vtx
                      • opfor5.mdl
                      • opfor3.sw.vtx
                      • opfor6.xbox.vtx
                      • opfor4.xbox.vtx
                      • opfor2.xbox.vtx
                    • codmw2/
                      • codmw2m.mdl
                      • codmw2h.xbox.vtx
                      • codmw2.mdl
                      • codmw2.xbox.vtx
                      • codmw2h.phy
                      • t_codm.dx80.vtx
                      • t_codmw2h.dx80.vtx
                      • codmw2he.sw.vtx
                      • t_codm.vvd
                      • codmw2hexe.vvd
                      • t_codmw2.mdl
                      • t_codmw2.xbox.vtx
                      • codmw2hexe.dx80.vtx
                      • t_codmw2h.vvd
                      • codmw2he.phy
                      • codmw2he.dx80.vtx
                      • codmw2h.sw.vtx
                      • codmw2hexe.sw.vtx
                      • t_codmw2.vvd
                      • codmw2hexe.mdl
                      • t_codm.mdl
                      • codmw2.dx90.vtx
                      • t_codmw2h.mdl
                      • codmw2h.dx90.vtx
                      • codmw2.vvd
                      • codmw2m.vvd
                      • codmw2.sw.vtx
                      • t_codmw2.dx90.vtx
                      • codmw2m.sw.vtx
                      • codmw2m.dx80.vtx
                      • t_codm.sw.vtx
                      • codmw2.dx80.vtx
                      • t_codmw2h.phy
                      • codmw2he.vvd
                      • t_codm.xbox.vtx
                      • codmw2h.dx80.vtx
                      • t_codm.phy
                      • t_codmw2.sw.vtx
                      • codmw2hexe.phy
                      • t_codmw2.dx80.vtx
                      • codmw2hexe.xbox.vtx
                      • codmw2he.xbox.vtx
                      • codmw2h.vvd
                      • t_codmw2h.xbox.vtx
                      • codmw2m.dx90.vtx
                      • codmw2h.mdl
                      • codmw2.phy
                      • t_codm.dx90.vtx
                      • codmw2m.phy
                      • t_codmw2h.sw.vtx
                      • t_codmw2h.dx90.vtx
                      • codmw2m.xbox.vtx
                      • codmw2he.mdl
                      • codmw2he.dx90.vtx
                      • codmw2hexe.dx90.vtx
                      • t_codmw2.phy
                  • addon.txt
              • gamemodes/
                • battlefield/
                  • gamemode/
                    • shared.lua
                    • cl_init.lua
                    • init.lua
                  • battlefield.txt
              • data/
                • props.txt

Don't know where the Garry's Mod folder is or how to extract zip files? See more useful installation tips.

  • addons/
    • levels/
      • lua/
        • autorun/
          • level_init.lua
        • levels/
          • sh_levels.lua
          • sh_config.lua
          • sv_levels.lua
          • cl_levels.lua
    • harrysshit/
      • lua/
        • entities/
          • bf_car/
            • init.lua
            • shared.lua
            • cl_init.lua
        • autorun/
          • client/
            • cl_harrysshit.lua
          • server/
            • sv_harrysshit.lua
          • sh_harrysshit.lua
    • playermodels/
      • materials/
        • codmw2/
          • opfor/
            • eye.vtf
            • face.vmt
            • shoes.vmt
            • gear2_n.vtf
            • face2.vtf
            • gear2.vtf
            • gear_n.vtf
            • pants.vtf
            • face2.vmt
            • shimag_n.vtf
            • pants.vmt
            • gear2.vmt
            • eye.vmt
            • helmeit_n.vtf
            • pants_n.vtf
            • face_n.vtf
            • face.vtf
            • shoes.vtf
            • glass.vtf
            • face2_n.vtf
            • skimask_n.vtf
            • shimag.vtf
            • vest.vtf
            • skimask.vtf
            • vest_n.vtf
            • helmeit.vmt
            • gear.vmt
            • skimask.vmt
            • helmeit.vtf
            • vest.vmt
            • glass_n.vtf
            • gear.vtf
            • glass.vmt
            • shimag.vmt
        • models/
          • codmw2/
            • traitors/
              • back_exp.vtf
              • back_norm.vtf
              • helmet.vmt
              • vest_norm.vtf
              • back.vtf
              • face.vtf
              • casco01_norm.vtf
              • pants_norm.vtf
              • pockets_s_r.vmt
              • ct_urban_glass.vtf
              • face.vmt
              • pockets_s_r.vtf
              • ct_urban_glass.vmt
              • helmet.vtf
              • back.vmt
              • pockets_s_norm.vtf
              • pockets_r_norm.vtf
              • pockets_r.vtf
              • ct_urban_glass_spec.vtf
              • casco01_exp.vtf
              • pants.vmt
              • vest.vmt
              • casco02.vtf
              • ojos.vtf
              • casco02_exp.vtf
              • pockets_s_exp.vtf
              • casco.vmt
              • casco01.vmt
              • casco02_norm.vtf
              • ojos.vmt
              • face_exp.vtf
              • casco.vtf
              • face_norm.vtf
              • casco01.vtf
              • head.vmt
              • pants.vtf
              • vest.vtf
              • casco02.vmt
              • pockets_r.vmt
            • rangers/
              • pants_norm.vtf
              • glasses.vtf
              • helmet3_norm.vtf
              • face.vtf
              • helmet3.vmt
              • glasses_norm.vtf
              • helmet.vmt
              • pockets_s_norm.vtf
              • face2_norm.vtf
              • ct_urban_glass.vmt
              • helmet2.vmt
              • 006.vmt
              • pockets_s_exp.vtf
              • back.vtf
              • vest_norm.vtf
              • 006_n.vtf
              • back_norm.vtf
              • helmet_exp.vtf
              • 006.vtf
              • back.vmt
              • ct_urban_glass.vtf
              • helmet2.vtf
              • helmet3.vtf
              • ct_urban_glass_spec.vtf
              • glasses.vmt
              • face.vmt
              • helmet.vtf
              • face_exp.vtf
              • helmet3_exp.vtf
              • pants.vmt
              • ojos.vtf
              • mask.vmt
              • head.vtf
              • face2.vmt
              • face_norm.vtf
              • helmet2_exp.vtf
              • pockets_s_r.vtf
              • face3.vmt
              • pockets_r.vmt
              • back_exp.vtf
              • vest.vmt
              • mask_norm.vtf
              • pockets_s_r.vmt
              • face3.vtf
              • vest.vtf
              • head_norm.vtf
              • pockets_r.vtf
              • mask.vtf
              • pants.vtf
              • ojos.vmt
              • helmet_norm.vtf
              • helmet2_norm.vtf
              • face3_norm.vtf
              • pockets_r_norm.vtf
              • face2.vtf
              • head.vmt
      • models/
        • cod players/
          • opfor4.phy
          • opfor3.vvd
          • opfor1.xbox.vtx
          • opfor3.xbox.vtx
          • opfor5.xbox.vtx
          • opfor1.mdl
          • opfor2.sw.vtx
          • opfor5.sw.vtx
          • opfor2.vvd
          • opfor5.phy
          • opfor5.dx90.vtx
          • opfor1.dx90.vtx
          • opfor3.dx90.vtx
          • opfor2.mdl
          • opfor6.dx80.vtx
          • opfor4.dx80.vtx
          • opfor3.mdl
          • opfor2.dx80.vtx
          • opfor6.phy
          • opfor1.vvd
          • opfor1.dx80.vtx
          • opfor3.dx80.vtx
          • opfor5.dx80.vtx
          • opfor5.vvd
          • opfor2.phy
          • opfor6.sw.vtx
          • opfor2.dx90.vtx
          • opfor6.dx90.vtx
          • opfor1.sw.vtx
          • opfor4.dx90.vtx
          • opfor6.mdl
          • opfor3.phy
          • opfor4.vvd
          • opfor1.phy
          • opfor6.vvd
          • opfor4.mdl
          • opfor4.sw.vtx
          • opfor5.mdl
          • opfor3.sw.vtx
          • opfor6.xbox.vtx
          • opfor4.xbox.vtx
          • opfor2.xbox.vtx
        • codmw2/
          • codmw2m.mdl
          • codmw2h.xbox.vtx
          • codmw2.mdl
          • codmw2.xbox.vtx
          • codmw2h.phy
          • t_codm.dx80.vtx
          • t_codmw2h.dx80.vtx
          • codmw2he.sw.vtx
          • t_codm.vvd
          • codmw2hexe.vvd
          • t_codmw2.mdl
          • t_codmw2.xbox.vtx
          • codmw2hexe.dx80.vtx
          • t_codmw2h.vvd
          • codmw2he.phy
          • codmw2he.dx80.vtx
          • codmw2h.sw.vtx
          • codmw2hexe.sw.vtx
          • t_codmw2.vvd
          • codmw2hexe.mdl
          • t_codm.mdl
          • codmw2.dx90.vtx
          • t_codmw2h.mdl
          • codmw2h.dx90.vtx
          • codmw2.vvd
          • codmw2m.vvd
          • codmw2.sw.vtx
          • t_codmw2.dx90.vtx
          • codmw2m.sw.vtx
          • codmw2m.dx80.vtx
          • t_codm.sw.vtx
          • codmw2.dx80.vtx
          • t_codmw2h.phy
          • codmw2he.vvd
          • t_codm.xbox.vtx
          • codmw2h.dx80.vtx
          • t_codm.phy
          • t_codmw2.sw.vtx
          • codmw2hexe.phy
          • t_codmw2.dx80.vtx
          • codmw2hexe.xbox.vtx
          • codmw2he.xbox.vtx
          • codmw2h.vvd
          • t_codmw2h.xbox.vtx
          • codmw2m.dx90.vtx
          • codmw2h.mdl
          • codmw2.phy
          • t_codm.dx90.vtx
          • codmw2m.phy
          • t_codmw2h.sw.vtx
          • t_codmw2h.dx90.vtx
          • codmw2m.xbox.vtx
          • codmw2he.mdl
          • codmw2he.dx90.vtx
          • codmw2hexe.dx90.vtx
          • t_codmw2.phy
      • addon.txt
  • gamemodes/
    • battlefield/
      • gamemode/
        • shared.lua
        • cl_init.lua
        • init.lua
      • battlefield.txt
  • data/
    • props.txt

BBCode:

HTML:

Social: