Re: weapon-config.inc - Damage system with many features -
JustMe.77 - 18.09.2016
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
Re: weapon-config.inc - Damage system with many features -
Crayder - 18.09.2016
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.
Re: weapon-config.inc - Damage system with many features -
hossa - 19.09.2016
Quote:
Originally Posted by Jeroen52
|
Well actually, checking the damage.
it prints -41 but the actual damage is -74
Re: weapon-config.inc - Damage system with many features -
Slice - 19.09.2016
Don't use SetPlayerHealth in OnPlayerDamage...
Re: weapon-config.inc - Damage system with many features -
Fairuz - 20.09.2016
Sorry to ask here..
Is there any linux version of SKY?
Re: weapon-config.inc - Damage system with many features -
Jeroen52 - 20.09.2016
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.
Re: weapon-config.inc - Damage system with many features -
JustMe.77 - 20.09.2016
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
Re: weapon-config.inc - Damage system with many features -
Trable - 24.09.2016
Hello guys. On a farm and in some places players have low fps. Linux server. Help pls!
Can be because of include mapfix?
Re: weapon-config.inc - Damage system with many features -
Spmn - 24.09.2016
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
Re: weapon-config.inc - Damage system with many features -
Liberation - 27.09.2016
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.
Re: weapon-config.inc - Damage system with many features -
Slice - 27.09.2016
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.
Re: weapon-config.inc - Damage system with many features - justice96 - 01.10.2016
How do I hide damage textdraw?
Re: weapon-config.inc - Damage system with many features -
JustMe.77 - 01.10.2016
Quote:
Originally Posted by justice96
How do I hide damage textdraw?
|
You can enable / disable it with
SetDamageFeed(bool:toggle);
Re: weapon-config.inc - Damage system with many features - justice96 - 12.10.2016
Sometimes, when you killed enemy it is like spam kill (no lag)
take a look
Re: weapon-config.inc - Damage system with many features -
Jeroen52 - 12.10.2016
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.
Re: weapon-config.inc - Damage system with many features - justice96 - 12.10.2016
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"
Re: weapon-config.inc - Damage system with many features -
Jeroen52 - 12.10.2016
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
Re: weapon-config.inc - Damage system with many features - justice96 - 12.10.2016
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)
Re: weapon-config.inc - Damage system with many features -
Jeroen52 - 12.10.2016
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.
Re: weapon-config.inc - Damage system with many features - justice96 - 12.10.2016
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.