Cci probleme

HOM

New Member
Joined
Sep 24, 2008
Messages
5
Best answers
0
Hello then I am spirit to create one characters ( CELL) and I have a problem with the transformation(conversion) when I wants to transform me nothing does without sound, no effect anything helped I please. :cry::cry::cry:



public @ClassInitTransformation ( Client, Level, bool:perfect )
{
new CORE[1];
CORE[0] = Client;

if ( Perfect )
{
switch ( Level )
{
case 1:
{
emit_sound(Client, CHAN_ITEM, "ecx.cell/t_imp2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
AddFx( Client, "fxAvatar", "create", 102, 1.0 );
set_task( 1.3, "fxScream", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
}
case 2:
{
emit_sound( Client, CHAN_ITEM, "ecx.cell/t_imp2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
AddFx( Client, "fxAvatar", "create", 101, 0.46041 );
set_task( 0.1, "fxAura", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );
}
case 3:
{
}
}
}

else
{
switch ( Level )
{
case 1:
{
}
case 2:
{
}
case 3:
{
}
case 4:
{
}
}
}
}


Sorry for my English I am French!!:-/
 
Last edited:
Former Forcepit Member :(
✔️ HL Verified
💻 Oldtimer
Joined
Aug 21, 2006
Messages
1,717
Best answers
0
Location
korriban
you have to do also do the fxcore as well and the sound core and the weapons core
 

HOM

New Member
Joined
Sep 24, 2008
Messages
5
Best answers
0
I had a probleme with Weapon core and classextension could you me help please :

MOD.Charge.core(4) : warning 217: loose indentation
MOD.Charge.core(9) : warning 217: loose indentation
MOD.Weapon.core(25) : warning 217: loose indentation
MOD.Weapon.core(68) : warning 217: loose indentation
MOD.Weapon.core(71) : warning 217: loose indentation
MOD.Weapon.core(90) : warning 217: loose indentation
MOD.Weapon.core(96) : warning 217: loose indentation
MOD.Weapon.core(99) : warning 217: loose indentation
MOD.Weapon.core(102) : warning 217: loose indentation
MOD.Weapon.core(108) : warning 217: loose indentation
MOD.Weapon.core(140) : warning 217: loose indentation
MOD.Weapon.core(186) : warning 217: loose indentation
.ClassExtension.core(157) : warning 217: loose indentation
.ClassExtension.core(198) : warning 203: symbol is never used: "publicFX_off"
.ClassExtension.core(198) : warning 203: symbol is never used: "publicfxAura"
.ClassExtension.core(198) : warning 203: symbol is never used: "publicfxBlow"
.ClassExtension.core(198) : warning 203: symbol is never used: "publicfxScream"





stock SPR_SHINE; // Shine

stock SPR_YELLOW_S; // Yellow Beam Head
stock SPR_YELLOW_T; // Yellow Beam Trail

stock SPR_GREEN_S; // Green Beam Head
stock SPR_GREEN_T; // Green Beam Head

stock SPR_KAME_S; // Kamehameha Beam Head
stock SPR_KAME_E; // Kamehameha Beam End
stock SPR_KAME_T; // Kamehameha Beam Trail
stock ICON_KAMEHAMEHA;
stock C_ICON_JUBEIKAME;
stock C_ICON_SUKAME;
stock SPR_GALLITGUN_S;
stock SPR_GALLITGUN_T;




stock MOD_Weapon_PreCache ()
{
SPR_SHINE = precache_model( "sprites/ecx.shine.spr" );
SPR_YELLOW_S = precache_model( "sprites/w_gb_y_s.spr" );
SPR_YELLOW_T = precache_model( "sprites/w_gb_y_t.spr" );

SPR_GREEN_S = precache_model( "sprites/w_gb_g_s.spr" );
SPR_GREEN_T = precache_model( "sprites/w_gb_g_t.spr" );

SPR_KAME_S = precache_model( "sprites/w_nkameha_s.spr" );
SPR_KAME_E = precache_model( "sprites/w_sukame_e.spr" );
SPR_KAME_T = precache_model( "sprites/w_sukame_t.spr" );

SPR_GALLITGUN_S = precache_model( "sprites/w_gallitgun_s.spr" );
SPR_GALLITGUN_T = precache_model( "sprites/w_gallitgun_t.spr" );

ICON_KAMEHAMEHA = getIconINDEX( "weapon_kamehameha");
C_ICON_JUBEIKAME = createCustomICON("c_weapon_jukame", { 3, 1 } );
C_ICON_SUKAME = createCustomICON("c_weapon_sukame", { 3, 1 } );
}
public @BaseWeaponCreation ( Client, BaseWeapon, const Name[] )
{
if ( equal( Name, "weapon_finalflash" ) && getClientLEVEL( Client ) == 4 )
{
setBeamChargeTime( BaseWeapon, 40 );
setBeamChargeKi( BaseWeapon, 20 );
setBeamSpeed( BaseWeapon, 3000 );
}
}

public @WeaponAdjust ( Client, Weapon, const Class[], PowerLevel, Charge )
{
{
/**
0 - Blue
1 - Green
2 - Orange
3 - Purple
4 - Yellow
5 - Red
6 - White
7 - None
**/

if ( equal( Class,"KiBlast" ) )

setWeaponXPC( 4 );
setWeaponXPM( 3.0 );


if ( equal( Class, "finalflash" ) )

//Super Kamehameha
setWeaponDMG( 20.0, 240.0, 0.04 );
} setWeaponXPM( 10.0 );
}

// >> SpiritBomb, DeathBall
public @WeaponBall ( Client, Weapon )
{
}

// >> KiBlast, BigBang, ...
public @WeaponBlast ( Client, Weapon, const Class[], Size )
{

if ( equal( Class, "KiBlast" ) && getClientLEVEL( Client ) )
{
set_msg_arg_int( 2, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 3, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 5, ARG_SHORT, SPR_YELLOW_T );
set_msg_arg_int( 6, ARG_SHORT, SPR_YELLOW_T );
} set_msg_arg_int( 4, ARG_SHORT, 12 );


if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 2 )
{
set_msg_arg_int( 2, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 3, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 5, ARG_SHORT, SPR_YELLOW_T );
set_msg_arg_int( 6, ARG_SHORT, SPR_YELLOW_T );
set_msg_arg_int( 4, ARG_SHORT, 15 );
}

else if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 1 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GREEN_T );
set_msg_arg_int( 8, ARG_SHORT, SPR_GREEN_T );
set_msg_arg_int( 4, ARG_SHORT, 15 );
}
}

// >> KameHameHa, FinalFlash, ...
public @WeaponBeam ( Client, Weapon, const Class[], Size )
{
if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 2 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_YELLOW_T );

//set_msg_arg_int( 9, ARG_BYTE, 12 );
}
else if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 1 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_GREEN_T );

