Landmine bug & bots


(DrEvil) #1

So I’ve gotten my bots to place and arm landmines pretty well, but I’ve ran into a problem now that I’m not sure where to look to fix it.

When allied bots place landmines, they show up on the command map fine, and allied players can see them with flags on them, as expected.

When axis bots place landmines, they show up on the command map, but they are invisible to their teammates as well, as in, axis players can’t see the bot placed mine flags.

Anyone got any ideas about why this could be happening, and possibly know where I can start looking for the bug? I’m not touching any of the fields in the landmine entity, so I’m not sure how me or the bot could have caused this problem.

Any help appreciated.


(Jaquboss) #2

eh i dont understand: isnt it supposed to be invisible to opposing team?


(DrEvil) #3

Yes, the problem is that axis players can’t see the mine flags for their bot teammates mines. Bad wording in the original post. I’ll edit.


(jet Pilot) #4

Can the allied team see the axis bot-placed mines? Can covert ops (either team) spot them?


(DrEvil) #5

No, but I figured out the bug, thanks.


(jet Pilot) #6

Out of curiosity, what was causing this?


(DrEvil) #7

It was my fault basically. I had some code that attempted to take a shortcut when I wanted the bots to drop a mine. It involved calling fire_grenade directly. When I changed it to pressing the fire button the problem disappeared, so no more shortcuts, since there was clearly something I missed that can break stuff.


(Jaquboss) #8

hehe , i suggest to try to use bots as players not as code, anyway nice to know that O-B will have mines support in future :o