Fix use of HEIGHT_DIALOGBORDER:
- its value was ignored (always used the default value 1)
- the menu didn't handle correctly it anyway
Note:
MARGIN_BOTTOM, MARGIN_LEFT and MARGIN_RIGHT must be changed according to HEIGHT_DIALOGBORDER, as the code DON'T handle directly the border size, while MARGIN_TOP is intended as the distance from the title bar and doesn't depend on HEIGHT_DIALOGBORDER.
FONTSIZE_TITLE and HEIGHT_TITLE must NOT be changed according to HEIGHT_DIALOGBORDER because they change the borders too (I don't know why they behave in this way).
Avoid double checks of numModels by calling go in configure instead of in loadCvars. Then changed a bit the code to be cleaner (now loadCvars doesn't do part of go's work).
Remove a wrong and never executed piece of code within minstagib_items.
Reason: the function minstagib_items is intended to be called (and it's called I've verified) only on spawned items loading the map, never on dropped weapons.
If it wasn't so, that code would have spawned WRONGLY a nex instead of a minstanex (there is a typo).
The code that does correctly the job obviously exists and can be found in the function Item_GiveTo.
Limit health/armor in minstagib:
- limit health and armor that can be given by the command give.
- do not allow to get more then 999 extralives (it could happen after u cheated with give command).
Fix the placeholders %y, %l, %d (used in chat to find the nearest weapons/powerups) to find megahealth in minstagib (hackishly labeled IT_NAILS) and Fuel regenerator (IT_FUEL_REGEN).
Fix wrong messages in the console (and in the weapons panel too) playing certain game modes, telling you "You do not have the weapon X" instead of "The weapon X is NOT AVAILABLE in this map", for really not available weapons.
It can be easily noticed in minstagib.
Fix a bug in the address field of the Servers dialog:
After the info dialog of a server has been opened by right click (not by space), the address field cannot be edited anymore.
listbox believed mouse key was still pressed after the dialog spawned.
Rudolf Polzer [Fri, 2 Jul 2010 07:45:51 +0000 (09:45 +0200)]
cvar leadlimit_and_fraglimit: if set, both leadlimit and fraglimit must be reached to the end the game (or, of course, timelimit), like in table tennis
In case timelimit is 0 (infinite) do not allow extendmatchtime to increase timelimit, therefore making it finite.
Still in this case, do not allow to call a vote for extendmatchtime or reducematchtime, as they don't do anything anyway.
Mircea Kitsune [Thu, 1 Jul 2010 00:26:25 +0000 (03:26 +0300)]
Make the button swap update when refiring the weapon too, so we won't have to switch to another weapon and back to see the change. This fixes all known issues with the script :)
Mircea Kitsune [Wed, 30 Jun 2010 13:14:34 +0000 (16:14 +0300)]
This branch will include a weapon code hook to be used with cvars, together with a script which will allow swapping the weapon firing buttons. eg. Want the Mortar to shoot bouncy grenades with primary and explosive grenades with secondary? Set cl_reversefirebuttons_grenadelauncher 1. Committing the cvars for now...
terencehill [Sat, 26 Jun 2010 00:11:50 +0000 (02:11 +0200)]
Fix this bug: playing Arena the field score is never updated in the scoreboard. The cause is a typo, it was used player_cnt (count of CA players) instead of player_count (count of players in every game mode). That's why I've also renamed player_cnt in ca_players.
While I was at it I've made a small clean up to arena.qc, trimming some trailing space and converting some
FOR_EACH_CLIENT(self) if (self.classname == "player")
into
FOR_EACH_PLAYER(self).
terencehill [Fri, 25 Jun 2010 23:28:04 +0000 (01:28 +0200)]
Fix the K_KP_* constants, they have different values from the corresponding ones in the engine file keys.h (where the assignments are implicit).
Now that they are correct, allow the use of numpad keys in the menu.
Mircea Kitsune [Thu, 24 Jun 2010 14:32:50 +0000 (17:32 +0300)]
Sadly, we need to filter via button_attack2 too. If we don't the reticle also shows when zooming with the zoom button other than the Nex alt fire. We need a different way to fade out I think.
Rudolf Polzer [Tue, 22 Jun 2010 15:00:00 +0000 (17:00 +0200)]
Revert most of the balance changes vs nexuiz 2.5 balance. Feel free to revert parts of this commit, or to improve balance based on this - this is just to get rid of the worst problems.