Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make toggleable walls bot obstacles #1229

Merged
merged 1 commit into from Oct 18, 2020
Merged

Conversation

Gireen
Copy link
Member

@Gireen Gireen commented Oct 11, 2020

doesn't work on walls that are spawned on map start

relevant for #1220

@necessarily-equal
Copy link
Contributor

just a style thing: this mixes tabs and spaces in the files it touches.

doesn't work on walls that are spawned on map start
@illwieckz
Copy link
Member

illwieckz commented Oct 11, 2020

I'm not sure to understand what it is about, do you have a simple in-game example?

Edit: is it for walls like in CTCS or Uncreation (though the Uncreation ones do not open because of something else)?

@Gireen
Copy link
Member Author

Gireen commented Oct 11, 2020

func_spawn is an object/brush/mapentity that can be toggled. to appear or disappear by a trigger.
I don't think that this is used in any of our maps so far.
Imagine a box or wall that disappears instantly when a button is pushed and reappears if it is pushed again.
Similar to doors but without moving. But unlike doors bots currently ignore this objects and just try to run trough them.

With this changes the navmesh is updated when such objects appear or disappear.

@illwieckz
Copy link
Member

Anything making bots better is welcome! =)

LGTM but I'm not a wizard on such topic.

@slipher
Copy link
Contributor

slipher commented Oct 14, 2020

LGTM; I too have no idea how this part of the code works.

How did you run into this issue when there are no maps that use it?

@Gireen
Copy link
Member Author

Gireen commented Oct 18, 2020

I'm trying mapping and look what interesting things are possible.
And thereby came up with a silly method to change maps. 😀

@Gireen Gireen merged commit 7b7f808 into Unvanquished:master Oct 18, 2020
@Gireen Gireen deleted the botsnwalls branch October 18, 2020 18:10
@necessarily-equal
Copy link
Contributor

necessarily-equal commented Oct 18, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants