Re: weapon-config.inc - Damage system with many features - justice96 - 08.06.2016
Health bar makes me annoying, Is there any way to remove it?
Re: weapon-config.inc - Damage system with many features -
Slice - 08.06.2016
It's there because the other healthbar always has full health. If you remove it, you will never know your health.
Re: weapon-config.inc - Damage system with many features -
iKevin - 08.06.2016
Going to use it for my upcoming project. Thanks.
Re: weapon-config.inc - Damage system with many features - justice96 - 08.06.2016
Quote:
Originally Posted by Slice
It's there because the other healthbar always has full health. If you remove it, you will never know your health.
|
Ok thanks for let me know about that
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
Whenever I try to spawn, it's saying like that.
[08:45:04] (wc) InflictDamage(0, 0.0000, 65535, 55, 0) length = 0.000000
[08:45:04] (wc) OnPlayerDamageDone(65535 did 0.000000 to 0 with 55 on bodypart 0)
And killing me.
Re: weapon-config.inc - Damage system with many features -
Jeroen52 - 12.06.2016
Quote:
Originally Posted by Freedom.
Whenever I try to spawn, it's saying like that.
[08:45:04] (wc) InflictDamage(0, 0.0000, 65535, 55, 0) length = 0.000000
[08:45:04] (wc) OnPlayerDamageDone(65535 did 0.000000 to 0 with 55 on bodypart 0)
And killing me.
|
Something is issuing you 0.000000 damage.
The system kill you if you get issued 0 or negative damage.
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
I have spawn protection(FLOAT_INFINITY), when player spawned. But I deleted it and test it nothing changed
Re: weapon-config.inc - Damage system with many features -
Jeroen52 - 12.06.2016
Quote:
Originally Posted by Freedom.
I have spawn protection(FLOAT_INFINITY), when player spawned. But I deleted it and test it nothing changed
|
It looks like something is trying to issue you 0 damage.
If you do not want to receive damage (from something) you should
instead of setting the value to zero.
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
Thanks, solved.
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
Shit, same problem. Sorry for double post. After 7 secs I spawn, set player health to 100 and this debug coming to me. I can give health with command but this way not working.
[12:57:51] (wc) InflictDamage(1, 0.0000, 65535, 55, 0) length = 0.000000
[12:57:51] (wc) OnPlayerDamageDone(65535 did 0.000000 to 1 with 55 on bodypart 0)
Re: weapon-config.inc - Damage system with many features -
Slice - 12.06.2016
Show me what you do in code
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
I deleted the conditions, now works perfectly.
Re: weapon-config.inc - Damage system with many features -
Slice - 12.06.2016
..which conditions?
If you modified the include, you will run into problems in some cases.
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
Quote:
Originally Posted by Slice
..which conditions?
If you modified the include, you will run into problems in some cases.
|
Nope, not from include. It's working perfectly for now. You can test it.
IP: 149.202.98.247:7777
And here is the code that I modified.
PHP код:
new Float:get;
SetPlayerHealthEx(playerid, get);
new rank = GetPlayerRank(playerid);
if (get < gRank[rank][rankHealth])
{
SetPlayerHealth(playerid, gRank[rank][rankHealth]);
}
GetPlayerArmour(playerid, get);
if (get < gRank[rank][rankArmour])
{
SetPlayerArmour(playerid, gRank[rank][rankArmour]);
}
Re: weapon-config.inc - Damage system with many features -
Slice - 12.06.2016
That code is not from weapon-config - I asked if you modified weapon-config.
Also, what is SetPlayerHealthEx and why do you set the player's health to 0? That kills the player.
Re: weapon-config.inc - Damage system with many features -
Freedom. - 12.06.2016
Quote:
Originally Posted by Slice
That code is not from weapon-config - I asked if you modified weapon-config.
Also, what is SetPlayerHealthEx and why do you set the player's health to 0? That kills the player.
|
Yeah, thats true. I've already told you I thought you did not see my previous post.
SetPlayerHealthEx is my old code. I was trying to server sided health system. Thats coming from here. For now no needed.
Re: weapon-config.inc - Damage system with many features -
Freedom. - 15.06.2016
I got problem like that could anyone help me?
https://sampforum.blast.hk/showthread.php?tid=609685
Respuesta: weapon-config.inc - Damage system with many features -
poxer - 23.06.2016
I don't know if you are aware about this. I reported this on SFR forums once. The thing is that when you shoot a car without driver but with a passenger, vehicles with guns can't damage them as I show in this video.
https://www.youtube.com/watch?v=H3nkyjEZyTs
Re: Respuesta: weapon-config.inc - Damage system with many features -
Slice - 23.06.2016
Quote:
Originally Posted by poxer
I don't know if you are aware about this. I reported this on SFR forums once. The thing is that when you shoot a car without driver but with a passenger, vehicles with guns can't damage them as I show in this video.
https://www.youtube.com/watch?v=H3nkyjEZyTs
|
I do appreciate the detailed report, but unfortunately there is not much to be done about this currently.
There is no way to know that a rhino explosion happened near a car (at least not in a perfect way), and the same goes for seasparrow/rustler fire.
The reason for this is there are no OnPlayerWeaponShot messages sent to the server for these types of things, and no OnPlayerTake/GiveDamage.
Re: Respuesta: weapon-config.inc - Damage system with many features -
Freedom. - 23.06.2016
Quote:
Originally Posted by poxer
I don't know if you are aware about this. I reported this on SFR forums once. The thing is that when you shoot a car without driver but with a passenger, vehicles with guns can't damage them as I show in this video.
https://www.youtube.com/watch?v=H3nkyjEZyTs
|
If you got something like this:
Код:
public OnGameModeInit()
{
EnableVehicleFriendlyFire();
return 1;
}
Just delete it, your problem will be solved.