Garry's Mod

Garry's Mod

Capture the Flag
38 Comments
Imrgrim Jan 30 @ 1:38pm 
forget simphys and lvs cars glide base works with this mode and its better than those two
CTF?!
Spooxl Dec 27, 2023 @ 5:10pm 
when i place the point down i cant move my screen and i cant move my character as every time i do it sends me back to the middle of the spawn point.
Imrgrim May 19, 2023 @ 3:03pm 
For those who wanna use vehicles you can use Vehicle damage + Doc's driveable vehicles + seat weaponiser in the meantime
SokerBit12 May 19, 2023 @ 6:07am 
Pls fix simphys vehicles
Imrgrim May 6, 2023 @ 3:34pm 
Pls fix simphys vehicles
✇Schizo Ghost☠ May 6, 2023 @ 3:00pm 
Amigo literalmente los mods de vehículos no se mueven, podrían arreglar esto?
Sovereign Snakboy [KI] Feb 14, 2023 @ 9:17am 
Why simfphys vehicles can't move?
Barmaros Aug 9, 2022 @ 4:48am 
Me & my friend found we can just spawn endless healthkits in with the spawn-menu. :^\
When The Baka Is Sussy O_O Jul 19, 2022 @ 2:15am 
How can one make it so that the flag can be placed anywhere?
I am aware of how to mess with lua, I am just struggling to figure out how to mess with this parameter.

Loving the addon :)
Nefusadi  [author] Apr 13, 2022 @ 1:19pm 
@Wodian 140
Technically, yes, you can completely block in the flag, but then you would be unable to score, cuz you wouldn't be able to get the enemy's flag to it. More effective is to place your flag in a location that is accessible only one way, or otherwise difficult to escape from, so that you can get flags _in_ but not _out_
Barmaros Apr 7, 2022 @ 11:03am 
You can just completely block in the flag lol.
Ikakalaka Mar 23, 2022 @ 10:09pm 
How to turn off player team outline?
吸血鬼兎のヴァニラ Jan 15, 2022 @ 10:12pm 
Is this broken now? Why does nothing happen when I hold Q to get this "spawn menu?"
1peppaspear03 Nov 18, 2021 @ 2:14pm 
Why are there no entity capture the flag mods?
Boxmask May 22, 2021 @ 6:02pm 
Why isn't the vehicle moving?
Ardo_Minkono Mar 18, 2021 @ 6:13pm 
How do you set it up?
enderboi Jan 26, 2021 @ 4:00pm 
I wish there was a way to disable team color outline.
enderboi Nov 4, 2020 @ 12:40pm 
there should be maps for this
MR MOUSTACHE Mar 13, 2020 @ 3:36pm 
can you ocult the timer when the build phase finish?
Luvstruckmango Jan 6, 2019 @ 9:23pm 
@XarocLP, in essence you must make those changes before clicking Start Game. You can also use console commands and find them all by typing ctf in the console to find the commands.
Luvstruckmango Jan 6, 2019 @ 9:21pm 
@XarocLP, the answer to your question is yes you can. Once you've switched to the capture the flag game mode and click Start New Game you have to have the world set for at least 2 people. Once you do that the options beneath where it says "Peer to Peer" there are options to change things like build time, amount of captures to win the game, respawn time etc.
Hootenannypants Nov 30, 2018 @ 7:56pm 
[Capture the Flag] gamemodes/capturetheflag/gamemode/cl_init.lua:117: attempt to index a nil value
1. func - gamemodes/capturetheflag/gamemode/cl_init.lua:117
2. unknown - lua/includes/extensions/net.lua:32

[JollyCyclone|8|STEAM_0:0:172842957] Lua Error:

[Capture the Flag] gamemodes/capturetheflag/gamemode/cl_init.lua:117: attempt to index a nil value
1. func - gamemodes/capturetheflag/gamemode/cl_init.lua:117
2. unknown - lua/includes/extensions/net.lua:32


[Jasix|9|STEAM_0:1:50250883] Lua Error:

