David Cernat
b2a3dd9d60
Revert "[Server] Add previous state to ON_RECORD_DYNAMIC"
...
This reverts commit 2ac01dc02a
.
Commit 2ac01dc02a
had confused the ON_RECORD_DYNAMIC event meant for custom items with a hypothetical ON_PLAYER_STATS_DYNAMIC event meant for dynamic player stats and had added functionality appropriate for the latter.
ON_PLAYER_STATS_DYNAMIC was never implemented because it would have caused too much event spam, with it constantly being triggered by any running player losing fatigue. If it ends up being added, the reverted lines from 2ac01dc02a
should be added to it instead.
2018-03-09 21:14:56 +02:00
Koncord
2ac01dc02a
[Server] Add previous state to ON_RECORD_DYNAMIC
2018-03-05 15:40:38 +08:00
Koncord
4aff1f1833
[Server] Add previous state to ON_PLAYER_SKILL
...
That is array of struct with next content: {base, current, mod, damage, progress}
2018-03-05 15:30:24 +08:00
Koncord
017956366f
[Server] Add previous state argument to ON_PLAYER_ATTRIBUTE event
...
That is array of struct with next content: {base, current, mod, damage}
2018-03-05 15:19:09 +08:00
Koncord
afbafdf806
[Server] Add PreReading virtual method
...
add "const" qualifier to exteriorCellPattern
2018-03-05 15:15:39 +08:00
Koncord
d0eef7c98e
[Server] Add possibility to use previous state of data in events
2018-03-05 04:41:21 +08:00
Koncord
7deff7a42a
[Server] Use "else if" instead "if" + "return"
2018-02-26 21:10:48 +08:00
Koncord
23da0b16ea
[Server] Fix build
2018-02-26 21:03:42 +08:00
Koncord
24ba4ae404
[Server] Delete ON_GUI_ACTION
2018-02-17 14:24:57 +08:00
Koncord
73d030b779
[Server] Remove return value from ON_PLAYER_CONNECT event
2018-02-17 14:24:38 +08:00
Koncord
4e869a2974
[General] Use correct versions of C++ per target
...
C++11 for client, components and launcher
C++14 for server, browser and masterserver
2018-02-16 16:31:45 +08:00
Koncord
e85d0db771
[Server] Code style
2018-02-16 12:21:20 +08:00
Koncord
44c549211e
[Server] use std::unique_ptr for packet controllers and MasterClient
2018-02-16 12:14:51 +08:00
Koncord
2bfd4627ed
[Server] Use queue for MessageBox packets
2018-02-16 11:28:47 +08:00
Koncord
bb7c5ee34c
[Server] Allow nil as callback
2018-02-16 06:28:35 +08:00
Koncord
54945b537d
[Server] Get rid handwritten ids in GUI API
2018-02-16 06:08:36 +08:00
Koncord
4bde7d80f5
[Server] Use regular Ptrs where possible to avoid seizure Ptrs by lua
2018-02-16 05:12:01 +08:00
Koncord
f2a88e6a37
[Server] Use multiple parameters instead functions for Mark functions
2018-02-16 04:58:37 +08:00
Koncord
410eb353e8
[Server] Call GC after deleting player
2018-02-16 04:41:19 +08:00
Koncord
a9614ad28e
[Server] Fix invalid read
2018-02-16 04:38:42 +08:00
Koncord
69436714f9
[Server] Fix uninitialized variable
2018-02-16 04:36:44 +08:00
David Cernat
3b865244d0
[Server] Fix typo related to player deletion
2018-02-12 07:23:52 +02:00
David Cernat
4e9cac96c7
[Server] Add scale and selected spell functions to Player in Sol
2018-02-12 07:08:47 +02:00
David Cernat
ac374a8ef9
Merge pull request #384 from TES3MP/0.6.3 while resolving conflicts
...
Conflicts:
apps/openmw-mp/Player.cpp
apps/openmw-mp/Script/Functions/Mechanics.cpp
apps/openmw-mp/Script/Functions/Mechanics.hpp
apps/openmw-mp/Script/Functions/Quests.cpp
apps/openmw-mp/Script/Functions/Quests.hpp
apps/openmw-mp/Script/ScriptFunctions.hpp
apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp
apps/openmw/mwmp/LocalPlayer.hpp
apps/openmw/mwmp/WorldEvent.cpp
apps/openmw/mwworld/worldimp.cpp
components/openmw-mp/Base/BasePlayer.hpp
2018-02-12 06:50:52 +02:00
David Cernat
74765b3ace
[General] Implement selected spell sync as part of PlayerMiscellaneous
2018-02-06 06:36:46 +02:00
David Cernat
029dfc56ba
[General] Implement player scale as part of PlayerShapeshift
2018-02-01 02:11:45 +02:00
David Cernat
66078bfea7
[General] Implement Mark location sync as part of PlayerMiscellaneous
2018-01-31 04:50:29 +02:00
David Cernat
989f6e6b51
[General] Implement PlayerReputation packet
2018-01-30 22:55:29 +02:00
David Cernat
88ae0772cf
[Server] Initialize new processors and fix issues with RecordDynamic
2018-01-30 22:51:35 +02:00
David Cernat
5858e05362
Merge pull request #378 from TES3MP/0.6.3 while resolving conflicts
...
Conflicts:
apps/openmw-mp/CMakeLists.txt
apps/openmw-mp/Script/ScriptFunctions.hpp
components/CMakeLists.txt
2018-01-30 00:54:56 +02:00
David Cernat
02af7f6ba1
[General] Add placeholders for new packet types
2018-01-29 22:32:51 +02:00
David Cernat
1a8a518897
Merge pull request #376 from TES3MP/0.6.3 while resolving conflicts
...
Conflicts:
README.md
apps/openmw-mp/Script/Functions/World.cpp
apps/openmw/mwmp/LocalPlayer.cpp
apps/openmw/mwmp/LocalPlayer.hpp
apps/openmw/mwworld/scene.cpp
components/openmw-mp/Version.hpp
2018-01-29 02:57:48 +02:00
David Cernat
420dab10e1
[General] Track objects directly placed by players in ObjectPlace
...
This allows the OnPCDrop variable to get set correctly even when object placements have to go through the server first in order to gain a unique multiplayer index (mpNum).
Among other things, this makes it possible to roll marijuana joints in the popular mod "Tribunal Code Patch".
2018-01-28 17:46:51 +02:00
Koncord
edd883853d
[Server] Add sendConsoleCommand function to lua api
2018-01-20 20:46:14 +08:00
Koncord
0e97b769f9
[General] Change type of Object::enchantmentCharge
2018-01-20 20:07:29 +08:00
Koncord
4cfb04aa7f
[Server] Fix setBedRestAllowed
2018-01-20 20:06:41 +08:00
Koncord
7e5b929ea2
[General] Rework PacketPlayerFaction
2018-01-20 19:45:24 +08:00
Koncord
29ba07fe8c
[General] Rework PacketPlayerInventory
...
Save the Action for each item. Now you can add or remove multiple items
2018-01-20 18:40:23 +08:00
Koncord
de0bb3cdab
[General] Change type of Item::enchantmentCharge to float
2018-01-20 18:32:26 +08:00
Koncord
cb86557aca
[Server] Init Player::inUpdateQueue
2018-01-20 15:46:25 +08:00
David Cernat
a037193e79
Merge pull request #372 from TES3MP/0.6.2 while resolving conflicts
...
Conflicts:
apps/openmw-mp/Script/Functions/Actors.cpp
apps/openmw-mp/Script/Functions/Actors.hpp
apps/openmw-mp/Script/Functions/Items.cpp
apps/openmw-mp/Script/Functions/Items.hpp
apps/openmw-mp/Script/Functions/World.cpp
apps/openmw-mp/Script/Functions/World.hpp
apps/openmw/mwmp/WorldEvent.cpp
components/openmw-mp/Packets/Player/PacketPlayerEquipment.cpp
components/openmw-mp/Version.hpp
2018-01-18 13:40:13 +02:00
David Cernat
9935f56d46
[General] Use doubles instead of ints for enchantmentCharge
...
Additionally, include enchantmentCharges for items in PlayerEquipment packets.
2018-01-17 08:10:49 +02:00
Koncord
1de9f30449
[Server] Fix iterating killed timers when kill() called in the callback
...
Instance new timers before new tick
2018-01-08 12:24:36 +08:00
Kyle Cooley
7248a5d037
Remove some duplication, standardize sol2 header inclusion
2018-01-05 20:25:57 -05:00
Kyle Cooley
ba4d2bd5fe
Merge remote-tracking branch 'origin/master' into LibIssues
2018-01-05 17:35:47 -05:00
David Cernat
b6a7377692
Merge pull request #366 from TES3MP/0.6.2 while resolving conflicts, 2nd try
...
Conflicts:
apps/openmw-mp/Networking.cpp
apps/openmw-mp/Script/Functions/Miscellaneous.cpp
apps/openmw-mp/Script/Functions/Miscellaneous.hpp
apps/openmw/mwmp/GUI/GUIChat.cpp
2018-01-05 21:24:14 +02:00
Kyle Cooley
e2103d0bea
Clean up find file for LuaJit, add one for Sol2
2018-01-04 21:40:17 -05:00
Koncord
35922e4898
[General] Change "enum ACTOR_ACTION" to "enum class Action"
2018-01-05 09:40:11 +08:00
David Cernat
1cf2f35a28
[Server] Add script functions to set & get plugin enforcement state
2018-01-02 16:33:18 +02:00
Koncord
c4949ac5d9
[General] Change regular enums to enum class
2018-01-02 12:44:53 +08:00