Monthly Target: $400 Donations: $38
 9% 

[DOD:S] Medic Mod v1.0.109


Post New Thread Reply   
 
Thread Tools Display Modes
Author
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Plugin ID:
539
Plugin Version:
1.0.109
Plugin Category:
Gameplay
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    67 
    Plugin Description:
    The medic routine originally taken from the Realism Mod
    Old 09-07-2008 , 00:02   [DOD:S] Medic Mod v1.0.109
    Reply With Quote #1

    A bunch of people have asked me for the Medic part of the Realism Mod as they didn't want to install the whole thing. So here it is.
    It is very configurable, customizing it to your own personal needs.

    Usage
    • say !medic
      say medic
    Type in chat, calls for a medic

    Or bind a key to voice_medic
    Installation
    • Copy sm_dod_medic.smx to addons/sourcemod/plugins
    • Unzip bandage.zip and place the bandage folder in your server's sounds folder. You may also want to add the bandage sound to a Fast DL server if you have one.
    • Copy dodmedic.phrases.txt to addons/sourcemod/translations. This is a Unicode Text file so if you decide to edit it, remember to save it in that format. (Use Wordpad, for example)

    Configuration
    Not necessary, but if you wish to customize your version of Medic Mod, add these to your server.cfg file located in dod/cfg:
    • sm_medic_enabled 1
      default: 1

      Allows the plugin to be switched off
    • sm_medic_health 25
      default: 25

      Minimum health before a player can be healed
    • sm_medic_delay 1.0
      default: 1.0

      minimum: 0.1
      Number of seconds before a player gets healed
    • sm_medic_yell 3.0
      default: 3.0

      minimum: 0.1
      The time allowed between calls for the medic. Prevents over-spamming the medic call
    • sm_medic_ftb 1
      default: 1

      When enabled, the player's screen will momentarily fade to black
    • sm_medic_freeze 1
      default: 1

      When set, the player is frozen while being healed.
    • sm_medic_freeze_time 5.0
      default: 3.0

      minimum: 0.1
      Number of seconds a player is frozen on the spot while being healed
    • sm_medic_hp 80
      default: 100

      Max health of a player at spawn
    • sm_medic_kits 2
      default: 2

      The number of times a player can heal themselves between spawns. Can be set to a very high number to disable.
    • sm_medic_randomhealth 1
      default: 1

      When enabled, a random amount of health is given back to the player. When disabled, it uses sm_medic_maxhealth
    • sm_medic_minhealth 30
      default: 30

      The minimum amount of health to give a player during healing
    • sm_medic_maxhealth 50
      default: 50

      The maximum amount of health to give a player during healing
    • sm_medic_alpha 210
      default: 210

      The maximum amount of alpha to apply to FTB - the higher the number, the denser the color
    • sm_medic_red 0
      default: 0

      The maximum amount of red in FTB
    • sm_medic_green 0
      default: 0

      The maximum amount of green in FTB
    • sm_medic_blue 0
      default: 0

      The maximum amount of blue in FTB
    • sm_medic_chat 2
      default: 2

      0 = no chat
      1 = minimal chat
      2 = full chat

    Notes

    Features an anti-medic-spam, so that players do not continually spam the medic button.

    Remember that if you need to run the bandage sound, you need to make your server either sv_pure 0 (not recommended) or sv_pure 1 with

    Code:
    sound\bandage\*.*           allow_from_disk
    added to your pure_server_whitelist.txt file.

    Binds: bind "v" "say !medic" or bind "v" "voice_medic"


    Changelog
    v1.0.100
    SourceMod release

    v1.0.101
    Added a bunch more cvars to make it more user friendly

    v.1.0.102
    Added voice_medic as a trigger

    v.1.0.103
    Began adding translations:
    English
    Simplified Chinese (courtesy of Monkie)

    v.1.0.104
    Added 4 cvars to allow more control over FTB so that it could be red or any color you want

    v.1.0.105
    Changed the way FTB happens. The screen darkens as soon as the player calls for the medic and fades back out when he gets healed.
    Fixed a small bug where screen would not fade back out if Freeze time was turned off

    v.1.0.106
    Changed some minor bugs.

    v.1.0.107
    Fixed a bug where a message would be spammed (Thanks Lebson)

    v1.0.108
    Added a cvar to remove the least important chat spam
    sm_medic_chat <0|1|2>

    Thanks
    Thanks to jjk521 and Lebson for play testing changes.
    Attached Files
    File Type: zip bandage.zip (5.8 KB, 4053 views)
    File Type: txt dodmedic.phrases.txt (681 Bytes, 4332 views)
    File Type: sp Get Plugin or Get Source (sm_dod_medic.sp - 6232 views - 10.3 KB)
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD

    Last edited by strontiumdog; 05-20-2009 at 11:17.
    strontiumdog is offline
    MaKTaiL
    Senior Member
    Join Date: Jul 2008
    Location: Brazil
    Old 09-08-2008 , 08:29   Re: Realism Medic Mod
    Reply With Quote #2

    Great. This really solved many people`s problem.

    I have rated the thread: Excellent!!
    MaKTaiL is offline
    cobra157
    New Member
    Join Date: Sep 2008
    Old 09-08-2008 , 19:28   Re: [DOD:S] Realism Medic Mod
    Reply With Quote #3

    I just bought a gameserver. I've had it for about a week. It works fine, but I know very little about how it works. I have managed to get ADMIN working on it and I have made some config changes. The problem I have is that I did exactly what you said about where to put the files
    Copy sm_dod_medic.smx to addons/sourcemod/plugins
    Unzip bandage.zip and place the bandage folder in your server's sounds folder. You may also want to add the bandage sound to a Fast DL server if you have one.

    But I don't know how to config it.
    • sm_medic_health 25
      default: 25

      Minimum health before a player can be healed
    • sm_medic_delay 1.0
      default: 1.0

      minimum: 0.1
      Number of seconds before a player gets healed
    • sm_medic_freeze_time 5.0
      default: 3.0

      minimum: 0.1
      Number of seconds a player is frozen on the spot while being healed
    • sm_medic_hp 80
      default: 100

      Max health of a player at spawn
    Where do I enter the config info??? Help me please.
    cobra157 is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 09-08-2008 , 19:31   Re: [DOD:S] Realism Medic Mod
    Reply With Quote #4

    cfg/server.cfg
    cfg/sourcemod/sourcemod.cfg

    One of those.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Location: Hilversum, Netherlands
    Old 09-10-2008 , 17:09   Re: [DOD:S] Realism Medic Mod
    Reply With Quote #5

    You might want to add the features from http://forums.alliedmods.net/showthr...050#post654050, so we can unapprove that one when we approve this one.
    __________________
    DJ Tsunami is offline
    monkie
    Senior Member
    Join Date: Oct 2006
    Location: Shanghai, China
    Old 09-11-2008 , 05:56   Re: [DOD:S] Realism Medic Mod
    Reply With Quote #6

    Quote:
    Originally Posted by DJ Tsunami View Post
    You might want to add the features from http://forums.alliedmods.net/showthr...050#post654050, so we can unapprove that one when we approve this one.
    yes, it would be better if this plugin could use voice_medic command.
    __________________
    monkie is offline
    Send a message via MSN to monkie Send a message via Skype™ to monkie
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 09-11-2008 , 09:22   Re: [DOD:S] Realism Medic Mod
    Reply With Quote #7

    Quote:
    yes, it would be better if this plugin could use voice_medic command.
    It does. Always did.

    Anyway, I'll fix it up and post an update. Some of the features in this one need to be made cvars so people can turn them off.
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD

    Last edited by strontiumdog; 09-11-2008 at 09:25.
    strontiumdog is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 09-11-2008 , 23:33   Re: [DOD:S] Medic Mod v1.0.101
    Reply With Quote #8

    Updated. Let me know if there anything that needs to be added.
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD
    strontiumdog is offline
    monkie
    Senior Member
    Join Date: Oct 2006
    Location: Shanghai, China
    Old 09-12-2008 , 10:12   Re: [DOD:S] Medic Mod v1.0.101
    Reply With Quote #9

    thank u for the update. i now use this mod instead of the old DoD Medic.
    no problems found so far, thanks a lot
    __________________
    monkie is offline
    Send a message via MSN to monkie Send a message via Skype™ to monkie
    tintinibar
    Member
    Join Date: Dec 2004
    Location: WI
    Old 09-13-2008 , 02:03   Re: [DOD:S] Medic Mod v1.0.101
    Reply With Quote #10

    Could you make sm_medic_ftb 1
    activate on the final heal?
    example: sm_medic_kits 2
    Only fades to black on heal two not each hea or heal one?
    tintinibar 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 03:44.


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