Author Topic: Customizing Hostile Attacks  (Read 408 times)

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« on: January 11, 2012, 01:19:06 am »


               I'm creating a custom minotaur, and I want this monster to first attack at range with throwing axes, and then up close with a greataxe. How do I configure the minotaur to attack in this way?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #1 on: January 11, 2012, 01:28:08 am »


               Give your minotaur throwing axes into his right hand and set his OnSpawn script to the x0_c2_spwn_rang

Note there is bug in default AI that often unequip throwing weapons, I suggest you instally Patch 1.70
               
               

               
            

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #2 on: January 11, 2012, 01:53:25 am »


               Thanks, I will do both.
               
               

               
            

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #3 on: January 11, 2012, 01:56:47 am »


               *edit* ..... as in, Never Mind... ':whistle:'
               
               

               


                     Modifié par Badwater, 11 janvier 2012 - 02:16 .
                     
                  


            

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #4 on: January 12, 2012, 04:19:34 am »


               Quick question, since I am not specifically seeing this or am cleverly overlooking it - I'm assuming that 1.70 must be installed on the client side as well as the server side of a PW?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #5 on: January 12, 2012, 04:32:10 am »


               nope player with can player on server without and viceversa

EDIT: unless you would specifically added patch170.hak into your hak list - then players would need patch 1.70 in oder to play your server
               
               

               


                     Modifié par ShaDoOoW, 12 janvier 2012 - 05:22 .
                     
                  


            

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #6 on: January 12, 2012, 04:53:40 am »


               Thanks Shadooow, appreciate this and everything else you've ever helped me with very much!
               
               

               
            

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #7 on: January 13, 2012, 08:39:38 am »


               I have 1.70 in, x0_c2_spwn_rang as the OnSpawn script, with throwing axes in hand and a greataxe in inventory. What happens in testing is that the throwing axes are used and when my test PC closes in the minotaur flees until it gets a ranged distance to throw axes or is cornered, in which case it fights by hand and never equips the axe. What's the fix for this; what will it take for the mino to equip and use the greataxe for close combat?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #8 on: January 13, 2012, 01:26:02 pm »


               sorry it seems I adviced you wrong script, x0_c2_spwn_rang does exactly the running away - try default one (nw_c2_default9) - I tried it: minotaur with throwing axes +6 and greateaxe +3 and default script

1.69: due to the bug in script minotaur never uses throwing axes and goes melee with greataxe immediately
1.70: minotaur throws axes until PC comes into melee distance when equips greataxe
               
               

               


                     Modifié par ShaDoOoW, 13 janvier 2012 - 01:26 .
                     
                  


            

Legacy_Badwater

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Customizing Hostile Attacks
« Reply #9 on: January 13, 2012, 01:28:11 pm »


               Thanks....although I'll keep the other in mind; it's interesting even if it's not what I'm after. ;-)

*Update* Nice, and I'm really liking what 1.70 does! Thanks again.
               
               

               


                     Modifié par Badwater, 13 janvier 2012 - 01:32 .