Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Bleeding (v1.0) *HLStats proof!*

by FeuerSturm · 2007-08-04 · 18 replies · 15228 views · 700 downloads

Read the thread (19 posts)

From the first post

This plugin was originally made by Zor and i will
rncontinue work on it with his permission!

rn
rn
//rn// DESCRIPTION:rn// ============rn//rn// This Plugin will add some realism to your servers!rn// - Wounded players will start to bleed and lose healthrn//   until they bandage their wounds!rn// - While bandaging they can only use their melee weapon!rn// - If you don't bandage you bleed to death!rn// - Bleeding is handled like every other standard weapon,rn//   if you shoot someone and he bleeds to death, you receivern//   the kill and the deathmessage will show you as the killer!rn// - HLStats proof! Bleeding kills are handled like kills withrn//   any other standard weapon and will be listed in the stats!rn//

rn
rn
//rn// USAGE (cvars for amxx.cfg):rn// ===========================rn//rn// dod_bleeding_enabled <1/0>		= enable/disable DoD Bleeding by defaultrn//					  1 = Bleeding is enbaledrn//					  0 = Bleeding is disabledrn//rn// dod_bleeding_mindamage <#>		= set amount of damage that a player has torn//					  take to start bleeding.rn//					  set it to 0 to make players start bleedingrn//					  no matter how much damage was caused,rn//					  choose a higher value if you don't want peoplern//					  to start bleeding after only small damage byrn//					  for example a detonating grenade some meters away.rn//rn// dod_bleeding_bleedbyworld <1/0>	= enable/disable bleeding after falling downrn//					  and losing health or being hit by a mortarrn//					  on dod_caen for example.rn//					  1 = start bleeding by "world" damagesrn//					  0 = only start bleeding by weapon damagern//rn// dod_bleeding_dmgcenter <#>		= set how many healthpoints a player that isrn//					  bleeding loses per second for body center hitsrn//rn// dod_bleeding_dmgextremities <#>	= set how many healthpoints a player that isrn//					  bleeding loses per second for body extremities hitsrn//rn// dod_bleeding_messages <#>		= set how many times bleeding players shouldrn//					  get the "Your are Bleeding" announcement afterrn//					  they managed to bandage the first timern//rn// Please Note:rn// No matter to what value (other than 0)rn// you set this, the player will always get thern// announcement until he manages to bandage for thern// first time, then it counts as first message!rn// So usually setting this to 1 does the trick andrn// players won't be announced anymore after they foundrn// out how to bandage!rn//

rn
rn
//rn// CHANGELOG:rn// ==========rn//rn// This plugin was originally made by Zor,rn// as it was kind of abandoned i will continuern// work on it with Zor's permission!rn//rn// - 04.08.2007 Version 0.9rn//   - imported Zor's version "0.4a"rn//   - changed cvar namesrn//   - changed to pcvar usagern//   - removed motd, client-commands & setinfosrn//     from now on the "use"-key is the only wayrn//     to bandage!rn//   - replaced Engine with FakeMeta modulern//   - added hudmessage as announcement forrn//     bleeding playersrn//   - added textmessage after respawn for playersrn//     that were bleeding but did not bandagern//   - added multilanguage support for thosern//     announcementsrn//   - blocked "suicide" logmessage and replaced itrn//     with a "X killed Y with bleeding" messagern//   - completely HLStats proof now! Bleeding kills arern//     handled like any other standard weapon's kills,rn//     now more "suicides" because of bleeding!rn//     A nice little icon for your HLStats is includedrn//     as well!rn//   - finally fixed "deployed"-bug, players with arn//     deployed mg/bar/fg42 now undeploy and switchrn//     to knife/spade as well when bandagingrn//   - fixed bots not switching to melee weapons whenrn//     bandagingrn//rn// - 09.08.2007 Version 1.0rn//   - fixed blood squeezing "out of the air" insteadrn//     of the bleeding player.rn//   - fixed overhead-icons disappearingrn//   - added cvar "dod_bleeding_bleedbyworld" to define ifrn//     players should start to bleed after falling off andrn//     losing health.(set to 1) or if they schould justrn//     start bleeding after beeing hit by a weapon (set to 0)rn//   - added cvar "dod_bleeding_mindamage" to define the minimumrn//     of damage that has to be caused to a player to start bleeding.rn//   - moved announcement hudmessage to the left of the screen, so itrn//     doesn't influence players view while finishing their firefightrn//     before bandagingrn//

