Doolittle made this little tool for ArmA back in the days, I don't know if he's still active, but anyway, I took his concept and adapted to ArmA2. Originally intended for my server, I guess I can make it public.
EDIT June 16th 2010 : : New release has changed the installed files and addon requirements on server. People already using this should re-read the description below
This addon is to be installed only on your server.
It requires Extended_Eventhandlers, that are included in CBA (on your server only, once again, clients don't need these addons, they can run Vanilla ArmA2 or whatever addon permitted)
It will, at each mission startup, send a string to each client containing scripting code. This code will be executed on every clients, even clients connecting after mission startup.
This code will be executed for every mission
Uncompress in main ArmA2 directory of server, it'll create in the main directory a serverSide subfolder and 2 .sqf files :
Launch the server with -mod=@CBA;serverSide
globalscript.sqf file contains the code that will be sent to all connected machines, in the format :
This file is in readable format at the root ArmA2 directoryCode:" <Code to execute> ... " call WHIS_createLogicCode;
It can be modified before launching the server.
From this code, you can execute on each client commands independantly of the mission played, using commands that should only have a local use, like setting the grass level of detail, view distance, or printing regular hints and messages.
serverside.sqf contains a script that will be executed exclusively on the server. Handy to separate server and client sides of things
Here are some examples of globalscript.sqf coding for various uses :
* Disabling grass and forcing view distance on clients
* Having regular hint advertisement on player's screen
* Disabling 3rd Person View only for infantry, enabling 3rd Person View only when in vehicle
Download and feedback
The ServerSide Addon now has a Dev-Heaven project space, for bug reporting, help and further suggestion:
You can get latest versions when they come out on the Files area of the DH project space :
Report bugs and wishlist on the Issues pages
1.1 : Added CBA and postInit_XEH usage, now works on any island
1.0 : Initial release, Chernarus only
I'm going to concentrate on adding new features in globalscript.sqf and serverside.sqf. Next target is releasing a server-wide anti-TK feature.
Doolitle for the original concept.
Sickboy for advice and permanent help
Kju for advice and permanent help
Mikero and Killswitch for easing workload on Linux server
ArmaLiga.de for the excellent infantry 3rd person view system