From: <no...@so...> - 2002-04-30 01:23:46
|
Patches item #550300, was opened at 2002-04-29 18:23 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=303248&aid=550300&group_id=3248 Category: BZFlag Group: None Status: Open Resolution: None Priority: 5 Submitted By: Frank Thilo (chestal) Assigned to: Tim Riker (timriker) Summary: new respawn algorithm Initial Comment: The red vs. green CTF format has become more and more popular lately. With both teams at 4 players, there are a lot of bad, i.e. unsafe respawns. It's more complicated than in the free for all case, because the area allowed for espawning is much smaller in CTF. So, very often the respawn algorithm cannot find a place which it considers safe. In tht case, it just uses a random point. This patch chages that behaviour. The algorithm will still stop looking for a good point as soon as it found a spot which it considers safe (i.e. minimum distance to all enemy tanks and will not be hit by a shot in <2s). If it cannot find a safe spot in 1000 tries, it will now use the best of the unsafe spots. The best spot is that, which violated the constraints by the smallest amount. Some quick tests seems to indicate that the patch indeed seems to work quite good. There are at least two scenarios which can still happen (old version had the same problems): 1) Might get hit by a ricohet shot immediately after respawn. This can happen, becuase for the shot collision test, only a simple projection is done. Actually, it doesn't consider buildings at all, thus a shot is seen as a threat even when a building would block it. 2) You migh trespawn right in front of a friendly tank. This can be dangoerus, if your friend was just about to fire a shot, you respawn, he clicks - you're dead. ---------------------------------------------------------------------- >Comment By: Dave Brosius (dbrosius) Date: 2002-04-30 01:23 Message: Logged In: YES user_id=66596 maybe as an option you should always respawn on ctf base? ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=303248&aid=550300&group_id=3248 |