Hello, guys this a plugin that ends round when round time limit is ended
Only tested in css
https://github.com/srpg/round-end/tree/main
Automatic round ender
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
-
- Junior Member
- Posts: 11
- Joined: Mon Feb 15, 2016 6:53 pm
- Location: Ulvila, Finland
- Contact:
Re: Automatic round ender
Could these linesbe replaced by these instead ?
Sorry about the indentation, phpBB destroyed it, so I removed it altogether.
Syntax: Select all
ftime = cvar.find_var('mp_freezetime').get_int()
rtime = cvar.find_var('mp_roundtime').get_int()
rtime = float(rtime * 60.0)
rtime = float(rtime + ftime)
rtime += 5
Syntax: Select all
ftime = cvar.find_var('mp_freezetime').get_float()
rtime = cvar.find_var('mp_roundtime').get_float() * 60.0 + ftime + 5.0
Sorry about the indentation, phpBB destroyed it, so I removed it altogether.
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: Automatic round ender
rautamiekka wrote:Could these linesbe replaced by these instead ?Syntax: Select all
ftime = cvar.find_var('mp_freezetime').get_int()
rtime = cvar.find_var('mp_roundtime').get_int()
rtime = float(rtime * 60.0)
rtime = float(rtime + ftime)
rtime += 5Syntax: Select all
ftime = cvar.find_var('mp_freezetime').get_float()
rtime = cvar.find_var('mp_roundtime').get_float() * 60.0 + ftime + 5.0
Sorry about the indentation, phpBB destroyed it, so I removed it altogether.
Edit:
Just did test it works that way too
-
- Junior Member
- Posts: 11
- Joined: Mon Feb 15, 2016 6:53 pm
- Location: Ulvila, Finland
- Contact:
Re: Automatic round ender
Technically the parts aren't necessary anymore, but I added them for clarity.
Code: Select all
.0
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: Automatic round ender
Correct me if i am wrong, so those .0 aren't need because the first value is from float right?
-
- Junior Member
- Posts: 11
- Joined: Mon Feb 15, 2016 6:53 pm
- Location: Ulvila, Finland
- Contact:
Re: Automatic round ender
Doesn't seem to matter whether it's float+int or int+float. Direct copypaste from ConEmu:
Syntax: Select all
Microsoft Windows [Version 10.0.19043.1165]
user@RAUTALAPTOP2 C:\
$ python
Python 3.9.6 (default, Jul 30 2021, 11:42:22) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
>>> 10.0+5
15.0
>>> 5+10.0
15.0
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: Automatic round ender
Update:
- Added checker for bombsite & hostage rescue zone
- If doesn't find bombsite & hostage rescue zone, automatic round ender triggers(when round time ends)
- Added checker for bombsite & hostage rescue zone
- If doesn't find bombsite & hostage rescue zone, automatic round ender triggers(when round time ends)
Who is online
Users browsing this forum: Bing [Bot] and 122 guests