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

◆ GetShootingFrame()

int Terraria.NPC.GetShootingFrame ( float circleY)
inline

Definition at line 71918 of file NPC.cs.

71919 {
71920 int num = -4;
71921 if (circleY < -0.3f)
71922 {
71923 num = 1;
71924 }
71925 if (circleY < -0.1f)
71926 {
71927 num = 0;
71928 }
71929 if (circleY > 0.1f)
71930 {
71931 num = 2;
71932 }
71933 if (circleY > 0.3f)
71934 {
71935 num = 3;
71936 }
71937 if (type == 228 || type == 229 || type == 209 || type == 22 || type == 368)
71938 {
71939 if (num == -4)
71940 {
71941 num = 1;
71942 }
71943 if (circleY >= -0.1f)
71944 {
71945 num++;
71946 }
71947 }
71948 return num;
71949 }
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990

References Terraria.NPC.type.

Referenced by Terraria.NPC.VanillaFindFrame().

+ Here is the caller graph for this function: