AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Game Messages & Sounds Manager (https://forums.alliedmods.net/showthread.php?t=282218)

OciXCrom 05-01-2016 16:36

Game Messages & Sounds Manager
 
5 Attachment(s)

Description
  • With this plugin you can easily replace the standard in-games messages like "Bomb Planted", "The target has been bombed", "Bomb Defused" etc. In addition, you can also replace the CT/T win sounds, sounds when planting/defusing the bomb, radio command sounds and so on.

Cvars
  • gmsm_hud_xpos <default: "-1.0"> -- Default X position for (D)HUD messages.
  • gmsm_hud_ypos <default: "0.10"> -- Default Y position for (D)HUD messages.
  • gmsm_hud_effects <default: "0"> -- Effects for (D)HUD messages.
    • "0" = No effects.
      "1" = Blinking effect.
      "2" = Type writer.
  • gmsm_hud_fxtime <default: "2.0"> -- Effect duration for (D)HUD messages.
  • gmsm_hud_holdtime <default: "5.0"> -- Duration for (D)HUD messages.
  • gmsm_hud_fadeintime <default: "0.5"> -- Fade-in duration for (D)HUD messages.
  • gmsm_hud_fadeouttime <default: "1.0"> -- Fade-out duration for (D)HUD messages.

Replacing messages
  • You can change the messages and sounds from the file configs/WinMessages.ini. Use the following form in order to replace a message:

    PHP Code:

    # <Message ID> "<New Message>" "<Type>" "[red] [green] [blue]" "[X position] [Y position]" 

  • Examples:

    PHP Code:

    Terrorists_Win                  "< Terrorists Win >"                            "dhud"       "255 0 0"
    CTs_Win                         "< Counter-Terrorists Win >"                    "dhud"       "0 0 255"
    Bomb_Planted                    "< The Bomb has been Planted >"                 "dhud"       "255 255 0"
    Bomb_Defused                    "< The Bomb has been Defused >"                 "dhud"       "0 255 0"
    Round_Draw                      "< Round Draw >"                                "dhud"       "255 255 255"
    Target_Bombed                   "< Target Successfully Bombed >"                "dhud"       "255 0 255"
    Target_Saved                    "< Target has been Saved >"                     "dhud"       "0 255 0"
    Game_Commencing                 "< Game Commencing >"                           "dhud"       "-1 -1 -1"
    Auto_Team_Balance_Next_Round    "< Auto Team Balance Next Round >"              "dhud"       "-1 -1 -1"
    Game_will_restart_in            "< The Game Is Now Restarting >%n-= %s %s =- "  "dhud"       "-1 -1 -1"
    Weapon_Cannot_Be_Dropped        "Dropping this weapon %nis not allowed."        "center" 

  • You can use -1 if you want the given value of the color to be random, otherwise you need to use a number from 0 to 255. For a completely random colored message, use "-1 -1 -1". Bear in mind that these colors are active only if you're using (D)HUD messages.
  • You can also use %n for multiple lines in all message type except "center".
  • Messages list

Replacing sounds
  • Use the following form in order to replace a sound:

    PHP Code:

    <Audio ID> [New Sound

  • You can leave the "[New Sound]" field blank if you want to simply block that sound. Examples

    PHP Code:

    %!MRAD_terwin "misc/terrorists_win.wav" -- This will replace the sound when terrorists win.
    %!
    MRAD_ctwin "misc_ctswin.wav" -- This will replace the sound when counter-terrorists win.
    %!
    MRAD_FIREINHOLE -- This will block the sound when someone throws a grenade

  • Sounds list

Images

http://i.imgur.com/fdxuxD5.jpg

http://i.imgur.com/gxtfXhL.jpg

http://i.imgur.com/DvFaeGS.jpg

http://i.imgur.com/WMaANJW.jpg

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

EFFx 05-01-2016 17:16

Re: Win Messages & Sounds
 
kkkk, nice work.
Oh my god.

Simple idea but executed with a good format

DragonTail 05-21-2016 14:59

Re: Win Messages & Sounds
 
Quote:

Originally Posted by OciXCrom (Post 2415772)

Lol, I didn't see the "#Auto_Team_Balance_Next_Round" message. :D

OciXCrom 05-21-2016 17:31

Re: Win Messages & Sounds
 
Not all messages are listed there. It's just a random post I found.

siriusmd99 05-22-2016 14:05

Re: Win Messages & Sounds
 
I'm a fan of automatization too, nice work. I was always annoyed about these default messages. It's based on the latest amxx build or 1.8.2?

OciXCrom 05-22-2016 14:15

Re: Win Messages & Sounds
 
You can use it on both. I added a version check for including the dhudmessage library.

gabuch2 05-23-2016 10:20

Re: Win Messages & Sounds
 
Quote:

Modification: ALL
No it's not.

OciXCrom 05-23-2016 14:37

Re: Win Messages & Sounds
 
I didn't really pay attention to that part. Changed to CS only.

siriusmd99 06-03-2016 16:28

Re: Win Messages & Sounds
 
Quote:

Originally Posted by 1432 (Post 2424511)
i can't compile the file Errors please Help:cry:

Make an appart topic. Plugin compiles great. It's about your local problem.

maxolahird 12-25-2016 01:28

Re: Win Messages & Sounds
 
This plugin is with no doubt, excelent. But, I found an issue.

When replacing messages that are sent to everyone, all good!

The problem is when replacing a user-specific message like #Defusing_Bomb_Without_Defuse_Kit. It shows to everyone not just the specific player.

Thanks a lot and great job on this plugin


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

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