AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Time Left Actions (3.0, 2015-May-01) (https://forums.alliedmods.net/showthread.php?t=94140)

Chanz 06-06-2009 22:04

[ANY] Time Left Actions (3.0, 2015-May-01)
 
9 Attachment(s)
Time Left Actions
aka Timeleft Voice
Know when the end has come, by using sound, commands and chat messages.


Index:
Description:
This plugin works for any game, if not leave me a message!
Play sound files, execute commands and print messages, at a given time.
Supports colors and token replacements for dynamic sounds, commands and chat messages.

You can continue to read the details:

Sounds:
  • Play sounds at a given time:
    • When 60 seconds are remaining on the map, everyone hears: "<bell-sound> 60 seconds remaining"
    • A countdown for the bomb in CSS:"5..4..3..2..1..", then the bomb explodes
    • A countdown for the current round, in round based games, can be:"3..2..1..", then a team wins.
Commands:
  • Execute commands at a given time:
    • Every time the last 60 seconds has been reached of a map you could start a vote.
    • Change the map if it hasn't end after 60 minutes.
Chat messages:
  • Print chat messages at a given time:
    • Every time when 60 seconds are remaining in the round print:"Chanz, you play on 'Brotcrunshers Server' the next map will be 'de_dust' in 4:36".
    • Print a chat countdown:"5 4 3 2 1"
Requirements: Known Issues:
  • Double messages when the plugin writes into chat (might be fixed with 2.9)
How to report issues:
Please read the 5 latest posts from other users within this thread.
Post within this thread and try to add the following information, it makes it much easier for me to help you and speeds it up:
  1. What game are you running the plugin on. (CSS, HL2DM, TF2, etc...)
  2. What the problem is:
    • The server is crashing, lagging, etc.
    • The plugin isn't loading.
    • The plugin isn't working right. (mostly you set one of the configuration variables wrong, please be sure to read it again but don't be scared, just ask if something is unclear and I try to explain and add a better description to this post).
  3. What the server console prints, when you type the following into it without "" (if you can't access the server console directly use HLSW):
    1. "plugin_print"
    2. "meta list"
    3. "sm plugins list"
    4. "sm exts list"
  4. Attach/upload your config file with your post.
  5. Search the latest error log (<moddir>/addons/sourcemod/logs/error_xxxxxx.log) that contains an error about this plugin.
Changelog:
https://github.com/chanz/time-left-a...commits/master
Old changelog:
Spoiler

Console/Chat commands:
None atm.
Todo: time-left-action_list and time-left-action_test <actionId> to test actions
Console variables:
PHP Code:

// This file was auto-generated by SourceMod
// ConVars for plugin "time-left-actions.smx"


// Filename of the action config to use (located in <moddir>/addons/sourcemod/configs/time-left-actions/)
// -
// Default: "default.conf"
time-left-actions_config_name "default.conf"

// Enables or Disables this plugin (1=Enable|0=Disable)
// -
// Default: "1"
// Minimum: "0.000000"
time-left-actions_enable "1" 


List of Tokens:
Info about the current player:
{STEAM_ID}
{USER_ID}
{NAME}
{IP}
{RATE} (value of client's rate var)
{ALIVE_TEAMMATES} (how many teammates are alive)
{DEAD_TEAMMATES} (how many teammates are dead)
{ALIVE_ENEMIES} (how many enemies are alive)
{DEAD_ENEMIES} (how many enemies are dead)
{TEAM} ('TERRORIST', 'CT', ...)
{ENEMY_TEAM} ('TERRORIST', 'CT', ...)
{TEAM_COLOR} (will be replaced with {R} or {B})
{ENEMY_TEAM_COLOR} (will be replaced with {R} or {B})
Info about the server:
{SERVER_IP}
{SERVER_PORT}
{SERVER_NAME} (server hostname)
{L4D_GAMEMODE} (current game mode string on l4d and l4d2)
{CURRENT_MAP}
{NEXT_MAP}
{CURPLAYERS}
{MAXPLAYERS}
{ALIVE_PLAYERS}
{DEAD_PLAYERS}
{TIME_LEFT}
Credits:
Thank you Berni for fixing the Sound Lib, its really great!
Thank you Brotcrunsher for allowing public testing.
Thank you psychonic for the token idea.
Download:
https://github.com/chanz/time-left-actions/releases
Installation:
Fresh installation:
  • Extract the zip into your mod folder.
  • OPTIONAL: When you don't like the default config:
    • Duplicate the default.conf (in <moddir>/addons/sourcemod/configs/time-left-actions/) and rename it into your community name (ex: chanz-community.conf).
    • Navigate to <moddir>/cfg/sourcemod/ and open plugin.timeleftactions.cfg, change sm_timeleftactions_config_name to the new file you created in this example it would be "chanz-community.conf"
  • OPTIONAL: When you like to use your own custom sounds:
    • Upload those into a new folder: <moddir>/sound/timeleft/<your-community-name>/
    • Duplicate the default.conf and rename it into your community name (ex: chanz-community.conf).
    • Open the duplicate of default.conf, in this example it is chanz-community.conf and exchange all sound paths with the ones you uploaded.
    • Navigate to <moddir>/cfg/sourcemod/ and open plugin.timeleftactions.cfg, change sm_timeleftactions_config_name to the new file you created in this example it would be "chanz-community.conf"
Updating from Timeleft Voice v1.X.X:
  • When updating from Timeleft Voice v1.X.X, be sure to delete the timeleftvoice.smx and plugin.timeleftvoice.cfg file also you may want to remove the timeleft folder in you sound folder, be sure to backup your custom sounds!
Updating v2.X:
  • Extract the zip into your mod folder, but don't overwrite your plugin.timeleftactions.cfg, if you did so, you may want to change sm_timeleftactions_config_name.
Important information:
  • BE SURE TO DELETE THE OLD CONFIG FILE (plugin.timeleftactions.cfg in your <moddir>/cfg/sorucemod/ folder)!
  • DON'T CHANGE OR OVERWRITE THE DEFAULT SOUNDS, CREATE YOUR OWN FOLDER LIKE: <moddir>/sound/timeleft/CommunityXYZ/ AND INSERT THERE YOUR CUSTOM SOUNDS!

DontWannaName 06-06-2009 23:05

Re: Timeleft Voice v1.0.0
 
Arent there some shared HL2 sounds or something clients already have?

Chanz 06-07-2009 07:30

Re: Timeleft Voice v1.0.0
 
Only in tf2, but there you don't need this plugin. :)

monkie 06-07-2009 08:58

Re: Timeleft Voice v1.0.1
 
Thank you for this, but where is the translation support?

Chanz 06-07-2009 13:13

Re: Timeleft Voice v1.0.1
 
I'm using the basetriggers.phrases so the translation file is already within soucemod.

This is right now only for the text message "[SM] Time remaining on map: xx:xx"

I'll add the translation support for the sound files and a bit more soon. :)


btw. is there a way to use personal download table? So I like to give support for multi-language sound files but I don't want that everyone has to download them.

monkie 06-08-2009 08:49

Re: Timeleft Voice v1.0.1
 
Quote:

Originally Posted by Chanz (Post 843759)
btw. is there a way to use personal download table? So not everyone needs to download all languages but only the files for their own language?

Sorry, is it necessary for players to download language files for server side printing?
As I know, sourcemod should be able to distinguish client language configuration and print back the corresponding UI language to player if there exists the language file. And all the files need only to be stored on server side.

DJ Tsunami 06-08-2009 09:07

Re: Timeleft Voice v1.0.1
 
All this plugin downloads to the client are the sound files, which they need to be able to hear the voice.

Chanz 06-08-2009 14:18

Re: Timeleft Voice v1.0.1
 
Quote:

Originally Posted by monkie (Post 844211)
Sorry, is it necessary for players to download language files for server side printing?
As I know, sourcemod should be able to distinguish client language configuration and print back the corresponding UI language to player if there exists the language file. And all the files need only to be stored on server side.

ups I mean the sound files. :oops: But your right the translation phrases are only stored on server side...

Chanz 06-18-2009 08:15

Re: Timeleft Voice v1.0.2
 
Approved or Unapproved? :)

DJ Tsunami 06-18-2009 09:05

Re: Timeleft Voice v1.0.2
 
The plugin information bar is missing at the top of your topic, until a moderator restores that and you fill in the required information it cannot be approved.


All times are GMT -4. The time now is 16:26.

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