Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetShootingFrame()

int Terraria.NPC.GetShootingFrame ( float circleY)
inline

Definition at line 58831 of file NPC.cs.

58832 {
58833 int num = -4;
58834 if (circleY < -0.3f)
58835 {
58836 num = 1;
58837 }
58838 if (circleY < -0.1f)
58839 {
58840 num = 0;
58841 }
58842 if (circleY > 0.1f)
58843 {
58844 num = 2;
58845 }
58846 if (circleY > 0.3f)
58847 {
58848 num = 3;
58849 }
58850 if (type == 228 || type == 229 || type == 209 || type == 22 || type == 368)
58851 {
58852 if (num == -4)
58853 {
58854 num = 1;
58855 }
58856 if (circleY >= -0.1f)
58857 {
58858 num++;
58859 }
58860 }
58861 return num;
58862 }
int type
Definition NPC.cs:445

References Terraria.NPC.type.

Referenced by Terraria.NPC.FindFrame().