rn
rnPlease be sure do download the sprites the plugin uses and
rnplace into the folder "/dod/sprites/" on your gameserver!
rn
rnA nice little pic for your HLStats is included as well, if you
rnare running HLStats for your server and have access to the
rn"hlstatsimg" folder, be sure to grab it as well!
rn
rnIf you want to see a preview of the HLStats, please don't
rnhesitate to take a look at my HLStats and browse to "Weapon statistics"!
rn
rnIf you experience any problems, please let me know!
rn
rnEnjoy!

Files

dod_bleeding.txt Config / Docs 428 B 190 dl Download
bleeding_sprites.zip Archive 6 KB 173 dl Download
bleeding_hlstatspic.zip Archive 950 B 131 dl Download
dod_bleeding.sma Plugin Source 17 KB 182 dl Download Compile

Archived builds from the server loose

These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.

DoDBleeding.cpp Module Source 233 B Download
DoDBleeding.h Module Source 245 B Download
dod_bleeding.ncb Other 4 MB Download
dod_bleeding.sln Other 893 B Download
dod_bleeding.suo Other 27 KB Download
dod_bleeding.vcproj Module Source 4 KB Download
bleeding_sprites.zip Archive 6 KB Download
bleeding_sprites_119.rar Archive 5 KB Download

Added later in the thread

blood_drop.spr Model / Sprite 9 KB 24 dl Download

The thread

All 19 posts from 5 people on DoD Bleeding (v1.0) *HLStats proof!*, kept as they were written.

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-04-2007, 11:41 AM #1

This plugin was originally made by Zor and i willrncontinue work on it with his permission!rnrn

