ZDoomCTF

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
Karate Chris
Posts: 307
Joined: Wed Aug 23, 2006 7:58 am

ZDoomCTF

Post by Karate Chris »

ZDoom - Capture The Flag Edition:

Ever since I started programming, I have always wanted to make a Capture The Flag version of ZDoom. Recently, I've been digging through my hard drive and found an old copy of a CTF version of ZDoom I made. Of course, with little programming experience back then, I was stuck on a few small things, but since I gained experience, I finished it off.

ZDoomCTF is ZDoom with a powerful Capture The Flag system, in which you can create custom teams, custom flags and have all the normal ZDoom features too. You can choose two team CTF, three team, four team, as many as you like!

You may be wondering if it is really worth going to all the trouble of making a CTF port with the current state of the net code. Well absolutely! If you watch the demo included, you can see a two team, four player CTF game in action. We all did have quite a bit of fun there. (Although I still can't believe that my team lost. :P )

At the moment, ZDoomCTF is based of ZDoom revision 893 but I will be upgrading in future releases.

To run online here's what I suggest:

1. Set your teams up in advance.
2. Add '-ctf' to the command line.
3. Add '-file zdoom-ctf.wad' to the command line.
4. Add '+map D2CTF1' to the command line.

The 'zdoom-ctf.wad' is deliberately not automatically loaded as it serves as an example WAD for people creating their own Capture The Flag maps.

Bugs and possible features:

No bugs are known as of yet, but if anyone finds any then please either PM me or post in this thread. Thanks!

In the future, I may consider adding support for One Flag CTF, in which you take a white flag and bring it to an opponents base. Don't expect this anytime soon though.

Download:

ZDoomCTF Version 0.1 - 1.57MB
ZDoomCTF Version 0.1 Source Code - I'll get round to uploading this when my connection doesn't keep cutting out.
Thomas
Posts: 53
Joined: Wed May 30, 2007 2:13 pm
Location: The Netherlands

Re: ZDoomCTF

Post by Thomas »

Wow, sounds cool I'll give this a try :D
Worst
Posts: 115
Joined: Sat Apr 28, 2007 5:29 am
Location: finland
Contact:

Re: ZDoomCTF

Post by Worst »

neat :) ,
but maybe make it boomctf - compatible, so that all the existing ctf wads can be played aswell 8-)

Code: Select all

//      5130 = "Blue flag";
//      5131 = "Red flag";
//      5132 = "Gold flag"; [for one-way CTF]
//      5133 = "Green flag";
//      5134 = "White flag";
//
//      5080 = "Blue Start"      
//      5081 = "Red Start"
//      5082 = "Temp Start" [Used for choosing team in skulltag]
//      5083 = "Green Start"
//      5084 = "White Start" 
EDIT: :oops: didn't realize that I could just make a pwad that has the correct teaminfo and decorate..

EDIT2: when testing my boom ctf definitions of flag decorate and teaminfo, I get a error when starting the map: "No (null) team starts" .. I wonder what did I do wrong :?

Code: Select all

ACTOR BoomBlueFlag : Flag 5130
{
  Game Doom
  SpawnID 255
  Inventory.Pickupmessage "You got the blue flag!"
  Inventory.MaxAmount 0
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  States
  {
  Spawn:
    FLAG ABCDEF 3 Bright
    Loop
  }
}

ACTOR BoomRedFlag : Flag 5131
{
  Game Doom
  SpawnID 254
  Inventory.Pickupmessage "You got the red flag!"
  Inventory.MaxAmount 0
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  Translation "205:206 = 186:188", "240:246 = 47:47"
  States
  {
  Spawn:
    FLAG ABCDEF 3 Bright
    Loop
  }
}

ACTOR BoomGoldFlag : Flag 5132
{
  Game Doom
  SpawnID 252
  Inventory.Pickupmessage "You got the gold flag!"
  Inventory.MaxAmount 0
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  Translation "205:206 = 161:163", "240:246 = 164:164"
  States
  {
  Spawn:
    FLAG ABCDEF 3 Bright
    Loop
  }
}

ACTOR BoomGreenFlag : Flag 5133
{
  Game Doom
  SpawnID 253
  Inventory.Pickupmessage "You got the green flag!"
  Inventory.MaxAmount 0
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  Translation "205:206 = 122:124", "240:246 = 125:125"
  States
  {
  Spawn:
    FLAG ABCDEF 3 Bright
    Loop
  }
}

