ProjectSWGCore / Holocore

This is the Star Wars Galaxies server emulator for the Java Virtual Machine
https://www.projectswg.com
GNU Affero General Public License v3.0
31 stars 19 forks source link

Droids can not have / use their own ranged weapons #1725

Open Undercova opened 1 month ago

Undercova commented 1 month ago

Droids who have ranged weapons set can not use them. This does not include the standard battle droids that use the carbines !!

To Reproduce Steps to reproduce the behavior:

  1. open up combat log chat (ingame)
  2. open options and go to CHAT tab. select "Verbose Combat Messages"
  3. we now spawn a SBD droid which should have the ranged droideka weapon => /createNPC droid_sbd N 10
  4. attack the droid
  5. in melee range the droid will attack you with an unknown melee weapon (combat log)
  6. once you get outside melee range the droid will not be able to hit you anymore
  7. it looks like the SBD is forced to stay stationary
  8. when you pick another droid with a non-droid ranged weapon set as main weapon (like the normal battle droid) it works fine
  9. /createNPC droid_battle N 10

image https://github.com/ProjectSWGCore/Holocore/blob/master/serverdata/npc/npc_weapon.sdb#L374

image

Expected behavior A droid that has set a droid ranged weapon as main weapon should be able to use it and hit the player