Tremulous Forum

Mods => Modding Center => Topic started by: Knowitall66 on December 13, 2007, 11:22:24 pm

Title: Values in Armoury
Post by: Knowitall66 on December 13, 2007, 11:22:24 pm
When i change the cost of a weapon in the 'tremulous.h' document. Ingame it doesnt change at armoury it still shows the oridginal value (but cost what i set it to). Where to i change what is shown in the armoury?
Title: Re: Values in Armoury
Post by: daenyth on December 14, 2007, 04:39:06 pm
Forgive me if this is stupid, but did you recompile your server?
Title: Re: Values in Armoury
Post by: Rocinante on December 14, 2007, 05:14:43 pm
I think - though I'm not positive - that the game server knows how much items cost for the purposes of buying and selling, but the client is what displays the menu showing how much things are.  The information isn't passed through from the server to the client.

If that's the case, then your modification to change the cost of weapons will work server-side, but clients will still see the original cost of them.  Unless you build a new cgame/ui and package them as a pk3 for clients to download, but most people will not bother downloading a pk3 for something like that (ie, your server will not see much traffic unless people *really* want to be there).

Check the source to verify if I'm just talking out of my rear before you believe it, I'm too lazy to do so right now :P
Title: Re: Values in Armoury
Post by: Thorn on December 14, 2007, 08:10:20 pm
Rocinante is right. All of the armoury stuff is handled by the client ui/ .
Title: Re: Values in Armoury
Post by: Plague on December 14, 2007, 08:37:35 pm
Any changes to files prefixed with cg_ (such as cg_misc.c) require the compiled cgame to be placed alongside the game qvm for a server to display any visual changes.
Title: Re: Values in Armoury
Post by: DarkEnix on December 15, 2007, 02:35:42 am
prices can be changed at ui/infopanes.def too
Title: Re: Values in Armoury
Post by: Knowitall66 on December 15, 2007, 02:40:38 am
Thanks Enix.
Title: Re: Values in Armoury
Post by: DarkEnix on December 15, 2007, 11:59:45 am
No Prob ^^