Page 2 of 2
Re: Simple Question.
Posted: May 22nd, 2008, 3:37 pm
by Dizzy
Alright, I know what to do from here then. I appriciate all your help drofder. I will be sure to put special thanks to drofder in the script along with YaNo
<3 all you guys...
Re: Simple Question.
Posted: May 22nd, 2008, 9:00 pm
by Dizzy
Alright well I got all the variables working and the hud shows up now but it doesnt update ?
My deaths go up as I die and the number on the hud stays the same.
Another thing is the server doesnt know im alive... It put that sessionstate thing in and it just ignores it and goes around it, lol
Re: Simple Question.
Posted: May 22nd, 2008, 9:23 pm
by Drofder2004
Since we are now working with the gametype files, it is easy. Scroll down until you find...
In there, we simply need to tell the mod to update the HuD.
Code: Select all
if(isDefined(attacker.killshud))
attacker.killshud setValue(attacker.kills);
if(isDefined(self.deathshud))
self.deathshud setValue(self.deaths);
Re: Simple Question.
Posted: May 22nd, 2008, 10:13 pm
by Dizzy
ok, I got that working now I have a problem where every round(this is SD)the huds reset

Re: Simple Question.
Posted: May 22nd, 2008, 10:20 pm
by Drofder2004
Try changing you "setValue(self.deaths)"
to
setValue(self.pers["deaths"])
Change all isntances of the type:
self.pers["kills"]
self.pers["deaths"]
attacker.pers["kills"]
etc
Re: Simple Question.
Posted: May 22nd, 2008, 11:22 pm
by Dizzy
Alright, I got that problem fixed but now I have another one...
ONE AFTER ANOTHER
If I try to set the value to a dvar Ex. (com_maxfps) it comes up and says its undefined. How I make it so it doesnt? I did this before but I lost the mod and I cant find the coding on the forums any where. I still have a screen shot of the mod

Re: Simple Question.
Posted: May 25th, 2008, 3:31 pm
by Drofder2004
You cannot detect client dvars only server.
I did this in the CoD2 version of CJ mod and although it worked on LAN servers (as technically, the player is the server) when placed online the mod failed to function correctly.
What you are trying, has been tried and will not work.