Damage System

Scripter or interested in scripting? This place just may fancy to your likings!

Moderators: FM, Game Admins, Lead Admins

Post Reply
User avatar
danut
Gangster
Gangster
Posts: 105
Joined: Thu Jan 07, 2016 8:29 pm
Ingame name: Banks

Damage System

Post by danut » Fri May 19, 2017 9:10 pm

I have seen a lot of people posting damage systems around lately, and I have decided to do mine, which is some kind of replica to the one that Los Santos Role Play has now. Well, I don't think a video is needed, but rather a description of the modifications I brought to it.

Image

First of all, I have introduced a table into the server database that handles all of the weapon damages (from HP to armor penetration) and so on. Using this table, we can also get rid of the cheaters that use the fake damage option that the mod_sa (s0beit) has included. How? Well, you'll see a line in the code that says if( IsValidCRPWeapon( weaponid ) ){. What does this line do? Well, it validates the weapon by going through its HP damage and armor penetration. First, if the weapon damage is set to zero (that means that the weapon doesn't do any damage to the player whatsoever) it will ban the issuerid automatically because he is using an invalid weapon. Second, every weapon has a defined damage amount for both HP and armor, and if a cheater decides to do more damage than the script intends to do he won't be able to because the system would instantly detect it.

Yeah, and I have also included the thing that makes you unable to jump / run when you are shot in one of your legs.

Image


Other than that, there's nothing different from the script that we all love and know. I really want you guys to leave a feedback onto this topic, any criticism or suggestion is welcome as long as it is not rude. Thanks!

PASTEBIN
Last edited by danut on Fri May 19, 2017 9:22 pm, edited 5 times in total.
tu client, io-s patron

Dwayne_Smith
Gangster
Gangster
Posts: 138
Joined: Mon Mar 16, 2015 10:14 pm

Re: Damage System

Post by Dwayne_Smith » Fri May 19, 2017 9:15 pm

that's cool.
Spoiler: show
"bai, cacatilor"

User avatar
FutureRevolucion
Gold Member
Gold Member
Posts: 96
Joined: Sun Feb 23, 2014 10:18 pm

Re: Damage System

Post by FutureRevolucion » Fri May 19, 2017 9:16 pm

Nice.

User avatar
snakkefire
Gangster
Gangster
Posts: 104
Joined: Fri Nov 18, 2016 8:22 pm

Re: Damage System

Post by snakkefire » Fri May 19, 2017 9:53 pm

good shit
let God be my witness, I do not roll with no snitch

User avatar
Mikee
Wannabe Mafia
Wannabe Mafia
Posts: 249
Joined: Tue Jan 06, 2015 4:57 pm
Location: Italy
Contact:

Re: Damage System

Post by Mikee » Mon May 22, 2017 10:35 pm

Good stuff man, you're great Andrei
danut wrote:TAG
Mikee
Head of Mikee’s Mapping
Mapper
Junior Scripter
Designer

Support
Send a ticket
Questions / Technical Support
Contact Information
Telegram: @mikeejr
Discord: Mikee#5124
Skype: damiano.nenna1


If you are a mapper and you want to join the Mikee's Mapping Team contact me privately.

User avatar
justice96
Gangster
Gangster
Posts: 96
Joined: Tue Jun 30, 2015 8:45 pm
Location: Indonesia
Contact:

Re: Damage System

Post by justice96 » Sun May 28, 2017 6:57 pm

post some screenshots so we all know what are u making
Image
Add me to your server

User avatar
danut
Gangster
Gangster
Posts: 105
Joined: Thu Jan 07, 2016 8:29 pm
Ingame name: Banks

Re: Damage System

Post by danut » Tue May 30, 2017 12:15 am

justice96 wrote:
Sun May 28, 2017 6:57 pm
post some screenshots so we all know what are u making
which is some kind of replica to the one that Los Santos Role Play has now. Well, I don't think a video is needed, but rather a description of the modifications I brought to it.
tu client, io-s patron

User avatar
Dream Chaser
Mafia
Mafia
Posts: 573
Joined: Fri Nov 15, 2013 9:22 pm
Location: http://porn.exe

Re: Damage System

Post by Dream Chaser » Tue May 30, 2017 1:28 am

That's cool so far, even though dmg system is obviously easy and you gotta just play with math some and you can get a good dmg system at all.
R.Winchester

User avatar
Chanel
Queen of Los Santos
Queen of Los Santos
Posts: 2942
Joined: Thu Apr 30, 2015 2:21 pm

Re: Damage System

Post by Chanel » Wed Jun 07, 2017 11:54 am

Sounds pretty good, should be something LSRP looks into
xxass F A T ? yeah i know. xx

User avatar
puro_norte
Wannabe Don
Wannabe Don
Posts: 760
Joined: Sun Mar 01, 2015 3:24 am
Ingame name: psycho
Location: laurel
Contact:

Re: Damage System

Post by puro_norte » Sat Oct 14, 2017 3:43 am

yes

Post Reply

Return to “Scripting Section”

Who is online

Users browsing this forum: No registered users and 2 guests