[Req] Spawn Protection doesn't glow the whole time
Hi all, i've set the protection time for 3 seconds, but the glow lasts only for 2 seconds i tried with 5 seconds protection time, but the glow is still only 2 seconds long... can you make the glow last for 3 seconds and i'll make the cvar 3 for seconds and all will be fine ?
Re: [Req] Spawn Protection doesn't glow the whole time
6 Attachment(s)
Try this :
ChangeLog :
Spoiler
v0.0.2
Fixed missing get_players, reset dead and disconneted players
v0.0.3
Disable Think forward when not needed
v0.0.4
Fixed error where protection was never be removed.
v0.1.0
Added CZ Bots support, you need to run this plugin for support : http://forums.alliedmods.net/showpos...3&postcount=14
v0.1.1
Fixed bad loop
v0.1.2
Added hudmessage and cvar amx_spawn_protect_display ( 0 / 1 )
This plugin is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this plugin; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
new Float:g_flEndOfProtection[MAX_PLAYERS+1]
new g_pCvarProtectTime, g_pCvarDisplayHud
new HamHook:g_iHhTakeDamage, HamHook:g_iHhTraceAttack, HamHook:g_iHhCSoundEntThinkPost,
HamHook:g_iHhTakeDamage_CZBot, HamHook:g_iHhTraceAttack_CZBot
new g_iSyncHud
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
Re: [Req] Spawn Protection doesn't glow the whole time
Are you going to add hud timer? Example: Spawn Protection expires in "5-4-3-2-1" second.
ConnorMcLeod
01-21-2012 07:13
Re: [Req] Spawn Protection doesn't glow the whole time
I'm using a thinking ent that thinks every 0.3secs so the protection time is not very accurate (glow and protection matches though), so a timer would be false.
Should create my own entity in order to add a timer, not sure i want to to that :)
yOou Know Me
01-24-2012 12:27
Re: [Req] Spawn Protection doesn't glow the whole time
Quote:
Originally Posted by ConnorMcLeod
(Post 1635869)
I'm using a thinking ent that thinks every 0.3secs so the protection time is not very accurate (glow and protection matches though), so a timer would be false.
Should create my own entity in order to add a timer, not sure i want to to that :)
The protection doesn't dissapear, we can't kill eachother. And we glow all the time.
Lolz0r
09-15-2012 10:48
Re: [Req] Spawn Protection doesn't glow the whole time
@Connor, I don't know if the cvar is working or not, but no matter how much seconds I set to the protection and glow it's infinity, can you fix that ?
ConnorMcLeod
09-16-2012 00:21
Re: [Req] Spawn Protection doesn't glow the whole time
Should be fixed in version 0.0.4
Lolz0r
09-16-2012 18:29
Re: [Req] Spawn Protection doesn't glow the whole time
It still doesn't work properly, here's what it shows me in the console :
Code:
L 09/16/2012 - 23:31:58: [AMXX] Displaying debug trace (plugin "SpawnProtection.amxx")
L 09/16/2012 - 23:31:58: [AMXX] Run time error 4: index out of bounds
L 09/16/2012 - 23:31:58: [AMXX] [0] SpawnProtection.sma::OnCSoundEnt_Think_Post (line 151)
If the plugin ham_register_cz_bot is not installed would it work ?
If not, could you do it in one ?
ConnorMcLeod
09-20-2012 15:39
Re: [Req] Spawn Protection doesn't glow the whole time