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

Update 26 April, 2017
- Fixed damage giving to issuer instead of player.
- Fixed anti-fake kill.


@Yashas: Here, test this script with a friend (once with lagcomp included and one without) and you'll see the difference)
What we basically tested is running around and meleeing. Secondly one player run sprint around and one shoots with M4. See the some bullets not being registered or the bell sound would not ring.
PHP Code:
main()
{
}

public 
OnPlayerRequestClass(playeridclassid)
{
    return 
SetTimerEx("OnPlayerEnterClassSelection"150false"i"playerid);
}

forward OnPlayerEnterClassSelection(playerid);
public 
OnPlayerEnterClassSelection(playerid)
{
    return 
SpawnPlayer(playerid);
}

public 
OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    
PlayerPlaySound(issuerid64010.00.00.0);
    return 
1;
}

public 
OnPlayerSpawn(playerid)
{
    
SetPlayerPos(playerid1642.1957, -2334.484913.5469);
    
GivePlayerWeapon(playerid31100);
    
GivePlayerWeapon(playerid165);
    
GivePlayerWeapon(playerid31);
    return 
1;

Reply


Messages In This Thread
lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 25.04.2017, 08:50
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Max_Andolini - 25.04.2017, 08:51
Re: lagcomp.inc - Fixed lagcomp response - by Logic_ - 25.04.2017, 08:58
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 25.04.2017, 09:00
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 25.04.2017, 09:08
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 25.04.2017, 09:26
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 25.04.2017, 10:16
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 25.04.2017, 10:44
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 25.04.2017, 13:41
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 01:55
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 02:20
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 02:30
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 06:16
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 06:24
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 06:43
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 06:57
Re: lagcomp.inc - Fixed lagcomp response - by Yashas - 26.04.2017, 08:37
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 09:22
Re: lagcomp.inc - Fixed lagcomp response - by Yashas - 26.04.2017, 09:37
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 09:55
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 10:08
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 13:00
Re: lagcomp.inc - Fixed lagcomp response - by Humza - 26.04.2017, 13:22
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 14:35
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 14:39
Re: lagcomp.inc - Fixed lagcomp response - by Jefff - 26.04.2017, 18:33
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 21:50
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 22:06
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 22:30
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 29.04.2017, 03:34
Re: lagcomp.inc - Fixed lagcomp response - by Chaprnks - 29.04.2017, 05:26
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 29.04.2017, 09:24
Re: lagcomp.inc - Fixed lagcomp response - by gurmani11 - 29.04.2017, 10:23
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 26.05.2017, 15:45
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Abagail - 26.05.2017, 17:59
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Konstantinos - 26.05.2017, 18:23
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 26.05.2017, 18:34
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 26.05.2017, 18:50
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 26.05.2017, 18:50
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Jefff - 26.05.2017, 21:51
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 27.05.2017, 00:21
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 27.05.2017, 15:35
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 03.06.2017, 05:47
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Uberanwar - 03.06.2017, 10:12
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 04.06.2017, 18:32
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Uberanwar - 05.06.2017, 09:35
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 05.06.2017, 09:48
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Uberanwar - 05.06.2017, 10:19
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 05.06.2017, 10:28
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Astralis - 07.06.2017, 20:32
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by verlaj - 01.08.2017, 10:21
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Humza - 01.08.2017, 17:03
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 02.08.2017, 03:18

Forum Jump:


Users browsing this thread: 2 Guest(s)