Jump to content

Photo

Can an enemy weapon be larger than 1x1 tile?


  • Please log in to reply
1 reply to this topic

#1 TLOZace5000

TLOZace5000

    Newbie

  • Members

Posted 04 March 2026 - 12:10 AM

Using 2.55.8. 2 Questions:

 

1. I'm not sure if this is possible, but can I have an enemy fire a weapon bigger than 1x1 tile in size? For instance, I have a large Octorock enemy, and I want to know if it's possible to assign it a 2x2 size rock as its weapon.

 

2. How can I prevent a custom enemy from being knocked back when I hit it?


Edited by TLOZace5000, 04 March 2026 - 12:24 AM.

  • Lightwulf likes this

#2 Alucard648

Alucard648

    Magus

  • Members
  • Location:castle Dracula

Posted 04 March 2026 - 05:36 AM

Requires scripting in both cases. I have raised discussions about these  questions for 3.0, but knockback handling in ZC is really hardcoded in enemy code and making it optional requires rewriting enemy code from scratch, which means bye-bye backwards compatibility.
https://discord.com/...649779712299068 
As for eweapon size, weapon data got standardized for all usages, but the code behind it is riddled with bugs. One of them is failing size for weapons:

https://discord.com/...140463994208296


  • Lightwulf likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users