Smarter koob ai's
by fire maker · in Torque Game Engine · 06/21/2007 (4:11 pm) · 4 replies
How can i make the koob ai's not shoot each other. also how can ishow a scope when i zoom in.
i would like a simple answer.
thanks.
i would like a simple answer.
thanks.
About the author
#2
Hope that helps.
07/26/2007 (4:09 pm)
For the zoom, maybe something like this:PlayerClass::onZoom(%this, %zoomDegrees, %zoomSpeed)
{
%this.SetZoomSpeed(%zoomSpeed);
%this.SetFOV(%zoomDegrees);
}
PlayerClass::onUnZoom(%this, %unZoomSpeed)
{
%this.SetZoomSpeed(%unZoomSpeed);
%this.SetDefaultFov();
}Hope that helps.
#3
07/26/2007 (4:12 pm)
BTW, if your game's Default FOV is 60 degrees (a good one for a FPS game), then a good Zoom FOV would be 45 degrees. Or, you could do a FOV multiplier, like "%FOV /= %value", which would work for things like a 2x zoom.
#4
07/26/2007 (4:13 pm)
And, I am working on an AI subroutine set that will (now that you've brought it to my attention) have lookup and lookdown subroutines.
fire maker