How to create a timed round system
#1

So hello, im currently working the old call of duty wet work script, ive changed allmost everything about it, ive create 3 maps to go with it, i would like to know how i would create a time'd round system so say, a round starts, players select one of the two teams, the team with the most kills at the end of the round wins.

and sort of like a winners log comes up,

*player with most kills*

*Player with highest killstreak*

ect, ect.

If anyone could help me out, this would be great
Reply
#2

First, you need to think up the failsafe plan. Think of the possibilites: if the player-count in the server is less than 2, would the round timer starts? No. Next: Stalemate: what if there are 2 or more players in the server but none of them spawned or killed? Those are some possibilities that could happen.

The player with most kills can be done after the round timer is ended, make a loop through the enum of all the connected player's info (you can make something like "KILLS") or even checl their score if you script the score directly as the kills counter. If I were to script the player with highest killstreak thing, I would create two enum such as "KILLS_BEFORE_DEATH" and "HIGHEST_KILLSTREAK", and he "HIGHEST_KILLSTREAK" will only change if it is more than "KILLS_BEFORE_DEATH". "KILLS_BEFORE_DEATH" will be reset at OnPlayerDeath. Something like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)