CCI transformation effects...

Former Forcepit Member :(
✔️ HL Verified
💻 Oldtimer
Joined
Aug 21, 2006
Messages
1,716
Best answers
0
Code:
public @ClassInitTransformation ( Client, Level, bool:Perfect )
{
    if ( Perfect )
    {
        switch ( Level )
        {
            case 1:
            {
            }
            case 2:
            {
            }
        }
    }

    else
    {
        switch ( Level )
        {
            case 1:
            {
            }
            case 2:
            {
            }
        }
you need to add your fx here to look like
Code:
public @ClassInitiateTransformation ( Client, Level, bool:Perfect )
{
    new CORE[ 1 ];
    CORE[ 0 ] = Client;

    if ( Perfect )
    {
        switch ( Level )
        {
            case 1:
            {
                emit_sound( Client, CHAN_ITEM, "ecx.gohan-ad/t_scream.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
                AddFx( Client, "fxAvatar", "create", 102, 1.0 );
                //setClientANIMATION(Client,102,0.2);
                set_task( 0.1, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                set_task( 1.0, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                set_task( 2.0, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                set_task( 0.1, "fxAura", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

            }

            case 2:
            {
                emit_sound( Client, CHAN_ITEM, "ecx.gohan-ad/t_scream.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
                AddFx( Client, "fxAvatar", "create", 102, 1.0 );
                //setClientANIMATION(Client,102,0.2);
                AddFx( Client, "fxLgtField", 0.2, 2, 255, 100 );
                for ( new Float:i=0.0; i<=3.0; i++ )
                    set_task( i, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                set_task( 0.1, "fxAura", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

            }

            // case 3: not needed cuz there is no perfect mystic trans

        }
    }

    else
    {
        switch ( Level )
        {
            case 1:
            {
                emit_sound( Client, CHAN_ITEM, "ecx.gohan-ad/t_ssj.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
                setClientHiddenPOWERUP( Client, true );
                AddFx( Client, "fxAvatar", "create", 101, 1.0 );
                //setClientANIMATION(Client,102,0.2);

                set_task( 0.1, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 2.1, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",4 );
                set_task( 2.2, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",4 );

                set_task( 2.0, "fxAura", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                //set_task( 8.8, "fxScream", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                for ( new Float:i=4.0; i<=8.0; i++ )
                    set_task( i, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

            }

            case 2:
            {
                emit_sound( Client, CHAN_ITEM, "ecx.gohan-ad/t_ssj2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
                setClientHiddenPOWERUP( Client, true );
                AddFx( Client, "fxAvatar", "create", 101, 0.7 );

                set_task( 0.0, "fxAura2", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 10.0, "fxAura3", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 0.1, "fxLgt", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                for ( new Float:i=10.0; i<=20.0; i++ )
                    set_task( i, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 2.4, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",6 );
                set_task( 2.5, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",5 );

                set_task( 19.5, "fxFinalBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

            }
            case 3:
            {
                emit_sound( Client, CHAN_ITEM, "ecx.gohan-ad/t_myst.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
                setClientHiddenPOWERUP( Client, true );
                AddFx( Client, "fxAvatar", "create", 101, 0.5 );

                set_task( 0.0, "fxAura2", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 5.0, "fxAura3", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 0.1, "fxLgt", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
                for ( new Float:i=5.0; i<=16.0; i++ )
                    set_task( i, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

                set_task( 2.4, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",6 );
                set_task( 2.5, "fxBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",5 );

                set_task( 16.5, "fxFinalBlow", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );

            }
yours needs to look like this with your own fx
 

Users who are viewing this thread

Top