Commit Graph

10 Commits

Author SHA1 Message Date
A Man
e72394d6da Remove ObjectID and ObjectUID from PVDZ_obj_Destroy calls
This is just the first commit for the removel of all global set ObjectIDs and ObjectUIDs.
Also objects will no longer be send over the network. Only the netID will. The actual object can be resolved with the netID on the server.
2022-03-24 17:17:45 +01:00
AirwavesMan
e8f2f3fcf0 Fix potential magazine and weapon dupes
This reverts 4b171cb.

player_regularSave should only be used if player_forceSave would interrupt an action like fire a weapon since it opens a dialog. player_regularSave does not save the ammo count but all magazines. Do not use nil instead of the magazines player array since it makes duping possible.

Thx to mmrsz
2021-04-16 13:24:18 +02:00
Merlijn
56cd3e8aed Split up save function 2020-12-31 12:11:23 +01:00
AirwavesMan
1697af9714 Fix weapon on back dupe 2020-11-15 17:49:33 +01:00
AirwavesMan
57276dd61f Revert object_pickupAction back to execVM
I was not aware of the acutal behavior of the init eventHandler. The init eventhandler sends all the given arguments to the player before the mpframework got even load on the player, so it is basicly the same like the publicvariables. This means that the function object_pickupAction will be always nil because it gets defined far later after the init evenhandler fired already.
2020-10-14 21:09:57 +02:00
AirwavesMan
2d7f593a54 Do not allow pickup actions next to other actions 2020-07-23 01:43:23 +02:00
oiad
b06d3d4623 Sync near player checks
Checking if the player is the closest is not always the best idea, this
fixes a few dupes and syncs the distance for all player checks
2020-06-13 11:26:44 +12:00
oiad
d875697e29 Fix copy paste error
Thanks @ArmaWizard for the heads up
2020-05-20 08:44:27 +12:00
A Man
1d145500a4 Compile object_pickupAction, object_BackpackAction for server too 2020-04-26 11:47:46 +02:00
A Man
56bfa47615 Update object pickup actions
- pre-compile object_BackpackAction, object_pickupAction and the actionMonitor
- switch from execVM to spawn
- pickup actions are grouped under actions\pickupActions now
2020-04-23 17:48:55 +02:00