Register for your free account! | Forgot your password?

You last visited: Today at 10:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Capture The Flag

Discussion on Capture The Flag within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Capture The Flag

Well i wanted to make CTF Tournament So what i did is when Right time Comes its starts Such that 2 Teams will be Spawned and Then teleported to The Map && i added The Flag Sobs Too successfuly but there r 2 things i wanna add but couldnt do it :-

1st - After 30 sec of Carrying the Flag...the Flagbase become in the place where the The Flag Holder Exist

2nd - for example i have brought the Flag now to my base So what i need to know how to make it like i cant attack my own Flagbase ...

just need The General Idea or Hints..
shadowman123 is offline  
Old 11/06/2011, 01:45   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
I'd suggest thinking in a more object oriented manner...

By this I mean that every single variable you create in programming is an object (Disclaimer: Obviously this only applies to object oriented programming languages such as C#). This object can represent virtually limitless things but you as the programmer control that (ints represent numbers... but more complex classes can represent things like npcs... teams... tournaments).

You then need to break things down into their required parts in a logical way (you may need to revise this structure quite a few times if you're just learning or your needs change). From there you code them one at a time and test them out together to find issues and correct them.

Now from a less abstract viewpoint, lets talk about CTF.

What does this tournament require? It needs something to represent the entire tournament for starters! The fact we might want multiple ctfs running means it should not be static (can create multiple versions/copies of the object) so a public class would be appropriate in this case.


What belongs inside the ctf class?... well we know that we have teams competing in the tournament so we know we'll need a class to represent teams..

What belongs to teams?... well members of course! but we can also include things like their base! We can then store what team we are on and check during our attacks to check..

A: if we are attacking a player and we're inside ctf... are they on our team?
B: if we are attacking a npc and we're inside ctf... is this object our base?

I could get really detailed and start talking about all the helper methods and other things that might belong to these different classes but I'd say you should be able to figure it out
pro4never is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
CTF-Capture the Flag,
03/11/2010 - CO2 Private Server - 6 Replies
I Want to know what exacly Did CTF Do on LOTF/5017 Back then I remember it been Mensioned alot but never got to do it nor know what exacly did,
[Release] Capture the Flag!!!
05/01/2009 - CO2 PServer Guides & Releases - 4 Replies
#Deleted
Capture the Flag Bug
12/27/2008 - Silkroad Online - 5 Replies
So today I wanted to join at Capture the Flag. When I get started there is a freaking lvl 88 guy in oposite team and I am only lvl 42. He's buffing his team with Swing march 2. Here's Screenshot: http://img508.imageshack.us/img508/930/strangegi8. th.jpg He hit like 44k dmg on me :( Feel free to coment on this!
capture the flag times?
09/07/2008 - Silkroad Online - 7 Replies
i remember a while back i went to this site that had the countdown till the next capture the flag. but i forgot it lol. does anyone have a timer or a site that tells u how long till the next capture the flag?
Capture the Flag ?????
02/29/2008 - Silkroad Online - 7 Replies
Warum kann ich mich net bei event so ok anmelden ??? kann mir jemand helfen auf dem ganzen server alexander hatts gesponnen-.-



All times are GMT +2. The time now is 10:08.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.