openmw-tes3coop/apps
David Cernat 6a3fbf4e98 [Server] Use consistent arguments for script functions that send packets
Previously, there was a confusing separation between script functions that had a "broadcast" argument and script functions that had a "toOthers" argument.

Those with broadcast sent the packet to all players on the server when broadcast was true. Those with toOthers sent the packet to all players other than the packet's attached player.

The former was based on the pattern of the original SendMessage() script function. The latter more closely resembled RakNet's own broadcast argument as seen here:

https://github.com/TES3MP/CrabNet/blob/master/include/raknet/RakPeer.h#L219

This commit makes it so all sending functions have a sendToOtherPlayers argument that is false by default and a sendToAttachedPlayer that is true by default. This should simultaneously allow sending to be more intuitive, while not breaking previous existing scripts to a significant degree.

Additionally, this commit also reduces some code repetition for all instances of packet-fetching in script functions.
2018-07-07 18:29:31 +03:00
..
browser [Browser] Fix crashing of browser (I hope) 2017-08-01 02:16:49 +08:00
bsatool Restore trailing new lines to shrink PR 2017-09-08 22:20:04 +01:00
esmtool Dropping a separate NPDTstruct12 object and instead use NPDTstruct52 2018-05-09 00:25:07 +02:00
essimporter Dropping a separate NPDTstruct12 object and instead use NPDTstruct52 2018-05-09 00:25:07 +02:00
launcher Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
master [Master] Fix REST servers/info 2017-07-31 19:32:27 +08:00
mwiniimporter Read data paths from data-local section too 2018-05-17 21:07:20 +03:00
niftest Some PVS-Studio and cppcheck fixes 2018-04-18 12:36:10 +00:00
opencs Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
openmw [General] Use separate variables for video & music filenames in packets 2018-07-07 14:40:35 +03:00
openmw-mp [Server] Use consistent arguments for script functions that send packets 2018-07-07 18:29:31 +03:00
openmw_test_suite Merge pull request #1698 from Capostrophic/c++11 2018-05-06 10:44:11 +02:00
wizard Merged pull request #1697 2018-05-23 16:01:11 +02:00
doc.hpp