[OP4] Monstername
4 Attachment(s)
Description: Show monster's and players's name with health and armor where player aimning. For Opposing Force Coop. |
Re: [OP4] Monstername
Updated!
Now used only Fakemeta. Normal name show. Work correctly now :) (finnaly i get list of all ent in op4) |
Re: [OP4] Monstername
You better use a trie here instead of calling x equals.
Also, make more checks, like entid should be > maxplayers, so it avoids you executes code for nothing.. |
Re: [OP4] Monstername
No changes, consider to use tries and you can submit it again.
Unapproved. |
Re: [OP4] Monstername
ConnorMcLeod, i did. Now using Trie, removed loop. Added playername show.
Why allot of moderators start reviewing plugins? :D |
Re: [OP4] Monstername
Better than if nobody do anything lol.
I don't think you need to check TrieKeyExists, when TrieGetCell already returns 0 or 1 on same conditions. |
Re: [OP4] Monstername
Quote:
1 for friends [green hud color] you think, would be good if 0 if entity not in list [no hud] 1 for enemies [red hud color] 2 for friends [green hud color] ? |
Re: [OP4] Monstername
Was saying that TrieGetCell returns 0 when the key doesn't exist, not the byref cell value, you do what you want with your plugin features :)
|
Re: [OP4] Monstername
I believe the plugin needs some kind of code "delay" to prevent hud message flickering.
Any ideas how to make this? |
Re: [OP4] Monstername
I tried this, it works... partially, but still the FM_PlayerPostThink is being called many times per second. Is there a way to optimizing this, please?
code is also a bit modified to show health percentage for monster_apache, don't mind that. Code:
new pica |
All times are GMT -4. The time now is 10:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.