ItsMods

Full Version: Change weapon names
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to change the weapon name (displayed @ ammo hud thingy)
like:

PHP Code:
doWeaponNames()
{
    
self.WeaponName CreateFontString("objective"1);
    
self.WeaponName setpoint("RIGHT""BOTTOM"00);
    
self.WeaponName setText(" ");
    
self.WeaponName.alpha 0;
    
self thread WeaponNames();
    
wait 1;
    
self.WeaponName.alpha 1;
    
    for(
i=self.weaponnumber;i>-1;i--)
    {
        if(
self getCurrentWeapon() == self.wep[i])
        {
            
self.WeaponName setText(self.weaponNameID[i]);
        }
    }
}

WeaponNames()
{
    
self.weaponnumber 5;

    
self.wep = [];
    
self.wep[0] = "mp5k_mp";
    
self.wep[1] = "ak74u_mp";
    
    
self.weaponNameID = [];
    
self.weaponNameID[0] = "Blabla name";
    
self.weaponNameID[1] = "AK74 F#@K U!";


but i dont want the real names to show up Sad

edit: yes i know that this text is not in the right position Tongue
only with CSV files, or wait ModTools
(03-07-2011, 10:07)Se7en Wrote: [ -> ]only with CSV files, or wait ModTools

Probably not. Isn't the HUD also drawn with GSC?
If yes, you can just edit it there.
..
level.hardcoreMode = 1;