Menu

#47 AI Interaction in trunk

Trunk
open
nobody
None
5
2008-07-10
2008-07-08
No

In the current trunk (as of revision 90), the AI cannot interact with anything that requires a double click(or single if single click is toggled).

When canreach was implemented, there was nothing to handle the possibility of the mob being an AI and to use attack_ai. I've fixed the problem and attached a patch. It seems that that rc-2 has a handles it, which could be used instead of my patch.

Also the drone as well cannot interact with anything. This could be fixed by having it use attack_hand like with /mob/human or by adding an attack_drone proc.

Discussion

  • Benjamin Oronar

    Benjamin Oronar - 2008-07-08

    Patch to fix attack_ai

     
  • Benjamin Oronar

    Benjamin Oronar - 2008-07-08
    • summary: AI Interation in trunk --> AI Interaction in trunk
     
  • Stephen Badger

    Stephen Badger - 2008-07-08

    Logged In: YES
    user_id=1640007
    Originator: NO

    I've attached a cleaned-up version of this patch. Dunno what all that random noise was about.

    Index: trunk/Code/items.dm

    --- trunk/Code/items.dm (revision 90)
    +++ trunk/Code/items.dm (working copy)
    @@ -5859,2 +5859,4 @@
    src.hand_p(user, user.hand)
    -
    + else
    + if (istype(user, /mob/ai))
    + src.hand_a(user, user.hand)

     
  • Zach McNaney

    Zach McNaney - 2008-07-10
    • milestone: --> Trunk
     

Log in to post a comment.

MongoDB Logo MongoDB