MantisBT - Zandronum
View Issue Details
0002805Zandronum[All Projects] Suggestionpublic2016-08-15 21:132016-10-15 15:43
Korshun 
 
normalminoralways
closedduplicate 
 
 
0002805: Add a way to execute a clientside script for a single client
Right now, ACS_ExecuteAlways launches a clientside script for ALL players. So to make that script affect only a given player, modders need to write the following boilerplate:

script 1 (int player, ...) CLIENTSIDE
{
    if (player != ConsolePlayerNumber())
        terminate;
    ...
}

It would be better to have a function that only launches the script for the specified client, like ACS_ExecuteOnClient(int player, int script, int arg1, int arg2, int arg3).

It would eliminate useless server commands being sent to other, potentially 63, clients, and it would prevent cheating opportunities, because other clients can hack their scripts/engines and get notified of the fact that such a script was launched for player X, providing tactical advantage.
No tags attached.
duplicate of 0002751resolved  Targeted clientside scripts 
Issue History
2016-08-15 21:13KorshunNew Issue
2016-08-15 21:17KorshunNote Added: 0015452
2016-08-15 22:28DrinkyBirdNote Added: 0015453
2016-10-15 15:43Ru5tK1ngRelationship addedduplicate of 0002751
2016-10-15 15:43Ru5tK1ngStatusnew => closed
2016-10-15 15:43Ru5tK1ngResolutionopen => duplicate

Notes
(0015452)
Korshun   
2016-08-15 21:17   
To clarify: I am only talking about using serverside ACS_ExecuteAlways to launch a clientside script.
(0015453)
DrinkyBird   
2016-08-15 22:28   
'https://zandronum.com/tracker/view.php?id=2751 [^]'