SA-MP Forums Archive
[Include] Proper attachment fix - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Proper attachment fix (/showthread.php?tid=643254)

Pages: 1 2


Proper attachment fix - Jelly23 - 16.10.2017

• Proper attachment fix
First of all, this isn't like other attachment fixes for sniper, rocket launcher, heat seeker and camera. This include uses Pawn.RakNet to send a RPC and hide the attachments to the player aiming with those weapons only, others still see it.
• Dependencies
- Pawn.RakNet: https://sampforum.blast.hk/showthread.php?tid=640306
• Download
- Github
• Off-Topic
If you are interested in working with RPCs and want their parameters, I provided a list in my repository with not only IDs, but parameters as well: https://github.com/Jelly23/RPC-List/wiki



Re: Proper attachment fix - NaS - 16.10.2017

I'm sure many will love this (as there were many threads about just this problem).

Well done. There will probably be many more of these little fixes possible utilizing the Pawn.RakNet Plugin, very useful!


Re: Proper attachment fix - FreAkeD - 16.10.2017

Awesome stuff. Going to be pretty useful, good job once again!


Re: Proper attachment fix - DeitY - 16.10.2017

Awesome stuff as usual, i personally have problem with attachobject(ex when i scope with rifle and add some hat it goes in AIM(bug)), and you could release more fixes with this raknet, keep up the good work!


Re: Proper attachment fix - Romz - 16.10.2017

This is very interesting, I will definitely try.


Re: Proper attachment fix - oMa37 - 16.10.2017

Well done, mate!


Re: Proper attachment fix - PT - 16.10.2017

Well done

Will help a lot many people


Re: Proper attachment fix - NathanT - 16.10.2017

Just amazing. You did a great job again, very good!


Re: Proper attachment fix - Eoussama - 16.10.2017

I love the effort spent on this, such a great include indeed, here's a well earned +REP.


Re: Proper attachment fix - SAMPHosted - 17.10.2017

Good job!


Re: Proper attachment fix - Dayrion - 17.10.2017

It's faster than a basic include/filterscript?
Raknet is so interesting but I don't understand it exactly and how to use it loll.


Re: Proper attachment fix - renatog - 17.10.2017

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
It's faster than a basic include/filterscript?
Raknet is so interesting but I don't understand it exactly and how to use it loll.
Speed isn't what matters here. Before this include you had to remove the attachments (everyone see the player without it), now it hides only for the player itself.
This include is telling the player's client "hey, hide the attachments when aiming and show it again when not aiming" via RakNet.


Re: Proper attachment fix - Mr.Vince™ - 17.10.2017

Amazing stuff,
Thanks Mate,,,,,(+rep)


Re: Proper attachment fix - Jelly23 - 17.10.2017

Quote:
Originally Posted by NaS
Посмотреть сообщение
I'm sure many will love this (as there were many threads about just this problem).

Well done. There will probably be many more of these little fixes possible utilizing the Pawn.RakNet Plugin, very useful!
Quote:
Originally Posted by FreAkeD
Посмотреть сообщение
Awesome stuff. Going to be pretty useful, good job once again!
Quote:
Originally Posted by DeitY
Посмотреть сообщение
Awesome stuff as usual, i personally have problem with attachobject(ex when i scope with rifle and add some hat it goes in AIM(bug)), and you could release more fixes with this raknet, keep up the good work!
Quote:
Originally Posted by Romz
Посмотреть сообщение
This is very interesting, I will definitely try.
Quote:
Originally Posted by oMa37
Посмотреть сообщение
Well done, mate!
Quote:
Originally Posted by PT
Посмотреть сообщение
Well done

Will help a lot many people
Quote:
Originally Posted by NathanT
Посмотреть сообщение
Just amazing. You did a great job again, very good!
Quote:
Originally Posted by Eoussama
Посмотреть сообщение
I love the effort spent on this, such a great include indeed, here's a well earned +REP.
Quote:
Originally Posted by Mr.Vince™
Посмотреть сообщение
Amazing stuff,
Thanks Mate,,,,,(+rep)
Quote:
Originally Posted by NaS
Посмотреть сообщение
I'm sure many will love this (as there were many threads about just this problem).

Well done. There will probably be many more of these little fixes possible utilizing the Pawn.RakNet Plugin, very useful!
Quote:
Originally Posted by FreAkeD
Посмотреть сообщение
Awesome stuff. Going to be pretty useful, good job once again!
Quote:
Originally Posted by DeitY
Посмотреть сообщение
Awesome stuff as usual, i personally have problem with attachobject(ex when i scope with rifle and add some hat it goes in AIM(bug)), and you could release more fixes with this raknet, keep up the good work!
Quote:
Originally Posted by Romz
Посмотреть сообщение
This is very interesting, I will definitely try.
Quote:
Originally Posted by oMa37
Посмотреть сообщение
Well done, mate!
Quote:
Originally Posted by PT
Посмотреть сообщение
Well done

Will help a lot many people
Quote:
Originally Posted by NathanT
Посмотреть сообщение
Just amazing. You did a great job again, very good!
Quote:
Originally Posted by SAMPHosted
Посмотреть сообщение
Good job!
Quote:
Originally Posted by Eoussama
Посмотреть сообщение
I love the effort spent on this, such a great include indeed, here's a well earned +REP.
Thanks.


Re: Proper attachment fix - Dayrion - 17.10.2017

Quote:
Originally Posted by renatog
Посмотреть сообщение
Speed isn't what matters here. Before this include you had to remove the attachments (everyone see the player without it), now it hides only for the player itself.
This include is telling the player's client "hey, hide the attachments when aiming and show it again when not aiming" via RakNet.
By "faster", I though it remove faster the attachment and create it after the player aimed but no'p. Thanks for the precision.


Re: Proper attachment fix - Jelly23 - 19.10.2017

Updated. Just hooked OnPlayerEditAttachedObject which I forgot to.

Also, I just moved the RPC info to Wiki if anyone is interested: https://github.com/Jelly23/RPC-List/wiki (RPC list isn't entirely complete, but there is enough information and I will keep updating it).


Re: Proper attachment fix - Y_Less - 20.10.2017

Is it OK if we integrate this in to fixes.inc, to keep as much stuff as possible in one easy to use place? Obviously with full credits and links back to this topic.

https://github.com/Open-GTO/sa-mp-fixes


Re: Proper attachment fix - Chaprnks - 20.10.2017

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
Is it OK if we integrate this in to fixes.inc, to keep as much stuff as possible in one easy to use place? Obviously with full credits and links back to this topic.

https://github.com/Open-GTO/sa-mp-fixes
This would require having the pawn.raknet plugin mandatory for using the fixes include, right?


Re: Proper attachment fix - Y_Less - 20.10.2017

Quote:
Originally Posted by Chaprnks
Посмотреть сообщение
This would require having the pawn.raknet plugin mandatory for using the fixes include, right?
No, we can easily make it compile conditionally if the plugin's include exists, and fall back to the old version otherwise.


Re: Proper attachment fix - Jelly23 - 20.10.2017

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
Is it OK if we integrate this in to fixes.inc, to keep as much stuff as possible in one easy to use place? Obviously with full credits and links back to this topic.

https://github.com/Open-GTO/sa-mp-fixes
Feel free to do so.