[FilterScript] Custom Damage System - Knockout/Shock
#1

Simple Custom Damage/Knockout/Shock system

Hello everybody, I decided to share my filterscript with ya all, didn't release anything since I joined so I decided to spare some change 0.0.
  • Custom Damage for shots
  • Shock system - It sets your drunk level to 8000 for XXX seconds(Depends on the gun), and keeps moving the screen.
  • Message when you get shot
  • Knockout system - When you get pushed by a melee gun, you get knocked on the ground with a special animation for 30 secs, and won't be able to move
  • Bleeding System (v0.2)s
  • Injury System (v0.3)

Alright, custom damage system is simple and useful aswell, here's the damages for the guns:

Code:
Assault Machines (M4-AK47) | -20 Damage + Shock for ten haundred seconds.
Glock 49. (9mm) | -45 Damage + Shock for ten haundred seconds.
Glock. 47 D-E S. (Deagle) | -40 Damage + Shock for ten haundred seconds.
Sniper Rifle | Kills you or injuries you, depends on your script.
Katana | -60 Damage + Knockout for thirty seconds + Shock for ten haundred seconds.
Baseball Bat | -40 Damage + Knockout for twenty seconds + Shock for fifty seconds.
Baton (Nitestick) | -50 Damage + Knockout for fifty seconds + ten haundred and fifty seconds.
Cane/Knife/Golf Club/Shovel/Pool Cue | -30 Damage + Knockout for five seconds.
[REMOVED]Remington 97. Sawnoff (Sawnoff Shotgun) | -10 Damage/x2-4 + Shock for two haundred seconds.
Armor Damages:
Code:
Sniper Rifle | Removes all the armour.
Katana | -30 Armour Damage.
Cane/Knife/Golf Club/Shovel/Pool Cue | -10 Armour Damage.
V0.2 Changelog.
Code:
- Bleeding system has been added.
- Injury system for the bleeding.
- Cure system, it stops the bleeding, you simply stop behind the all saints hospital and type [/cure] for $500.
- All guns are working now.
- Removed the armour damage, you don't bleed if you got armour.
- Reduced few damages for few guns.
- You no longer get shocked by the melee guns, excluding nitestick and baseball. 
- Each gun has a time for the shock now, shock is no longer 100 seconds for all guns.
- Fixed knockout aswell.
- Optimized the code, it's much better now.
V0.3 Changelog:
Code:
- You get injured now if you got shot multiple times by certain guns, for example you got shot three times by M4A1/AK47, then you get injured.
- Removed previous injury system, replaced it with the one stated above.
- Damage for the Desert Eagle has been fixed.
- Damage for the 9mm has been reduced by fifty percent.
- Knockout of the baseball bat has been updated.
- Knockout of the others has been fixed.
Downloads:
Version 0.1 - Not recommended.
Version 0.2
Version 0.3 - Recommended.
Reply
#2

There's a edit button for a reason, use it instead of bumping. Looks cool, gotta use this for my rp script and rep+.
Reply
#3

There is a copy paste error in the code and thanks for reading ma' comment.
Reply
#4

Updated, version 0.2 has been added.

V0.2 Changelog.
Code:
- Bleeding system has been added.
- Injury system for the bleeding.
- Cure system, it stops the bleeding, you simply stop behind the all saints hospital and type [/cure] for $500.
- All guns are working now.
- Removed the armour damage, you don't bleed if you got armour.
- Reduced few damages for few guns.
- You no longer get shocked by the melee guns, excluding nitestick and baseball. 
- Each gun has a time for the shock now, shock is no longer 100 seconds for all guns.
- Fixed knockout aswell.
- Optimized the code, it's much better now.
Reply
#5

Quote:

if (health < 100.0)
{
SetPlayerHealth(playerid, health-15);
SetTimerEx("Bleeding", 10000, false, "i", playerid);

}
else if (health < 60.0)
{
SetPlayerHealth(playerid, health-15);
SetTimerEx("Bleeding", 10000, false, "i", playerid);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,0,0);
SendClientMessage(playerid, -1, "You are badly injured now");

}
else if (health < 30.0)
{
SetPlayerHealth(playerid, health-15);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,0,0);
SendClientMessage(playerid, -1, "You are heavily injured now");
}

Doesn't make sense.
if hp < 100, this calls instead of 30, 60
Reply
#6

Quote:
Originally Posted by Meller
View Post
Doesn't make sense.
if hp < 100, this calls instead of 30, 60
Wasn't in my mood whilst making it, it should be fixed now, thank you for reporting.


EDIT: Replaced with a better injury system.
Reply
#7

Nice one, REP+
Useful for my roleplay server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)