View Single Post
Author Message
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 06-16-2008 , 02:12   [DoDS] Realism Mod - v1.0.202 Updated July 2010
Reply With Quote #1

The Realism Mod for DoDS adds many features that many Realism communities look for in the game.
This version incorporates some of the original features of the ES version:
  • Bleeding - if your health drops below a certain level, the player bleeds until they either get healed or they die
  • Machine Gunners and Rocket players are heavier and slower
  • The time to win the round is displayed
  • When a player gets hit in the arm, the weapon may be dropped depending on the damage
  • Displays headshots
  • Fade to black on death
  • Medic feature - call medic and you get healed
  • Knock back on injury
The SourceMod version adds many more features:
  • Medic arrival can be set so that when the player calls medic, there will be a delay.
  • Now if you get hit in either arm, you may drop your gun (the ES version only had it working for one arm)
  • Get hit in either leg and you move slower and cannot jump as high, until you get healed.
  • Medic healing is random and not set to a certain value (as in the ES version)
  • When healing takes place, the player's screen fades out slightly and they are immobilized (unable to move), but they can still fire.
  • Constant yelling for medic will prevent access to healing
  • On injury, the players screen will fade to red briefly. If they are bleeding, as their health lowers, the screen becomes more opaque.
  • A cvar to set all players' health at spawn
The plugin is also set up for my new Medic Class plugin (coming soon) so that the medic function is disabled if the Medic Class plugin is installed.

What this plugin doesn't have:
  • Blood streams - the blood squirts from the ES version were strange looking and currently, env_blood sprays are not supported properly in DoDS. There are many better plugins out there for gore, so server ops may wish to install those instead.
    Try this one: http://forums.alliedmods.net/showthread.php?t=67863 and disable the red screen overlays.
  • "Player X has joined the game" - left out because it already says it in OB.
  • Overlays - with r_screenoverlay being tagged as a cheat in OB, overlays cannot be set. Instead, a red fade happens.
  • Pistols - use this plugin: http://forums.alliedmods.net/showthread.php?t=73101
Servers running this plugin


Installation
  • Copy sm_dod_realism.smx to addons/sourcemod/plugins
  • Unzip the folder from sound.zip and copy into sound folder - this is the bandage sound file. If you have a fast download server, you will need to add this folder in the sound folder there as well. In addition, sv_pure will need to be something other than 2. If you need a sample whitelist, PM me.
Commands
!medic or medic in chat - calls for a medic

Configuration
  • sv_realism_health 25
    default: 25
    This is minimum health before the !medic command can be used
  • sv_realism_bleeding 20
    default 20 (0 to disable)
    If health drops below this level, bleeding begins until the players either dies or can call the medic in time. sv_realism_bleeding should always be less than sv_realism_health.
  • sv_realism_medic_delay 2.0
    default: 2.0 (minimum value: 0.1)
    Medics need time to get to their patient. Set this time to delay the arrival of the medic.
  • sv_realism_overlay 1
    default: 1 (0 to disable)
    Enables or disables the red overlay fade screen
  • sv_realism_drop 1
    default: 1 (0 to disable)
    Enables or disables the weapon drop feature
  • sv_realism_rocket_speed 0.7
    default: 0.7 (1.0 to disable)
    Set the speed of the rocket player
  • sv_realism_rocket_gravity 1.9
    default: 1.9 (1.0 to disable)
    Set the gravity of the rocket player
  • sv_realism_mg_speed 0.8
    default: 0.8 (1.0 to disable)
    Set the speed of the mg player
  • sv_realism_mg_gravity 1.7
    default: 1.7 (1.0 to disable)
    Set the gravity of the mg player
  • sv_realism_medic_max 5
    default: 5 (100 to disable)
    Set the number of heals that can happen between player deaths
  • sv_realism_headshots 2
    default: 2 (0 to disable)
    1 is to display headshot message to the client, 2 to display headshot message to all and 0 to disable
  • sv_realism_slow 1
    default: 1 (0 to disable)
    Enables or disables slowing the player if an injury to leg occurs
  • sv_realism_ftb 1
    default: 1 (0 to disable)
    Enables or disables Fade to Black
  • sv_realism_freeze 1
    default: 1 (0 to disable)
    Enables or disables freezing a player when being healed
  • sv_realism_freezetime 5.0
    default: 5.0
    Time a player is frozen during healing
  • sv_realism_knockback 1
    default: 1 (0 to disable)
    Enables or disables Knock Back on injury
  • sv_realism_hp 80
    default: 100 (100 to disable)
    Sets a player's health when they spawn
  • sv_realism_healftb 1
    default: 1 (0 to disable)
    Enables or disables Fade to Black when being Healed
Changelog
Version 1.0.100
SourceMod release.

Version 1.0.101
Removed pistols and carbines until a fix for the Bad Edict crash can be found
Removed IsClientInGame error - thanks 9mmMAG
Reduced the effect of knock back when too close

Version 1.0.102
Fixed Timer bug, where multiple timers were being created
Fixed a strange bug where players killed by nades would crash the server
Added cvars for Fade to Black, Headshot messages and Slower speeds with injured legs to enable server ops to switch them on and off.

Version 1.0.103
Fixed timers where their handles were not being closed properly
Added cvars for Freezing and KnockBack
Cleaned up code when dealing with health
Fixed MG/Rocket gravity and speed bug

Version 1.0.104
Added freeze time cvar
Fixed heal timer bug

Version 1.0.105

Fixed the recurring Heal timer bug

Version 1.0.106
Fixed a couple of bugs where clients were the console

Version 1.0.107
Fixed a bug where clients were not in game

Version 1.0.108
Added the option to set a player's health at spawn

Version 1.0.109
Add a cvar to control ftb during healing

Version 1.0.110
Fixed occasional bug where screen would not fade back out from a FTB

Version 1.0.200-2
Bug fix


Notes
Has been tested in DoDS.


Credits
LJFPS and Colster for putting the original Eventscripts one together
AlliedModders for part of their sm_msay code
Fredd for his Knock Back code
Lebson506th for helping to test, debug and edit some of the code to make it better
Attached Files
File Type: zip sound.zip (5.9 KB, 3935 views)
File Type: sp Get Plugin or Get Source (sm_dod_realism.sp - 5467 views - 17.1 KB)
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org

Last edited by strontiumdog; 07-17-2010 at 22:18.
strontiumdog is offline