Author Topic: TW Control  (Read 1902 times)

0 Members and 1 Guest are viewing this topic.

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
TW Control
« on: August 12, 2008, 05:58:49 am »
TW Control
Origional Author: iDante (idea by Dizzy, realized by Avarax)
Description:
This script is very similar to Avarax's TW Domination, in that it scores a team based on their position on the map. However there are several key differences:
1. Accurate. TW Domination sometimes was horribly inaccurate, and I don't know why.
2. Small. This does not include Airstrikes, Mines, etc, and is 100 lines long.
3. Different. This gives points to each team every TimeLimit/10 minutes. For instance, if TimeLimit is 20 like in most TW games, every 2 minutes the dominator of the LAST 2 minutes (not the whole thing) will get a point. Capturing the flag gives your team a settable amount of points (default 2).

Commands:
As admin:
/enable Turns it on
/disable Turns it off
/status Tells EVERYONE what the current overall scores are.
As Player:
/status Tells YOU what the current overall scores are.

Core Version 2.6.3

Code: Attached...

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: TW Control
« Reply #1 on: August 12, 2008, 06:12:32 am »
No airstrikes and mines though ?

Offline Rellik

  • Major(1)
  • Posts: 23
Re: TW Control
« Reply #2 on: August 12, 2008, 06:22:13 am »
No, I suggested to take them out ;)

Offline zop

  • Major
  • *
  • Posts: 81
Re: TW Control
« Reply #3 on: August 12, 2008, 08:30:47 pm »
Airstrike and mine are popular in my TW server...

http://122.116.167.31:23238:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: TW Control
« Reply #4 on: August 12, 2008, 09:34:36 pm »
imo, unless it has a nice control for enabling/disabling the airstrikes/mines (ini, along with cmds), I would put them into a separate script

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: TW Control
« Reply #5 on: August 12, 2008, 09:37:15 pm »
Airstrike and mine are popular in my TW server...
I like airstrike, and am thinking of writing an airstrike script (that is totally different from what is in eC right now and similar to TTW strike, very angled)
Thats in another script though.

TBH I really dislike it when people cram multiple scripts into one script.

Offline Rellik

  • Major(1)
  • Posts: 23
Re: TW Control
« Reply #6 on: August 13, 2008, 01:53:35 am »
Airstrike and mine are popular in my TW server...
I like airstrike, and am thinking of writing an airstrike script (that is totally different from what is in eC right now and similar to TTW strike, very angled)
Thats in another script though.

TBH I really dislike it when people cram multiple scripts into one script.

Yeah Its even worse when maybe a little bit of code it wrong, then you have to search lines and lines of code just to find that part.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: TW Control
« Reply #7 on: August 13, 2008, 11:39:35 am »
And its easier to update 1 script, than to have other people's scripts be outdated/having to update some of your scripts that you've combined,.

For airstrike, i suggest having a constant for auto striking using AppOnIdle; and then CallStrike function so other functions can call strikes on certain events; possibly SetStrikeState(const State: boolean); to temporarially disable strikes, both apponidle and CallStrike won't work while thats false, default true