[Include] weapon-config.inc - Damage system with many features - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] weapon-config.inc - Damage system with many features (
/showthread.php?tid=563387)
Re: weapon-config.inc - Damage system with many features -
cipi89 - 08.05.2020
When vehicle explodes near players take no damage from explosion or when they catch on fire with this code:
Code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
if(Killed[playerid] != 0) return 1;
hsv[issuerid] = 0;
if((weapon == WEAPON_CARPARK || weapon == WEAPON_HELIBLADES || weapon == WEAPON_VEHICLE_MINIGUN) && GangTeam[playerid] == 0)
{
hsv[issuerid] = 1;
return 0;
}
return 1;
}
However when I delete all the code inside and leave just this
Code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
return 1;
}
Damage is being taken normally, I have absolutely not a clue what is preventing the damage.
I tried to debug it, weapon ids that're supposed to damage player on explosion or when he's on fire are ID:54 and ID:37
Re: weapon-config.inc - Damage system with many features -
Cypress - 14.05.2020
Not sure who forked the latest version of weapon_config.inc
Code:
\pawno\include\weapon-config.inc(2217) : error 017: undefined symbol "FreezeSyncPacket"
\pawno\include\weapon-config.inc(2217) : warning 215: expression has no effect
\pawno\include\weapon-config.inc(2217) : error 001: expected token: ";", but found ")"
\pawno\include\weapon-config.inc(2217) : error 029: invalid expression, assumed zero
\pawno\include\weapon-config.inc(2217) : fatal error 107: too many error messages on one line
Re: weapon-config.inc - Damage system with many features -
muningcat05 - 18.06.2020
How to use SetCustomFallDamage?
It doesn't work for me
public OnGameModeInit()
{
SetVehiclePassengerDamage(true);
SetVehicleUnoccupiedDamage(true);
SetDisableSyncBugs(true);
SetCustomFallDamage(true);
}
Re: weapon-config.inc - Damage system with many features -
Penguin1997 - 14.08.2020
Quote:
Originally Posted by Cypress
Not sure who forked the latest version of weapon_config.inc
Code:
\pawno\include\weapon-config.inc(2217) : error 017: undefined symbol "FreezeSyncPacket"
\pawno\include\weapon-config.inc(2217) : warning 215: expression has no effect
\pawno\include\weapon-config.inc(2217) : error 001: expected token: ";", but found ")"
\pawno\include\weapon-config.inc(2217) : error 029: invalid expression, assumed zero
\pawno\include\weapon-config.inc(2217) : fatal error 107: too many error messages on one line
|
Same issue! contributors fix this please..