507 {
508 float temp = Math.Clamp( delta,0,1 );
509 float phase_new;
510 if (temp < 0.01 || temp > 0.99)
511 {
512 phase_new = Math.Round(temp);
513 }
514 else
515 phase_new = temp;
516
517 SetAnimationPhase("flag_mast",phase_new);
518
519 if (player)
521
522 GetInventory().SetSlotLock(InventorySlots.GetSlotIdFromString("Material_FPole_Flag"),phase_new != 1);
523
524 }
void LogAnimateFlag(float newPhase, notnull PlayerBase player)