AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   KZ Autocup v2.5 (https://forums.alliedmods.net/showthread.php?t=311740)

JocAnis 10-31-2018 20:51

KZ Autocup v2.5
 
2 Attachment(s)
Hello guys. Presenting my the most enjoyable project so far.

Version: 2.5

Descriotion:
KZ Autocup, like the name says, is the cup for Kreedz mode with automated finding the winner. Its totally compatabile with any of your kz-main plugin on the server (it means it blocks /cp,/gc...so you must put kz_autocup.amxx before them in plugins.ini)
Its possible to find the winner because of created entities, in this case markers/levels.
I tryed to make it the most simple but ofc useable for all. So it means, there are no any cvar, few chat commands, and thats it for players...you dont need an admin online to choose the winner, so you only need to start cup, play and finish. If that map has more than 3 saved markers (its the minimum), winner will be choosen by who touched further marker*; saving players are stored via sqlite, so there is also Cup15
Chat commands:
/startcup - opens menu with option for time of cup and starting it
/joincup - joing the cup
/exit - if you want to leave
/cup15 - opens cup15 motd
/cup - admin command, for making cup markers
/cupinfo - showing hud with all cup commands

[console] amx_cup_delete "STEAM:2525252" - Deletes steamid from sql database

Making cup markers is very easy and fast...just go /cup -> turn on Faster Noclip, and by aiming you will create them...the most important thing of this plugin is: marker's positions...on bigger height difference you must position them, and casually on every 5-6 blocks, how you want...thats it

* - in previously version (v2.0) was possible to do an bug: if player is the first one, he's like on 50th marker, but suddenly fall down to start, and in that moment cup ends - he will be selected as winner, even if second player is on 45th marker...so i added when cup finished, check his height compared to that marker (and ofc compare heights of his last_touched marker and last_touched+1 marker) ...it wont be 100% accurate (still one bug is known), but it will do the work for 8/10 situations hh

Versions:
v1.0 : created without markers,cup15
v2.0: added markers + cup15 + statustext messages
v2.2: added detecting player's height, like explained before + fixed some little things
v2.3: added someone did a sc (thanks to skazzy for the idea) + added showing if winner was in air at the end
v2.5: added CP/TP option when go /startcup + bartime on countdown, little changes to /cup15 style
ALSO:
You must create folder in addons/amxmodx/configs/Cup_maker/
In that folder, all your saved markers will be saved. Your sqlite is saved: addons/amxmodx/data/sql3/
Markers are all invisible by default. In my opinion its better option
extension is: .txt ...so you can download from Necro Cup already created markers, i made it to be compatibile

Thanks to:
So many people helped me in this project, also my the longest one (one or two months working), some of them helped me directly with testing on the server, some by the code, some of them indirectly ect...so thanks goes to:

Kushfield, Kpoluk, Basshunter, RIO, M3, xeis, mEfro, p0ker, foxa, klipica, skazzy, Gorbachev, trajko and im sorry if i forgot someone :/
Especially to: KZ Necro Cup's markers file, i think trooper [kz-na] made all by himself, so thanks to him for that
Images:
https://imgur.com/a/MLn5Jft - /cup and /startcup menus
https://i.imgur.com/uvx2XqL.jpg - /cup15
updated /startcup: https://imgur.com/VXvtTpa
bartime until cup starts: https://i.imgur.com/odHuG1Z.jpg
You can test this on: 46.10.101.159:27001 [aa10] or 46.10.101.159:27000 [aa100]

OciXCrom 11-01-2018 09:13

Re: Kreedz Autocup v2.2
 
Don't attach compiled plugins. Remove the .amxx file.

JocAnis 11-01-2018 11:41

Re: Kreedz Autocup v2.2
 
Allright, done. Extension is changed from .ini to .txt, so you can easily use NecroCup's uploaded finished markers...i hope today i will a video to show how is it looking/working

JocAnis 11-05-2018 08:28

Re: Kreedz Autocup v2.2
 
New version..v2.3:
Code:

added if someone does a sc [thanks to skazzy]
added if winner was in air [withou further checking for now]
//uploaded cup_maker to first post (with already created maps + sprite file)

https://i.imgur.com/3KfkEhm.jpg

JocAnis 11-16-2018 14:10

Re: Kreedz Autocup v2.2
 
Ok plugin is updated, here are the changes:
v2.5
Code:

added CP/TP support on /startcup
added bartime until cup starts
changed cup15 for a hover effect
added default cs sounds
added connect message + 3min loop for chatinfo
added /cupinfo for that hud showing
added check if player is in CT team

updated /startcup -> https://i.imgur.com/VXvtTpa.jpg
barprogress -> https://i.imgur.com/odHuG1Z.jpg

You can test plugin here: 46.10.101.159:27001 [aa10] or 46.10.101.159:27000 [aa100]

added hudinfo (image) + 180.0 sec loop for say /cupinfo
http://imagehost7.online-image-edito...13S5XacLQd.png


All times are GMT -4. The time now is 04:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.