AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [DOD:S] Medic Mod v1.0.109 (https://forums.alliedmods.net/showthread.php?t=77172)

strontiumdog 09-07-2008 00:02

[DOD:S] Medic Mod v1.0.109
 
10 Attachment(s)
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.

MaKTaiL 09-08-2008 08:29

Re: Realism Medic Mod
 
Great. This really solved many people`s problem.

I have rated the thread: Excellent!!

cobra157 09-08-2008 19:28

Re: [DOD:S] Realism Medic Mod
 
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.

Lebson506th 09-08-2008 19:31

Re: [DOD:S] Realism Medic Mod
 
cfg/server.cfg
cfg/sourcemod/sourcemod.cfg

One of those.

DJ Tsunami 09-10-2008 17:09

Re: [DOD:S] Realism Medic Mod
 
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.

monkie 09-11-2008 05:56

Re: [DOD:S] Realism Medic Mod
 
Quote:

Originally Posted by DJ Tsunami (Post 684109)
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.

strontiumdog 09-11-2008 09:22

Re: [DOD:S] Realism Medic Mod
 
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.

strontiumdog 09-11-2008 23:33

Re: [DOD:S] Medic Mod v1.0.101
 
Updated. Let me know if there anything that needs to be added.

monkie 09-12-2008 10:12

Re: [DOD:S] Medic Mod v1.0.101
 
thank u for the update. i now use this mod instead of the old DoD Medic.
no problems found so far, thanks a lot :)

tintinibar 09-13-2008 02:03

Re: [DOD:S] Medic Mod v1.0.101
 
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?


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

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