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

◆ CreateChester()

void Terraria.Cinematics.DSTFilm.CreateChester ( FrameEventData evt)
inlineprivate

Definition at line 132 of file DSTFilm.cs.

133 {
134 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
135 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
136 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
137 FindFloorAt(_startPoint + new Vector2(110f, 0f), out var x, out var y);
138 y -= 240;
139 int num = Projectile.NewProjectile(null, x, y, 0f, 0f, 960, 0, 0f, Main.myPlayer, -1f);
140 _chester = Main.projectile[num];
141 _chester.velocity.Y = 4f;
142 _chester.velocity.X = 6f;
143 }
static void FindFloorAt(Vector2 position, out int x, out int y)
Definition DSTFilm.cs:186

References Terraria.Cinematics.DSTFilm._chester, Terraria.Cinematics.DSTFilm._startPoint, Terraria.Cinematics.DSTFilm.FindFloorAt(), Terraria.Main.myPlayer, Terraria.Projectile.NewProjectile(), and Terraria.Main.projectile.

Referenced by Terraria.Cinematics.DSTFilm.BuildSequence().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: