Show Teammates Armament
2 Attachment(s)
Show Teammates Armament Release: 02/27/2022 Last Update: 03/27/2022 - Description - This plugins display the whole teammates armament, incluiding weapons, grenades, armor type and cash information during freezetime, a good touch to use in 5x5 servers. - Cvars se_show_weapons = Display all weapons icons se_show_money = Display money icons se_show_utilities = Display grenades/defuse and c4 icons se_show_arrow = Display a little arrow over players head se_show_armortype = Display armor type se_show_arrow_only = Show always an arrow icon over all players (default 0). se_show_arrow_only_mode = 0 Both team's arrow will be seen, 1 only your teammate's arrows and 2 the enemy team's arrow will be seen. se_sprite_color_weapons = default yellow se_sprite_color_money = default green se_sprite_color_grenades = default white (tried each grenade color individually, no pattern and combinations looks good, so by default all of them are the same color) se_sprite_color_vesthelm = default purple se_sprite_color_kevlar = default pink se_sprite_color_arrow = default yellow se_sprite_color_c4 = default orange se_sprite_color_defusekit = default green - Gameplay Images https://imgur.com/BaI6Kw0.png https://imgur.com/j60LLXo.png - Credits https://forums.alliedmods.net/showpo...01&postcount=4 https://forums.alliedmods.net/showpo...3&postcount=16 - Change log
Spoiler
Note: The sprites were tested with 32/32 podbots and nothing happened regarding crashes or lag with the sprites. |
Re: Show Teammates Armament
will check test it out and review the code when i have time. looks great. thank you for sharing and congrats.
|
Re: Show Teammates Armament
Good plugin, I found that some of the sprites are floating instead of disappearing
And another thing would be, if you could add that the cvar of se_show_arrow, could remain the whole round and not only during freezetime https://i.imgur.com/VQLfFyH.png |
Re: Show Teammates Armament
Awesome plugin. I see this being widely used. So, here is some feedback:
-------------------------------------- [ 1 ] -------------------------------------- Code:
This is a big 'no' and is likely the reason for the issue in the previous comment. Unique task ids should have a difference of at least 32 between them - the maximum number of players. I understand only the first one is being combined with player ids, but this will still cause issues. For example: Player with id #1 has a TASK_INV of 4562+1=4563 which is equal to TASK_DISPLAY, player #2's task is equal to TASK_HIDE_ENTS, etc, so when interacting with the player's TASK_INV tasks, you can accidentally interact with one of the other tasks. The simple solution: Code:
-------------------------------------- [ 2 ] -------------------------------------- Your plugin won't compile under 1.8.2 because MAX_PLAYERS is not defined. Code:
-------------------------------------- [ 3 ] -------------------------------------- I don't see a code that removes the sprites when the player disconnects? |
Re: Show Teammates Armament
Quote:
Quote:
Tested again online and tests were good with 20 players simultaneously. Not sure how the server will behave with 32/32. I highly recommend it to be used in servers with low players. |
Re: Show Teammates Armament
Hello, report here
I have stability problems with the server, the constant message on the console, is repeated in different periods of time https://i.imgur.com/HlXk82D.jpg Consequently, the game freezes for 1 or 2 seconds, and the models end up underground. https://i.imgur.com/So331DA.png And lastly, the arrow appears for the enemy side as well, maybe there could be one more cvar. https://i.imgur.com/Nwjrxgk.png |
Re: Show Teammates Armament
Updated to v1.1:
- Fixed sprites floating. - Fixed wrong sprites displaying for players. - Fixed some overflow regarding the display of sprites when se_show_arrow_only is 1. - Changed the way of how the sprites gets displayed, removing the delay for each player. - Added se_show_arrow_only_mode cvar that controls which arrow players will be able to see (both teams, teammates only or only enemy team only). |
Re: Show Teammates Armament
Updated to v1.2: Until now, it seems like a stable version, no issues were reported in all my tests with the plugin.
- Had some people telling me about crashes when testing with 32/32 bots, added a loop split so the server doesn't suffer that much displaying a LOT of sprites at once. - Besides that loop split, there is also a code that doesn't allow the call of some natives again since the only thing that changes is the frame and the sprites' size. - Tested with 32/32 bots and no crashes were happening with me anymore, still needs confirmations on public servers. - Now the positions of the sprites is rightly set. - Now the arrow position is fixed when the user is crouched. - Now there is se_sprites_scale cvar that controls the sprites size. - Now there is a cvar for each sprite that controls their colors individually: se_sprite_color_weapons = default yellow se_sprite_color_money = default green se_sprite_color_grenades = default white (tried each grenade color individually, no pattern and combinations looks good, so by default all of them are the same color) se_sprite_color_vesthelm = default purple se_sprite_color_kevlar = default pink se_sprite_color_arrow = default yellow se_sprite_color_c4 = default orange se_sprite_color_defusekit = default green |
Re: Show Teammates Armament
Here I want to ask whether it is possible for this plugin to work for only a short time at the beginning of each round within the time of purchase?
|
Re: Show Teammates Armament
Quote:
|
Re: Show Teammates Armament
Quote:
Quote:
|
Re: Show Teammates Armament
Maybe not work with bots ?
|
Re: Show Teammates Armament
It does, the whole test was with podbots.
|
Re: Show Teammates Armament
1 Attachment(s)
Quote:
Quote:
UPDATE: removed superfluous line in code. |
Re: Show Teammates Armament
Quote:
Code:
L 04/10/2022 - 15:12:48: [HAMSANDWICH] Function spawn not found. |
Re: Show Teammates Armament
One question, can sprites be made visible through walls?
That is, if your partner is rendered you can see his position through walls |
Re: Show Teammates Armament
Any chance on adding support for it to display on spawn for "x" amount of seconds?
Would be really cool for respawn servers with no rounds. |
Re: Show Teammates Armament
Quote:
|
Re: Show Teammates Armament
Quote:
PHP Code:
PHP Code:
|
Re: Show Teammates Armament
Quote:
(194) : warning 213: tag mismatch (167) : warning 204: symbol is assigned a value that is never used: "g_fFreezeTime" |
Re: Show Teammates Armament
1 Attachment(s)
Those are just warnings. The first one is because you used an interger instead of a float, should be 3.0.
The other warning is just telling you that g_fFreezeTime is not being used. If you remove it's existence, should be fine. If still under complications, this should do what you asked for: |
Re: Show Teammates Armament
Quote:
PHP Code:
|
Re: Show Teammates Armament
Thank you. It compiled and it worked on first initial spawn for the specified time. After that the sprites never showed again after respawning. Using podbot as test bed.
p.s. It looked really cool. Good work. |
Re: Show Teammates Armament
Is it possible that the plugin will not work if different models are used, for example from the original ones ?
|
Re: Show Teammates Armament
Quote:
|
Re: Show Teammates Armament
Quote:
Quote:
|
Re: Show Teammates Armament
I have this code and work for me
Code:
#include <amxmodx> |
Re: Show Teammates Armament
When someone tries to connect to the server they get this error:
Error: server failed to transmit file 'sprites/10000.spr' Error: server failed to transmit file 'sprites/1000.spr' Error: server failed to transmit file 'sprites/100.spr' Error: server failed to transmit file 'sprites/10.spr' Error: server failed to transmit file 'sprites/1.spr' Error: server failed to transmit file 'sprites/weap.spr' Error: server failed to transmit file 'sprites/weap2.spr' Error: server failed to transmit file 'sprites/cash.spr' Error: server failed to transmit file 'sprites/arrow.spr' Error: could not load file sprites/10000.spr Model sprites/10000.spr not found and not available from server Cannot continue without model sprites/10000.spr, disconnecting. |
Re: Show Teammates Armament
I did not know that the plugin should be used without freeztime !
Now everything works without freeztime ! |
Re: Show Teammates Armament
Quote:
|
Re: Show Teammates Armament
Quote:
Still, it's not clever enough, because if I want to have a freeztime, I can't actually use any of the versions of this plugin properly, and I already have more than 3 versions. |
Re: Show Teammates Armament
Don't say it's quite stupid when the whole point of the plugin is for pug/mix servers, when the freezetime is higher for players to buy their weapons and discuss what they'll do in the round.
Just because you use different settings doesn't make the plugin stupid. Also there's a version asked without the freezetime literally in the #21 reply by me, you were too lazy and didn't search enough to see it. |
Re: Show Teammates Armament
Quote:
We should not see our own icons above our heads and we should only see our teammates and not the opponent... |
Re: Show Teammates Armament
As I said, it was meant for freezetime, where players are FREEZED and you cannot see your enemies. Your version makes you have those issues.
|
Re: Show Teammates Armament
Quote:
It would be more personalized and you can pair it with freezetime without needing to freeze to appreciate the plugin. |
Re: Show Teammates Armament
So, in the end, that's where the problem is. When I use the original plugin it doesn't work at all, and when I use the other one without freeze time the plugin itself works, but half of the other plugins in the server stop working and the server does what it wants. I stop the plug-in and everything is fine. Also, the one without freeze time doesn't work properly anyway
I guess I have too many sprite files or some problem with another plugin, but when I stop this one everything works fine again. It is a pity that I will not be able to use it, but otherwise I like the idea a lot, because I have a csgo remake server. |
Re: Show Teammates Armament
You forgot to add a cvar to toggle this whole thing,
|
Re: Show Teammates Armament
Quote:
|
Re: Show Teammates Armament
Talking to you is like talking to a brick wall, casting pearls before swine.
|
Re: Show Teammates Armament
When does it end Dayanne?
|
All times are GMT -4. The time now is 09:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.