Raised This Month: $32 Target: $400
 8% 

C4 Countdown Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Plugin ID:
5
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives a countdown timer for the bomb in Counter-Strike Source.
    Old 04-09-2007 , 20:35   C4 Countdown Timer
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (c4timer.sp - 32711 views - 3.2 KB)
    File Type: smx c4timer.smx (2.3 KB, 11411 views)

    Last edited by sslice; 07-01-2007 at 02:31.
    sslice is offline
    BAILOPAN
    Join Date: Jan 2004
    Old 04-09-2007 , 21:15   Re: [PLUGIN] C4 Countdown Timer
    Reply With Quote #2

    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)
    __________________
    egg
    BAILOPAN is offline
    oberon
    Junior Member
    Join Date: Sep 2004
    Location: UK
    Old 04-10-2007 , 12:23   Re: [PLUGIN] C4 Countdown Timer
    Reply With Quote #3

    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?
    oberon is offline
    Send a message via MSN to oberon
    BAILOPAN
    Join Date: Jan 2004
    Old 04-10-2007 , 14:37   Re: [PLUGIN] C4 Countdown Timer
    Reply With Quote #4

    Under cstrike\resource, read the .res files (I think it's called modevents.res or something). Also, hl2\resource has the default mod events.
    __________________
    egg
    BAILOPAN is offline
    sslice
    Senior Member
    Join Date: Feb 2005
    Location: Texas, USA
    Old 07-01-2007 , 02:32   Re: C4 Countdown Timer
    Reply With Quote #5

    Updated with public ConVar.
    __________________
    sslice is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 07-01-2007 , 08:50   Re: C4 Countdown Timer
    Reply With Quote #6

    Good work !

    Like it ... cya
    __________________
    Rebell is offline
    -GSE-||Obsession^
    Junior Member
    Join Date: Oct 2006
    Location: Monnickendam
    Old 07-04-2007 , 05:47   Re: C4 Countdown Timer
    Reply With Quote #7

    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
    GJ anyway..

    Last edited by -GSE-||Obsession^; 07-04-2007 at 05:50.
    -GSE-||Obsession^ is offline
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 07-26-2007 , 03:04   Re: C4 Countdown Timer
    Reply With Quote #8

    nice work, sslice!

    =)

    can u add a voice countdown and move plugin's messages to chat area?
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 07-30-2007 , 07:59   Re: C4 Countdown Timer
    Reply With Quote #9

    please-please-please =)))
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    GriMz
    Senior Member
    Join Date: Jul 2007
    Old 07-30-2007 , 09:28   Re: C4 Countdown Timer
    Reply With Quote #10

    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.
    GriMz 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 12:24.


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