//set_msg_arg_int( 9, ARG_BYTE, 12 );
}

if ( equal( Class, "finalflash" ) )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_KAME_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_KAME_E );
set_msg_arg_int( 7, ARG_SHORT, SPR_KAME_E );
set_msg_arg_int( 8, ARG_SHORT, SPR_KAME_T );

//set_msg_arg_int( 9, ARG_BYTE, 20 );
}

else if ( equal( Class, "gallitgun" ) && getClientLEVEL( Client ) == 3 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_GALLITGUN_T );

set_msg_arg_int( 9, ARG_BYTE, 7 );
}

else if ( equal( Class, "gallitgun" ) && getClientLEVEL( Client ) == 4 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_GALLITGUN_T );

set_msg_arg_int( 9, ARG_BYTE, 7 );
}
}

// >> Special Beam Cannon
public @WeaponSBC ( Client, Weapon, const Class[] )
{
}

// >> Adjust Death Messages
public @WeaponDeath ( Client, Killer, const Weapon[] )
{
if ( equal( Weapon, "greenattack" ) && getClientLEVEL( Killer ) == 0 )
set_msg_arg_string( 3, "blueattack" );
else if ( equal( Weapon, "greenattack" ) && getClientLEVEL( Killer ) >= 1 )
set_msg_arg_string( 3, "yellowattack" );
else if ( equal( Weapon, "finalflash" ) && getClientLEVEL( Killer ) >= 1)
set_msg_arg_string( 3, "Super Kamehameha" );
}
 

