Page 1 of 1

zone flag where flag dont go back

Posted: Thu Feb 28, 2019 10:39 pm
by mathiaz
Hi,

In attached file a map with zone flag.
often don t go back to the zone.
Is there misconfiguration or bug?

Configuration :

-a 50 38
-publicaddr tomato.freemyip.com:5154
-publickey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-p 5154
-autoTeam
-d
-sb
-j
-lagdrop 3
-lagwarn 400
-maxidle 300
-ms 3
-password xxxxxxxxxxx
+r
-srvmsg "When you have to shoot, don t speak, shoot"
-tk
-c
-world "/path/to/breizh_wall.bzw"
-groupdb "/path/to/groupdb.txt"

:cry: :roll:

Re: zone flag where flag dont go back

Posted: Thu Feb 28, 2019 11:11 pm
by tainn
Which flags (team flags or WG) are you trying to send back to the zone specified and when?

If you are trying to send back the team flags, you have already set everything you could without plugins:

Code: Select all

zone
  name zf_red
  position -300 -5 15
  size 1 1 1
  safety 1
end 
zone
  name zf_blue
  position -300 5 15
  size 1 1 1
  safety 3
end 
The safety argument will result in the team flags flying to their specified zones when dropped above 'unsafe' objects such as a pyramid.

If you are trying to send back the WG flags, the best action would be to reduce max flag grabs to 1. You can do that by inputting the following line in either your options object or the conf file:

Code: Select all

-set _maxFlagGrabs 1
This presents solutions without the use of plugins.

Re: zone flag where flag dont go back

Posted: Thu Feb 28, 2019 11:14 pm
by Zehra
The following should solve the issue: '-set _maxFlagGrabs 0'
(Simply set the above within the command line, map file or configuration file.)
It may also be done within game as the following slash command without the quotes: '/set _maxFlagGrabs 0'

-Zehra

Re: zone flag where flag dont go back

Posted: Thu Feb 28, 2019 11:41 pm
by mathiaz
Thanks for the answer.
The problem come from the zoneflag WG 1.

Re: zone flag where flag dont go back

Posted: Fri Mar 01, 2019 9:22 am
by mathiaz
I simplify my question :

#******* test.bzw ***********
world
size 100
end
options
+r
-j
-ms 4
-sl WG 1
-fb
-set _shotSpeed 110
-set _tankSpeed 28
-set _wingsJumpCount 20
-publictitle "Breizh tomato - shoot through WALL - ctf "
end
#*******************
zone
zoneflag WG 1
position 0 50 0
end
zone
zoneflag WG 1
position 0 -50 0
end
#******************

When i run this map with
bzfs -world test.bzw

The flag go back to the zoneflag randomly

Re: zone flag where flag dont go back

Posted: Fri Mar 01, 2019 11:23 am
by tainn
In the same place that you have the following:

Code: Select all

-set _shotSpeed 110
-set _tankSpeed 28
-set _wingsJumpCount 20
Insert one more line:

Code: Select all

-set _maxFlagGrabs 1
This will make the WG flag always zap back to the zone specified, meaning both after a death or a drop. You have also specified a shot limit for WG being 1, meaning it will also force a drop after one shot.

Re: zone flag where flag dont go back

Posted: Fri Mar 01, 2019 1:02 pm
by mathiaz
It works now.
Thanks a lot.

Re: zone flag where flag dont go back

Posted: Fri Mar 01, 2019 1:05 pm
by mathiaz
I understand quickly but i need long explanations ...