Obj in TDM? Moveable item scoring pts per min

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Sitting_Duck
Private
Posts: 6
Joined: Thu May 29, 2003 5:40 pm
Location: on a pond

Obj in TDM? Moveable item scoring pts per min

Post by Sitting_Duck »

I know it is possible to make a capture the flag map using the "capture the documents script." Is it possible to give an objective which either team can capture and score points for every minute they hold it? And make all of this happen in a TDM rotation?

The LMAO clan has come up with the script but won't release the info to anyone on how to do it. I was however directed here to do my research. They offered advice after that with any problems I may run into.

They have some funny set ups. Like "capture the toilet" on Stalingrad. Where either team has to run down and grab the toilet and hang on to it. For every minute you have the item you get x ammount of points. So basically what I would like to do is make a generic script for each of the base maps for AA and SH. This would give either team extra points to score and a purpouse to the maps.

Currently I have all but Holland and Unterseit scripted with "random spawn points." This has brought new life to the maps, all in thanks to Rindog at tmt.com. I did the foot work on the maps but used the script he posted for it. Now taking that with the "capture the item" script and you have one hell of a great combination.

So I am asking for some help on the sollution. I know I can use the "capture the documents" script for this, but how do I set a score timer instead of ending the map when the item is captured. Is it possible to combine the kills score with the objective points? Or am I stuck with one or the other. My clans servers are TDM only, and I know we would lose alot of people if we went to only Obj. I myself would prefer a mix of the two. So thankyou for any help I can get here.
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think you can only award kills to a player in Spearhead.
Image
Sitting_Duck
Private
Posts: 6
Joined: Thu May 29, 2003 5:40 pm
Location: on a pond

Post by Sitting_Duck »

Ok well lets say we can't get the kill count along with the objective points...thats fine. So getting beyond that, how would I go about creating a timer to award points per minute in the game? Thankyou for the response.
Image
Parts
Sergeant
Posts: 72
Joined: Thu Apr 10, 2003 12:35 pm
Location: UK
Contact:

Post by Parts »

Have two variables in your script:

level.AlliesPoints
level.AxisPoints

then create some kind of loop testing if the team still has the flag. Obviously you would need another script to manage who had the script at what time. then just set up a thread to print the points out regularly on the screen

Code: Select all

Initialise:
   level.AlliesPoints == 0
   level.AxisPoints == 0
   level.FlagTeam == 0 //0 = Noone 1 = Allies 2 = Axis

   thread WatchPoints
End

WatchPoints:

   if (level.FlagTeam>0)
   {
      local.FlagTeam = level.FlagTeam
      local.counter = 0
      While (local.FlagTeam == level.FlagTeam)
      {
         if (local.counter>=60)
         {
            local.counter = 0
            if (local.FlagTeam == 1)
            {
                level.AlliesPoints++
            }
            else
            {
                level.AxisPoints++
            }
 
           thread PrintTheScores //write a thread to print the scores

         }

         local.counter++

      }
   }

   wait 1
   thread WatchPoints
end
[VS-UK]Capt.Parts[BnHQ]
king_of_hi_ping
Corporal
Posts: 30
Joined: Wed Feb 05, 2003 7:17 pm

Post by king_of_hi_ping »

sorry i cant release the map script for capture the toilet, I have to grounds for this,

1. it is woven also into our ci and mam scripts so I would have to release the three witch i do not own the rights to distribute,

2. the clan would not want everyone doing capture the toilet, or turning players into dogs,,,,,, its what makes lmao =LMAO= ., if everyone had our script package we would not be us,

what i can do is tell you is to look at the push city hall scripts, and also i can help with your original ideas, but again .. these guys are the ones that tought me and that is why i direct eveyone here,

let me know what your building and i can help with the script,

king of hi ping
Sitting_Duck
Private
Posts: 6
Joined: Thu May 29, 2003 5:40 pm
Location: on a pond

Post by Sitting_Duck »

Hey thanks for the reply guys, I'm sorry if I made it sound like your clan was being rude and all. I can understand not wanting to share that much info. I've just been the oposite with what work I have done. But I can respect the reasoning. But yes a help and a push in the right direction would greatly help.

As for MAM and CI, these are two programs I have been debating on using for my clans servers. Currently they run CKA and the latest Del. It seems to do the job fairly well especially with the name changing for SH. Its amazing how many cheaters it catches by renaming them. The other point for me at least is having to teach all of the admins what CI and MAM is all about.

Thankyou Parts for posting the string to work with. And King I will be contacting you soon enough I fear. But I will plow ahead and try to get this bugger working. I have a feeling I need to go ahead and get MaM and CI intergrated too....sigh.....the MaM community of modders seems to moving along strong, mohadmin.com's forums section always has activity there for it.
Image
Post Reply