Author Topic: Counter Strike-esque Script Idea, help needed  (Read 1035 times)

0 Members and 1 Guest are viewing this topic.

Offline Lt. Sprizz

  • Major
  • *
  • Posts: 79
  • I'm sorry if I offended you.
Counter Strike-esque Script Idea, help needed
« on: March 28, 2009, 01:24:25 pm »
Okay, I want to make a CS like mod, like th gamemode where a team has to grab the bomb and set it up, and the other team has to defuse it before the timer goes off (btw, both teams will be able to do this in the game...maybe). This how I would like it to work, and I'm not sure if I have the right idea on how they can all be accomplished, so I thought I'd ask you guys.

1. I will make my own maps, so flag position and stuff won't be tough to make. However, I was wondering what gamemode this should be under. Is this like a HTF game, or just a capture the flag deal? Idk.

2. If i did need to make a flag position, I do that with spawn flag position(with the x,y stuff), right?

3. Now I want to force the teams to plant the bomb where I want. This is a problem I'm not sure how to tackle. With my map, should I just change the poly type of the preferred area, and script where you have to be on this certain poly for a certain amount of time, or is there an easier way where I can just say that a player has to be in close proximity to it? This one  would really like to hear some ideas.

4. I want to make a timer, which I should be able to figure out, but I need to be able to have it deactivate if the other team can deactivate the bomb in time. I'm not sure how to accomplish this, either.
 
5. Also, I would like to have every1 that plays on my server download a full weapons mod, for realism. How do I force a download in a server? Also, will I have to force a download if I use my own maps? This one is NOT a Priority in anyway, shape or form, and if it's to much of a hassle to script then please tell me, and I will drop this idea.

Basically, I am just looking for ideas on how this all can be done. I stated the standards I would like to meet, but I can change those if they can't be fulfilled.

P.S. If any1 has a script that is similar to this idea, please post it. I would like to look at how other people have accomplished this. I looked in script releases and I could not find anything like this, but I probably missed something.
"I am Jack's lack of surprise..." ~(Tyler Durden)
-=::SPOILER::=-
Edward Norton and Brad Pitt are the same person...:)
In-game: \Biz|Niz/

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Counter Strike-esque Script Idea, help needed
« Reply #1 on: March 28, 2009, 01:56:30 pm »
Ok, interesting..

1 & 2
Figure this out first:
It seems you want to use the flags as bombs. Afaik that should be possible, because I think SetSpawnStat indeed allows you to change a spawn point of the flag. KillObject will move it to it's spawn point instantly, so yeah, you should be able to place a flag whereever you'd want.
Now depending on how many bombs you want, choose a game-mode HTF or CTF. In HTF both teams can grab one flag. If you choose CTF each team can only grab the opposite flag (or bomb), but you could force them all to DM team, then both teams grab both flags. Then let the script remember who's in what team.

3.
I'd say have a file with coordinates for each map. Maybe XML? :D

4.
Depends on HTF/CTF

5.
No, not possible. Although the new script-engine for 1.5 allows you to make players download images and sounds from the server, you aren't able to 'force' a mod on the players.
Come join: EliteCTF
Listen to: My Music

Offline Lt. Sprizz

  • Major
  • *
  • Posts: 79
  • I'm sorry if I offended you.
Re: Counter Strike-esque Script Idea, help needed
« Reply #2 on: March 28, 2009, 02:02:33 pm »
3.
I'd say have a file with coordinates for each map. Maybe XML? :D

XML? What is that? (and remember I am a big noob with computers)

4.
Depends on HTF/CTF

I'm now thinking I will probably do this in HTF mode. Do I need to specify the game type in my script anywhere?

5.
No, not possible. Although the new script-engine for 1.5 allows you to make players download images and sounds from the server, you aren't able to 'force' a mod on the players.

*sniff* :'( dang, that makes me sad....look forward to 1.5 though.
"I am Jack's lack of surprise..." ~(Tyler Durden)
-=::SPOILER::=-
Edward Norton and Brad Pitt are the same person...:)
In-game: \Biz|Niz/

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Counter Strike-esque Script Idea, help needed
« Reply #3 on: March 28, 2009, 04:52:44 pm »
If you choose CTF each team can only grab the opposite flag (or bomb), but you could force them all to DM team, then both teams grab both flags. Then let the script remember who's in what team.
why not just put flag spawns at the opposite teams' bases? Ie swap the flag spawns (but he said he'd make custom maps, so yeah). So if you spawn as alpha, you grab the blue flag right away and carry it to the spot where you need to "deploy" it, then drop it i guess... or camp with it for a while. The rest can be done with scripting (timer etc). If a bravo player touches the flag, it gets returned to alpha base, so they have to go plant it again.
Another option is to fiddle with kits or weapons. Or wait for 1.5 and make it all script-based and play with bitmaps ;) (if that will be possible, and i assume it will)

Offline Lt. Sprizz

  • Major
  • *
  • Posts: 79
  • I'm sorry if I offended you.
Re: Counter Strike-esque Script Idea, help needed
« Reply #4 on: March 28, 2009, 06:56:12 pm »
I like that idea a lot. I might use that thank you :)
"I am Jack's lack of surprise..." ~(Tyler Durden)
-=::SPOILER::=-
Edward Norton and Brad Pitt are the same person...:)
In-game: \Biz|Niz/

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Counter Strike-esque Script Idea, help needed
« Reply #5 on: March 29, 2009, 07:20:16 am »
If a bravo player touches the flag, it gets returned to alpha base, so they have to go plant it again.

Wait, that method will limit the time you can use on the timer. Don't forget that if you just drop a flag in the middle of the field, it will return automatically after a while. The idea is to use setSpawnStat to set the spawn coordinates of the flag on the spot where a player 'drops' it, basically you can keep a flag anywhere indefinetly then. But that way the opposite team won't be able to 'return' that flag, since it's already on it's spawn spot.

edit: there is a (bit crazy) workaround for this, hard to explain though.
« Last Edit: March 29, 2009, 07:23:54 am by JFK »
Come join: EliteCTF
Listen to: My Music

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Counter Strike-esque Script Idea, help needed
« Reply #6 on: March 29, 2009, 07:49:43 am »
Don't forget that if you just drop a flag in the middle of the field, it will return automatically after a while.
of course its assumed the bomb planting time is shorter than the autoreturn delay

The idea is to use setSpawnStat to set the spawn coordinates of the flag on the spot where a player 'drops' it, basically you can keep a flag anywhere indefinetly then. But that way the opposite team won't be able to 'return' that flag, since it's already on it's spawn spot.
you could check if there is an alpha player close to the flag in apponidle, and if there is none for, say, three seconds, the spawn gets set back to its initial position. So alpha would need to defend the blue flag when its being "deployed" and bravo would have to take out alpha and stick around for a couple of seconds