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

[request] weapon damage changer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krevele
Junior Member
Join Date: Mar 2021
Old 11-13-2021 , 11:14   [request] weapon damage changer
Reply With Quote #1

Hello i really need a damage changer plugin for my zombie server but the plugin that i used is broken
- https://forums.alliedmods.net/showthread.php?t=68217 it just doesn't change the damage how i want it to it changes it in to completely something else.
Krevele is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-13-2021 , 11:20   Re: [request] weapon damage changer
Reply With Quote #2

Does it work at all, just not how you want?
__________________
Bugsy is offline
Krevele
Junior Member
Join Date: Mar 2021
Old 11-13-2021 , 11:28   Re: [request] weapon damage changer
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
Does it work at all, just not how you want?
it works but when im changing it to specific damage for example 45 and it just multiplies or something like that
Krevele is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-13-2021 , 11:30   Re: [request] weapon damage changer
Reply With Quote #4

Code:
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.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-13-2021 , 11:44   Re: [request] weapon damage changer
Reply With Quote #5

Quote:
Originally Posted by Krevele View Post
it works but when im changing it to specific damage for example 45 and it just multiplies or something like that
That's how the plugin was designed, it sets the damage bv using a multiplier, it's not an entire override. So I would figure out current damage and desired damage, and figure out a multiplier to use. So suppose AK47 gives 50 damage and you want 75, use a 1.5 factor.

You can easily modify this plugin to use exact damage amounts by setting the damage amount in the cvar and change:

PHP Code:
SetHamParamFloat(4,damage*Dmg)
//to
SetHamParamFloat(4,Dmg
Any weapons you want to use default damage, leave the cvar to 1.0.

Edit: Or use the DamageControl2 variant.
__________________

Last edited by Bugsy; 11-13-2021 at 11:45.
Bugsy 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 16:07.


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