AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06) (https://forums.alliedmods.net/showthread.php?t=73730)

Carn 07-05-2008 23:36

Re: Flare Extinguisher (Pyro flare exploit fix) v1.1 (7/05)
 
very helpfull, have put this on 8 servers tonight thanks to alot of idiots hearing about this issue.
thanks alot...

[AiF] Biggs 07-05-2008 23:40

Re: Flare Extinguisher (Pyro flare exploit fix) v1.1 (7/05)
 
Came in handy about 30 minutes after I installed it. lol.
Some pyro was camping blu spawn on gravelpit just spamming flares.

FLOOR_MASTER 07-06-2008 05:59

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
Please note the addition of v1.2, with the following changes:
  • Update flare extinguishing method to avoid removing active flares
  • Fixed bug in which multiple timers may be created on non-24/7 servers
If you're running the plugin on a non-24/7 server, I highly recommend updating.

Jokerz99 07-06-2008 11:35

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
Thx Floor_master

apollo729 07-06-2008 14:49

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
The plugin doesn't seem to work right, when i check the default rate is seems to be 180 min and not 180 sec.

Code:

14:47:32 "sm_fe_rate" = "180" min. 0.000000
          - Interval, in seconds, to wait between extinguishing flares


bl4nk 07-06-2008 15:03

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
That's saying the minimum value accepted is 0.00000, not that it's counted in minutes.

dann 07-06-2008 19:36

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
how does this one work compared to the original.

DontWannaName 07-06-2008 20:17

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
It doesnt remove flares too early I think?

FLOOR_MASTER 07-06-2008 22:04

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
Yes - v1.2 basically allows newly-created flares up to two seconds to fly and hit their target before being removed automatically. It's still technically possible for midair flares to be removed prematurely, but highly unlikely.

More importantly, v1.2 fixes a timing bug unrelated to the flare-removing technique.

Shaman 08-21-2008 18:45

Re: Flare Extinguisher (Pyro flare exploit fix) v1.2 (7/06)
 
Quote:

Originally Posted by FLOOR_MASTER (Post 648840)
Yes - v1.2 basically allows newly-created flares up to two seconds to fly and hit their target before being removed automatically. It's still technically possible for midair flares to be removed prematurely, but highly unlikely.

More importantly, v1.2 fixes a timing bug unrelated to the flare-removing technique.

I suggest something like this:
Code:

new Float:flareposition[MAXENTITIES][3]

public Timer()
    {
    for(loop all entities)
        {
        if(!isflare(entity))
            continue
       
        new Float:newposition[3]= GetPosition(entity)
       
        if(newposition==flareposition[entity])
            removeflare(entity)
        else
            flareposition[entity]= newposition
        }
    }

So it will simply check if all flares in the map moved. If a flare didn't move, it means it's stuck and has to be removed. It may soundlike it consumes more resources, but the timer frequency can be something higher like 10 or 30 seconds.


All times are GMT -4. The time now is 01:45.

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