ItsMods

Full Version: Some images do not work with SetShader
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well, I do appreciate the help I am getting here people Smile

I have an issue with some images, for example,
if I were to precacheShader("cardicon_semtex"); and the SetShader("cardicon_semtex",100,100); it would show up as the default texture, the grid of aqua-green and brown squares. I have to use hud_us_semtex instead, and it is all pixellated and yuck looking.

This is the same for many other images,
waypoint_ammo (I have to use waypoint_ammo_friendly)
cardicon_claymore (I have to use weapon_claymore)

No alternate pics for these, with the exception of the extra low resolution ones that appear in the killfeed
cardicon_flare
weapon_cheytac_scope
weapon_fn2000_iron
and alot more.

here are a couple pics for you to see my pain. the alpha is meant to be like that, what you have selected in the inventory has an alpha of 1, otherwise, 0.25 i think.

What i mean by aqua-green and brown squares:
[Image: inventoryerror.png]

And, for an examplem, the crap looking icon (semtex one) i may have to resort to using:
[Image: semtexfailimage.png]

thanks
Not all shader names refer to the .IWIs . For example i found in the game files specialty_sitrep but it took me a lot to find that to make it work i need to precache specialty_bombsquad. But here you are the names of the icons you mentioned:
Code:
precacheShader("weapon_fn2000");
precacheShader("weapon_cheytac");
precacheShader("equipment_flare");
precacheShader("equipment_semtex");
EDIT:if you need more just post here or PM me and ill try to find them Smile

(01-03-2012, 15:43)MuLtiHuN7eR Wrote: [ -> ]Not all shader names refer to the .IWIs . For example i found in the game files specialty_sitrep but it took me a lot to find that to make it work i need to precache specialty_bombsquad. But here you are the names of the icons you mentioned:
Code:
precacheShader("weapon_fn2000");
precacheShader("weapon_cheytac");
precacheShader("equipment_flare");
precacheShader("equipment_semtex");
EDIT:if you need more just post here or PM me and ill try to find them Smile

Thank you so much. there is only one more that is troubling me, the tactical insertion icon. cardicon_flare does now work. i have tried it with equipment_ but no luck :/
(01-04-2012, 03:06)xplosiff Wrote: [ -> ]
(01-03-2012, 15:43)MuLtiHuN7eR Wrote: [ -> ]Not all shader names refer to the .IWIs . For example i found in the game files specialty_sitrep but it took me a lot to find that to make it work i need to precache specialty_bombsquad. But here you are the names of the icons you mentioned:
Code:
precacheShader("weapon_fn2000");
precacheShader("weapon_cheytac");
precacheShader("equipment_flare");
precacheShader("equipment_semtex");
EDIT:if you need more just post here or PM me and ill try to find them Smile

Thank you so much. there is only one more that is troubling me, the tactical insertion icon. cardicon_flare does now work. i have tried it with equipment_ but no luck :/

I think that the game uses the same icons for both equipment menu and the emblems because they look the same, but i may be wrong. I guess that sometimes cardicon_ works, sometimes equipment_
(01-04-2012, 11:28)MuLtiHuN7eR Wrote: [ -> ]
(01-04-2012, 03:06)xplosiff Wrote: [ -> ]
(01-03-2012, 15:43)MuLtiHuN7eR Wrote: [ -> ]Not all shader names refer to the .IWIs . For example i found in the game files specialty_sitrep but it took me a lot to find that to make it work i need to precache specialty_bombsquad. But here you are the names of the icons you mentioned:
Code:
precacheShader("weapon_fn2000");
precacheShader("weapon_cheytac");
precacheShader("equipment_flare");
precacheShader("equipment_semtex");
EDIT:if you need more just post here or PM me and ill try to find them Smile

Thank you so much. there is only one more that is troubling me, the tactical insertion icon. cardicon_flare does now work. i have tried it with equipment_ but no luck :/

I think that the game uses the same icons for both equipment menu and the emblems because they look the same, but i may be wrong. I guess that sometimes cardicon_ works, sometimes equipment_

i was wrong. equipment_flare did work, i must have mistyped it. thanks alot for your help Big Grin
Weapons + Shaders + OMA