//rn// DESCRIPTION:rn// ============rn//rn// This Plugin will add some realism to your servers!rn// - Wounded players will start to bleed and lose healthrn//   until they bandage their wounds!rn// - While bandaging they can only use their melee weapon!rn// - If you don't bandage you bleed to death!rn// - Bleeding is handled like every other standard weapon,rn//   if you shoot someone and he bleeds to death, you receivern//   the kill and the deathmessage will show you as the killer!rn// - HLStats proof! Bleeding kills are handled like kills withrn//   any other standard weapon and will be listed in the stats!rn//
rnrn
//rn// USAGE (cvars for amxx.cfg):rn// ===========================rn//rn// dod_bleeding_enabled <1/0>		= enable/disable DoD Bleeding by defaultrn//					  1 = Bleeding is enbaledrn//					  0 = Bleeding is disabledrn//rn// dod_bleeding_mindamage <#>		= set amount of damage that a player has torn//					  take to start bleeding.rn//					  set it to 0 to make players start bleedingrn//					  no matter how much damage was caused,rn//					  choose a higher value if you don't want peoplern//					  to start bleeding after only small damage byrn//					  for example a detonating grenade some meters away.rn//rn// dod_bleeding_bleedbyworld <1/0>	= enable/disable bleeding after falling downrn//					  and losing health or being hit by a mortarrn//					  on dod_caen for example.rn//					  1 = start bleeding by "world" damagesrn//					  0 = only start bleeding by weapon damagern//rn// dod_bleeding_dmgcenter <#>		= set how many healthpoints a player that isrn//					  bleeding loses per second for body center hitsrn//rn// dod_bleeding_dmgextremities <#>	= set how many healthpoints a player that isrn//					  bleeding loses per second for body extremities hitsrn//rn// dod_bleeding_messages <#>		= set how many times bleeding players shouldrn//					  get the "Your are Bleeding" announcement afterrn//					  they managed to bandage the first timern//rn// Please Note:rn// No matter to what value (other than 0)rn// you set this, the player will always get thern// announcement until he manages to bandage for thern// first time, then it counts as first message!rn// So usually setting this to 1 does the trick andrn// players won't be announced anymore after they foundrn// out how to bandage!rn//
rnrn
//rn// CHANGELOG:rn// ==========rn//rn// This plugin was originally made by Zor,rn// as it was kind of abandoned i will continuern// work on it with Zor's permission!rn//rn// - 04.08.2007 Version 0.9rn//   - imported Zor's version "0.4a"rn//   - changed cvar namesrn//   - changed to pcvar usagern//   - removed motd, client-commands & setinfosrn//     from now on the "use"-key is the only wayrn//     to bandage!rn//   - replaced Engine with FakeMeta modulern//   - added hudmessage as announcement forrn//     bleeding playersrn//   - added textmessage after respawn for playersrn//     that were bleeding but did not bandagern//   - added multilanguage support for thosern//     announcementsrn//   - blocked "suicide" logmessage and replaced itrn//     with a "X killed Y with bleeding" messagern//   - completely HLStats proof now! Bleeding kills arern//     handled like any other standard weapon's kills,rn//     now more "suicides" because of bleeding!rn//     A nice little icon for your HLStats is includedrn//     as well!rn//   - finally fixed "deployed"-bug, players with arn//     deployed mg/bar/fg42 now undeploy and switchrn//     to knife/spade as well when bandagingrn//   - fixed bots not switching to melee weapons whenrn//     bandagingrn//rn// - 09.08.2007 Version 1.0rn//   - fixed blood squeezing "out of the air" insteadrn//     of the bleeding player.rn//   - fixed overhead-icons disappearingrn//   - added cvar "dod_bleeding_bleedbyworld" to define ifrn//     players should start to bleed after falling off andrn//     losing health.(set to 1) or if they schould justrn//     start bleeding after beeing hit by a weapon (set to 0)rn//   - added cvar "dod_bleeding_mindamage" to define the minimumrn//     of damage that has to be caused to a player to start bleeding.rn//   - moved announcement hudmessage to the left of the screen, so itrn//     doesn't influence players view while finishing their firefightrn//     before bandagingrn//
rnrnPlease be sure do download the sprites the plugin uses andrnplace into the folder "/dod/sprites/" on your gameserver!rnrnA nice little pic for your HLStats is included as well, if yournare running HLStats for your server and have access to thern"hlstatsimg" folder, be sure to grab it as well!rnrnIf you want to see a preview of the HLStats, please don'trnhesitate to take a look at my HLStats and browse to "Weapon statistics"!rnrnIf you experience any problems, please let me know!rnrnEnjoy!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
08-04-2007, 06:04 PM #2

im definitly gonna be trying this out :Dnnnone thing with the logging (for stats) ... you should add the 'weaponstats' & 'weaponstats2' detail msgs to log hitplace, damage, etc.. for stats that will show the extra detail (such as psychostats) ..not totally sure how hlstats works as ive never used it.. nnbut here is an example of what i use in one part of dod smoke grenades 2 if you're interestednn

