Agneese-Saini / SA-MP

Apache License 2.0
66 stars 118 forks source link

lagcomp explosion and vehicle minigun damage issue #6

Closed AHellerL closed 6 years ago

AHellerL commented 7 years ago

No idea why.

AHellerL commented 7 years ago

process damage on OnPlayerTakeDamage

Agneese-Saini commented 7 years ago

So the player isn't getting hurt from vehicle guns and grenade type of explosions?

AHellerL commented 7 years ago

Yea, but the fix which I have provided earlier solves this issue. Tho, please do take a second look at it. (deathcall is again not working for those weaponids [I am testing it other way around, will notify if it works out] )

Agneese-Saini commented 7 years ago

Did you happen to check the new update? Let me know what's the output and i'll try to fix bugs if any encountered.

AHellerL commented 7 years ago

I actually started experimenting with your include and modified it a little to suit up my needs. (everything works fine with what I did). But I'll test this version and let you know if anything comes up.

My version includes this. -Hooked (Get) health and armour. -Hooked OnPlayerStateChange (to change player's team from 655 to his id, when he is inside a vehicle) [using your anti friendly vehicle fire method, in the .amx) -Fixed Knifing(OnPlayerUpdate is not hooked in the include that i have provided)[again modifyed your anti team knifing method) -AntiSpawn kill feature(additional) -Explosions, motolovs, grenades etc are processed under OnPlayerTakeDamage -DeathDisplay function, this can be used for when you want to set player's killerid from the server. e.g after creating a explosion, you can DeathDisplay(playerid,killerid,reason) and when the player dies, this'll show up. This is also for those who had last shot somebody. (to be optimized)

https://pastebin.com/Uj3ZhV2E

Agneese-Saini commented 6 years ago

I am closing this since i dont plan to code anymore for now!