]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Other improvements to the multiple centerprints system
authorterencehill <piuntn@gmail.com>
Sun, 12 Jun 2011 22:25:37 +0000 (00:25 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 12 Jun 2011 22:25:37 +0000 (00:25 +0200)
commit94e06a728c24bc94f5a05cc8233fc0d920b980f2
treed54bfe3d2a9aee684bb69e9dc4af11868ee7430b
parent4f615980cfdc3333b5d1e7b379531e3bf6b4e683
Other improvements to the multiple centerprints system

Server now uses Send_CSQC_Centerprint_Generic instead of centerprint_builtin to send messages, so that it's possible to send more parameters (id, duration and countdown_num) without adding them to the msg (like the id before). If duration is not set, then the default duration will be used, that is hud_panel_centerprint_time.

In the countdown case, the server can send only the first msg of a series with the same id and the client can continue the countdown by its own; the next countdown messages can be sent by the server anyway, for example to change the countdown msg or for whatever reason. Countdown can be stopped by the server at any time by sending an empty msg (always same id).

The centerprint function in the client now is a wrapper for centerprint_generic, which actually handles the new parameters and add the msgs to the list.

Changes on minstagib_ammocheck are neccessary to correctly stop the out of ammo countdown.

Still other work to do anyway...
14 files changed:
qcsrc/client/Main.qc
qcsrc/client/hud.qc
qcsrc/client/main.qh
qcsrc/client/miscfunctions.qc
qcsrc/common/constants.qh
qcsrc/server/arena.qc
qcsrc/server/cl_client.qc
qcsrc/server/defs.qh
qcsrc/server/g_world.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator_nix.qc
qcsrc/server/t_items.qc
qcsrc/server/teamplay.qc
qcsrc/server/w_minstanex.qc