Code:
    level.weapons = [];
    level.weapons["name"][0] = "onemanarmy_mp";
    level.weapons["shader"][0] = "weapon_onemanarmy";
    level.weapons["name"][1] = "pp2000_mp";
    level.weapons["shader"][1] = "weapon_pp2000";
    level.weapons["name"][2] = "p90_mp";
    level.weapons["shader"][2] = "weapon_p90";
    level.weapons["name"][3] = "tmp_mp";
    level.weapons["shader"][3] = "weapon_tmp";
    level.weapons["name"][4] = "masada_mp";
    level.weapons["shader"][4] = "weapon_masada";
    level.weapons["name"][5] = "mp5k_mp";
    level.weapons["shader"][5] = "weapon_mp5k";
    level.weapons["name"][6] = "ump45_mp";
    level.weapons["shader"][6] = "weapon_ump45";
    level.weapons["name"][7] = "wa2000_mp";
    level.weapons["shader"][7] = "weapon_wa2000";
    level.weapons["name"][8] = "rpg_mp";
    level.weapons["shader"][8] = "weapon_rpg7";
    level.weapons["name"][9] = "ak47_mp";
    level.weapons["shader"][9] = "weapon_ak47";
    level.weapons["name"][10] = "barrett_mp";
    level.weapons["shader"][10] = "weapon_barrett50cal";
    level.weapons["name"][11] = "cheytac_mp";
    level.weapons["shader"][11] = "weapon_cheytac";
    level.weapons["name"][12] = "m1014_mp";
    level.weapons["shader"][12] = "weapon_m1014";
    level.weapons["name"][13] = "coltanaconda_mp";
    level.weapons["shader"][13] = "weapon_colt_anaconda";
    level.weapons["name"][14] = "deserteagle_mp";
    level.weapons["shader"][14] = "weapon_desert_eagle";
    level.weapons["name"][15] = "deserteaglegold_mp";
    level.weapons["shader"][15] = "weapon_desert_eagle_gold";
    level.weapons["name"][16] = "kriss_mp";
    level.weapons["shader"][16] = "weapon_kriss";
    level.weapons["name"][17] = "m16_mp";
    level.weapons["shader"][17] = "weapon_m16a4";
    level.weapons["name"][18] = "sa80_mp";
    level.weapons["shader"][18] = "weapon_sa80";
    level.weapons["name"][19] = "m240_mp";
    level.weapons["shader"][19] = "weapon_m240";
    level.weapons["name"][20] = "m4_mp";
    level.weapons["shader"][20] = "weapon_m4_short";
    level.weapons["name"][21] = "beretta_mp";
    level.weapons["shader"][21] = "weapon_m9beretta";
    level.weapons["name"][22] = "mg4_mp";
    level.weapons["shader"][22] = "weapon_mg4";
    level.weapons["name"][23] = "uzi_mp";
    level.weapons["shader"][23] = "weapon_mini_uzi";
    level.weapons["name"][24] = "ranger_mp";
    level.weapons["shader"][24] = "weapon_ranger";
    level.weapons["name"][25] = "striker_mp";
    level.weapons["shader"][25] = "weapon_striker";
    level.weapons["name"][26] = "rpd_mp";
    level.weapons["shader"][26] = "weapon_rpd";
    level.weapons["name"][27] = "usp_mp";
    level.weapons["shader"][27] = "weapon_usp_45";
    level.weapons["name"][28] = "fn2000_mp";
    level.weapons["shader"][28] = "weapon_fn2000";
    level.weapons["name"][29] = "famas_mp";
    level.weapons["shader"][29] = "weapon_famas";
    level.weapons["name"][30] = "glock_mp";
    level.weapons["shader"][30] = "weapon_glock";
    level.weapons["name"][31] = "fal_mp";
    level.weapons["shader"][31] = "weapon_fnfal";
    level.weapons["name"][32] = "scar_mp";
    level.weapons["shader"][32] = "weapon_scar_h";
    level.weapons["name"][33] = "tavor_mp";
    level.weapons["shader"][33] = "weapon_tavor";
    level.weapons["name"][34] = "javelin_mp";
    level.weapons["shader"][34] = "weapon_javelin";
    level.weapons["name"][35] = "at4_mp";
    level.weapons["shader"][35] = "weapon_at4";
    level.weapons["name"][36] = "riotshield_mp";
    level.weapons["shader"][36] = "weapon_riotshield";
    level.weapons["name"][37] = "aa12_mp";
    level.weapons["shader"][37] = "weapon_aa12";
    level.weapons["name"][38] = "model1887_mp";
    level.weapons["shader"][38] = "weapon_model1887";
    level.weapons["name"][39] = "beretta393_mp";
    level.weapons["shader"][39] = "weapon_beretta393";
    level.weapons["name"][40] = "stinger_mp";
    level.weapons["shader"][40] = "weapon_stinger";
    level.weapons["name"][41] = "m79_mp";
    level.weapons["shader"][41] = "weapon_m79";
    level.weapons["name"][42] = "aug_mp";
    level.weapons["shader"][42] = "weapon_aug";
    level.weapons["name"][43] = "spas12_mp";
    level.weapons["shader"][43] = "weapon_spas12";
Q: what can you do with those "Weapons + Shaders"?
just to place images from the game on your screen?
(01-05-2012, 12:09)GscGunner Wrote: [ -> ]Q: what can you do with those "Weapons + Shaders"?
just to place images from the game on your screen?

No, I put those there because I saw that they are looking for the weapon images that appear when you create a class. In the list, there are all the game weapon shaders(there are also many other ones from cod4, but I havent added them to the list)
How's called this mod
Or give the link above to download