Notes |
|
|
This is not a bug, at most you can call it a missing feature. What exactly do you need it for? I guess you need it to make the client display something and in that case you should put the display code in a CLIENTSIDE script. |
|
|
(0002430)
|
Dusk
|
2012-01-15 16:55
|
|
int ScreenH[32];
int ScreenW[32];
script 1 OPEN CLIENTSIDE {
ConsoleCommand ("puke -2 $vid_defwidth $vid_defheight");
}
script 2 (int w, int h) NET {
ScreenW[PlayerNumber()] = w;
ScreenH[PlayerNumber()] = h;
}
script 3 (void) {
int p = PlayerNumber();
SetHudSize (ScreenW[p], ScreenH[p], 1);
// hud scripting goes here
}
======================
Should work well enough as a work-around.
|
|
|
(0002582)
|
Borg
|
2012-02-10 16:20
(edited on: 2012-02-10 16:21) |
|
Nightfall: why you use puke -2 instead of puke 2?
Torr: well, of course I should, but ACS vars are not synced between
client and server, so I need to put some of the HUD display
to serverside.
I can give you wonderfull code I've done myself to display text message
perfectly on any resolution without ugly scaling. So they are look nice
and are properly positioned.
|
|
|
(0002584)
|
Qent
|
2012-02-10 21:50
|
|
From'http://zdoom.org/wiki/CCMDs:Debug#Testing [^]' :
"If the 'script' argument is a negative value, the script will be executed as if it had been called by ACS_ExecuteAlways; otherwise it will be executed as if called by ACS_Execute." |
|
|
|
> Torr: well, of course I should, but ACS vars are not synced between client and server, so I need to put some of the HUD display to serverside.
You can let the server set ACS vars on the clients by calling a CLIENTSIDE script.
> I can give you wonderfull code I've done myself to display text message perfectly on any resolution without ugly scaling. So they are look nice and are properly positioned.
And you should just let the clients execute that code themselves. |
|