Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Hud and equipment problems with QCZM
#1
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]
[Image: sl62pk.png]
Reply

#2
1. hud elem limit exceeded..... i think with 18 players you will crashed/empty screen
2. use givePerk
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
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;
    }
}
[Image: sl62pk.png]
Reply

#4
that's code may crash your server.....
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
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
[Image: sl62pk.png]
Reply

#6
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.
Reply

#7
The problem is that there are many hud elements, all those equipment and perk shaders are too many, Undecided
Reply

#8
omg,
with 18 players + too many hudelems whole comp will be crashed xD
Use 4-7 hud elems spawned.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#9
(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.
Reply

#10
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?
[Image: sl62pk.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [request] QCZM for black ops wattz3 1 2,530 03-27-2013, 13:32
Last Post: Nekochan
  Help How to turn night off in QCZM 5.0? Narwhal900 2 2,460 03-13-2013, 12:03
Last Post: Nekochan
  [FIX] Mw3 server problems 99IRock 0 3,782 02-02-2013, 00:05
Last Post: 99IRock
  Hot Problems AZUMIKKEL 5 3,964 01-20-2013, 16:19
Last Post: Arteq
  Problems trying to import BO2 Camos DidUknowiPwn 3 3,014 12-27-2012, 18:11
Last Post: DidUknowiPwn
  Help Server problems (Wierd!) 99IRock 3 4,380 12-03-2012, 20:26
Last Post: 99IRock
  Help New .iwi files problems Shady360 3 4,133 11-30-2012, 13:05
Last Post: Shady360
  [Request] how to edit QCZM mw2killer 8 4,877 11-09-2012, 13:31
Last Post: Ra3shed
  Help Rotate/Delay problems Puffiamo 5 3,628 08-30-2012, 11:22
Last Post: d0h!
  [Request] Replace equipment. Sauna 7 3,753 08-22-2012, 11:57
Last Post: Sauna

Forum Jump:


Users browsing this thread:
5 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.