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

Advanced c4 timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dalto
Veteran Member
Join Date: Jul 2007
Plugin ID:
113
Plugin Version:
1.4.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    3335 
    Plugin Description:
    A c4 timer with countdown sounds
    Old 08-01-2007 , 22:07   Advanced c4 timer
    Reply With Quote #1

    Advanced c4 timer

    Current Version: 1.4.1

    Description:
    This plugin is a c4 timer with configurable sounds. Based on the c4 timer by sslice. Includes full user configurability.

    Planned Features:
    None, make a request!

    Special Thanks:
    Imported Anthony and his team for coming up with and implementing new ideas.

    CVar's:
    sm_c4_timer_version: The version number
    sm_c4_timer_enable: Enable the plugin
    sm_c4_time_announce: Enable the announcement
    sm_c4_timer_chat_default: Default setting for chat preference
    sm_c4_timer_center_default: Default setting for center preference
    sm_c4_timer_hud_default: Default setting for HUD preference
    sm_c4_timer_sound_default: Default setting for sound preference
    sm_c4_timer_sound_default: Default setting for sound preference");
    sm_c4_timer_start_at_ten: 1 voice starts at 10, 2 text starts at 10, 3 both start at 10

    Changelog:
    1.4.1: Added individual text messages for sounds
    1.4: Removed menu, autoload config, flexible text messages, alternate counting schemes
    1.3: Changed timing, add default setting cvar's, changed to menu
    1.2.1: Fixed menu translations not matching and changed menu behavior
    1.2: Added the planters name, added a defuser message, added translation support
    1.1.1: Fixed a bug with the announcer counting wrong
    1.1: Added hud text and an exit menu option
    1.0: Added support for late loading
    0.6: Changed timer countdown pattern, added user configuration
    0.5: Initial Release
    Attached Files
    File Type: zip advancedc4timer1.4.1.zip (116.1 KB, 36129 views)
    File Type: sp Get Plugin or Get Source (advancedc4timer.sp - 17152 views - 13.4 KB)

    Last edited by dalto; 09-06-2007 at 00:01. Reason: New release
    dalto is offline
    -=]DS[=-launebaer
    Member
    Join Date: Jul 2005
    Old 08-02-2007 , 00:41   Re: Advanced c4 timer
    Reply With Quote #2

    nice plugin. can you try this with a centermessage or a hint text when the sounds come. sry for my english please but an old german man :-)
    -=]DS[=-launebaer is offline
    dalto
    Veteran Member
    Join Date: Jul 2007
    Old 08-02-2007 , 01:02   Re: Advanced c4 timer
    Reply With Quote #3

    Quote:
    Originally Posted by -=]DS[=-launebaer View Post
    nice plugin. can you try this with a centermessage or a hint text when the sounds come. sry for my english please but an old german man :-)
    The countdown is displayed in the center already if I am understanding what you are asking.
    dalto is offline
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 08-02-2007 , 02:08   Re: Advanced c4 timer
    Reply With Quote #4

    nice plugin, thanks! =)

    another thing: mb add a variable for set announces interval?
    for example: if serer variable bombtimer set to 35, when bomb announces every 30, 20, and 10,9,8,7 etc... seconds
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    dalto
    Veteran Member
    Join Date: Jul 2007
    Old 08-02-2007 , 02:12   Re: Advanced c4 timer
    Reply With Quote #5

    Quote:
    Originally Posted by imported_Anth0ny View Post
    nice plugin, thanks! =)

    another thing: mb add a variable for set announces interval?
    for example: if serer variable bombtimer set to 35, when bomb announces every 30, 20, and 10,9,8,7 etc... seconds
    Thanks....I will add that.
    dalto is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 08-02-2007 , 02:22   Re: Advanced c4 timer
    Reply With Quote #6

    Some coding shortcuts and suggestions:
    1. MAX_CLIENTS can become MAXPLAYERS -- which you don't even use...
    2. For you "hook" check you can throw an error so the plugin unload it self (look up SetFailState)
    3. For loop on line 85 should have the needed { and }. Keeps everything clean. You already do this once, so keep the consistency.
    4. Credit sslice in the code.
    Otherwise nice job.
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    dalto
    Veteran Member
    Join Date: Jul 2007
    Old 08-02-2007 , 09:33   Re: Advanced c4 timer
    Reply With Quote #7

    Quote:
    Originally Posted by ^BuGs^ View Post
    Some coding shortcuts and suggestions:
    1. MAX_CLIENTS can become MAXPLAYERS -- which you don't even use...
    2. For you "hook" check you can throw an error so the plugin unload it self (look up SetFailState)
    3. For loop on line 85 should have the needed { and }. Keeps everything clean. You already do this once, so keep the consistency.
    4. Credit sslice in the code.
    Otherwise nice job.
    1. I use it in the next release
    2. Heh, that is the original code. I use SetFailState in my other plugins. I will change it here as well.
    4. I do already at the top. I will add a couple more throughout.
    dalto is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 08-02-2007 , 12:38   Re: Advanced c4 timer
    Reply With Quote #8

    Client index starts at 1 so this is the proper way to define it in your array: MAXPLAYERS+1

    You will have an extra, but at least you will not have to do: clientindex-1

    Everytime...
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    -=]DS[=-launebaer
    Member
    Join Date: Jul 2005
    Old 08-02-2007 , 16:26   Re: Advanced c4 timer
    Reply With Quote #9

    ok :-)

    but centermessage only by sound.

    so sound comes @ 30, 20, 10,9......

    and centermessage comes by 30,29,28........... and chat message comes too.

    better is when the centermessage comes only when sound comes or be enable or disable the message. in the chat and the centermessage be set by settings like:

    sm_c4Sound_chat 0|1
    smc4Sounds_centermessage 0|1

    or by the c4soundslist.cfg like:

    "c4SoundsList"
    {
    "c4_sound"
    {
    "1" "admin_plugin/c4timer_1.wav"
    "2" "admin_plugin/c4timer_2.wav"
    "3" "admin_plugin/c4timer_3.wav"
    "4" "admin_plugin/c4timer_4.wav"
    "5" "admin_plugin/c4timer_5.wav"
    "6" "admin_plugin/c4timer_6.wav"
    "7" "admin_plugin/c4timer_7.wav"
    "8" "admin_plugin/c4timer_8.wav"
    "9" "admin_plugin/c4timer_9.wav"
    "10" "admin_plugin/c4timer_10.wav"
    "20" "admin_plugin/c4timer_20left.wav"
    "30" "admin_plugin/c4timer_30left.wav"
    }

    "c4_message"
    {
    "1" "1 Second remaining"
    "2" "2 Second remaining"
    "3" "3 Second remaining"
    "4" "4 Second remaining"
    "5" "5 Second remaining"
    "6" "6 Second remaining"
    "7" "7 Second remaining"
    "8" "8 Second remaining"
    "9" "9 Second remaining"
    "10" "10 Second remaining"
    "20" "20 Second remaining"
    "30" "30 Second remaining"
    }
    }
    -=]DS[=-launebaer is offline
    dalto
    Veteran Member
    Join Date: Jul 2007
    Old 08-02-2007 , 18:36   Re: Advanced c4 timer
    Reply With Quote #10

    Quote:
    Originally Posted by -=]DS[=-launebaer View Post
    ok :-)

    sm_c4Sound_chat 0|1
    smc4Sounds_centermessage 0|1
    There will be a release tonight that will allow individual users to configure their sounds. In a later release I will add functionality to globally disable certain kinds.
    dalto 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 01:30.


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