Nabend zusammen,
1 TuT hab ich noch gefunden bzw den Code auf meiner hdd beim aufräumen^^
1 TuT hab ich noch gefunden bzw den Code auf meiner hdd beim aufräumen^^
-- Waffenschwingfarbe ändern --
Hierfür öffnest du die Mover.cpp und findest folgenden Code:
Der Code
bedeutet WANN diese bestimmte farbe zeigt wird.
Hier zb bei +10
Heißt nix anders als welche farbe verwended wird.
Dieser code steht für Weiß, ist die farbe bei waffen +0
Ihr müsst also immer bei "D3DCOLOR_ARGB" die klammerwerte ändern.
Die Farben sind im RGB Format, das heißt es ist so aufgebaut:
Die werte gehen von 0 bis 255
Für alpha(=Licht) kann man zb 150 nehmen dann ist es Transparent (<- Tipp von Crasy :3)
Für RGB könnt ihr [Only registered and activated users can see links. Click Here To Register...] nutzen um farben zu suchen :)
danach einfach speichern und fertig.
Ihr könnt auch eigene stufen machen^^
Zb wenn ihr bei +6 einen anderen wollt als +5 setzt ihr:
über den code für +5 das es so aussieht:
Von Crasy:
Credit:
Text/Finden im SRC usw: Cross
Farbenliste + Alpha hinweis: .Crasy
Greetz
Code:
if( IsPlayer() )
{
int nOption = 0;
DWORD dwColor = D3DCOLOR_ARGB( 255, 255, 255, 255 );
if( IsActiveMover() )
{
CItemElem *pItemElem = GetWeaponItem();
if( pItemElem )
nOption = pItemElem->GetAbilityOption();
}
else
{
// Ÿ Ç÷¹À̾î´Â ÆäÀÌÅ©¾ÆÀÌÅÛÀ̹ǷΠ¿©±â¼*¿¡¼* °ªÀ» »©¿Â´Ù.
nOption = m_aEquipInfo[PARTS_RWEAPON].nOption & 0xFF;
}
if( nOption == 10 )
dwColor = D3DCOLOR_ARGB( 255, 255, 0, 0 );
else if( nOption == 9 )
dwColor = D3DCOLOR_ARGB( 255, 255, 150, 0 );
else if( nOption >= 7 )
dwColor = D3DCOLOR_ARGB( 255, 198, 0, 255 );
else if( nOption >= 5 )
dwColor = D3DCOLOR_ARGB( 255, 123, 82, 255 );
else if( nOption >= 3)
dwColor = D3DCOLOR_ARGB( 255, 129, 221, 251 );
else if( nOption >= 1 )
dwColor = D3DCOLOR_ARGB( 255, 201, 251, 190 );
else
dwColor = D3DCOLOR_ARGB( 255, 255, 255, 255 );
pModel->MakeSWDForce( PARTS_RWEAPON, pItemProp->dwItemKind3, (dwOption & MOP_HITSLOW) ? TRUE : FALSE, dwColor, m_fAniSpeed );
pModel->MakeSWDForce( PARTS_LWEAPON, pItemProp->dwItemKind3, (dwOption & MOP_HITSLOW) ? TRUE : FALSE, dwColor, m_fAniSpeed );
}
Code:
if( nOption == 10 )
Hier zb bei +10
Code:
D3DCOLOR_ARGB( 255, 255, 255, 255 );
Dieser code steht für Weiß, ist die farbe bei waffen +0
Ihr müsst also immer bei "D3DCOLOR_ARGB" die klammerwerte ändern.
Die Farben sind im RGB Format, das heißt es ist so aufgebaut:
Code:
ARGB( Alpha, Rot, Grün, Blau )
Für alpha(=Licht) kann man zb 150 nehmen dann ist es Transparent (<- Tipp von Crasy :3)
Für RGB könnt ihr [Only registered and activated users can see links. Click Here To Register...] nutzen um farben zu suchen :)
danach einfach speichern und fertig.
Ihr könnt auch eigene stufen machen^^
Zb wenn ihr bei +6 einen anderen wollt als +5 setzt ihr:
Code:
else if( nOption >= 6 )
dwColor = D3DCOLOR_ARGB( 255, 190, 0, 255 );
Code:
if( nOption == 10 )
dwColor = D3DCOLOR_ARGB( 255, 255, 0, 0 );
else if( nOption == 9 )
dwColor = D3DCOLOR_ARGB( 255, 255, 150, 0 );
else if( nOption >= 7 )
dwColor = D3DCOLOR_ARGB( 255, 198, 0, 255 );
else if( nOption >= 6 )
dwColor = D3DCOLOR_ARGB( 255, 190, 0, 255 );
else if( nOption >= 5 )
dwColor = D3DCOLOR_ARGB( 255, 123, 82, 255 );
else if( nOption >= 3)
dwColor = D3DCOLOR_ARGB( 255, 129, 221, 251 );
else if( nOption >= 1 )
dwColor = D3DCOLOR_ARGB( 255, 201, 251, 190 );
else
dwColor = D3DCOLOR_ARGB( 255, 255, 255, 255 );
pModel->MakeSWDForce( PARTS_RWEAPON, pItemProp->dwItemKind3, (dwOption & MOP_HITSLOW) ? TRUE : FALSE, dwColor, m_fAniSpeed );
pModel->MakeSWDForce( PARTS_LWEAPON, pItemProp->dwItemKind3, (dwOption & MOP_HITSLOW) ? TRUE : FALSE, dwColor, m_fAniSpeed );
}
Copy/paste nicht gerne gesehn ;)Quote:
Originally Posted by .CrasyHier habt ihr mal ne Liste, damit ihr net alles zusammen suchen müsst:
Alpha:
150 = Transparen
255 = Solid
000 = Invisible
Credit:
Text/Finden im SRC usw: Cross
Farbenliste + Alpha hinweis: .Crasy
Greetz