[Include] weapon-config.inc - Damage system with many features

Is there any solution for the OnPlayerDeath Bug? It's not working in my Filterscripts, even though I'm only using Weapon Config in my main gamemode.

I've found this solution (didn't try yet) but I really don't like using this methode..

http://forum.sa-mp.com/showpost.php?...&postcount=413
Reply

Quote:
Originally Posted by JustMe.77
Посмотреть сообщение
Is there any solution for the OnPlayerDeath Bug? It's not working in my Filterscripts, even though I'm only using Weapon Config in my main gamemode.

I've found this solution (didn't try yet) but I really don't like using this methode..

http://forum.sa-mp.com/showpost.php?...&postcount=413
@Slice: I suppose you could hook CallRemoteFunction. Add a check for "OnPlayerDeath", set a var, check for the var in wepcfg's OnPlayerDeath hook (IN THE INCLUDE). Then when CallRemoteFunction is used it will set the var and you will know whether or not to call OnPlayerDeath in other scripts.

EDIT: Just saying, I had a hard time putting this in words... xD... if it doesn't make sense just ask.
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
I have just posted this reply, this should answer your question.

http://forum.sa-mp.com/showpost.php?...&postcount=577

If you have more questions or are stuck on something, do ask.
Well actually, checking the damage.
it prints -41 but the actual damage is -74
Reply

Don't use SetPlayerHealth in OnPlayerDamage...
Reply

Sorry to ask here..
Is there any linux version of SKY?
Reply

Quote:
Originally Posted by hossa
Посмотреть сообщение
Well actually, checking the damage.
it prints -41 but the actual damage is -74
What do you mean? You should work with `amount` if you'd like to change or check the amount of damage.
Reply

Quote:
Originally Posted by Dice_
Посмотреть сообщение
Sorry to ask here..
Is there any linux version of SKY?
Here, I uploaded it a while ago.

http://www.mediafire.com/download/fa...54m1ocq/SKY.so
Reply

Hello guys. On a farm and in some places players have low fps. Linux server. Help pls!
Can be because of include mapfix?
Reply

Quote:
Originally Posted by Trable
Посмотреть сообщение
Hello guys. On a farm and in some places players have low fps. Linux server. Help pls!
Can be because of include mapfix?
Quote:
Originally Posted by Slice
Посмотреть сообщение
That is because RemoveBuilding causes lag at 0, 0, 0. This include uses RemoveBuilding to remove vending machines. If you do not wish to have that functionality, you can so this:
pawn Код:
#define WC_CUSTOM_VENDING_MACHINES false
#include <weapon-config>
4char
Reply

Is it just me, or does the OnPlayerDamage callback report knife damage as 0.0% when knifing someone in then neck and killing them? If I'm not mistaken, OnPlayerGiveDamage reports a different and much higher value when knifing someone.
Reply

Quote:
Originally Posted by Liberation
Посмотреть сообщение
Is it just me, or does the OnPlayerDamage callback report knife damage as 0.0% when knifing someone in then neck and killing them? If I'm not mistaken, OnPlayerGiveDamage reports a different and much higher value when knifing someone.
0.0 means all damage. This also means you can change "amount" to 0.0 to make the damage insta-kill.
Reply

How do I hide damage textdraw?
Reply

Quote:
Originally Posted by justice96
Посмотреть сообщение
How do I hide damage textdraw?
You can enable / disable it with

SetDamageFeed(bool:toggle);
Reply

Sometimes, when you killed enemy it is like spam kill (no lag)
take a look
Reply

Quote:
Originally Posted by justice96
Посмотреть сообщение
Sometimes, when you killed enemy it is like spam kill (no lag)
take a look
Can you enable debug mode and post the output when it happens?

Код:
// Print debug messages in the chat and server log
#if !defined WC_DEBUG
	#define WC_DEBUG false
#endif

// Print debug messages to the console but not the chat
#if !defined WC_DEBUG_SILENT
	#define WC_DEBUG_SILENT false
#endif
If you use WC_DEBUG_SILENT it will print the output in the console.
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Can you enable debug mode and post the output when it happens?

Код:
// Print debug messages in the chat and server log
#if !defined WC_DEBUG
	#define WC_DEBUG false
#endif

// Print debug messages to the console but not the chat
#if !defined WC_DEBUG_SILENT
	#define WC_DEBUG_SILENT false
#endif
If you use WC_DEBUG_SILENT it will print the output in the console.
Done, I change it to "true"
Reply

Quote:
Originally Posted by justice96
Посмотреть сообщение
Done, I change it to "true"
You can place it anywhere before it loads the include, just make sure that debug mode is enabled and recompile.
After that when you are ingame it should how messages in case of WC_DEBUG and it will print debug messages in the console in case of WC_DEBUG_SILENT
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
You can place it anywhere before it loads the include, just make sure that debug mode is enabled and recompile.
After that when you are ingame it should how messages in case of WC_DEBUG and it will print debug messages in the console in case of WC_DEBUG_SILENT
The issue is when you got bad ping and you got shot by enemy, that will be kill-spam or repeat (5x)
Reply

Quote:
Originally Posted by justice96
Посмотреть сообщение
The issue is when you got bad ping and you got shot by enemy, that will be kill-spam or repeat (5x)
Yes, but with debugging enabled we can look where the problem is, if it is a problem in the weapon-config include.
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Yes, but with debugging enabled we can look where the problem is, if it is a problem in the weapon-config include.
Ok, I will post them soon.
Reply


Forum Jump:


Users browsing this thread: 36 Guest(s)