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

◆ UpdateFrame_GolfCart()

void Terraria.Mount.UpdateFrame_GolfCart ( Player mountedPlayer,
int state,
Vector2 velocity )
inlineprivate

Definition at line 4230 of file Mount.cs.

4231 {
4232 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
4233 //IL_0163: Unknown result type (might be due to invalid IL or missing references)
4234 //IL_0177: Unknown result type (might be due to invalid IL or missing references)
4235 //IL_017c: Unknown result type (might be due to invalid IL or missing references)
4236 //IL_011a: Unknown result type (might be due to invalid IL or missing references)
4237 //IL_012e: Unknown result type (might be due to invalid IL or missing references)
4238 //IL_0133: Unknown result type (might be due to invalid IL or missing references)
4239 //IL_013f: Unknown result type (might be due to invalid IL or missing references)
4240 //IL_0153: Unknown result type (might be due to invalid IL or missing references)
4241 //IL_0158: Unknown result type (might be due to invalid IL or missing references)
4242 if (state != 2)
4243 {
4244 if (_frameExtraCounter != 0f || _frameExtra != 0)
4245 {
4246 if (_frameExtraCounter == -1f)
4247 {
4249 _frameExtra = 1;
4250 }
4251 if ((_frameExtraCounter += 1f) >= 6f)
4252 {
4254 if (_frameExtra > 0)
4255 {
4256 _frameExtra--;
4257 }
4258 }
4259 }
4260 else
4261 {
4262 _frameExtra = 0;
4264 }
4265 }
4266 else if (velocity.Y >= 0f)
4267 {
4268 if (_frameExtra < 1)
4269 {
4270 _frameExtra = 1;
4271 }
4272 if (_frameExtra == 2)
4273 {
4275 }
4276 else if ((_frameExtraCounter += 1f) >= 6f)
4277 {
4279 if (_frameExtra < 2)
4280 {
4281 _frameExtra++;
4282 }
4283 }
4284 }
4285 if (state != 2 && state != 0 && state != 3 && state != 4)
4286 {
4287 EmitGolfCartWheelDust(mountedPlayer, mountedPlayer.Bottom + new Vector2((float)(mountedPlayer.direction * -20), 0f));
4288 EmitGolfCartWheelDust(mountedPlayer, mountedPlayer.Bottom + new Vector2((float)(mountedPlayer.direction * 20), 0f));
4289 }
4290 EmitGolfCartlight(mountedPlayer.Bottom + new Vector2((float)(mountedPlayer.direction * 40), -20f), mountedPlayer.direction);
4291 }
float _frameExtraCounter
Definition Mount.cs:302
static void EmitGolfCartlight(Vector2 worldLocation, int playerDirection)
Definition Mount.cs:4331
int _frameExtra
Definition Mount.cs:300
static void EmitGolfCartWheelDust(Player mountedPlayer, Vector2 legSpot)
Definition Mount.cs:4369

References Terraria.Mount._frameExtra, Terraria.Mount._frameExtraCounter, Terraria.Mount.EmitGolfCartlight(), and Terraria.Mount.EmitGolfCartWheelDust().

Referenced by Terraria.Mount.UpdateFrame().

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