| Home Page | Recent Changes | Preferences

BlueShootSpot

UT2003 :: Actor >> NavigationPoint >> ShootSpot? >> BlueShootSpot

The BlueShootSpot is the actor placed in a map to tell bots a good location to shoot the ball into the blue team's xBombDelivery in a BombingRun? game.

Tips

At least one ShootSpot per BombDelivery is required for bots to run properly in the map. (i.e., without them, the bots will not attempt shoot the ball to the goal.)

Make sure you can actually shoot the ball through the goal from your spots without resorting to tricky bank shots or shooting in mid-air.

Bots will seek out these ShootSpots when they're low on health or are outnumbered or otherwise stressed out. So, make sure you have at least one ShootSpot close to the goal. Otherwise you'll see bots retreating from the BombDelivery to shoot at it.

These can be used at "PuntSpots" too. Note that the bots will try and shoot the ball straight to the goal in an arc, regardless of any obstacles along that arc.

Bots from either team will use the ShootSpot in a pinch. While the Red Team's bots shoot at the blue BombDelivery the Blue Team will be punting the ball the other direction from the same spot.

Related Topics

Discussion

SuperApe: I would really love a suggestion on how to get bots to shoot from a spot in mid-air. :)

GRAF1K: Wouldn't you just place a ShootSpot in the air? Or will that not work? (SuperApe: unfortunately, no. I've tried.)

Foxpaw: I think that Shootspots are basically a special type of pathnode, and can't be placed in mid-air if they're going to work. Which is not to say you couldn't make the following hack:

Have a special actor, JumpShootSpot or whatever. When touched by a pawn, it checks to see if A) that pawn is bot controlled, and B) that pawn has the ball. If those checks pass, it forces the bot to face the direction it's going to shoot the ball in, and when the bot reaches a certain radius, (smaller than it's collision radius, to give some time for the mid-air aiming) the JumpShootSpot calls the pawns weapons firecontrollers fire function and discharges the ball, all with no actual input from the bot AI!

As an added advantage, this would also allow you to implement bank-shots for bots.

Off-Kilter: BTW, near as I can tell from the code, the shoot spots are actually coded wrong (blue is team 0, red is team 1), but it doesn't seem to matter because the code doesn't care about the team at all for the most part. Only thing I saw is when xBombDelivery comes into being... it checks to see whether any shoot spots exist with the team == the team of the gate. It doesn't matter at all where they are on the map either :-P So I think people end up putting the blue shoot spot in front of blue gate and vice versa (which is 'right'), and the code still all works because both gates have shoot spots on the map with the right team (though at the wrong gate if you consider team number). I hope what I just said makes sense, and if I'm wrong, please correct me. I am working on a multi-team BR mod so that's why I discovered this oddity. Oh, and to answer SuperApe's message above... shoot spots aren't manditory. It'll work fine without them, though they'll never try to shoot the ball.

SuperApe: Thanks, OK. :) That's what I figured; I corrected it above. I noticed the backwards TeamNumber too, and I came to the conclusion that although the Blue team defends the Blue xBombDelivery, it's the Red team that needs to shoot at the Blue xBombDelivery. So, I assume that would be why the BlueShootSpot 'uses' the Red team's number. I had a feeling the TeamNumber on the ShootSpots were being ignored. Makes you wonder why they made two actors for ShootSpots. ;) Good luck on the Mod, sounds like fun. (in-game alliances come to mind)

Off-Kilter: Heh. I just found out why they have two classes... they use FindPathTowardNearest in the AI, so they just look for the class. And apparently Red does look for BlueShootSpots, and vice versa (team number is still ignored) This is gonna make my 4-team BR interesting :P

Category Class (UT2003)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In