[Capture the Flag] gamemodes/capturetheflag/gamemode/cl_init.lua:117: attempt to index a nil value
1. func - gamemodes/capturetheflag/gamemode/cl_init.lua:117
2. unknown - lua/includes/extensions/net.lua:
XarocTV Nov 21, 2018 @ 8:14am 
can one adjust somehow that one can play several rounds after the building? Currently one steals the flag and it is over the pity
DeadDave Nov 15, 2018 @ 6:27pm 
could you do the same thing but make the flags german and american like dods flags?
yuseford Oct 26, 2018 @ 7:50pm 
se ve genial!!! :steamhappy:
Lcboz Sep 22, 2018 @ 7:49pm 
Is there any way to make it work on smaller, more enclosed maps? I've been getting the "This location is invalid! Not enough space." whenever I try to use it on a map such as ccs office. Thanks.
Nefusadi  [author] Aug 6, 2018 @ 7:39pm 
@heroguy5, The timer can be changed 2 ways. The first is when setting up a server. When you go into the Start New Game option on the main menu (with the game mode active), you'll see a green dropdown menu in the top right corner. If you set that to anything except "Single Player" a list of options will appear in that panel on the right side. You can set the build time there. unit type is minutes.

The second option is to use the developer console mid-match. In case you're unfamiliar, the developer console can be accessed by opening the menu and navigating to options->keyboard settings->advanced and checking the "Enable Developer Console" option. The console can then be opened up by pressing the '~' key. Once open, type "ctf_buildtime [time_in_minutes]" without quotes and replacing [time_in_minutes] with the desired number of minutes for the new total build time.

I hope this explanation helps. Good luck, and have fun!
Lobotomized W+M1 Aug 4, 2018 @ 1:11am 
how do i change the timer?
Lobotomized W+M1 Aug 3, 2018 @ 5:35pm 
i cannot tell how to use it. Did i miss something?
Nefusadi  [author] Jun 28, 2018 @ 8:51am 
I've started a discussion for an entity adaptation. There's some details that need to be worked out if it's going to be compatable with the use cases people are looking for.

https://steamcommunity.com/workshop/filedetails/discussion/738284170/1727575977552608244/
Ohmyori Jun 28, 2018 @ 3:16am 
I wish this was an entity.

That way it can be used in any gamemodes.
Nefusadi  [author] Jun 6, 2018 @ 12:21pm 
Sorry, I guess I was unclear. The short answer is: No. It will not work without the gamemode. The flag initialization and point handling is all handled by the gamemode, not the flag entities. However, if you would like, you can send me a friend request so we could discuss this further, where I could tailer make something for you (and possibly others) to use based on similar functionality.
Jae Jun 6, 2018 @ 7:16am 
The server that I would like to put it on us MilitaryRP, so with DarkRP as a base, would this addon work without using the gamemode, and just the points/flags?
Nefusadi  [author] Jun 5, 2018 @ 4:54pm 
@EnergeticD3X

As it stands the flags and bases rely on a few things from the gamemode itself. Namely: setting up flag team information (for skin switching), obtaining references between flags and bases so they can communicate, initial parenting while the bases can still be moved, sending alerts for flag captured/dropped UI updates, and checking match status for collectability.

It would be possible to create a set of bases that don't rely on the gamemode, but there's a lot of details about what would be considered desireable functionality and questions on how much scripting should be involved when it comes to integration into non-CTF gamemodes. If you'd like, we could work together to create something that fits your needs.
Jae Jun 5, 2018 @ 11:22am 
Do the flag points work outside of the gamemode (Currently own a MilitaryRP and want a Point Capture kind of outpost)
Nefusadi  [author] May 25, 2018 @ 1:45pm 
Well, the construction timer can be changed to however long you think is appropriate. It shows up as an option when creating a new game. Alternitively, you can change it on the fly with the command "ctf_buildtime [time_in_minutes]"
Watzupius May 25, 2018 @ 12:06pm 
wtf 1 hour timer!