Raised This Month: $51 Target: $400
 12% 

Show Teammates Armament


Post New Thread Reply   
 
Thread Tools Display Modes
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 07-27-2022 , 17:53   Re: Show Teammates Armament
Reply With Quote #41


A small mistake, oh, and with 20 bots, there is still an overflow, but I suppose that more cannot be optimized, unless it is loaded by proximity, because when the round starts, it renders both teams even if it is not visible
SoulWeaver16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-05-2022 , 01:02   Re: Show Teammates Armament
Reply With Quote #42

Which mistake are you talking about? The weapon icon?

About the proximity idea for rendering, it can be added as another feature to help with the overflow when there are loads of players as well. Currently it has the loop splitter but it happens when the server has more than 20 players (defined as MIN_LOOP_NUMBER).

Instead of the proximity, is_visible or is_in_viewcone should be enough, avoids issues with players in a distance longer than the proximity, but visible.
Attached Files
File Type: sma Get Plugin or Get Source (showequips.sma - 117 views - 14.1 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 08-05-2022 at 01:10.
EFFx is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-05-2022 , 16:40   Re: Show Teammates Armament
Reply With Quote #43

Quote:
Originally Posted by EFFx View Post
Which mistake are you talking about? The weapon icon?

About the proximity idea for rendering, it can be added as another feature to help with the overflow when there are loads of players as well. Currently it has the loop splitter but it happens when the server has more than 20 players (defined as MIN_LOOP_NUMBER).

Instead of the proximity, is_visible or is_in_viewcone should be enough, avoids issues with players in a distance longer than the proximity, but visible.
Yes, error in the icon said
And that plugin worked much better, since there are exceptional cases that there is a spam message from overflow
And don't let it look laggy in the first person over your head
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)

SoulWeaver16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-09-2022 , 05:36   Re: Show Teammates Armament
Reply With Quote #44

So it is better than before? I wasn't able to test since I wasn't getting any overflow whatsoever. I will take a look about the icon issue.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-09-2022 , 05:51   Re: Show Teammates Armament
Reply With Quote #45

Quote:
Originally Posted by EFFx View Post
So it is better than before? I wasn't able to test since I wasn't getting any overflow whatsoever. I will take a look about the icon issue.
It certainly avoids the overflow at the beginning of the round or during the whole game, but in the spectator, if you change players, even though you don't see the icons, it will stop the server for 0.1 seconds with 25 overflow messages, but it is quickly solved without problems
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)

SoulWeaver16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-09-2022 , 06:11   Re: Show Teammates Armament
Reply With Quote #46

Skipping spectators should be the quickest way. It happens as soon as you change players? Like everytime? First person view only or any camera mode it happens?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-09-2022 , 06:18   Re: Show Teammates Armament
Reply With Quote #47

Quote:
Originally Posted by EFFx View Post
Skipping spectators should be the quickest way. It happens as soon as you change players? Like everytime? First person view only or any camera mode it happens?
I think it would be better if I show you on video, wait for me to record it and upload it
https://youtu.be/sKYHQFIuRlM
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)


Last edited by SoulWeaver16; 08-09-2022 at 06:46.
SoulWeaver16 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 11-09-2022 , 06:33   Re: Show Teammates Armament
Reply With Quote #48

Optimization ideas regarding the overflow(checked code a bit):

1. Get the team with the most players at round start and only create those much entities. Since you're already using AddToFullPack, do everything you did in entity creation there, based on teams. Store entity IDs in a variable instead of checking for class name in ATFP. This will lower the number of entities by half at best.

2. Merge cash and 10000 sprites together to get rid of 1 more entity. You can do the same with arrow and 100 by adding double the number frames: one with the arrow and one without. This will prevent from coloring them differently though so only do it if you think it's worth it.

3. Use pev_vuser for storing colors(although i didn't quite see the point of changing them after creation)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-04-2022 , 16:06   Re: Show Teammates Armament
Reply With Quote #49

I will put some effort into the first two suggestions. About the third, does it actually make any difference?
Also, the purpose was to make it change instantly, instead of waiting for a new round, some servers doesn't have rounds.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 12-04-2022 , 19:56   Re: Show Teammates Armament
Reply With Quote #50

Quote:
Originally Posted by EFFx View Post
Also, the purpose was to make it change instantly, instead of waiting for a new round, some servers doesn't have rounds.
Make it a cvar
__________________
deprale is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode