AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Style C4 Timer (https://forums.alliedmods.net/showthread.php?t=278600)

OciXCrom 02-04-2016 07:14

Style C4 Timer
 
4 Attachment(s)

Description
  • This C4 timer shows the time remaining until the explosion in a slightly different way. You can choose between multiple different styles, including the default one, i.e. simple countdown to 0. The timer can also change its color when it reaches a certain time - by default it starts with green, on 10 seconds it changes to yellow, and on 5 seconds it becomes red. This is fully customizable. It can also move across the screen and change its position each second, it can use a voice speaker for the countdown and much more.

Settings
  • The settings can be found in the [Settings] section in the file configs/StyleC4Timer.ini. In this thread you will find a brief explanation for them. Make sure to check the configuration file for full details.
  • STYLE_MODE -- timer style mode (manual selection/consecutive/random)
  • TIMER_STYLE -- timer style id if manual style mode is selected
  • COLOR_MODE -- timer color mode (one color/color cycle/random)
  • STARTING_COLOR -- timer starting color
  • COLOR_CYCLE -- if the color cycle option is selected, here you can set when the timer will change its color and specify those colors
  • STARTING_POSITION -- timer starting position
  • ENABLE_POSITION_CYCLE -- if enabled, you can make the timer move across the screen each second
  • POSITION_CYCLE -- coordinates for timer movement if the position cycle option is enabled
  • MESSAGE_TYPE -- timer message type (HUD/DHUD/center)
  • OVERWRITE_ROUND_TIMER -- if enabled, the default round time will be replaced with a C4 timer in addition to the HUD message
  • TIMER_SYNC -- if the timer isn't in sync with the actual explosion, use this setting to adjust it
  • START_MESSAGE_AT -- when to start the timer message (0 will make it start right after the bomb has been planted)
  • START_VOICE_AT -- when to start the voice countdown
  • VOICE_SPEAKER -- sound folder for the voice countdown (vox/fvox/custom)

Styles
  • The styles can be found in the [Styles] section in the file configs/StyleC4Timer.ini. Down below you will find a brief explanation of the style settings and how you can use them to modify or create your own style.
  • Begin -- the starting point of the timer style
  • Add -- this text is added X times to the "begin" one, where X is the value of the cvar "mp_c4timer"
  • End -- the ending point of the timer style
  • Replace symbol -- the text that will be replaced each second
  • Replace with -- the replacement text
  • Preview -- this is just a preview for end-users, it's not used anywhere in the code

Video preview (with HUD messages)



Additional information and download link

https://raw.githubusercontent.com/Oc...using_this.png
https://raw.githubusercontent.com/Oc...plugin_lab.png
https://raw.githubusercontent.com/Oc...ad_default.png

JoaoVieira 02-05-2016 11:39

Re: Style C4 Timer
 
Nice idea :D

ErrorStereotype 02-11-2016 12:05

Re: Style C4 Timer
 
Hey mate, really like this one, but guess resolution is the problem, it's too wide + my c4 timer is on 35 seconds as original in server.cfg. It's not accurate since bomb explodes far away before timer is done. Screenies down there



OciXCrom 02-11-2016 13:52

Re: Style C4 Timer
 
Well, it deffinetely doesn't look like it's set on 35 seconds. There are far more "arrows" on the picture than 35. The problem is probably in your server's files/configuration, I'm using the original C4 Timer for the base of the plugin. And yes, having a huge explosion time can cause the HUD to spread on two lines, because HUD messages simply can't be that long.

OciXCrom 04-18-2016 14:58

Re: Style C4 Timer
 
I updated the code and I'm waiting for an approver to take a look at it. I would appreciate any suggestions on adding more styles or options.

siriusmd99 04-22-2016 14:08

Re: Style C4 Timer
 
Interesting , good job.

Make sure that colour will be seen in more lighted places of the map, because in video it was a moment when that line was hard to see.

OciXCrom 04-22-2016 14:25

Re: Style C4 Timer
 
The map on the video is white, therefore it's hard to see on it. I can't prevent such a problem, since it uses three default colors - green, yellow and red, all of them clearly visible in normal conditions. Enabling the random colors option, the plugin will use all possible colors.

siriusmd99 04-22-2016 16:10

Re: Style C4 Timer
 
I meant to use colours which are darker but if you say that in game hud is visible ,then no problems :)

ssproxima 09-02-2016 00:24

Re: Style C4 Timer
 
my servers c4 timer and its animation are not in sync how to set the exact time

INTEL-XTREME 09-09-2016 12:34

Re: Style C4 Timer
 
Nice idea, very good. Please FIX C4 time sync


All times are GMT -4. The time now is 07:06.

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