Ejemplo n.º 1
0
//  static string[] WalkAnims  = { "WalkF", "WalkB", "WalkL", "WalkR" };

    static AnimSetPlayer()
    {
        WeaponAnimations.Add(E_WeaponType.Rifle,
                             new WeaponAnims()
        {
            FireIdle = "IdleFireSMG",
            FireRun  = "RunFireSMG",
            FireCoverCrouchCenter = "CoverCrouchFireCenterSMG",
            FireCoverCrouchLeft   = "CoverCrouchFireLeftSMG",
            FireCoverCrouchRight  = "CoverCrouchFireRightSMG",
            FireCoverStandLeft    = "CoverStandFireLeftSMG",
            FireCoverStandRight   = "CoverStandFireRightSMG",
            ReloadIdle            = "IdleReloadSMG",
            ReloadRun             = "IdleReloadSMG",
            ReloadCoverStand      = "IdleReloadSMG",
            ReloadCoverStandLeft  = "IdleReloadSMG",
            ReloadCoverStandRight = "IdleReloadSMG",
            ReloadCoverCrouch     = "IdleReloadSMG",
            SwitchIdle            = "IdleChangeWeapon",
            SwitchCoverCrouch     = "CoverCrouchChangeWeapon",
            SwitchCoverStand      = "CoverStandChangeWeapon"
        });

        WeaponAnimations.Add(E_WeaponType.Launcher,
                             new WeaponAnims()
        {
            FireIdle = "IdleFireRocket",
            FireRun  = "RunFireRocket",
            FireCoverCrouchCenter = "CoverCrouchFireCenterRocket",
            FireCoverCrouchLeft   = "CoverCrouchFireLeftRocket",
            FireCoverCrouchRight  = "CoverCrouchFireRightRocket",
            FireCoverStandLeft    = "CoverStandFireLeftRocket",
            FireCoverStandRight   = "CoverStandFireRightRocket",
            ReloadIdle            = "IdleReloadRocket",
            ReloadRun             = "IdleReloadRocket",
            ReloadCoverStand      = "IdleReloadRocket",
            ReloadCoverStandLeft  = "IdleReloadRocket",
            ReloadCoverStandRight = "IdleReloadRocket",
            ReloadCoverCrouch     = "CoverCrouchReloadRocket",
            SwitchIdle            = "IdleChangeWeapon",
            SwitchCoverCrouch     = "CoverCrouchChangeWeapon",
            SwitchCoverStand      = "CoverStandChangeWeapon"
        });

        WeaponAnimations.Add(E_WeaponType.Shotgun,
                             new WeaponAnims()
        {
            FireIdle = "IdleFireShotgun",
            FireRun  = "RunFireShotgun",
            FireCoverCrouchCenter = "CoverCrouchFireCenterShotgun",
            FireCoverCrouchLeft   = "CoverCrouchFireLeftShotgun",
            FireCoverCrouchRight  = "CoverCrouchFireRightShotgun",
            FireCoverStandLeft    = "CoverStandFireLeftShotgun",
            FireCoverStandRight   = "CoverStandFireRightShotgun",
            ReloadIdle            = "IdleReloadShotgun",
            ReloadRun             = "IdleReloadShotgun",
            ReloadCoverStand      = "IdleReloadShotgun",
            ReloadCoverStandLeft  = "IdleReloadShotgun",
            ReloadCoverStandRight = "IdleReloadShotgun",
            ReloadCoverCrouch     = "IdleReloadShotgun",
            SwitchIdle            = "IdleChangeWeapon",
            SwitchCoverCrouch     = "CoverCrouchChangeWeapon",
            SwitchCoverStand      = "CoverStandChangeWeapon"
        });

        WeaponAnimations.Add(E_WeaponType.Plasma,
                             new WeaponAnims()
        {
            FireIdle = "IdleFirePlasma",
            FireRun  = "RunFirePlasma",
            FireCoverCrouchCenter = "CoverCrouchFireCenterPlasma",
            FireCoverCrouchLeft   = "CoverCrouchFireLeftPlasma",
            FireCoverCrouchRight  = "CoverCrouchFireRightPlasma",
            FireCoverStandLeft    = "CoverStandFireLeftPlasma",
            FireCoverStandRight   = "CoverStandFireRightPlasma",
            ReloadIdle            = "ReloadPlasma",
            ReloadRun             = "ReloadPlasma",
            ReloadCoverStand      = "ReloadPlasma",
            ReloadCoverStandLeft  = "ReloadPlasma",
            ReloadCoverStandRight = "ReloadPlasma",
            ReloadCoverCrouch     = "ReloadPlasma",
            SwitchIdle            = "IdleChangeWeapon",
            SwitchCoverCrouch     = "CoverCrouchChangeWeapon",
            SwitchCoverStand      = "CoverStandChangeWeapon"
        });

        WeaponAnimations.Add(E_WeaponType.Sniper,
                             new WeaponAnims()
        {
            FireIdle = "IdleFireSniper",
            FireRun  = "RunFireSniper",
            FireCoverCrouchCenter = "CoverCrouchFireCenterSniper",
            FireCoverCrouchLeft   = "CoverCrouchFireLeftSniper",
            FireCoverCrouchRight  = "CoverCrouchFireRightSniper",
            FireCoverStandLeft    = "CoverStandFireLeftSniper",
            FireCoverStandRight   = "CoverStandFireRightSniper",
            ReloadIdle            = "IdleReloadSniper",
            ReloadRun             = "IdleReloadSniper",
            ReloadCoverStand      = "IdleReloadSniper",
            ReloadCoverStandLeft  = "IdleReloadSniper",
            ReloadCoverStandRight = "IdleReloadSniper",
            ReloadCoverCrouch     = "IdleReloadSniper",
            SwitchIdle            = "IdleChangeWeapon",
            SwitchCoverCrouch     = "CoverCrouchChangeWeapon",
            SwitchCoverStand      = "CoverStandChangeWeapon"
        });

        InjuryFront.Add("InjuryIdleFront1");
        InjuryFront.Add("InjuryIdleFront2");
        InjuryFront.Add("InjuryIdleFront3");

        DeathFront.Add("DeathIdleFront1");
//		DeathFront.Add("DeathIdleFront2");
//		DeathFront.Add("DeathIdleFront3");
    }