Raised This Month: $ Target: $400
 0% 

Announcing end-of-map, maybe showing scoreboard?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlyveHest
Member
Join Date: Nov 2010
Location: Denmark
Old 11-27-2012 , 16:56   Announcing end-of-map, maybe showing scoreboard?
Reply With Quote #1

Hi all,

Just started running a SOAP DM server a week ago, and have it set as mp_timelimit 20.

Problem is, when the limit is reached, the server just changes maps, and I would like it to either alert players, eg, 30 seconds before the map ends that its about to end, or even better, showing the scoreboard for X seconds and then changing.

I've looked into some events, and even though this (tf_map_time_remaining) would seem to be exactly what I need, hooking that does not seem to actually do anything when the plugin is running.

Is it possible to do this (and maybe a plugin already exists, and I just can't search worth a damn), or could anyone throw me some pointers as to what events / methodology I should use to accomplish this? (I have done a handful or so plugins, but I am not very well versed in the inner workings of TF2 or sourcemod yet)
__________________
FlyveHest
-
GB.CritVote - Let people vote to en/disable random crits each round

Visit Gladblad Gamers
FlyveHest is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-27-2012 , 17:38   Re: Announcing end-of-map, maybe showing scoreboard?
Reply With Quote #2

I find it really strange that the map would just change... is this something built into SOAP DM? Normal TF2 does show the scoreboard for a time before the map changes across all game modes that I'm aware of (ctf, cp, 5cp, koth, pl, plr, tc, arena).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
FlyveHest
Member
Join Date: Nov 2010
Location: Denmark
Old 11-27-2012 , 17:46   Re: Announcing end-of-map, maybe showing scoreboard?
Reply With Quote #3

It might be, I haven't looked into the source, I just assumed that this had something to do with setting mp_timelimit.

But does it show when timelimit is set? Normally you would play to a certain number of round wins, if i'm not mistaken?
__________________
FlyveHest
-
GB.CritVote - Let people vote to en/disable random crits each round

Visit Gladblad Gamers
FlyveHest is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-28-2012 , 15:26   Re: Announcing end-of-map, maybe showing scoreboard?
Reply With Quote #4

Quote:
Originally Posted by FlyveHest View Post
But does it show when timelimit is set? Normally you would play to a certain number of round wins, if i'm not mistaken?
Yes, provided it's not going into Sudden Death like it does on a tied 5cp or ctf map.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
FlyveHest
Member
Join Date: Nov 2010
Location: Denmark
Old 11-28-2012 , 15:53   Re: Announcing end-of-map, maybe showing scoreboard?
Reply With Quote #5

There seems to be some handling of mp_timelimit in the SOAP DM code, this might have something to do with it.
__________________
FlyveHest
-
GB.CritVote - Let people vote to en/disable random crits each round

Visit Gladblad Gamers
FlyveHest is offline
Reply



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 20:54.


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