log_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats^" (weapon ^"smoke_grenade^") (shots ^"0^") (hits ^"1^") (kills ^"1^") (headshots ^"0^") (tks ^"%d^") (damage ^"%d^") (deaths ^"0^") (score ^"0^")",name,userid,steam,teamname,friendlyfire,smoke_damage)nlog_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats2^" (weapon ^"smoke_grenade^") (head ^"0^") (chest ^"1^") (stomach ^"0^") (leftarm ^"0^") (rightarm ^"0^") (leftleg ^"0^") (rightleg ^"0^")",name,userid,steam,teamname)n
tho im sure some of the entries in the message wont really apply or have any use with the bleeding.. maybe none will lol.. but i just figured i'd mention it :Pnnnalso.. a cvar (or even a define) to control the delay between bleeding would be nice.. i think every second is too much personally and it gets rather annoying to hear the bleeding sound when you have a bunch of idiots playing that cant seem to figure out how to press their use key for 30 secondsnnanother thing i find 'annoying' is when you fall or walk of a place with a small drop.. where you lose only a few HP (some maps have spawn exits like this) and you start bleeding.. i dont really think you should be bleeding after a 2dmg fall lol.. maybe a minimum damage cvar would be a good idea.. set to like 20 or something sorta low.. but not really low..nnand maybe something to think about for the future.. like different degrees of bleeding depending on the wound.. like i would assume you'd bleed alot more/faster after being hit with a 50cal round then you would from a 9mm.. or say like getting hit by an explosion..

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
08-04-2007, 08:08 PM #3

also if you're interested.. here's a red blood drop sprite

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
08-04-2007, 11:26 PM #4

i noticed occasionally players no longer had the team icons over their heads..nnim guessing its the bug with dod_set_user_killsnnsetting the refresh to 0 and adding the frags message after it will fix that.nlike this:n

new kills = dod_get_user_kills(killer)+1n    ndod_set_user_kills(killer,kills,0)n                nmessage_begin(MSG_BROADCAST, get_user_msgid("Frags"), {0,0,0}, 0);nwrite_byte(killer);nwrite_short(kills);nmessage_end();
tho getting the msgid in plugin init would be better then getting each time obviously

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-05-2007, 09:30 AM #5

i currently have about 5 version of the plugin on the hdd and inrnone version i used updated the frags manually, don't know why i didn'trnpost that version :confused: thanks for the hint though! :D rnrnas for the sprite: as all other sprites are white in dod, i'll stay withrnit, or you maybe have a colored "bandaging" sprite as well?rnrnas for the bleeding repeat time, i'll add a cvar to adjust it.rnrnas for the amount of damage, i can add some weapon groupsrnlike light, heavy, rifles, mg, shells so users can adjust it themselfesrnby cvars.rnrnadding a cvar for the minimum amount of damage you start to bleedrnis no problem either.rnrnas for falldamage, you won't start bleeding, you only start bleedingrnif you're hit by a weapon, or did i post the version with that you always bleed?rni'll check that!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
08-05-2007, 10:56 AM #6

lol confused yourself with the different versions... lol ive done that beforennanyway.. im loving it..and im surprised that ppl on my server havent bitched 'too' much about it.. tho like everything i put on.. they just gotta get use to itnntho one complaint alot of ppl are giving me is the hud msg being right in the center of the screen.. since it comes up right when you start bleeding and often theyre in the process of getting killed by me lol.. having it more towards like the left side of the screen or so might make it less 'in the way' of where you're aiming..nnotherwise.. this is great lol.. awesome job!

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-05-2007, 02:53 PM #7

you were absolutely right, i posted an earlier version,rni will upload the latest version (bleeding only when damaged by weapons,rnfrags update without losing icon) after i added some of the features you suggested.rnrn(like always) thanks for your feedback !

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-09-2007, 02:19 PM #8
//rn// - 09.08.2007 Version 1.0rn//   - fixed blood squeezing "out of the air" insteadrn//     of the bleeding player.rn//   - fixed overhead-icons disappearingrn//   - added cvar "dod_bleeding_bleedbyworld" to define ifrn//     players should start to bleed after falling off andrn//     losing health.(set to 1) or if they schould justrn//     start bleeding after beeing hit by a weapon (set to 0)rn//   - added cvar "dod_bleeding_mindamage" to define the minimumrn//     of damage that has to be caused to a player to start bleeding.rn//   - moved announcement hudmessage to the left of the screen, so itrn//     doesn't influence players view while finishing their firefightrn//     before bandagingrn//
rnrnEnjoy the new Version and please inform me about any issues!

K knife108
posted here
Posts: 108
Threads: 10
Joined: Apr 2006
08-16-2007, 07:12 AM #9

