Raised This Month: $51 Target: $400
 12% 

Weapon Health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-10-2009 , 23:17   Weapon Health
Reply With Quote #1

Weapon Health Plugin

Description:
Weapons have health.
Players can damage weapons when they are dropped. Shooting them to become unusable.

If someone picks a damaged weapon, it will be have a malfunction problem like bad aim, jamming and posibility to explode!. He could drop the gun and pickup another one.

Cvars:
Quote:
wh_enable < 0 / 1 > // Enable/Disable plugin (default: 1)
Changes:
* v1.5
- Changed attack management
- Improved attack blocking
- Added per-weapon health/damage
- Added levels for damage (Normal, Malfunction, Bad aim, Unstable/Explosive, Broken)
- Added sparks!
- Added on/off cvar

* v1.1
- Method change to check damaged weapons (Thanks Exolent)
- Method change to catch linking weaponbox
- Improved damage amount storage
- Fixed array size (Thanks fezh)

* v1.0
- First release


TODO:
  • per-weapon type health (done)
  • per-bullet type damage (per-weapon done)
  • damage modes (jammed, explode, bad aim, broken) (done)
  • alternative models for broken weapons
  • bad aim for damaged weapons (done)
  • change clip for jammed weapons
  • random behavior for unstable weapons (done for bad aim & jammed & explode)
  • take damage when hits player weapons
  • cvar to select affected weapons
  • multilang
  • plugin control (on / off) (done)

Thanks to:
- Tutorials
- VEN Drop/Touch tutorial
- ot_207 Fakemeta/Ham tutorial
- L// member
- IneedHelp member
Attached Files
File Type: sma Get Plugin or Get Source (weaponhealth.sma - 2415 views - 2.8 KB)
File Type: sma Get Plugin or Get Source (weaponhealth-v1.5.sma - 2814 views - 9.2 KB)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 09-22-2009 at 00:05.
joropito is offline
Send a message via MSN to joropito
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:49.


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