Damage bug
#10

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
try return amount
Try dancing in a circle while holding a burning voodoo puppet.

Seriously, what? That function doesn't even handle float return values (otherwise it would have a Float tag), so what would returning the amount do?
Furthermore, the return value of OnPlayerGive/TakeDamage does not influence any damage taken/given/processed or whatever. The only thing it does is tell the server if the callback should be called in other scripts in the chain. Returning 0 in a filterscript will prevent the callback from being called in the next filterscripts and gamemode, etc.

Only OnPlayerWeaponShoot can prevent damage by returning 0.

If you don't know what it does, look it up and don't throw around ideas that might actually break stuff (returning 0 can break the callback for other scripts if this is not intended).
Reply


Messages In This Thread
Damage bug - by martoivanov - 25.07.2018, 21:03
Re: Damage bug - by martoivanov - 26.07.2018, 14:12
Re: Damage bug - by martoivanov - 26.07.2018, 14:15
Re: Damage bug - by JasonRiggs - 26.07.2018, 14:18
Re: Damage bug - by martoivanov - 26.07.2018, 14:20
Re: Damage bug - by JasonRiggs - 26.07.2018, 14:31
Re: Damage bug - by martoivanov - 26.07.2018, 14:39
Re: Damage bug - by Florin48 - 26.07.2018, 14:41
Re: Damage bug - by martoivanov - 26.07.2018, 16:03
Re: Damage bug - by NaS - 26.07.2018, 16:07

Forum Jump:


Users browsing this thread: 4 Guest(s)