[Include] L-Skills - Server sided weapon skill system!
#7

Quote:
Originally Posted by xkirill
Посмотреть сообщение
What this for ?

I mean,doesn't it effect almost the same as SetPlayerHealth ?
And last question,for what this include?

However,looks like another nice release from you
DamagePlayer is a function which reduces player's hp/armour based on the damage given. If a player has 100% armour and the damage done is higher than player's armour, it reduces the armour and the remaining damage occurs on player's health. And this include, it's a server sided weapon skill system. As the skill of a player's weapon increase, the damage goes more better. Can be good for some kind of DMs or experience system.

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Just a couple of questions.

1.) This line is on OnPlayerGiveDamage()

pawn Код:
DamagePlayer(playerid, float(final)); //Damages player more!
Why are you damaging the player who gave the damage but not the person who received the damage?

2.) What happens when a shot is synced but also OnPlayerGiveDamage() is called the player will receive a more damage.

3.) When setting a players health to zero it will case a lot a problems with who killed who.

4.) Why do this in DamagePlayer()?

pawn Код:
if(!IsPlayerConnected(playerid)) return 0;
It's not needed.

I think you have some serious issues to work out with this include.
1) Thanks for noting it, I was thinking of using 'OnPlayerTakeDamage' callback at first, so the parameters was set according to it. I've changed it now.

2) I too had some doubts regarding it so I tested the callbacks being called on some intervals and noticed that OnPlayerGiveDamage is being called when the attacker damages the player and the damage must reach well. Else, OnPlayerGiveDamage won't get called very well. However, there's a chance where OnPlayerTakeDamage being called twice due to the sync occurs in cases like lag, lag shots etc. Depends on the player's ping rate too. Though, I'm having a bit doubts regarding the sync occuring on OnPlayerGiveDamage too. I'll be developing better way and will be testing more about this.

3) I really don't think so because I checked the cases if there's any problem while the health is being set to 0 and creates any corruption, but it doesn't.

4) I was thinking of doing something, unfortunately I added that there too. Although, that really doesn't matter.

Thanks for the 3rd one, really appreciate it. +rep.

Edit :
You must spread some Reputation around before giving it to [uL]Pottus again.
#fu** this.
Reply


Messages In This Thread
[Updated]L-Skills - Server sided weapon skill system! -Now with Anti-Skill Cheat protection. - by Lordzy - 09.06.2013, 16:30
Re: L-Skills - Server sided weapon skill system! - by Astralis - 09.06.2013, 16:39
Re: L-Skills - Server sided weapon skill system! - by Kaperstone - 09.06.2013, 18:35
Re: L-Skills - Server sided weapon skill system! - by DaRk_RaiN - 09.06.2013, 18:48
Re: L-Skills - Server sided weapon skill system! - by Pottus - 09.06.2013, 19:04
Re: L-Skills - Server sided weapon skill system! - by Kaperstone - 09.06.2013, 19:14
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 10.06.2013, 14:38
Re: L-Skills - Server sided weapon skill system! - by SuperViper - 10.06.2013, 15:51
Re: L-Skills - Server sided weapon skill system! - by Pottus - 10.06.2013, 17:57
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 11.06.2013, 00:38
Re: L-Skills - Server sided weapon skill system! - by Odedara - 13.06.2013, 05:06
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 14.06.2013, 04:19
Re: L-Skills - Server sided weapon skill system! - by gogokickup - 16.06.2013, 06:52
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 19.06.2013, 11:06
Re: L-Skills - Server sided weapon skill system! - by Inverse - 24.06.2013, 04:48
Re: L-Skills - Server sided weapon skill system! - by Lorenc_ - 24.06.2013, 06:35
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 24.06.2013, 06:58
Re: L-Skills - Server sided weapon skill system! - by Inverse - 24.06.2013, 07:13
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 24.06.2013, 09:26
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 25.06.2013, 16:59
Respuesta: L-Skills - Server sided weapon skill system! - by Malganys - 25.06.2013, 17:20
Re: Respuesta: L-Skills - Server sided weapon skill system! - by Lordzy - 27.06.2013, 12:32
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 05.07.2013, 19:52
Respuesta: L-Skills - Server sided weapon skill system! - by Malganys - 05.07.2013, 22:05
Re: L-Skills - Server sided weapon skill system! - by Mckarlis - 05.07.2013, 23:22
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 06.07.2013, 02:31
Re: L-Skills - Server sided weapon skill system! - by xganyx - 06.07.2013, 03:07
Respuesta: L-Skills - Server sided weapon skill system! - by Malganys - 06.07.2013, 03:12
Re: L-Skills - Server sided weapon skill system! - by Inverse - 06.07.2013, 18:10
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 08.07.2013, 12:40
Re: L-Skills - Server sided weapon skill system! - by Nofear192 - 21.09.2013, 05:01
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 23.09.2013, 16:16
Re: L-Skills - Server sided weapon skill system! - by raider19rus - 05.10.2013, 14:44
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 07.10.2013, 08:33
Re: L-Skills - Server sided weapon skill system! - by Akira297 - 19.10.2013, 18:41
Re: L-Skills - Server sided weapon skill system! - by Lordzy - 31.01.2014, 10:44
Re: L-Skills - Server sided weapon skill system! - by Avi Raj - 15.02.2014, 08:59
Re: L-Skills - Server sided weapon skill system! - by Clad - 15.02.2014, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)