[RE] FASTCUP Tactical Timeout (Pause Plug-in)
3 Attachment(s)
Requirements: AMXModX 1.10 (maybe works with 1.9 too :?:) ReHLDS & ReGameDLL ReAPI 5.21 Note: THIS IS ONLY FOR CS 1.6 SERVER OWNERS WHO USE REHLDS/REGAMEDLL COMBO ->> REASON! Plugin description: It's basically the pause feature from CSGO but with slight changes, a player can call for a pause whenever and it will take effect on the next round or if the round is in freezetime, and anyone from the same team can call a vote for unpausing - mostly aimed @ 5v5 servers, but could be used in other instances as well I guess! This is something that has been in "demand" lately, but the ones that were out were never quite similar to the one on FASTCUP which people wanted, so I decided to make it on my own and release it. And the other ones that I found were only working on the default HLDS packages, and still lacked some very basic logic to replicate the one from FASTCUP. My plugin modifies the roundtimer directly rather than meddling with the mp_freezetime cvar, which is in theory a big advantage over whatever is floating around other forums. Features:
Cvars: Server cvars:
Server cmds:
Usage: In chat, type [!][/][.]pause or [!][/][.]p to request a pause! In chat, type [!][/][.]unpause or [!][/][.]up to start a vote for resuming the game (unpause) Examples: Pausing:
Unpausing:
Change Log:
Installation:
Feedback is welcome as I'm still learning:3 |
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
very nice! :)
|
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
For anyone that has already downloaded the plugin - please download the new update and replace the pause.txt file too, it fixes some critical things I haven't really paid attention to while coding the plugin!
|
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
1 Attachment(s)
i suggestion all to remove under red line main mark in picture. this is a bottom side i want set this top center anyone fix this ?only timer is good for plugin sorry my bad english
|
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
Quote:
|
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
Quote:
Just a short list of what I could've done better: implement it as a proper API, and only then offer a ready-made solution, just in case other devs want to take the functionality of pausing but rather handle the other things themselves. this could have been done much MUCHHHHHH cleaner and better. too many defines. // arguable, i didn't look thoroughly what i was doing hardcoded task ids. using old ways of creating cvars even though I was using ReApi (???). half using amxx default stuff half using reapi... no idea what i was doing wtf, should have just went with registerhookchain for example, but like I said, I was very much a newbie back then useless tasks... LOL. players who join will never see the messages of the pause (? WTF I WAS DUMB) I love how I mangled the team ids, since they differ in the ways I was checking them, printing for a team and getting a team id was differing somehow (I don't remember exactly what I was doing) so I had to do some spaghetti LOL, the more I read through the code the more I laugh!!! I love how I was overusing the ternary operators just for the sake of it ( cause I just learnt about it back then and I was so happy I understood how it works... or not! ). The only commendable thing I can find is the way I used it in get_players I guess? Love the fact that I could have cached so many times before running loops with funny comparisons in the print functions... Could have encapsulated more stuff to be honest like initializing/resetting some common variables, could have even arguably used bit shifting but maybe it's overkill for the purpose of the plugin. I see a couple of array sizes that have no deal being this big but maybe there's a reason behind them I don't remember. Overall I would rate this code 3/10, but to be honest... at the time to me it looked like groundbreaking code so I was very proud of myself, so I might come back and fix this mess (eventually). Also R.I.P goldSrc. Quote:
and don't forget to remove/comment out lines 178-180 in CleanReinitialize(). |
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
In practice the master is born
|
Re: [RE] FASTCUP Tactical Timeout (Pause Plug-in)
Quote:
pllz u edit me this code ??? i am not a expert coding |
| All times are GMT -4. The time now is 06:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.