Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

Legacy:BotCandy

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 03:16, 15 August 2004 by Wormbo (Talk | contribs)

Jump to: navigation, search

Many UT mods lacked good bot support, some used the basic UT Navigation AI, which is great for running around, collecting weapons and killing anything you see. However, once you remove the pickups you'll notice that bots will only travel between HomeBase, DefensePoint and similar actors, and objective based actors such as FlagBase or actors special to the mod.

In order to fix this despite the coder's lack of time/interest which haunts many mods, I found a work-around.

The idea is based on the simple fact that bots are hunting Pickups. Sadly, we can't have that in the map. Instead we will have to cheat the bots into thinking they are hunting weapons. To do this, do the following:

  1. Place an Actor >> Inventory >> Pickup >> TournamentPickup >> UT_ShieldBelt
  2. Open Actor Properties and set its Filter -> OddsOfAppearing to 0
  3. Set the Inventory -> MaxDesireability to an appropriate number (The higher number, the higher odds of bots going there)

The desireability detirmines how sweet the candy is, making bots want it more. When a bot runs over the candy, it is "picked up" despite not really existing, ensuring bots will have to move on searching for the next piece of candy. Place these candy at keypoints, intersections or in areas the bots are ignoring.

LegalAssassin

This technique was used in TTR-Nuenen


SabbathCat: Is the Filter -> OddsOfAppearing=0 supposed to keep the UT_ShieldBelt from being displayed?

It still shows up for me. Maybe setting its DrawType = DT_None and BCollideActors=False ?

LegalAssassin: It works for me. Perhaps Advanced -> bHidden = True would do the trick?

Wormbo: OddsOfAppearing actually prevents the pickup from being spawned altogether, which is something completely differnet than visually hiding it. If you only hide it can still be picked up. If you make it untouchable, bots will likely get stuck there because they try to reach it and can't pick it up. OddsOfAppearing has the advantage, that UnrealEd still creates an InventorySpot for the pickup, but the pickup itself will never exist in the game.