ItsMods

Full Version: Hud and equipment problems with QCZM
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am working on QCZM 5.2, but since im not some OMA modder there are things that i dont know how to fix:
1. The cash indicator doesnt show anymore since ive added icons for grenades and equipment(sometimes is showing on spawning for a bit)
2. I have problems with the c4:
-when i buy stun grenades and after that a c4 the grenades just vanish
-but if i buy c4 fisrt and then nades everything is ok until i throw one of them and the other disappears
[Image: dwza1g.jpg]
1. hud elem limit exceeded..... i think with 18 players you will crashed/empty screen
2. use givePerk
When i am zombie the smoke and the throwing knife works perfect. Here is the thread that checks the player`s equipment:
Code:
doEquipment()
{
    self endon("death");
    self endon("disconnect");

    wait .25;

    if(self.hasEquip == 1)
    {
        self maps\mp\perks\_perks::givePerk( "c4_mp" );
        self setWeaponAmmoClip("c4_mp", 1);
    }
    else if(self.hasEquip == 2)
    {
        self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
        self setWeaponAmmoClip("throwingknife_mp", 1);
    }
    if(self.hasNade == 1)
    {
        self SetOffhandSecondaryClass( "smoke" );
        self giveWeapon("concussion_grenade_mp");
        self setWeaponAmmoClip("concussion_grenade_mp", 1);
    }
    else if(self.hasNade == 2)
    {
        self SetOffhandSecondaryClass( "smoke" );
        self giveWeapon("smoke_grenade_mp");
        self setWeaponAmmoClip("smoke_grenade_mp", 1);
    }

    while(1)
    {
        if(self getWeaponAmmoClip("c4_mp") >= 1)
        {
            self.hasEquip = 1;
            self.equipment setShader("weapon_c4");
        }
        else if(self getWeaponAmmoClip("throwingknife_mp") == 1)
        {
            self.hasEquip = 2;
            self.equipment setShader("equipment_throwing_knife");
        }
        else if(self getWeaponAmmoClip("c4_mp") == 0 || self getWeaponAmmoClip("throwingknife_mp") == 0)
        {
            self.hasEquip = 0;
            self.equipment setText("");
        }
        if(self getWeaponAmmoClip("concussion_grenade_mp") == 1)
        {
            self.hasNade = 1;
            self.grenade setShader("weapon_concgrenade");
        }
        else if(self getWeaponAmmoClip("smoke_grenade_mp") == 1)
        {
            self.hasNade = 2;
            self.grenade setShader("weapon_smokegrenade");
        }
        else if(self getWeaponAmmoClip("concussion_grenade_mp") == 0 || self getWeaponAmmoClip("smoke_grenade_mp") == 0)
        {
            self.hasNade = 0;
            self.grenade setText("");
        }
        wait .25;
    }
}
that's code may crash your server.....
If you have idea of better checking can you please tell me? The thread is almost the same as it was in QCZM 5.0
eeehm.. isn't that a known bug of qczm 5.0? that you can't see your cash and you have it unlimited? because i have that glitch/bug thingy sometimes.
The problem is that there are many hud elements, all those equipment and perk shaders are too many, Undecided
omg,
with 18 players + too many hudelems whole comp will be crashed xD
Use 4-7 hud elems spawned.
(01-05-2012, 12:12)Se7en Wrote: [ -> ]omg,
with 18 players + too many hudelems whole comp will be crashed xD
Use 4-7 hud elems spawned.

Only 4-7? Huh Thats poor.
And since this thread has 2/4 of my problems/questions im gonna tell my last ones:
3. I want the redhand icon on the hud to be changing because of the team the player is
4. Wanted to put KILL icon on top of the last human(used some of the _sab.gsc code but it didnt show up)
edit: does the minimap count as hud element?
Pages: 1 2