[Include] lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling
#41

Update:
- Fixed health gain issue reported by Jefff in previous reply.
- Fixed run time error reported by Dokins.
- Self damage doesn't need ProcessDamage, so it has been removed from there.
- Weapon range check added.
Reply
#42

Thanks Gammix, love it.
Reply
#43

Quote:
Originally Posted by Uberanwar
View Post
my server's injury system is not working properly when using this include
What is your Injury system? What's it does and what callbacks does it modify?
Reply
#44

Quote:
Originally Posted by Gammix
View Post
What is your Injury system? What's it does and what callbacks does it modify?
Here's my injury system, you may refer here
Reply
#45

Quote:
Originally Posted by Uberanwar
View Post
Here's my injury system, you may refer here
What bug(s) are you getting with it?

Also make sure you include "lagcomp.inc" in the end of your libraries list.
Reply
#46

Quote:
Originally Posted by Gammix
View Post
What bug(s) are you getting with it?

Also make sure you include "lagcomp.inc" in the end of your libraries list.
For instance, I got shot until injured (when health reaches 0) I'd then re-spawn at my last injured position and would be in injured mode.

But after I installed the include, I don't get injured, I think it somehow messes up my OnPlayerDeath callback.

And yes, I have already included lagcomp.inc in the end of my libraries list
Reply
#47

Do you return 0 in OnPlayerWeaponShot anywhere?
Reply
#48

Quote:
Originally Posted by Gammix
View Post
Do you return 0 in OnPlayerWeaponShot anywhere?
No I didn't. Oh and I forgot to tell you that I was testing it by myself using a sethealth command (I set my own health to 0) due to my testers are not online at that time. However, I was supposed to be injured though.
Reply
#49

Quote:
Originally Posted by Uberanwar
View Post
No I didn't. Oh and I forgot to tell you that I was testing it by myself using a sethealth command (I set my own health to 0) due to my testers are not online at that time. However, I was supposed to be injured though.
Yea i forgot to hook SetPlayerHealth, I'll fix that in the new update.
Reply
#50

Great include, Gammix.
Reply
#51

OnPlayerDeath Callback doesn't work while using this.
Reply
#52

Quote:
Originally Posted by verlaj
View Post
OnPlayerDeath Callback doesn't work while using this.
This library is not in stable version. That much I aware, he is not providing support to this library.
Reply
#53

Quote:
Originally Posted by Humza
View Post
This library is not in stable version. That much I aware, he is not providing support to this library.
I am, just don't have free time much. I'll look into it and see what can be done.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)