[quake3-commits] [ioquake/ioq3] e4208c: Improve finding obelisk entitynum for bot AI

Zack Middleton zack at cloemail.com
Wed Sep 12 17:37:34 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: e4208cf5a7abf3e55ace2a460e8fd2f24135b739
      https://github.com/ioquake/ioq3/commit/e4208cf5a7abf3e55ace2a460e8fd2f24135b739
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
    M code/game/ai_dmq3.c

  Log Message:
  -----------
  Improve finding obelisk entitynum for bot AI

BotSetEntityNumForGoal() was checking all entities that are not
team_redobelisk (which is the obelisk visual entity) to find the
untitled obelisk collision entity. This may fail in rare cases where
there is an another entity within 10 units of the obelisk origin.
Failing to find the correct entity may cause bots to not attack the
obelisk.

Instead add BotSetEntityNumForGoalWithActivator() for looking for the
obelisk collision entity by activator classname (team_redobelisk) which
should be less likely to find the wrong entity.

This doesn't affect official Team Arena maps (unknown if it affects any
others).

Reversed strcmp check was reported by Thomas Köppe.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the quake3-commits mailing list