Raised This Month: $32 Target: $400
 8% 

Damage Control(2009 Mar 15)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Emp` (115)
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 03-11-2008 , 07:41   Damage Control(2009 Mar 15)
Reply With Quote #1

Damage Control
Description:
This plugin changes the damage done by all players. The damage changes as soon as you change the cvar.
Damage Control let you change the damage done by weapons.
Damage Control2 allow you to change, add, remove or multiply the damage.

Old demonstration video: here.

The old Damage control plugin is still attached because its uses less resources.

Version:
1.22

Require:
Amxx 1.8
Fakemeta
hamsandwich
Cvars:
amx_dmg_mode 0/1/2
amx_dmg_all
amx_dmg_fall
amx_dmg_p228
amx_dmg_scout
amx_dmg_grenade
amx_dmg_xm1014
amx_dmg_mac10
amx_dmg_aug
amx_dmg_elite
amx_dmg_fiveseven
amx_dmg_ump45
amx_dmg_sg550
amx_dmg_galil
amx_dmg_famas
amx_dmg_usp
amx_dmg_glock18
amx_dmg_awp
amx_dmg_mp5navy
amx_dmg_m249
amx_dmg_m3
amx_dmg_m4a1
amx_dmg_tmp
amx_dmg_g3sg1
amx_dmg_deagle
amx_dmg_sg552
amx_dmg_ak47
amx_dmg_knife
amx_dmg_p90


Installing:
Put the Damage_Control.amxx in your plugins folder.
Add the plugins name in the bottom of your plugin.ini
For example:
Damage_Control2.amxx

Damage Control Usage:
The default value for each cvar is 1.0

amx_dmg_knife 1.2 - The knife does 20% more damage.
amx_dmg_p90 0.6 - The P90 does 60% of its original damage.
amx_dmg_all 5.0 - All weapons does 5x more damage.
amx_dmg_all 0.75 - All weapons deals 25% less damage.

Damage Control 2 Usage:
The default value for each cvar is #

amx_dmg_all 0.5*
Every weapon with a cvar value of # deals half their original damage.

amx_dmg_p90 90
Every hit deals 90 damage, no mather where you hit.

amx_dmg_p90 20+
Each shot deals 20 extra dmg, no mather where you hit.

amx_dmg_p90 20-
Each shot deals 20 damage less. If the damage become negative, it deals none.

amx_dmg_p90 2*
All shots from p90 will do twice as much damage.

amx_dmg_p90 0.5*
All shots from p90 will do half the damage.

amx_dmg_mode 2; amx_dmg_tmp 2*; amx_dmg_all 20+
The tmp will first do twice the dmg and then 20 extra damage.

Help:
Try using rcon if you have any problems.
There is a four characters limit on every cvar value, counting with -+*
The limit exist to save performance.
Attached Files
File Type: sma Get Plugin or Get Source (Damage_Control.sma - 7809 views - 2.8 KB)
File Type: sma Get Plugin or Get Source (Damage_Control2.sma - 7243 views - 4.1 KB)
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 08-15-2016 at 21:14. Reason: Readibility
fxfighter is offline
Send a message via MSN to fxfighter
lIl_sAiNt
BANNED
Join Date: Nov 2007
Location: krypton
Old 03-12-2008 , 05:10   Re: Damage Control
Reply With Quote #2

did u test it?
lIl_sAiNt is offline
AlexBreems
Member
Join Date: Feb 2008
Old 03-12-2008 , 07:07   Re: Damage Control
Reply With Quote #3

nice, it will be necessary to try
__________________
AlexBreems is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 03-12-2008 , 08:11   Re: Damage Control
Reply With Quote #4

Tested myself it works the online compiler is just missing the hamsandwich module so you have to compile it locally.
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 03-12-2008 at 08:13.
fxfighter is offline
Send a message via MSN to fxfighter
lIl_sAiNt
BANNED
Join Date: Nov 2007
Location: krypton
Old 03-12-2008 , 08:33   Re: Damage Control
Reply With Quote #5

i did compiled it locally
-compile failed
lIl_sAiNt is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 03-12-2008 , 09:42   Re: Damage Control
Reply With Quote #6

Quote:
Originally Posted by lIl_sAiNt View Post
i did compiled it locally
-compile failed
Quote:
Originally Posted by fxfighter View Post
Require Modules:
Fakemeta
hamsandwich
Are you runing amx 1.8?
Else you dont have the hamsandwich module or the script isnt compatible with 1.76 compiler.
Gonna uppload a 1.76 friendly version soon.

EDIT:1.76 friendly version up if it still dont work check if you got hamsandwich module
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 03-12-2008 at 10:26.
fxfighter is offline
Send a message via MSN to fxfighter
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-12-2008 , 13:14   Re: Damage Control
Reply With Quote #7

Looks nice Love the array for cvars GJ! *Assuming it works*
Styles is offline
Send a message via AIM to Styles
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 03-12-2008 , 17:05   Re: Damage Control
Reply With Quote #8

WhOOO, very small.
very tricky with cvars/arrray

GJ!!
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
lIl_sAiNt
BANNED
Join Date: Nov 2007
Location: krypton
Old 03-12-2008 , 23:59   Re: Damage Control
Reply With Quote #9

I'M RUNNING 1.76 BUT I HAVE THE HAMSANDWICH MODULE,
-MAYBE I NEED THE WHOLE AMXX 1.8,
-anyways the compile failed
lIl_sAiNt is offline
Old 03-13-2008, 02:16
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
lIl_sAiNt
BANNED
Join Date: Nov 2007
Location: krypton
Old 03-13-2008 , 05:04   Re: Damage Control
Reply With Quote #10

ya hummmm
-fatal error 100:cannot read from file hamsandwich <compile failed
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;
;; Put third party modules below here. ;;
;; You can just list their names, without the _amxx ;;
;; or file extension. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;

hamsandwich


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;
;; These modules will be auto-detected and loaded ;;
;; as needed. You do not need to enable them here ;;
;; unless you have problems.
-as you can see i got the module enabled,
-and trust me is running,
-can you just give me your amxx file please
lIl_sAiNt is offline
Reply



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 23:56.


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