Raised This Month: $100 Target: $400
 25% 

Allow Round Finish


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   EKS (167)
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 12-12-2005 , 17:43   Allow Round Finish
Reply With Quote #1

This plugin allows the last round to be finished even if the timelimit has expired

Some mapextend plugins are gonna mess with this plugin!, and not make it work.

Credits:
Ops in #AMXmod @ Quakenet for alot of help ( + AssKicR & CheesyPeteza )
Attached Files
File Type: sma Get Plugin or Get Source (allow_roundfinish.sma - 7215 views - 1.4 KB)
__________________
Github archive for plugins, the repos for the other c++ projects are there to.

Last edited by Brad; 12-09-2006 at 10:07. Reason: spelling corrections
EKS is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-12-2005 , 17:48  
Reply With Quote #2

Sneeee-ap! Good job. I've been wanting exactly this.
Brad is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-12-2005 , 20:14  
Reply With Quote #3

Hmm, cool.

Didn't know we were allowed to approve our own plugins

__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 12-12-2005 , 20:20  
Reply With Quote #4

Why else would BAILOPAN allow it to be done ?
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 12-12-2005 , 20:45  
Reply With Quote #5

Quote:
Originally Posted by EKS
Why else would BAILOPAN allow it to be done ?
Lol, Well anyways nice job!
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
versus666
Junior Member
Join Date: Dec 2005
Old 12-13-2005 , 07:58  
Reply With Quote #6

Nice work, I tried a month ago to do the same, but I didn't understood the explaination about some flags in the SET_TASK fonction to be able to finish my work.
Your way is simple, but nevertheless brilliant.

Anyway, I wonder if you realise you swapped L29 and L38-39.

I explain, if I understood your code well:

You test the 'near end of the map' ('d' flag in set_task with 10 seconds) then IF it's true you grab the value of mp_timelimit, and then you SHOULD add it (a kind of addition which act like a reset) to the mp_timelimit, like you do on L38.
But you don't.
Instead, you set mp_timelimit to 0, which effectively end the map, 10 seconds before when it should, bypassing the code cheking the end of the round.

Game over.

Else, may I borrow (a bit of) your code, with credit to one of my plugin, a kind of Task Scheduler 'JustinHoMi-style' ?


PS: If it happends I'm wrong, accept my apologies, but I'm pretty sure I'm not.
__________________
Nemo Me Impune Lacessit.
versus666 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-13-2005 , 09:12  
Reply With Quote #7

You are wrong.

By setting mp_timelimit to 0, that tells the server to NOT have a time limit as opposed to saying time has run out. 0 is forever. He sets it to 0 so the current round can finish and then resets it to it's original value immediately after that round, thus ending the map.
Brad is offline
versus666
Junior Member
Join Date: Dec 2005
Old 12-13-2005 , 10:40  
Reply With Quote #8

Ok, I see my error...Quite tricky
But any value instead of the old one would fit, as much as it's less than the original timelimit, isn't it ? I get it just there for the 'au cas oł', a kind of 'academic-style'...
__________________
Nemo Me Impune Lacessit.
versus666 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-13-2005 , 10:55  
Reply With Quote #9

I'm assuming you're referring to resetting the time limit back to it's original value. The reason for setting it exactly back to the original value is that if you didn't do that, you could possibly be affecting the time limit in the next map. It was done that way because that's how it should have been done.
Brad is offline
versus666
Junior Member
Join Date: Dec 2005
Old 12-14-2005 , 02:35  
Reply With Quote #10

But shouldn't the timelimit be specified in the server.cfg, which is executed on each mapchange ?
What's why I feel strange to set back the previous value. For me it's a sort of safety mesure without reason.
But hell, it works, that's the important point.
__________________
Nemo Me Impune Lacessit.
versus666 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:51.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode