AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   C4 Countdown Timer (https://forums.alliedmods.net/showthread.php?t=53718)

sslice 04-09-2007 20:35

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.

BAILOPAN 04-09-2007 21:15

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)

oberon 04-10-2007 12:23

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?

BAILOPAN 04-10-2007 14:37

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.

sslice 07-01-2007 02:32

Re: C4 Countdown Timer
 
Updated with public ConVar.

Rebell 07-01-2007 08:50

Re: C4 Countdown Timer
 
Good work !

Like it ... cya :)

-GSE-||Obsession^ 07-04-2007 05:47

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:

imported_Anth0ny 07-26-2007 03:04

Re: C4 Countdown Timer
 
nice work, sslice!

=)

can u add a voice countdown and move plugin's messages to chat area?

imported_Anth0ny 07-30-2007 07:59

Re: C4 Countdown Timer
 
please-please-please =)))

GriMz 07-30-2007 09:28

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.