Issues on OnPlayerWeaponShot
#1

I've been testing a new feature using the callback OnPlayerWeaponShot and came to know that it doesn't support melee weapons. That's fine, however there's some more issues like it doesn't include weapons like sniper, rocket launchers, grenades or even moltoves. I hope this would get fixed on the next RC releases. I'm sorry if this has been reported already.

EDIT : Understood on the fact that melee weapons or grenades doesn't perform "SHOT". However, snipers and RPG doesn't get called. :/

[Filterscript] Destroyable Objects

Here's a small filterscript that I've created which damages objects and reduces their HP. If HP goes to zero, it gets destroyed. This code affects damage well only on objects created via "CreateObject" codes. I'm not releasing it on filterscript section because the current 0.3z client is still RC and this FS is actually meant for testing.

Thanks to Deadspirit for the island map.

http://pastebin.com/UE7zBUKZ
Reply
#2

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
I've been testing a new feature using the callback OnPlayerWeaponShot and came to know that it doesn't support melee weapons. That's fine, however there's some more issues like it doesn't include weapons like sniper, rocket launchers, grenades or even moltoves. I hope this would get fixed on the next RC releases. I'm sorry if this has been reported already.
The only ones that were added are: 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34 and 38.

To other I do not see so many reason, but I believe that it would be adapted to add to all the weapon.

Regards.
Reply
#3

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
The only ones that were added are: 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34 and 28.

To other I do not see so many reason, but I believe that it would be adapted to add to all the weapon.

Regards.
34 - Which is sniper, doesn't get called. I've tested it. Weapons which got normal aim like weapon ids 22, 23, 24, 25, 26, etc works fine. Others don't seem to.
Reply
#4

yeah, it must to be for all of weapons. but now it 's just for the whole weapons that EnzoMetlc said.
Reply
#5

Quote:
Originally Posted by M3HR4N
Посмотреть сообщение
yeah, it must to be for all of weapons. but now it 's just for the whole weapons that EnzoMetlc said.
It shouldn't be for all weapons as some of them literally don't SHOOT. Just like melee weapons and grenades. Here's a small filterscript that I've created which damages objects and reduces their HP. If HP goes to zero, it gets destroyed. This code affects damage well only on objects created via "CreateObject" codes. I'm not releasing it on filterscript section because the current 0.3z client is still RC and this FS is actually meant for testing.

http://pastebin.com/UE7zBUKZ
Reply
#6

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
I've been testing a new feature using the callback OnPlayerWeaponShot and came to know that it doesn't support melee weapons. That's fine, however there's some more issues like it doesn't include weapons like sniper, rocket launchers, grenades or even moltoves. I hope this would get fixed on the next RC releases. I'm sorry if this has been reported already.

EDIT : Understood on the fact that melee weapons or grenades doesn't perform "SHOT". However, snipers and RPG doesn't get called. :/
It colback synch the bullet hit the target. Weapons rocket launchers, grenades or even moltoves don't have the bullets! Do you understand my idea?
Reply
#7

Quote:
Originally Posted by Stepashka
Посмотреть сообщение
It colback synch the bullet hit the target. Weapons rocket launchers, grenades or even moltoves don't have the bullets! Do you understand my idea?
He said Snipers were not detected either, they have bullets. Rocket launcher rockets are technically bullets.
As per now, only weapons with normal aiming (cross hair aiming) are detectable for now.
Reply
#8

Shooting doesn't specifically mean it's for weapons with bullets only. You can shoot with a Rocket Launcher, so this should be added as well.
Reply
#9

Adaptation for every weapon would be great. Maybe not in the same callback but a different callback would be the same thing, but knowing where a missile hit, or where a grenade was thrown would be awesome. Hell! We could even make tear gas grenades work if that was added!

I atleast would love all weapons detected for the simple fact that it detects if you hit an object. You can make a lot of things with that.
Reply
#10

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
34 - Which is sniper, doesn't get called. I've tested it. Weapons which got normal aim like weapon ids 22, 23, 24, 25, 26, etc works fine. Others don't seem to.
What? The Sniper Rifle yes it is detectable and yes it can it was calling to 'OnPlayerWeaponShot'. If he wishes, I can do a video to him in order that he verifies it.

PS: Nice FS.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)