NPCs

Discussion in 'Coding' started by harryhoot1, Feb 2, 2010.

  1. harryhoot1

    harryhoot1 Member

    Messages:
    663
    Likes Received:
    0
    Trophy Points:
    0
    How does one add npcs into empires?

    I want to try coding them, but I have to start somewhere.....

    I trust in the community to help me out here.
     
  2. ScardyBob

    ScardyBob Member

    Messages:
    3,457
    Likes Received:
    30
    Trophy Points:
    0
  3. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    if you want to know the commands of our current npc's id say hit the wiki

    emp_bot_nf/imp

    i think

    also if you are gonna code a new bot script id suggest starting with a simple commander script, since to be honest we could use one and from the limited work i did for it it is far easier then getting bots to actually be usefull besides as riflemen
     
  4. Vulkanis

    Vulkanis Banned

    Messages:
    2,490
    Likes Received:
    0
    Trophy Points:
    0
    This makes me wonder why we can't make idiot soldiers be taken over by the an AI similarly to L4D afks, and then they could be far more useful...
     
  5. Varbles

    Varbles Simply Maptastic. Staff Member

    Messages:
    2,093
    Likes Received:
    26
    Trophy Points:
    0
    ahahahahahahahaa

    Good luck
     
  6. Vulkanis

    Vulkanis Banned

    Messages:
    2,490
    Likes Received:
    0
    Trophy Points:
    0
    But I'd love to make all my infantry walk off a cliff at will :D
     
  7. ScardyBob

    ScardyBob Member

    Messages:
    3,457
    Likes Received:
    30
    Trophy Points:
    0
    They pretty much only walk around randomly. AFAIK, Krenzo only copied a little of the source engine NPC code into Empires. A true Empires NPC would probably need a dev dedicated to implement or be a 3rd-party server plugin.

    I'd say develop the NPC as:
    EmpNPC v1.0 = Functional infantry that can follow comm orders
    EmpNPC v2.0 = Infantry that can build and drive tanks
    EmpNPC v3.0 = NPC commander
     
  8. Grantrithor

    Grantrithor Member

    Messages:
    9,820
    Likes Received:
    11
    Trophy Points:
    0
    hmm NPC commander! It could prove extremely useful and it functions when no one is currently in the cv, and if the last comm got out to build a building he could set it not to take over. Imagine that, a commander npc with algorithims and priorities on how to run things.
     
  9. --{[TheÁstroÁr¢hítect]}--

    --{[TheÁstroÁr¢hítect]}-- Banned

    Messages:
    362
    Likes Received:
    0
    Trophy Points:
    0
    I wan't a NPC comm with artificial intelligence.
     
  10. OuNin

    OuNin Member

    Messages:
    3,703
    Likes Received:
    3
    Trophy Points:
    0
    I was thinking of making antlions spawn from the ground and terrorize the winning team. That is balance.
     
  11. harryhoot1

    harryhoot1 Member

    Messages:
    663
    Likes Received:
    0
    Trophy Points:
    0
    Sorry guys, but my ambitions lay somewhere else.

    I'm not working on bots, I'm trying to get HALF LIFE 2 NPCs into Empires.

    More specifically, I'm trying to get the combine gunship and the hunter chopper in there.

    Perhaps when the commander gives a move location, he also makes 'path_tracks' on the fly (no pun intended) for the those npcs.

    No longer will noobs say, "The aircraft is a lie."
     
    Last edited: Feb 3, 2010
  12. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    HL2:DM SDK Base does not contain NPCs.
     
  13. CobaltBlue

    CobaltBlue Member

    Messages:
    548
    Likes Received:
    0
    Trophy Points:
    0
    false?
     
  14. OuNin

    OuNin Member

    Messages:
    3,703
    Likes Received:
    3
    Trophy Points:
    0
    I want antlions popping from below a cluster of infantry that's doing well.
     
  15. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    No, there are no NPCs in the HL2:DM SDK base which empires is based off.
     
  16. ScardyBob

    ScardyBob Member

    Messages:
    3,457
    Likes Received:
    30
    Trophy Points:
    0
    Except Empires uses the orange box SDK, which does have NPCs?
     
  17. arklansman

    arklansman Member

    Messages:
    5,365
    Likes Received:
    0
    Trophy Points:
    0
    It still uses the multiplayer code, and therefore does not contain (working) NPCs.
     
  18. CobaltBlue

    CobaltBlue Member

    Messages:
    548
    Likes Received:
    0
    Trophy Points:
    0
    It's funny you should say that, since my deploy of orange box multiplayer SDK DOES have NPCs.
     
  19. arklansman

    arklansman Member

    Messages:
    5,365
    Likes Received:
    0
    Trophy Points:
    0
    <filler>

    Also I believe the scratch SDK option doesn't have NPCs either.
     
    Last edited: Feb 3, 2010
  20. ScardyBob

    ScardyBob Member

    Messages:
    3,457
    Likes Received:
    30
    Trophy Points:
    0
    Ah! Gotcha. So does this means that a 3rd party plugin (like RCBot2) is the only way for non-devs to get NPCs and/or bots into Empires?
     

Share This Page