ORDI
27th June 2014, 22:21
Hello everybody,
i have a problem with my Huds, "They work" but sometime in the server, some huds appears invisible.
i thought i had too many of Huds but nop with only 3 Huds in a mod zom: Money, streak and nade
these 3 Huds bugs often.
However the script Money and streak are the only that i isn't make. I took from killtube when i started to make scripts.
i tried to do some test about it:
1)On all the functions, put:
-thread maps\mp\gametypes\_scripts::money();
-thread maps\mp\gametypes\_scripts::streak();
it dont work.
2)i'm making a thing in menu ingame when it dont work:
6.reload Huds
script:
if(response == reload)
{
thread maps\mp\gametypes\_scripts::money();
thread maps\mp\gametypes\_scripts::streak();
self iprintlnbold("huds reloaded");
}
i have the message but it dont work..
someone have a idea ?
money script and streak script:
money()
{
self.hudmoney = newClientHudElem(self);
self.hudmoney.alignx = "right";
self.hudmoney.x = 610;
self.hudmoney.y = 285;
self.hudmoney.fontscale = 1.4;
self.hudmoney.label = &"^7Money^1: &&1^7$";
while(1)
{
wait(0.2);
if(isdefined(self))
{
self.hudmoney setValue(self.money);
}
else if(!isdefined(self))
{
break;
}
}
}
streak()
{
if(isdefined(self.streak))
self.streak destroy();
self.streak = newClientHudElem(self);
self.streak.alignx = "right";
self.streak.x = 610;
self.streak.y = 305;
self.streak.fontscale = 1.3;
while(1)
{
wait(0.5);
if(isdefined(self))
{
if(self.pers["team"] == "allies")
{
self.streak.label = &"^7KillStreak: ^1&&1";
self.streak setValue(self.killstreak);
}
else
if(self.pers["team"] == "axis")
{
self.streak.label = &"^7DeathStreak: ^1&&1";
self.streak setValue(self.deathstreak);
}
}
else if(!isdefined(self))
{
break;
}
}
}
And all the Huds are precached.
in .cfg:
set logfile "2"
set sv_fps "20"
developper 0
dedicated 2
i am actually on a local server but on a real server, it dont work also.
i hope you will help me ;)
ORDI
xfire: ordi37zk
i have a problem with my Huds, "They work" but sometime in the server, some huds appears invisible.
i thought i had too many of Huds but nop with only 3 Huds in a mod zom: Money, streak and nade
these 3 Huds bugs often.
However the script Money and streak are the only that i isn't make. I took from killtube when i started to make scripts.
i tried to do some test about it:
1)On all the functions, put:
-thread maps\mp\gametypes\_scripts::money();
-thread maps\mp\gametypes\_scripts::streak();
it dont work.
2)i'm making a thing in menu ingame when it dont work:
6.reload Huds
script:
if(response == reload)
{
thread maps\mp\gametypes\_scripts::money();
thread maps\mp\gametypes\_scripts::streak();
self iprintlnbold("huds reloaded");
}
i have the message but it dont work..
someone have a idea ?
money script and streak script:
money()
{
self.hudmoney = newClientHudElem(self);
self.hudmoney.alignx = "right";
self.hudmoney.x = 610;
self.hudmoney.y = 285;
self.hudmoney.fontscale = 1.4;
self.hudmoney.label = &"^7Money^1: &&1^7$";
while(1)
{
wait(0.2);
if(isdefined(self))
{
self.hudmoney setValue(self.money);
}
else if(!isdefined(self))
{
break;
}
}
}
streak()
{
if(isdefined(self.streak))
self.streak destroy();
self.streak = newClientHudElem(self);
self.streak.alignx = "right";
self.streak.x = 610;
self.streak.y = 305;
self.streak.fontscale = 1.3;
while(1)
{
wait(0.5);
if(isdefined(self))
{
if(self.pers["team"] == "allies")
{
self.streak.label = &"^7KillStreak: ^1&&1";
self.streak setValue(self.killstreak);
}
else
if(self.pers["team"] == "axis")
{
self.streak.label = &"^7DeathStreak: ^1&&1";
self.streak setValue(self.deathstreak);
}
}
else if(!isdefined(self))
{
break;
}
}
}
And all the Huds are precached.
in .cfg:
set logfile "2"
set sv_fps "20"
developper 0
dedicated 2
i am actually on a local server but on a real server, it dont work also.
i hope you will help me ;)
ORDI
xfire: ordi37zk