ACTOR BoomWhiteFlag : Flag 5134
{
  Game Doom
  SpawnID 250
  Inventory.Pickupmessage "You got the white flag!"
  Inventory.MaxAmount 0
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  Translation "205:205 = 4:4", "206:206 = 80:80", "240:246 = 81:81"
  States
  {
  Spawn:
    FLAG ABCDEF 3 Bright
    Loop
  }
}

ACTOR BoomBlackFlag : Flag 5135
{
  Game Doom
  SpawnID 251
  Inventory.Pickupmessage "You got the black flag!"
  Inventory.MaxAmount 0
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  Translation "205:206 = 7:8", "240:246 = 0:0"
  States
  {
  Spawn:
    FLAG ABCDEF 3 Bright
    Loop
  }
}

Code: Select all

ClearTeams

Team "Blue"
{
	PlayerColor "00 00 FF"
	TextColor "Blue"

	FlagName "Blue"
	FlagThingNumber 5130
	PlayerSpawnThingNumber 5080
	HUDIcon "CTFBLUE"
}

Team "Red"
{
	PlayerColor "FF 00 00"
	TextColor "Red"

	FlagName "Red"
	FlagThingNumber 5131
	PlayerSpawnThingNumber 5081
	HUDIcon "CTFRED"
}

Team "Gold"
{
	PlayerColor "FF FF 00"
	TextColor "Gold"

	FlagName "Gold"
	FlagThingNumber 5132
	PlayerSpawnThingNumber 5082
	HUDIcon "CTFGOLD"
}

Team "Green"
{
	PlayerColor "00 FF 00"
	TextColor "Green"

	FlagName "Green"
	FlagThingNumber 5133
	PlayerSpawnThingNumber 5083
	HUDIcon "CTFGREEN"
}

Team "White"
{
	PlayerColor "FF FF FF"
	TextColor "White"

	FlagName "White"
	FlagThingNumber 5134
	PlayerSpawnThingNumber 5084
	HUDIcon "CTFWHITE"
}

Team "Black"
{
	PlayerColor "00 00 00"
	TextColor "Black"

	FlagName "Black"
	FlagThingNumber 5135
	PlayerSpawnThingNumber 5085
	HUDIcon "CTFBLACK"
}
Karate Chris
Posts: 307
Joined: Wed Aug 23, 2006 7:58 am

Re: ZDoomCTF

Post by Karate Chris »

You need to set your team first. I will add a better error message for people on no team or make team selection automatic.
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: ZDoomCTF

Post by Cutmanmike »

Couldn't this just be intergrated into zdoom rather than adding to the GIGANTIC amount of zdoom based ports already? ;)
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ZDoomCTF

Post by Nash »

Also, no offense but I'd rather play Skulltag than download yet another ZDoom port just for CTF...
Karate Chris
Posts: 307
Joined: Wed Aug 23, 2006 7:58 am

Re: ZDoomCTF

Post by Karate Chris »

I only wanted to make a separate port for this to test the project until I submit a patch. I don't want to submit something that needs a lot of testing and could be potentially buggy. However, from the current feedback, that may be sooner rather than later.
User avatar
doomjedi
Posts: 401
Joined: Tue Oct 03, 2006 12:21 am
Location: Israel
Contact:

Re: ZDoomCTF

Post by doomjedi »

Nash wrote:Also, no offense but I'd rather play Skulltag than download yet another ZDoom port just for CTF...

Same here.
User avatar
Kaal979
Posts: 285
Joined: Thu Oct 04, 2012 3:40 am
Contact:

Re: ZDoomCTF

Post by Kaal979 »

Link seems down!
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: ZDoomCTF

Post by Gez »

What a surprise, six years after, a temporary file host has stopped hosting a file!
User avatar
Kaal979
Posts: 285
Joined: Thu Oct 04, 2012 3:40 am
Contact:

Re: ZDoomCTF

Post by Kaal979 »

In case someone has the file please link it!
Because i want to try if it allows CTF with marine
skin bots and not ZDaemons former humans.
Legacy allows it but has no CTF (for FreeDoom).
(https://skydrive.live.com/redir?resid=8 ... A4vm_xNE9c)
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: ZDoomCTF

Post by wildweasel »

Kaal, seriously, we have a thread specifically for reuploads, just so that these old threads don't get bumped!
User avatar
Kaal979
Posts: 285
Joined: Thu Oct 04, 2012 3:40 am
Contact:

Re: ZDoomCTF

Post by Kaal979 »

Thanks for the warning - i will try asking there.
Post Reply

Return to “Gameplay Mods”