I need a dumb AI Controller



  • i have a problem with my NPC Bot Sir Podex: The objective is a kind of “Push Objective”: Every second two Triggervolumes counts their Pawns/Players inside them. If Masons are more than Agathians, Sir Podex will move to his target, else he will halt. That works perfect.
    But if he is left alone and many Agathians circle, hit and eh…"****" him, he is frightened and will run backwards to nowhere.

    I looked at the different Controller classes to understand this AI behaviour. Maybe i just have to change one property to disable it? idk

    AOCAIController_NPC.uc
    AOCAIController.uc
    UDKBot.uc
    AIController.uc
    Controller.uc
    Actor.uc

    Any ideas?



  • Pah after studying *.uc files for hours i found something! The controller classes were the wrong ones, AOCPawn is the key.
    You can set Pawn state to:

    ESTATE_IDLE,
    ESTATE_RUN,
    ESTATE_SPRINT,
    ESTATE_DODGE,
    ESTATE_PUSH,
    ESTATE_SIEGEWEAPON,
    ESTATE_BATTERING,
    ESTATE_EXECUTION,
    ESTATE_OTHER,
    ESTATE_FROZEN
    

    So in kismet instead of “Halt NPC” i use “modify property” (PawnState=ESTATE_FROZEN) to freeze SirPodex and (PawnState=ESTATE_RUN) before “Set Move target” to unfreeze him again.
    Now Sir Podex wont flee and will enjoy gang bang :victorious:



  • well done tbh. Dont they have nand gates with nors ? The boolean logic tables were very addictive



  • I think you have to make your own nand and nors.