Issues on OnPlayerWeaponShot -
Lordzy - 17.01.2014
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
Respuesta: Issues on OnPlayerWeaponShot -
Swedky - 17.01.2014
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.
Re: Respuesta: Issues on OnPlayerWeaponShot -
Lordzy - 17.01.2014
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.
Re: Issues on OnPlayerWeaponShot -
M3HR4N - 17.01.2014
yeah, it must to be for all of weapons. but now it 's just for the whole weapons that EnzoMetlc said.
Re: Issues on OnPlayerWeaponShot -
Lordzy - 17.01.2014
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
Re: Issues on OnPlayerWeaponShot -
Stepashka - 17.01.2014
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?
Re: Issues on OnPlayerWeaponShot -
Cell_ - 17.01.2014
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.
Re: Issues on OnPlayerWeaponShot -
Biesmen - 17.01.2014
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.
Re: Issues on OnPlayerWeaponShot -
CuervO - 17.01.2014
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.
Respuesta: Re: Respuesta: Issues on OnPlayerWeaponShot -
Swedky - 17.01.2014
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.