I had placed the blood_icon.spr and bandage_icon.spr into the server folder "/dod/sprites/" rnrnwhen I start the server, it show :rnrnFatal errorrnrnMod_NumforName:Bleeding_sprites/blood_icon.spr not foundrnrnHow to ?

K knife108
posted here
Posts: 108
Threads: 10
Joined: Apr 2006
08-16-2007, 07:51 AM #10

oh I find the bug.rnrnjust like this:rnrn

rnrn	"Sprites/blood_icon.spr",rn	"Sprites/bandage_icon.spr",rn	"Sprites/blood.spr",rn	"Sprites/bloodspray.spr"rnrn
K knife108
posted here
Posts: 108
Threads: 10
Joined: Apr 2006
08-16-2007, 08:11 AM #11

I don't wanna show the bleeding,killername,killeruserid,killersteam,killerteam,victimname,victimuserid,victimsteam,victimteam on the screen !rnrnrnrnhow to change the code ?rnrnThx

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-16-2007, 06:07 PM #12
I don't wanna show the bleeding,killername,killeruserid,killersteam,killerteam,victimname,victimuserid,victimsteam,victimteam on the screen !rnrnrnrnhow to change the code ?rnrnThx
rnrnerm?rnrnIt's not showing any of those information in game, it's just logging that infornthat HLStats or PsychoStats can use them.rnrnCould you show me a screenshot or explain exactly what you mean?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
08-16-2007, 06:18 PM #13

why did you change the folders?n

"Bleeding_Sprites/blood_icon.spr",n"Bleeding_Sprites/bandage_icon.spr",n"Bleeding_Sprites/blood.spr",n"Bleeding_Sprites/bloodspray.spr"n
the blood and bloodspray already come with dod/halflife (not sure which tbh) and ppl would have to go in the gcf files and get them themselves and move them to those folders on the server for them to work...nnalso if your using this folder for the sprites now.. you should probably change the directory structure of the sprites zip file as well as the instructions of where to install them on the initial post..

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-16-2007, 06:26 PM #14
why did you change the folders?rn
"Bleeding_Sprites/blood_icon.spr",rn"Bleeding_Sprites/bandage_icon.spr",rn"Bleeding_Sprites/blood.spr",rn"Bleeding_Sprites/bloodspray.spr"rn
the blood and bloodspray already come with dod/halflife (not sure which tbh) and ppl would have to go in the gcf files and get them themselves and move them to those folders on the server for them to work...rnrnalso if your using this folder for the sprites now.. you should probably change the directory structure of the sprites zip file as well as the instructions of where to install them on the initial post..
rnrnshit, that was a "replace all" error, i changed some names and didn't noticernthat it changed the folders as well!rnrni'll correct that!

FeuerSturm
started this thread
Posts: 166
Threads: 15
Joined: Jun 2007
08-16-2007, 06:29 PM #15

Everyone please download the plugin again!rnrnSorry for the mistake, i corrected the folders, they're nowrnpointing to "dod/sprites/" again!

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
12-15-2007, 01:53 AM #16

are there any noticable lag issues with this plugin ? like with the gore plugin ?

Sohood
posted here
Posts: 92
Threads: 33
Joined: Sep 2008
02-27-2010, 02:42 PM #17

From the Respository Zor includes a dod_bleeding_motd.html file, that If I remember correctly years ago when I had this plugin running on my servers it would automatically pop up upon connecting to the server. Where do I put this file? Under addons/configs/ or in my fast download directory?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
02-28-2010, 12:33 AM #18

theres nothing in the plugin source that seems to use anything like that..nnand i see in the change log for v0.9 that it says "- removed motd"

Sohood
posted here
Posts: 92
Threads: 33
Joined: Sep 2008
03-02-2010, 02:24 PM #19

No worries, I went into the respository and grabbed zor's version of the bleeding plugin, which has the motd pop up. For some reason, Storm's version, the use key doesn't work anymore, whatever that reason being I decided to go with zor's version.rnrnThanks anyway.

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC