View Single Post
Author Message
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
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, 5079 views)
File Type: txt dodmedic.phrases.txt (681 Bytes, 5682 views)
File Type: sp Get Plugin or Get Source (sm_dod_medic.sp - 9041 views - 10.3 KB)
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org

Last edited by strontiumdog; 05-20-2009 at 11:17.
strontiumdog is offline