Page 1 of 1

Sketch of a "Counter-Strike mode" in GTA2 scripting

Posted: 02 Aug 2023, 21:14
by valps
I'm making a new map which I will release soon. One of the game modes will be like a Counter-Strike:

- No cars;
- No NPCs;
- Two teams, T: terrorists, CT: counter-terrorists
- Only weapons available: (silenced) machine guns, (dual) pistols, grenades and shotguns;
- One respawn only: outside the arena in a waiting room
- Maximum: 6 players

Rules:
- To pick a team, walk into the CT or T painted on ground.
- Once all players already chosen their team, one terrorist will pick the bomb and one CT will pick the defuse kit (displayed as briefcase).
- Players carrying the bomb or defuse kit will have an arrow pointing to them, standing out from the others.
- The bomb can be placed in two locations, Site A or Site B.

- If the CT holding a defuse kit dies, a new kit spawn in their base.
- If the T holding the bomb dies, the bomb is dropped depending of his location. If he dies close to the Site B, the bomb will respawn at a specific location in Site B. If he dies in Site A, the bomb will respawn at north or south of Site A, depending of his position.
- If the T holding the bomb dies outside any Site A or B, the bomb will respawn at the Terrorist Base.

Timing:

- Arm the bomb: 5 seconds
- Disarm the bomb: 7 seconds
- Time to explode: 35 seconds

Win condition:

- Terrorists will win if all CT are dead or if the bomb was planted and explodes. A message of "Job Failed" will show to everyone.
- Counter-terrorists will win if the bomb was disarmed or if all terrorist are dead and the bomb wasn't planted. A message of "Job Complete" will show to everyone.

- After one of the wins conditions was reached, the game will close automatically.

Known issues:

- The disarm timer and the bomb timer may sometimes desync a bit in multiplayer. It may be related to the change of number of cycles the game executes within a time.

I need feedback:
- Bugs on gameplay (script issues) or in the map.
- The need of armor to the players.
- Weapons that can be chosen, or the weapon-give method.

Re: Sketch of a "Counter-Strike mode" in GTA2 scripting

Posted: 02 Aug 2023, 22:50
by valps
Update: Now players are forced to stay immobile (i.e. to not shoot and not move) to arm/defuse the bomb.

Re: Sketch of a "Counter-Strike mode" in GTA2 scripting

Posted: 03 Aug 2023, 07:58
by DodoPlane601
I tried your map and it's much better looking.
Edit: Can you remake de_dust and publish it?

Re: Sketch of a "Counter-Strike mode" in GTA2 scripting

Posted: 23 Sep 2023, 00:24
by valps
v0.2 - What's new?

- Terrorists now uses the Krishna skin and Counter-terrorists uses Yakuza skin. This change will attach gang arrows to the players, so the Bomber/Defuser arrows will be identified properly;
- Bomb timer disappears after the explosion;
- A tic-tac sound is played during bomb countdown.
- Now the map has 2 locations. If the bomb/defuser has dropped in Location 1, it will respawn somewhere in Location 1. Analogously with Location 2. Otherwise it will respawn at (counter)-terrorist base.

Edit: Yes, I can recreate de_dust in GTA2, but I'm very busy recently. Perhaps in december I will have some free time to do.

Re: Sketch of a "Counter-Strike mode" in GTA2 scripting

Posted: 12 Dec 2023, 16:19
by valps
Okay, I reworked the script:

- It's less hardcoded and more optimized, I guess.
- Each player can choose their team

And finally here is the CS map in GTA2: de_dust2. Things can be changed later, feedback are welcome.

Once I reach to a stable version, with feedback and without bugs, I will release the version 1.0.