Weapon damage system [v3.0] -
Darnell - 09.08.2011
Weapon damage system v3
* My first filterscript, be nice.
* Add credits if you are using this script on your gamemode.
================================================== ====================
Quote:
Version 1
Adds damage to weapons, doesn't edit the damage itself.
Version 2
Edits the damage by your choice.
Version 3
Upgraded detection of hitting to textdraw.
|
================================================== ====================
* Has a detection if you shot the target and if the target got shot.
[ Upgraded in version 3 to TextDraw ]
How to edit the weapon damage by yourself :
Quote:
The code itself :
pawn Code:
case [weaponid]: Damage = [damage];
Example for a tec9 that does 55 damage.
Example for a tec9 & a micru UZI, both do 55 damage.
|
================================================== ====================
OnPlayerShootPlayer - REQUIRED.
Code :
================================================== ====================
CREDITS :
wups - OPSP
Spenzo / Darnell (me) - for this filterscript
.
================================================== ====================
[ case 31: Damage = 50; , then tec9 will do 50 will deal 50 health points per bullet. ]
Re: Weapon damage system [v1.0] -
Elbert_Hutchinson - 09.08.2011
Nice nice.
So if you put case 38: Damage = 1;
Minigun = 1hp per sec?
Re: Weapon damage system [v1.0] -
Darnell - 09.08.2011
Quote:
Originally Posted by Elbert_Hutchinson
Nice nice.
So if you put case 38: Damage = 1;
Minigun = 1hp per sec?
|
Per bullet.
Re: Weapon damage system [v1.0] -
Anzhelov - 09.08.2011
Looks nice, good work.
Re: Weapon damage system [v1.0] -
Darnell - 09.08.2011
Quote:
Originally Posted by Anzhelov
Looks nice, good work.
|
Thanks, and it's a weapon damage system that works

.
Re: Weapon damage system [v1.0] -
0ne - 09.08.2011
I doubt this will work, since there aren't any real defines of weapon damage only scripted, you can't actually change the guns damage, samp's scripting isn't made very accurate so theres like 2% or more chance that your code can get bypassed. There is just no possible way to do this swift and accurate atm, and all sa-mp devs can say is script it yourself.
Re: Weapon damage system [v1.0] -
Darnell - 09.08.2011
Quote:
Originally Posted by 0ne
I doubt this will work, since there aren't any real defines of weapon damage only scripted, you can't actually change the guns damage, samp's scripting isn't made very accurate so theres like 2% or more chance that your code can get bypassed. There is just no possible way to do this swift and accurate atm, and all sa-mp devs can say is script it yourself.
|
Well, it works, and it's tested ingame.
Re: Weapon damage system [v1.0] -
wups - 09.08.2011
Quote:
Originally Posted by Darnell
Well, it works, and it's tested ingame.
|
No no no, it doesn't change the weapon damage. It just adds the damage, to the damage done.
Here's how it should be done, if you want it like that.
http://pastebin.com/DGH9nH7a
(It sets your health to the one without default damage, then adds the damage done by the gun)
AW: Weapon damage system [v1.0] -
Chenjiang - 09.08.2011
How accurate is this?
Can you damage people through walls, like with other Damage-Scripts?
How many resources does it use, wouldn't it cause massive lag to a weaker server?
Re: AW: Weapon damage system [v1.0] -
wups - 09.08.2011
Quote:
Originally Posted by Chenjiang
How accurate is this?
Can you damage people through walls, like with other Damage-Scripts?
How many resources does it use, wouldn't it cause massive lag to a weaker server?
|
Absolutely not. No damage through walls, and I doubt any lag would be caused by this script.
Re: Weapon damage system [v1.0] -
Darnell - 10.08.2011
Updated.
Re : Weapon damage system [v1.0] -
Alvin007 - 10.08.2011
man this rocks , good job
Re: Weapon damage system [v1.0] -
Darnell - 10.08.2011
Thanks, any more ideas are welcome

.
Re: Weapon damage system [v1.0] -
Darnell - 12.08.2011
Bumping, for anyone that needs

.
Re: Weapon damage system [v1.0] -
ricardo178 - 12.08.2011
This is amazing.

I am using it on my server.
Keep up the good work. It is really good, and no lags or bugs.
Re: Weapon damage system [v1.0] -
Darnell - 13.08.2011
Thanks

.
Re: Weapon damage system [v1.0] -
Darnell - 13.08.2011
Updated; v3.
Re: Weapon damage system [v1.0] -
cruising - 13.08.2011
Would be nice if you also could use this on rhino,hunter and rustler to
Re: Weapon damage system [v1.0] -
Darnell - 13.08.2011
Quote:
Originally Posted by cruising
Would be nice if you also could use this on rhino,hunter and rustler to 
|
Try talking to wups, maybe he can do something with OnPlayerVehicleDamage.
Re: Weapon damage system [v1.0] -
Tigerkiller - 13.08.2011
useful fs ^^