k0rd / Custom-Monsters-Plugin--Tshock-

Server Side Custom Monsters for Terraria
3 stars 1 forks source link

Shooterdata behavior #21

Open saybrook opened 11 years ago

saybrook commented 11 years ago

sample of what was used:

shooterdata:83:1:10:20 (shoots 1 pink laser each second with base damage of 20)

Fundamentally, it works. The strange thing as that any projectile used with any quantity doesnt seem to shoot "at" the player. It's more random firing than anything else.

using this mob:

name:Pixie Bee basetype:75 life:550 value:21000 buff:shine:60:1 shooterdata:44:1:10:40 ai:14 lavaimmune:true forest:115000 boss:true

with a different projectile (poison dart) gives same behavior. The mob shoots the projectile, but not necessarily at the player.

I think the question is really is that by design? My assumption is the mob would fire at the closest player.

Pychnight commented 11 years ago

I can confirm that the shooterdata behavior is missing the player, however the shooterdata is a little buggy and does not Support Bombs type projectiles of any kind.

Pychnight commented 11 years ago

This issue has been confirmed the laser shooting code is not targeting the player and adding lasers to any mob will cause the mob to have some kind of teleport effect.

Lastly when the mob dies or jumps off screen the laser will sometimes not clear or remove the laser and you will have a invisible mob shooting a laser.

i will post a video if any one wants to fix it.