David Cernat
b509a0b3c3
[EventHandler] Ignore quantity key when reusing existing potion records
2021-07-13 13:15:22 +02:00
David Cernat
106aad320c
[General] Save and load power cooldowns for players
2021-07-10 22:59:58 +02:00
David Cernat
faa45fa894
[General] Handle PlayerJournal in packetReader's GetPlayerPacketTables()
2021-06-10 15:19:19 +02:00
David Cernat
1ee053df47
[General] Use arg for PlayerJournal that is consistent w/ other packets
2021-06-08 02:37:13 +02:00
David Cernat
b1578b12d4
[General] Use packetReader for Player packets, part 1
...
Handle many Player events in the new OnGenericPlayerEvent.
Remove code in BasePlayer used to update player tables from pre-0.6 versions of TES3MP. Change some variable names in BasePlayer so they are consistent.
2021-06-07 23:14:51 +02:00
David Cernat
1186d70aa7
[EventHandler] Fix typo argument in ObjectRestock default handler
2021-06-04 12:11:54 +02:00
David Cernat
f7c3938445
[General] Save and load active spells for actors
2021-05-07 15:30:10 +02:00
David Cernat
0d4ad7aa23
[General] Save and load active spells for players, part 2
...
When receiving or loading a player's active spells, send the packet to all players.
2021-02-19 09:14:39 +02:00
David Cernat
6401ec8356
[EventHandler] Fix typos regarding packet names
2021-02-06 04:32:47 +02:00
David Cernat
19bf2a8db6
[General] Update use of ObjectDialogueChoice
2020-12-13 08:17:42 +02:00
David Cernat
88a9c951c9
[Player] Reorder functions related to active spells
...
Rename UpdateActiveSpellDurations() into UpdateActiveSpellTimes() to be more accurate about what it does.
2020-11-14 22:13:11 +02:00
David Cernat
4b62f531a8
[General] Update time left for spell effects when players disconnect
2020-11-14 13:22:57 +02:00
David Cernat
18e1f6f07b
[General] Add lastSessionDuration to timestamps table for players
2020-11-14 11:42:00 +02:00
David Cernat
a6ba7e4360
[General] Add and use timestamps table for players
2020-11-14 04:19:18 +02:00
David Cernat
77a2becab3
[General] Print dialogue choices in handler for OnObjectDialogueChoice
2020-10-26 21:00:09 +02:00
David Cernat
c970cc4d04
[General] Add event and default handler for ObjectDialogueChoice
2020-10-26 19:52:27 +02:00
David Cernat
3c2d315953
[General] Print names of the client scripts sending Object packets
2020-07-27 09:31:42 +02:00
David Cernat
201c211e24
[General] Add and encourage use of /runstartup command
2020-07-13 03:01:01 +02:00
David Cernat
427ef64983
[General] Save and load active spells for players, part 1
2020-07-10 02:20:53 +02:00
David Cernat
59b2d08c93
[General] Save and load clientside locals
2020-06-06 14:27:33 +02:00
David Cernat
be869bc147
[General] Use full names of packets for packetType argument
...
This allows for more flexible packet names that are printed properly instead of having the wrong word prepended to them.
2020-05-30 01:54:44 +03:00
David Cernat
64c2092834
[General] Implement handling of gold pools
2020-05-16 05:25:03 +03:00
David Cernat
acfa8bc8af
[EventHandler] Fix IP tracking for players who leave before logging in
2020-03-11 14:48:12 +02:00
David Cernat
c98e81f46b
[EventHandler] Include storeType as argument for OnRecordDynamic hooks
2020-03-03 16:02:23 +02:00
David Cernat
885fa88b2a
[General] Add OnObjectSound event
2020-02-29 18:25:00 +02:00
David Cernat
c30371c1ef
[General] Read and use potion quantity in RecordDynamic packets
2020-02-22 21:22:37 +02:00
David Cernat
bb94044a79
[General] Clean up and simplify creation of generated records
2020-02-18 23:43:37 +02:00
David Cernat
6ab82f6685
[General] Use packetReader for RecordDynamic
2020-02-18 22:27:43 +02:00
David Cernat
4a3e255b0c
[General] Use packetReader for WorldMap
2020-02-05 21:50:42 +02:00
David Cernat
aa7297e1aa
[General] Use packetReader for PlayerJournal
2020-02-03 16:29:51 +02:00
David Cernat
da06716352
[General] Use packetReader for ClientScriptGlobal & add validator
2020-01-26 13:36:26 +02:00
David Cernat
84ffb2353a
[General] Add handling for ObjectRestock packets
2020-01-23 12:51:23 +02:00
David Cernat
43f00dd503
[EventHandler] Avoid item duping by denying activation of deleted object
2020-01-19 21:23:34 +02:00
David Cernat
d3ac78b11e
[EventHandler] Skip default Activate & Hit handlers for invalid events
2020-01-19 21:22:29 +02:00
David Cernat
afd4e6c201
[General] Handle clientside globals using new ClientScriptGlobal packet
2020-01-04 09:58:14 +02:00
David Cernat
3190831ae9
[EventHandler] Make OnGenericObjectEvent print objects concisely
2019-12-13 14:33:17 +02:00
David Cernat
0566eaa510
[General] Include success state in data read and printed about ObjectHit
...
Use a VERBOSE log level for messages printed about ObjectHit in its default handler.
2019-12-13 14:17:29 +02:00
David Cernat
9ac9286186
[EventHandler] Add default handler for printing ObjectHit information
2019-12-13 13:04:29 +02:00
David Cernat
686c6ff54c
[General] Add OnObjectHit event, adjusting packetReader accordingly
2019-12-08 16:16:13 +02:00
David Cernat
bf43bc0a61
[EventHandler] Deal with OnObjectActivate as part of OnGenericObjectEvent
...
OnGenericObjectEvent has been adjusted to include and print a targetPlayers table.
Extra logic from the old OnObjectActivate has been placed into a custom handler for the event.
2019-12-08 15:44:38 +02:00
David Cernat
c1751d91bc
[EventHandler] Don't redeclare pid in OnObjectActivate loop
2019-12-07 10:39:54 +02:00
David Cernat
82917c95a5
[General] Add OnConsoleCommand event, adjusting packetReader accordingly
2019-12-07 10:37:47 +02:00
David Cernat
6cd88b1393
[EventHandler] Stop filtering objects based on config.lua options
...
Previously, all the objects from an object packet were checked against the tables of disallowed object IDs in config.lua and filtered so they did not include any of them. Only a resulting table of acceptedObjects would then be passed to event validators and handlers.
It was an overcomplication that should be handled in a new type of hook called an event filter, if at all.
For now, the config.lua options with disallowed IDs for different packets are handled in default event validators instead, meaning that having one disallowed object in a packet makes the entire packet get rejected, which is fine for all of the affected events because their packets only ever have one object in them when sent by clients.
2019-12-05 17:36:11 +02:00
David Cernat
2c4dec2a55
[EventHandler] Fix saving of ActorDeath packets
2019-12-04 17:45:44 +02:00
David Cernat
00bef80285
[EventHandler] Only use non-nil menu destinations in OnGUIAction
...
This prevents as menu opened through a menu button effect from being overridden by a nil destination on that button.
2019-12-01 11:47:24 +02:00
David Cernat
0ea088a9e1
[General] Use packetReader and generic actor event for ActorEquipment
2019-11-27 22:57:31 +02:00
David Cernat
86c827bc3e
[General] Use packetReader and generic actor event for ActorList packets
2019-11-27 21:18:29 +02:00
David Cernat
0cdaa0404d
[EventHandler] Send kill counts to players in ActorDeath default handler
2019-11-27 11:27:23 +02:00
David Cernat
92ec3013e9
[General] Clean ActorDeath packet reading by using packetReader for it
2019-11-27 10:27:03 +02:00
David Cernat
2215baaa0a
[General] Handle state spam checks in a default handler for ObjectState
2019-11-21 20:57:23 +02:00