Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Ctf

 
Post new topic   Reply to topic Printable version
 View previous topic  <py> autoprize Post :: Post Swappable game interface  View next topic  
Author Message
-Smong-
Guest


Offline

PostPosted: Fri Dec 03, 2004 8:36 pm    Post subject: Ctf Reply to topic Reply with quote

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.




version 1
asss 1.3.2
sample arena included

asss-ctf.zip - 48.89 KB
File downloaded or viewed 70 time(s)
Back to top
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Fri Dec 03, 2004 10:33 pm    Post subject: Reply to topic Reply with quote

CRAZY TALK! ...hahaha biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sat Dec 04, 2004 6:25 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sat Dec 04, 2004 6:40 am    Post subject: Reply to topic Reply with quote

I noticed it wasn't very plugable so this CTF module is a hack on top of the FLAGGAME_BASIC gametype.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Assassin2684
Server Help Squatter


Age:33
Gender:Not sure
Joined: Jul 27 2004
Posts: 990
Location: Florida
Offline

PostPosted: Sat Dec 04, 2004 9:40 am    Post subject: Reply to topic Reply with quote

Sweet a new CTF thingy!
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:36
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sat Dec 04, 2004 10:03 am    Post subject: Reply to topic Reply with quote

Yeah, thingies are great.
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:36
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sat Dec 04, 2004 1:35 pm    Post subject: Reply to topic Reply with quote

So now there's ctf for merv, as3, and twc. Does Pbot have one?
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Sep 09, 2005 6:02 pm    Post subject: Reply to topic Reply with quote

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?).




v1.5, asss 1.4.0, src doc dll arena

asss-fg_ctf.zip - 46.03 KB
File downloaded or viewed 58 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:36
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Mon May 15, 2006 12:41 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon May 15, 2006 4:19 am    Post subject: Reply to topic Reply with quote

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".
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:36
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Mon May 15, 2006 11:22 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon May 15, 2006 1:19 pm    Post subject: Reply to topic Reply with quote

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.




src doc dll so makefile arena

asss-fg_ctf-1.6.zip - 51.95 KB
File downloaded or viewed 48 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:36
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Tue May 16, 2006 1:15 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Jun 15, 2007 6:03 am    Post subject: Reply to topic Reply with quote

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.
_________________
ss news




1.4.3 src doc dll so makefile arena

asss-fg_ctf-1.9.zip - 58.27 KB
File downloaded or viewed 63 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 662 page(s) served in previous 5 minutes.

phpBB Created this page in 0.448353 seconds : 41 queries executed (92.3%): GZIP compression disabled