clarification on scavengersActive()
-
DylanDog
- Code contributor

- Posts: 347
- Joined: 08 Apr 2009, 15:15
- Location: Germany
clarification on scavengersActive()
how does this function work? I thought it would have been related to the fact if the scavengers have been activated or not before the game starts. Actually I play a game with scavengers, at the beginning this function returns true (1) but during the game it returns false (0) even if few scavenger units and structures are live ? On the attached file you can see few scavenger units (a scav factory is also live) and few debug messages whose output states that scavengersActive() == 0
You do not have the required permissions to view the files attached to this post.
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: clarification on scavengersActive()
It checks if scavengers are turned on in the MP dialog. Scav scripts are started independently of this value, so if the scav scripts do not check this value and turn themselves off, it can certainly happen that scavs are running but scavengersActive() is false. It should perhaps be understood as shouldScavengersBeActive(). If it changes value during a game, that would certainly be a bug.