C4 Countdown Timer
2 Attachment(s)
Simple plugin that gives a countdown timer for the bomb in Counter-Strike Source.
The countdown length is specified by the CVAR sm_c4timer. The default value is 5, meaning the countdown will start when there are 5 seconds left before the bomb explodes. Setting sm_c4timer to 0 disables the countdown timer. Right now it gives you the countdown in the center of the screen (text only)...this was in response to a post in the request forums. The plugin should be easy to add on to in order to give a voice to the countdown or whatever someone feels they should add. I have no problem with anyone re-releasing it with new features such as the countdown voice, just give credit where it is due if you use this code. |
Re: [PLUGIN] C4 Countdown Timer
Nice use of events ;)
Two small notes to shave a few seconds off your coding time: 1) I think I mentioned this in IRC but you don't need to free handles on unload - if they're owned by the plugin they're automatically freed. 2) You can get away with just including <sourcemod> - it automatically includes everything else (as long as the API is deemed stable/finished) |
Re: [PLUGIN] C4 Countdown Timer
nice work sslice :)
out of interest how can we find out the events list for css (we've seen player_spawn, bomb_planted, bomb_bleep and i'm guessing player_death is one too), and the keys for them? |
Re: [PLUGIN] C4 Countdown Timer
Under cstrike\resource, read the .res files (I think it's called modevents.res or something). Also, hl2\resource has the default mod events.
|
Re: C4 Countdown Timer
Updated with public ConVar.
|
Re: C4 Countdown Timer
Good work !
Like it ... cya :) |
Re: C4 Countdown Timer
Nice, been waiting for this.. hope someone picks it up where you stopped
and adds the sounds. Would allso like to see announce at 30 nd 20 seconds :wink: GJ anyway..:up: |
Re: C4 Countdown Timer
nice work, sslice!
=) can u add a voice countdown and move plugin's messages to chat area? |
Re: C4 Countdown Timer
please-please-please =)))
|
Re: C4 Countdown Timer
arent the voice commands drawn from the source engine themselves if you use the metro police or the overwatch? i hope someone fixes that, i will miss the voice if it isnt.
|
All times are GMT -4. The time now is 09:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.