My CCI Fail

New Member
Joined
Apr 26, 2009
Messages
3
Best answers
0
1st off i would like to say thanks to anyone who would be willing to read this and find out the problem. Okay my problem is, I made a character with CCI I started to code the transformation and when I compile it, it works perfectly. But when i go into the game to play the character, I start to trans and nothing happens no sounds no - nothing. And then when i try to descend while trans-ing it crashes my game. I will put the Classextension.core & Fx.core in here if thats all that is needed but if there is anything else i need to put in here just say so. The Classextension.core will start from ClassInitTrans

Code:
public @ClassInitTransformation ( Client, Level, bool:Perfect )
{	
	new CORE[ 1 ];
	CORE[ 0 ] = Client;
	
	if ( Perfect )
	{
		switch ( Level )
		{
			case 1:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/tp_ssj.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxaura", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
			case 2:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/tp_ssj2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxaura1", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
			case 3:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/tp_ssj3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxaura2", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
			case 4:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/t_ssj4end.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxaura3", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
		}
	}

	else
	{
		switch ( Level )
		{
			case 1:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/t_ssj.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxPowerup", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			set_task( 0.0, "fxaura", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
			case 2:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/t_ssj2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM); 
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxPowerup", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			set_task( 0.0, "fxaura1", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
			case 3:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/t_ssj3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM); 
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxPowerup", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			set_task( 0.0, "fxaura2", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
			case 4:
			{
			emit_sound( Client, CHAN_ITEM, "ecx.goku-ts/t_ssj4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM); 
			set_task( 0.0, "fxavatar", uniqueTaskID( Client, 100), CORE, 1, "a", 1);
			set_task( 0.0, "fxPowerup", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			set_task( 0.0, "fxaura3", uniqueTaskID( Client, 100), CORE, 1, "a", 1); 
			}
		}
	}
}

public @ClassFinishTransformation ( Client, Level )
{ 
AddFx( Client, "fxPowerWave", "sprites/white.spr", 0, 0, 150, 30, 250 );

remove_task( uniqueTaskID( Client, 100));

FX_off( Client ); 
new CORE[ 1 ];
CORE[ 0 ] = Client;
if( Level == 4 ) 
AddFx( Client, "fxPowerWave", "sprites/white.spr", 150, 0, 0, 30, 250 );

remove_task( uniqueTaskID( Client, 100));

FX_off( Client );
}
public @ClassCancelTransformation ( Client, Level )
{
remove_task( uniqueTaskID( Client, 100));
FX_off( Client ); 
}
I know there are some FX not used i didn't get the time to finish because it didn't work as planned
Code:
public fxblow ( Core[] )
{
AddFx( Core[0], "fxBlow" );
}
public fxavatar( Core[] )
{
AddFx( Core[0], "fxAvatar", "create", 102, 1.0); 
}
public fxPowerup( Core[] )
{
AddFx( Core[0], "fxPowerup", 0, 0, 150 );
return 1; 
}
public fxPowerup1( Core[] )
{
AddFx( Core[0], "fxPowerup", 150, 0, 0 );
return 1; 
}
public fxaura( Core[] )
{
AddFx( Core[0], "fxModelEntity", "models/evolution/Auras/EvilSSJ.mdl", 0, 0, 30.0, 0, 0, 0, 1.0, 0.3, 0, 4);
return 1;
}
public fxaura1( Core[] )
{
AddFx( Core[0], "fxModelEntity", "models/evolution/Auras/EvilSSJ2.mdl", 0, 0, 30.0, 0, 0, 0, 1.0, 0.3, 0, 4);
return 1;
}
public fxaura2( Core[] )
{
AddFx( Core[0], "fxModelEntity", "models/evolution/Auras/EvilSSJ3.mdl", 0, 0, 30.0, 0, 0, 0, 1.0, 0.3, 0, 4);
return 1;
}
public fxaura3( Core[] )
{
AddFx( Core[0], "fxModelEntity", "models/evolution/Auras/EvilSSJ4.mdl", 0, 0, 30.0, 0, 0, 0, 1.0, 0.3, 0, 4);
return 1;
}
public fxLightning( Core[] )
{
AddFx( Core[0], "fxLightning", "sprites/lgtning.spr", 2,50, 150, 200, 10, 10, 250, 10, 100, 0);
}
public fxLgtField( Core[] )
{
AddFx( Core[0], "fxLgtField", 0.4, 1, 255, 20, 20);
}
public FX_off( Client )
{
RemFx( Client, "fxAvatar", 0);
RemFx( Client, "fxPowerup", 0);
RemFx( Client, "fxAura", 0);
RemFx( Client, "fxLgtField", 0);
RemFx( Client, "fxLightning", 0); 
return 1;
}
 

Users who are viewing this thread

Top Bottom