David Cernat
ece39748de
[Server] Fix typo causing recursion in deprecated actor list function
2019-03-20 17:01:21 +02:00
David Cernat
5fd4113978
[General] Implement sending of ActorSpeech packets from server scripts
2018-08-13 20:39:03 +03:00
David Cernat
b79221efcc
[Server] Rename variable i into index in ActorFunctions
2018-07-24 21:29:40 +03:00
David Cernat
09da24f1ea
[General] Rename all instances of refNumIndex into refNum
...
This creates symmetry with mpNum and should cause less confusion in the future.
2018-07-13 04:12:03 +03:00
David Cernat
20296859ee
[Server] Clarify functions used for getting data in Networking
2018-07-13 02:40:24 +03:00
David Cernat
04dd59e638
[Server] Use clearer names for functions used to get last received data
...
Additionally, rename GetObjectChangesSize() into the less confusing GetObjectListSize()
2018-07-13 02:33:50 +03:00
David Cernat
aeb2e57444
[Server] Bring Actor functions in line with Object functions, part 2
...
The ActorPacket-sending functions now have sendToOtherVisitors and skipAttachedPlayer arguments, except for the ones for ActorList and ActorAuthority (because such arguments don't make sense for those).
2018-07-13 01:25:43 +03:00
David Cernat
8f745df055
[Server] Bring Actor functions in line with Object functions, part 1
...
The last received ActorList can now be copied into the write-only ActorList that can be sent in packets. Changing the pid of the write-only ActorList can now be done separately from clearing its contents.
2018-07-13 01:04:41 +03:00
David Cernat
5bb442bbd3
[Server] Add sendToOtherVisitors boolean to SendActorAI()
...
Additionally, avoid repetition in functions that send Actor packets.
2018-07-11 22:17:00 +03:00
David Cernat
bff6e9e235
[General] Implement ActorAI packet, part 5
...
Allow repetition for AiWander package to be turned on and off.
2018-07-10 23:18:32 +03:00
David Cernat
00c13ae96c
[General] Implement ActorAI packet, part 4
...
The server can now make actors activate players and objects, at least in theory. In practice, OpenMW''s AiActivate package needs to be worked so it allows specific objects as targets instead of just refIds.
2018-07-10 07:07:37 +03:00
David Cernat
0e13207afe
[General] Implement ActorAI packet, part 3
...
The server can now cancel actor AI, make actors travel to a location, make actors wander, and make actors get escorted by a player or another actor.
2018-07-10 05:07:58 +03:00
David Cernat
c075496748
[General] Replace deathReason in death packets with a killer variable
...
Add serverside script functions for determining the killers of both players and actors.
Use unsigned ints for script functions returning an object or actor's refNumIndex or mpNum.
Remove updateDeadState() from LocalPlayer and make its code part of updateStatsDynamic() for simplicity.
2018-07-05 22:24:51 +03:00
David Cernat
7ffdb18bf9
[General] Implement ActorDeath packet, part 1
...
ActorDeath packets are sent for dead actors before their StatsDynamic packets. They contain the actor's deathReason in a manner similar to that of PlayerDeath packets.
A future commit will replace the deathReason with a variable named killer which will be an mwmp::Target.
2018-06-27 21:47:55 +03:00
David Cernat
77389538e8
[General] Implement ActorAI packet, part 1
...
The server can now make actors become followers of players or other actors.
2018-05-12 06:29:11 +03:00
David Cernat
b9520c11da
[General] Rework PlayerEquipment packets so they are of minimal size
...
Moreover, rename BaseNetCreature's equipedItems into equipmentItems.
(cherry picked from commit d1ad0c91f8
)
2018-04-20 22:46:16 +03: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
David Cernat
993081ba1e
[General] Add enchantmentCharge to worldObjects and items
2017-12-23 13:16:38 +02:00
David Cernat
f02ed0d621
[Server] Add script functions for getting and setting actor dynamic stat modifiers
2017-06-10 09:28:35 +03:00
David Cernat
940a2b6eb5
[Server] Add script functions for setting and sending ActorEquipment
2017-05-27 00:57:40 +03:00
David Cernat
f47a10dd4a
[Server] Add script callback and getter functions for ActorEquipment
2017-05-26 22:54:51 +03:00
David Cernat
06f3c07116
[Server] Only read Actor packets from players who are still authorities
2017-05-05 06:13:34 +03:00
David Cernat
e01cadad23
[Server] Send ActorAuthority packets to all players who loaded the cell
2017-05-03 04:45:55 +03:00
David Cernat
4c35c328a9
[Server] Add SendActorPosition() script function
2017-05-01 20:58:40 +03:00
David Cernat
e5e888ac21
[Server] Add script functions for checking what data an Actor has
2017-05-01 20:55:36 +03:00
David Cernat
217894100a
[Server] Add ReadCellActorList() script function
2017-05-01 00:49:58 +03:00
David Cernat
e8e0090b9b
[General] Use new SimpleCreatureStats struct in BaseActor
2017-04-30 18:44:59 +03:00
David Cernat
0e8d115794
[Server] Clean up ActorFunctions by using readActorList pointer
...
Also rename scriptActorList into writeActorList, and also rename matching methods, for clarity.
2017-04-30 17:12:15 +03:00
David Cernat
a2f6d99dfd
[Server] Use new CreatureStats in ActorFunctions to fix invalid pointer
2017-04-29 18:20:01 +03:00
David Cernat
6ff9091afd
[Server] Add script functions for setting actor dynamic stats
2017-04-29 02:10:14 +03:00
David Cernat
03c56e01f9
[Server] Add script functions for getting actor dynamic stats
2017-04-29 01:15:19 +03:00
David Cernat
328b4fb763
[Server] Fix invalid pointers when using ActorFunctions::GetActorCell()
2017-04-28 20:31:02 +03:00
David Cernat
a71dbc7d09
[Server] Add script functions for setting actor cells and positions
2017-04-28 18:44:01 +03:00
David Cernat
9c5eb47e90
[Server] Add and use Utils::getCellFromDescription()
2017-04-28 16:33:58 +03:00
David Cernat
aeab851ed8
[Server] Add script functions for getting actor position coordinates
2017-04-28 00:05:12 +03:00
David Cernat
1ce60fbf30
[Server] Add GetActorCell() script function
2017-04-27 14:59:49 +03:00
David Cernat
69bf2749a5
[Server] Add ActorFunctions for getting and setting basic actor data
2017-04-10 06:15:03 +03:00
David Cernat
c52084a028
[General] Use BaseActorLists in ActorPackets
2017-04-09 16:32:44 +03:00
David Cernat
a24ef3a25e
[Server] Create ActorFunctions placeholder
2017-04-09 12:24:33 +03:00