KZ Autocup v2.5 (option for /cp)

Started by JocA Banned
01/11/2018 02:15
Page 1 of 2
JocA Banned01/11/2018 02:15(edited 16/11/2018 22:44)

Hello guys. I made new plugin. Its about having Cup in your server, so any player can start, join, leave the cup. Admins have command /cup for making markers...no cvars, so really simple plugin
Plugin automatically detect who is winner (by getting player's last touched marker)
There is /cup15 also (saved by sqlite)

How is cup15 sorted? By (wins/cups)*players_played...if someone has the same Skill level, then i will by ordered by Cups, then by Wins

Now you can test this plugin on his server: 46.10.101.159:27000 [aa100]
and: 46.10.101.159:27001 [aa10]


Updated to 2.5 (16.11.2018)
(v 2.3 = added if someone did sc while in cup, also added [in air] if winner finished like that, but without further checking for now)
(2.5 = added progress bar for countdown startcup, added /cp and /tp option while starting, images below, *16.11. - added connec message + 3min loop for /cupinfo )

kz_autocup.sma code: https://pastebin.com/cqbVgUcf (updated 16.11. - fixed bug when 1 player only in cup, *added check if player is in CT)
sprite link: https://www.sendspace.com/file/hguwdt (thanks to DarkGL)
already created markers: https://www.sendspace.com/file/qtznkx (click to see included maplist)

MUST:
You must make new directory in amxmodx/configs/Cup_maker
So all markers per maps will be saved there...mapname.txt

and you must place kz_autocup.amxx before your kzplugin in plugins.ini (cuz it must block /cp,/tp ect ... )

I think thats it...officially its here: https://forums.alliedmods.net/showthread.php?t=311740

I'd be glad if anyone can message me when he puts it on his server

Images:
Cup15 - https://i.imgur.com/uvx2XqL.jpg - my low cs resolution fuu :)
/cup and /startcup menus - https://imgur.com/a/MLn5Jft

updated /startcup -> https://i.imgur.com/VXvtTpa.jpg (added /cp and /tp ON/OFF) (thanks to warps and rawe)
progress bar until it starts -> https://i.imgur.com/odHuG1Z.jpg (thanks to trajko, i forgot this one)

video: https://www.youtube.com/watch?v=CkyhOwF7vuk (sry for bad eng)

hoLy mapper01/11/2018 04:55

Good job :)

warps01/11/2018 05:20(edited 01/11/2018 05:21)

It could be cool having a nub and pro cup :)
Also, why did you choose making it by markers and not with (szTarget, "counter_off")

JocA Banned01/11/2018 11:21(edited 01/11/2018 11:26)

heh thanks holy :)
@warps, with endtimer option, it will be so much limited...if i wanted cup15, winner must be the one who FINISHED the map, cuz otherwise it couldnt be calculated/detected...
ye i was thinking about pro/nub...not bad idea...i will add that to next version probably

@added screenshots, cup15's order

warps01/11/2018 12:15(edited 01/11/2018 12:16)

Now I understand you. GJ!
I didn't read the whole .sma, what if I skip some checkpoints with a sc?

JocA Banned01/11/2018 14:25

thanks man :)
well with current code, cup is based on who has touched the further marker...so nothing will happen, except you will be probably first when cup is getting to detect winner :D
in next version, i will probably add when someone does sc, to be printed in chat

Is it supposed to work on any map I wish or just the marked ones?

JocA Banned01/11/2018 18:02

without markers cup will be also possible to play, everything is the same, like time of cup, teleporting to all positions at the end, ect.. but obviously there wont be a winner (so no updating /cup15)
*wating for gorbachev's resposone about uploading explanation video

KarLi mapper02/11/2018 12:38

I like it :) gj

gladius03/11/2018 16:20

Shouldn't be better if you check players touch when player is walking/running and not when player is falling ?. I didn't test but if I fail (eg sc on 6fd_volcano) I could reach sc block and die then plugin count it as good mark right?.

Also I think you should check entity touch with player mins (player foot) instead of origin (player center body).

Well done!

JocA Banned03/11/2018 17:14(edited 03/11/2018 19:02)

thanks karli! still waiting for gorborachev's upload, if anyone is courius how it all looks

yo gladius, im really pleased to see you in this thread, i really like your works :D


Shouldn't be better if you check players touch when player is walking/running and not when player is falling ?


hmm sorry, but isnt pfn_touch called on every Touch? cant get what you mean by falling :/

I didn't test but if I fail (eg sc on 6fd_volcano) I could reach sc block and die then plugin count it as good mark right?.


well good question...if player do that, and if he on respawn doesnt touch (be afk lol) any entity/marker anymore (1. one or whichever) so yeah, he will be calculated like he touched that sc marker...but ez fix would be: make marker on spawns (so he must touch any of them on respawn so will be calculated #1 marker touch) ?


Also I think you should check entity touch with player mins (player foot) instead of origin (player center body).

Well done!


hmm pfn_touch is alreading doing that with mins/maxs ? And thanks !

EDIT: added if player does any sc (skipped min3 markers)

Image

buh04/11/2018 18:14

good job JocA D:

Gorbachev_x mapper04/11/2018 18:46(edited 05/11/2018 09:41)

Hey joca do you still want me to upload the video? I was waiting for my connection to stabilize and now it's good again.

warps04/11/2018 20:28

Hey, yes please I still don't get it. Why markers are better compared to run a whole map, except in the case where any of the runners wouldn't be able to hit end button, and you choose as winner who make it further.

JocA Banned04/11/2018 21:46

thanx buh! yeah gorba, i would like to have a video presentation of it

JocA Banned05/11/2018 14:00(edited 05/11/2018 14:20)

Ok here it is..ofc im sorry for my bad english, but i hope you will get the whole idea of the plugin hehe (ofc, thanks to gorbachev!)


updated first post, with uploaded files

Axwell05/11/2018 18:06

good job :)

nobody^05/11/2018 21:39

Great stuff, arigato!

JocA Banned06/11/2018 18:52(edited 06/11/2018 18:54)

thanks axwell and nobody!
two argentinian asked me for adding /cp+/tp option for cup, i couldnt find a way to stop potential 'fool' with cping before cup...now its fixed and added...thanks to warps and rawe for this suggestion! +added timecounddown:
Image

Sunako07/11/2018 07:21

finally

Page 1 of 2

Please log in to post replies.