Re: How to change human race
Posted: Wed Dec 31, 2008 4:17 pm
for the dizzniess and not getting flashed find in race_human.inl
and replace with
for more invisble find this in constants.inl
and edit it how ever u want
level 1= 200
level 2=175
level 3=135
level 4=120
the lower the number the more invisble they become
the inside numbers wont be the same for u since i customized my wc3 so just search for new const p_invisibility[3] and ull get it
Code: Select all
// Function will check to see if a user is stuck in a wall
public _HU_ULT_BlinkStuck( parm[] )
{
new id = parm[0]
if ( !p_data_b[id][PB_ISCONNECTED] )
{
return;
}
new vOldLocation[3], vOrigin[3];
vOldLocation[0] = parm[1];
vOldLocation[1] = parm[2];
vOldLocation[2] = parm[3];
get_user_origin( id, vOrigin );
// Then the user is stuck :/
if ( parm[4] == vOrigin[2] )
{
//set_hudmessage( 255, 255, 10, -1.0, -0.4, 1, 0.5, BLINK_COOLDOWN, 0.2, 0.2, 5 );
WC3_StatusText( id, 0, "%L", id, "TELEPORT_FAILED_BAD_DESTINATION" );
// This will try to move the user back - if this fails then they will be teleported back to their spawn instead of left stuck!
SHARED_Teleport( id, vOldLocation );
ULT_ResetCooldown( id, floatround(BLINK_COOLDOWN) );
}
// Otherwise they teleported correctly!
else
{
// Sprays white bubbles everywhere
new vStartOrigin[3];
vStartOrigin[0] = vOrigin[0];
vStartOrigin[1] = vOrigin[1];
vStartOrigin[2] = vOrigin[2] + 40;
Create_TE_SPRITETRAIL( vStartOrigin, vOrigin, g_iSprites[SPR_FLARE], 30, 10, 1, 50, 10 );
// Flash the player
if ( get_pcvar_num( CVAR_wc3_blink_dizziness ) == 1 )
{
Create_ScreenFade( id, (1<<15), (1<<10), (1<<12), 0, 0, 255, 180 );
}
// Lets just flash them with a nice white screen :)
else
{
Create_ScreenFade( id, (1<<15), (1<<10), (1<<12), 255, 255, 255, 255 );
}
}
return;
}
Code: Select all
// Function will check to see if a user is stuck in a wall
public _HU_ULT_BlinkStuck( parm[] )
{
new id = parm[0]
if ( !p_data_b[id][PB_ISCONNECTED] )
{
return;
}
new vOldLocation[3], vOrigin[3];
vOldLocation[0] = parm[1];
vOldLocation[1] = parm[2];
vOldLocation[2] = parm[3];
get_user_origin( id, vOrigin );
// Then the user is stuck :/
if ( parm[4] == vOrigin[2] )
{
//set_hudmessage( 255, 255, 10, -1.0, -0.4, 1, 0.5, BLINK_COOLDOWN, 0.2, 0.2, 5 );
WC3_StatusText( id, 0, "%L", id, "TELEPORT_FAILED_BAD_DESTINATION" );
// This will try to move the user back - if this fails then they will be teleported back to their spawn instead of left stuck!
SHARED_Teleport( id, vOldLocation );
ULT_ResetCooldown( id, floatround(BLINK_COOLDOWN) );
}
// Otherwise they teleported correctly!
else
{
// Sprays white bubbles everywhere
new vStartOrigin[3];
vStartOrigin[0] = vOrigin[0];
vStartOrigin[1] = vOrigin[1];
vStartOrigin[2] = vOrigin[2] + 40;
Create_TE_SPRITETRAIL( vStartOrigin, vOrigin, g_iSprites[SPR_FLARE], 30, 10, 1, 50, 10 );
}
return;
}
Code: Select all
new const p_invisibility[4] = {200,175,135,120} // Invisibility (skill 1)
level 1= 200
level 2=175
level 3=135
level 4=120
the lower the number the more invisble they become
the inside numbers wont be the same for u since i customized my wc3 so just search for new const p_invisibility[3] and ull get it