18.02.2013, 11:33
(
Последний раз редактировалось HitnKill; 18.02.2013 в 14:58.
)
Hi i want to know if its possible to change the damage for the fast weapon(AK,M4,MP5...) without bug recover Health And Armor when the script dont have the time to SetHp/Armor, /CheckHp/Armor.
The reason of this bug is apparently:
https://sampforum.blast.hk/showthread.php?tid=414939
Its possible or not?
The reason of this bug is apparently:
Quote:
I just did some basic testing and it turns out my theory was (unfortunately) correct. OnPlayerUpdate isn't called between every call of OnPlayerGive/TakeDamage. I'm still not sure if the health/armour are synced separately to OPU though, more testing is needed. It should be okay for any damage apart from fire (which removes health faster than OPU!).
I don't really want to hook OPU though, so I may just store players' health in two arrays and deduct the health/armour loss manually instead of relying on the syncing. But then again, some factors (which I can't think of right at this moment) may interfere such as vending machines. I will leave this how it is for now, as it only affects (I think) fire. |
Its possible or not?