HOM

New Member
Joined
Sep 24, 2008
Messages
5
Best answers
0
I have another probleme with weapon core and FXcore writes his(her,its) to me:

stock SPR_SHINE; // Shine

stock SPR_YELLOW_S; // Yellow Beam Head
stock SPR_YELLOW_T; // Yellow Beam Trail

stock SPR_GREEN_S; // Green Beam Head
stock SPR_GREEN_T; // Green Beam Head

stock SPR_KAME_S; // Kamehameha Beam Head
stock SPR_KAME_E; // Kamehameha Beam End
stock SPR_KAME_T; // Kamehameha Beam Trail
stock ICON_KAMEHAMEHA;
stock C_ICON_JUBEIKAME;
stock C_ICON_SUKAME;
stock SPR_GALLITGUN_S;
stock SPR_GALLITGUN_T;




stock MOD_Weapon_PreCache ()
{
SPR_SHINE = precache_model( "sprites/ecx.shine.spr" );
SPR_YELLOW_S = precache_model( "sprites/w_gb_y_s.spr" );
SPR_YELLOW_T = precache_model( "sprites/w_gb_y_t.spr" );

SPR_GREEN_S = precache_model( "sprites/w_gb_g_s.spr" );
SPR_GREEN_T = precache_model( "sprites/w_gb_g_t.spr" );

SPR_KAME_S = precache_model( "sprites/w_nkameha_s.spr" );
SPR_KAME_E = precache_model( "sprites/w_sukame_e.spr" );
SPR_KAME_T = precache_model( "sprites/w_sukame_t.spr" );

SPR_GALLITGUN_S = precache_model( "sprites/w_gallitgun_s.spr" );
SPR_GALLITGUN_T = precache_model( "sprites/w_gallitgun_t.spr" );

ICON_KAMEHAMEHA = getIconINDEX( "weapon_kamehameha");
C_ICON_JUBEIKAME = createCustomICON("c_weapon_jukame", { 3, 1 } );
C_ICON_SUKAME = createCustomICON("c_weapon_sukame", { 3, 1 } );
}
public @BaseWeaponCreation ( Client, BaseWeapon, const Name[] )
{
if ( equal( Name, "weapon_finalflash" ) && getClientLEVEL( Client ) == 4 )
{
setBeamChargeTime( BaseWeapon, 40 );
setBeamChargeKi( BaseWeapon, 20 );
setBeamSpeed( BaseWeapon, 3000 );
}
}

public @WeaponAdjust ( Client, Weapon, const Class[], PowerLevel, Charge )
{
{
/**
0 - Blue
1 - Green
2 - Orange
3 - Purple
4 - Yellow
5 - Red
6 - White
7 - None
**/

if ( equal( Class,"KiBlast" ) )

setWeaponXPC( 4 );
setWeaponXPM( 3.0 );


if ( equal( Class, "finalflash" ) )

//Super Kamehameha
setWeaponDMG( 20.0, 240.0, 0.04 );
} setWeaponXPM( 10.0 );
}

// >> SpiritBomb, DeathBall
public @WeaponBall ( Client, Weapon )
{
}

