With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Can we educate our bots please??

Moderator: Aerasol

Enabling bots to close and re-open doors

Postby TheDoctor » Thu Apr 12, 2012 1:33 am

Until now, bots were not able to close doors. Due to some weaknesses in their pathfinding, they tend to run into doors :roll:. In some cases, the just need to close the door they are facing in order to re-open it again outwards (see dm_tillian for examples). To enable them to close doors, change in void G_TouchTriggers( gentity_t *ent ) of code/game/gactive.c the line
Code: Select all
hit->moverState != MOVER_POS1) ) // bots dont need to press down activate
with the line
Code: Select all
(hit->moverState != MOVER_POS1 && hit->moverState != MOVER_POS2) ) ) //  bots dont need to press down activate, but sometimes they need to close doors in order to re-open them outwards
Image
User avatar
TheDoctor
Smokin' Amigo!
 
Posts: 818
Joined: Sun Jun 06, 2010 3:31 am



Return to Artificial Intelligence

Show Sidebar
Show Sidebar

User Control Panel

cron