Server Help

ASSS Custom Projects - Ctf

Anonymous - Fri Dec 03, 2004 8:36 pm
Post subject: Ctf
2 team CTF flag game in the style of UT (as in not basing). Only tested briefly.
Code: Show/Hide
GameType = $FLAGGAME_BASIC
DropRadius = 1
CarryFlags = 1
DropOwned = 1
DropCenter = 0
NeutOwned = 0
NeutCenter = 0
TKOwned = 0
TKCenter = 0
SafeOwned = 0
SafeCenter = 0
FlagCount = 2

Team0-X=497
Team0-Y=512
Team0-Radius=3
Team1-X=527
Team1-Y=512
Team1-Radius=3
Captures=3
RespawnTime=4000

This would have used regions if there was an editor (I tried but after looking at mapdata.c for a day I decided it would be best if I wrote my own elvl functions which will take a while) or someone can give me a .bmp patch for xpaint.
SuSE - Fri Dec 03, 2004 10:33 pm
Post subject:
CRAZY TALK! ...hahaha biggrin.gif
Grelminar - Sat Dec 04, 2004 6:25 am
Post subject:
I haven't looked at this yet, but I should warn you: I'm in the middle of a complete rewrite of the flags code. The new version (which is about 50% done) will be much more flexible and less buggy, but modules that use the current flags module might have to be heavily modified. I'm not going to specify an ETA on the new code, since I'll probably miss any deadline I set.

I do plan to leave the old flags module around for a while, so anyone who wants to use it still can. I just thought I should mention it that so anyone thinking about putting effort into using flags could consider the trade-offs.
Smong - Sat Dec 04, 2004 6:40 am
Post subject:
I noticed it wasn't very plugable so this CTF module is a hack on top of the FLAGGAME_BASIC gametype.
Assassin2684 - Sat Dec 04, 2004 9:40 am
Post subject:
Sweet a new CTF thingy!
Solo Ace - Sat Dec 04, 2004 10:03 am
Post subject:
Yeah, thingies are great.
D1st0rt - Sat Dec 04, 2004 1:35 pm
Post subject:
So now there's ctf for merv, as3, and twc. Does Pbot have one?
Smong - Fri Sep 09, 2005 6:02 pm
Post subject:
I had this new version for a while, but it wasn't getting used so I'm releasing it. It comes with windows binaries, source and a sample arena.
Code: Show/Hide
[Flag]
; the time until a flag dropped (nueted) outside of its home is moved back.
; if this is set to 0, it will move back immediately and no arena message will
; be sent.
FlagRespawnDelay = 2000

; the time after a capture before the flags respawn again
FlagRestartDelay = 100

; how often to check whether a team has captured a flag
FlagCheckDelay = 250

; where the flags spawn
Spawn0 = 500, 500
Spawn1 = 524, 524

FlagReward=10000
; Negative numbers equal absolute points given
; positive numbers use FlagReward formula
FlagCaptureReward=10000
FlagCaptures=3

FlagCount=2

It uses the region names 'zero' and 'one' for the flag bases.

It also has the warp detection thing based off one of mervbot's plugins (written by catid?).
Animate Dreams - Mon May 15, 2006 12:41 am
Post subject:
I'm kind of confused. It looks like you posted a newer version of fg_ctf, but the new one came with less stuff, like no makefile. I"m not complaining, I"m just wordering if maybe after updating, you edited the original post and updated it or something.
Smong - Mon May 15, 2006 4:19 am
Post subject:
Ok here's a makefile based off src/turf/turf.mk, put this in a directory called src/fg_ctf along with the .c source and name the makefile fg_ctf.mk.
Code: Show/Hide
fg_ctf_mods = fg_ctf

$(eval $(call dl_template,fg_ctf))
After that, make sure you are in the src directory, run "make deps" and finally "make".
Animate Dreams - Mon May 15, 2006 11:22 am
Post subject:
You know, I tried that, but I couldn't get it to work. I assume I did something wrong with the commands when I was trying to make stuff. I just saw other files in the other release, like .so , and I don't even know what that is, so I thought it might be a newer version. >_> I'm gonna go read some more websites.
Smong - Mon May 15, 2006 1:19 pm
Post subject:
The reason why different versions have different contents is because I develop on both windows and linux. It is a hassle to reboot into the other os, transfer files and compile it. I will upload a linux .so (equivalent of windows .dll) soon.

Edit: Attached version 1.6. The only change is I fixed two compiler warnings (devcpp has them off by default, so I don't notice until I compile in linux). This version is for 1.4.2 and has both windows and linux binaries.
Animate Dreams - Tue May 16, 2006 1:15 am
Post subject:
Well, freaking awesome, thanks dude. With this, I didn't even have to use a makefile. Although, that may be a bad thing, since I probably need to learn how to do that... I guess I can read more when the wiki gets fixed.
Smong - Fri Jun 15, 2007 6:03 am
Post subject:
Updates
Added the region names to the settings.
Added toggling of notification messages to the settings.
Added optional sounds for the notification messages.
Added option to name the teams (default uses Team #/Team Capture/Enemy Capture)
Added swappable game interface.

Source and a compiled version for win/linux are included for use with asss-1.4.3. Also included is the sample arena along with the updated settings.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group