// >> KiBlast, BigBang, ...
public @WeaponBlast ( Client, Weapon, const Class[], Size )
{

if ( equal( Class, "KiBlast" ) && getClientLEVEL( Client ) )
{
set_msg_arg_int( 2, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 3, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 5, ARG_SHORT, SPR_YELLOW_T );
set_msg_arg_int( 6, ARG_SHORT, SPR_YELLOW_T );
} set_msg_arg_int( 4, ARG_SHORT, 12 );


if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 2 )
{
set_msg_arg_int( 2, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 3, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 5, ARG_SHORT, SPR_YELLOW_T );
set_msg_arg_int( 6, ARG_SHORT, SPR_YELLOW_T );
set_msg_arg_int( 4, ARG_SHORT, 15 );
}

else if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 1 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GREEN_T );
set_msg_arg_int( 8, ARG_SHORT, SPR_GREEN_T );
set_msg_arg_int( 4, ARG_SHORT, 15 );
}
}

// >> KameHameHa, FinalFlash, ...
public @WeaponBeam ( Client, Weapon, const Class[], Size )
{
if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 2 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_YELLOW_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_YELLOW_T );

//set_msg_arg_int( 9, ARG_BYTE, 12 );
}
else if ( equal( Class, "greenattack" ) && getClientLEVEL(Client) == 1 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GREEN_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_GREEN_T );

//set_msg_arg_int( 9, ARG_BYTE, 12 );
}

if ( equal( Class, "finalflash" ) )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_KAME_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_KAME_E );
set_msg_arg_int( 7, ARG_SHORT, SPR_KAME_E );
set_msg_arg_int( 8, ARG_SHORT, SPR_KAME_T );

//set_msg_arg_int( 9, ARG_BYTE, 20 );
}

else if ( equal( Class, "gallitgun" ) && getClientLEVEL( Client ) == 3 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_GALLITGUN_T );

set_msg_arg_int( 9, ARG_BYTE, 7 );
}

else if ( equal( Class, "gallitgun" ) && getClientLEVEL( Client ) == 4 )
{
set_msg_arg_int( 4, ARG_SHORT, SPR_SHINE );
set_msg_arg_int( 5, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 6, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 7, ARG_SHORT, SPR_GALLITGUN_S );
set_msg_arg_int( 8, ARG_SHORT, SPR_GALLITGUN_T );

set_msg_arg_int( 9, ARG_BYTE, 7 );
}
}

// >> Special Beam Cannon
public @WeaponSBC ( Client, Weapon, const Class[] )
{
}

// >> Adjust Death Messages
public @WeaponDeath ( Client, Killer, const Weapon[] )
{
if ( equal( Weapon, "greenattack" ) && getClientLEVEL( Killer ) == 0 )
set_msg_arg_string( 3, "blueattack" );
else if ( equal( Weapon, "greenattack" ) && getClientLEVEL( Killer ) >= 1 )
set_msg_arg_string( 3, "yellowattack" );
else if ( equal( Weapon, "finalflash" ) && getClientLEVEL( Killer ) >= 1)
set_msg_arg_string( 3, "Super Kamehameha" );
}



MOD.Charge.core(4) : warning 217: loose indentation
MOD.Charge.core(9) : warning 217: loose indentation
MOD.Weapon.core(25) : warning 217: loose indentation
MOD.Weapon.core(68) : warning 217: loose indentation
MOD.Weapon.core(71) : warning 217: loose indentation
MOD.Weapon.core(90) : warning 217: loose indentation
MOD.Weapon.core(96) : warning 217: loose indentation
MOD.Weapon.core(99) : warning 217: loose indentation
MOD.Weapon.core(102) : warning 217: loose indentation
MOD.Weapon.core(108) : warning 217: loose indentation
MOD.Weapon.core(140) : warning 217: loose indentation
MOD.Weapon.core(186) : warning 217: loose indentation
.ClassExtension.core(157) : warning 217: loose indentation
.ClassExtension.core(198) : warning 203: symbol is never used: "publicFX_off"
.ClassExtension.core(198) : warning 203: symbol is never used: "publicfxAura"
.ClassExtension.core(198) : warning 203: symbol is never used: "publicfxBlow"
.ClassExtension.core(198) : warning 203: symbol is never used: "publicfxScream"
 

Users who are viewing this thread

Top Bottom