void cRemovals::Ghostmode() { //Textures and models to find IMaterial* C1 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\ct_gign\ct_gign", "Model textures"); IMaterial* C2 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\ct_gsg9\ct_gsg9", "Model textures"); IMaterial* C3 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\ct_sas\ct_sas", "Model textures"); IMaterial* C4 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\ct_urban\ct_urban", "Model textures"); IMaterial* T1 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\t_arctic\t_arctic", "Model textures"); IMaterial* T2 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\t_guerilla\t_guerilla", "Model textures"); IMaterial* T3 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\t_leet\t_leet", "Model textures"); IMaterial* T4 = HalFLife2.m_pMaterialSystem->FindMaterial("models\player\t_phoenix\t_phoenix", "Model textures"); // Lets make em niggas ghosts if(HalFLife2.m_psCvar->vis_ghostmode == 1) { C1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); C2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); C3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); C4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); } if(HalFLife2.m_psCvar->vis_ghostmode == 0) { C1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); C2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); C3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); C4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); } }
Announcement
Collapse
No announcement yet.
"Ghost mode"
Collapse
X
-
"Ghost mode"
Ok, tried AlphaModulate as in Asus walls, didnt work also tried this, doesnt work. I dont see why :/
Code:lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.Tags: None
-
xblade
Originally posted by therealgabeOk, tried AlphaModulate as in Asus walls, didnt work also tried this, doesnt work. I dont see why :/
Code:void cRemovals::Ghostmode() { //Textures and models to find IMaterial* C1 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayerct_gignct_gign", "Model textures"); IMaterial* C2 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayerct_gsg9ct_gsg9", "Model textures"); IMaterial* C3 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayerct_sasct_sas", "Model textures"); IMaterial* C4 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayerct_urbanct_urban", "Model textures"); IMaterial* T1 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayert_arctict_arctic", "Model textures"); IMaterial* T2 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayert_guerillat_guerilla", "Model textures"); IMaterial* T3 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayert_leett_leet", "Model textures"); IMaterial* T4 = HalFLife2.m_pMaterialSystem->FindMaterial("modelsplayert_phoenixt_phoenix", "Model textures"); // Lets make em niggas ghosts if(HalFLife2.m_psCvar->vis_ghostmode == 1) { C1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); C2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); C3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); C4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); T4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, true ); } if(HalFLife2.m_psCvar->vis_ghostmode == 0) { C1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); C2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); C3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); C4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T1->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T2->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T3->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); T4->SetMaterialVarFlag( MATERIAL_VAR_TRANSLUCENT, false ); } }
-
hackersrus
Im not exactly sure what you are trying to do, like if you wanted a slight off white color to remain or not...
If you are just trying to erase the models than just do
Code:void MaterialHacks(){ IMaterial* Material = NULL; char * name; char * group; for(int i=m_pMaterialSystem->FirstMaterial(); i < m_pMaterialSystem->GetNumMaterials(); i++){ Material = m_pMaterialSystem->GetMaterial(i); name = (char*) Material->GetName(); if(strstr( name, "player" )) Material->SetMaterialVarFlag( MATERIAL_VAR_NO_DRAW, true ); } }
Comment
-
Originally posted by hackersrus View PostIm not exactly sure what you are trying to do, like if you wanted a slight off white color to remain or not...
If you are just trying to erase the models than just do
Code:void MaterialHacks(){ IMaterial* Material = NULL; char * name; char * group; for(int i=m_pMaterialSystem->FirstMaterial(); i < m_pMaterialSystem->GetNumMaterials(); i++){ Material = m_pMaterialSystem->GetMaterial(i); name = (char*) Material->GetName(); if(strstr( name, "player" )) Material->SetMaterialVarFlag( MATERIAL_VAR_NO_DRAW, true ); } }
lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
Comment
-
s0ul
[EDIT]
if you tryd something like :
IMaterial* lol = m_pMaterialSystem->FindMaterial("\models\lol", "lol textures");
lol->Alphamodulate( 160.0f );
that dont work.. use this what hackersrus posted but change "SetMaterialVarFlag(..);" to
"Alphamodulate( 160.0f );" and test itLast edited by Guest; 06-28-2008, 10:22 PM.
Comment
-
Originally posted by fibre View Postlol its hoh admin/p7 smod i think? gtfo. he ask identical question on hoh forum...
It's Hardcore, HoH Admin and p7 Supermoderator.
I just dont understand why you are asking here since you just could ask hellboy to help you(who apparently coded the HoH VIP hack which includes ghost models). And I also guess you actually should know that RH doesn't like seeing HoH / P7 Admins / Smods in their own forum.
However, I don't care whether you are here or not.Last edited by Om1; 06-29-2008, 07:15 PM.
Originally posted by Dead8 digit steam acount willing to trade for any steam acount that everey one knows as a hacker lmao or BANNED ON ALOT OF SERVERS.
made by kimmi
Comment
-
oops i got busted. Well go ahead and ban me, thank you everyone who helped and replied to this thread =) Bai :Plolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
Comment
-
tuffie
Comment