AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Broken Bottle Bleed (https://forums.alliedmods.net/showthread.php?t=164099)

DarthNinja 08-07-2011 09:49

[TF2] Broken Bottle Bleed
 
2 Attachment(s)
[TF2] Broken Bottle Bleed
Version 1.0.3



Description:
Broken demo bottles have a chance to inflict bleed on the victim.

Commands:
  • sm_break
    • Breaks your bottle. Mostly intended for debugging.
    • Requires "Slay" admin flag.

Cvars:
  • sm_bbb_version
    • Plugin Version
  • sm_bbb_chance
    • Chance to inflict bleed. 1.00 = 100% chance, 0.50 = 50% chance, etc.
    • Default: 1.00
  • sm_bbb_time
    • Time to inflict bleed for.
    • Default: 5 seconds.

Install Instructions:

  1. Place BrokenBottleBleed.smx into your addons/sourcemod/plugins/ folder.

Notes:


Version History:
  • V1.0.2
    • Initial Release
  • V1.0.3
    • Adds checks to make sure attacker and victim are valid clients (prevents an error).

Total downloads as prior to last edit: 6

Plugin will not compile on the forums due to custom includes! Download the .smx or compile it yourself locally!


JoBarfCreepy 08-07-2011 10:47

Re: [TF2] Broken Bottle Bleed
 
Should have been like this by default :D
Edits:
It works great, too.
The Break command causes the bottle to be whole until you change weapons. Not a big issue, though.

DarthNinja 08-07-2011 12:11

Re: [TF2] Broken Bottle Bleed
 
Quote:

Originally Posted by JoBarfCreepy (Post 1527606)
The Break command causes the bottle to be whole until you change weapons

Not a plugin problem.
It's TF2 not "refreshing" the model since it doesn't know anything changed.

Going to have an update in a second to fix a minor bug that causes an error.
-Edit: Done

JoBarfCreepy 08-07-2011 12:43

Re: [TF2] Broken Bottle Bleed
 
Quote:

Originally Posted by DarthNinja (Post 1527664)
Not a plugin problem.
Going to have an update in a second to fix a minor bug that causes an error.
-Edit: Done

I didn't see any errors but the one with the model. Also it works great on bots... if you hit them.

Also this encourages use of bottles. It's especially useful for those who haven't got any demo melee weapons.

KyleS 08-21-2011 17:50

Re: [TF2] Broken Bottle Bleed
 
In your OnTakeDamage hook, L47 attacker < 0 should be attacker <= 0. Your victim == attacker check could be a lot sooner, along with your IsClientInGame check on the victim at the very end. L66 is kind of useless and just invalidates a valid client index (victim < MaxClients should be victim <= MaxClients).

PM me when this is addressed.

farruski 10-29-2012 06:28

Re: [TF2] Broken Bottle Bleed
 
Great Plugin Ninja

TheXeon 10-23-2017 01:25

Re: [TF2] Broken Bottle Bleed
 
This is finally relevant again.


All times are GMT -4. The time now is 23:26.

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