You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/cargo_drop/CargoDrop.cpp
+38-33Lines changed: 38 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@
3
3
* @author Cannon (Ported by Raikkonen 2022)
4
4
* @defgroup CargoDrop Cargo Drop
5
5
* @brief
6
-
* The "Cargo Drop" plugin handles consequences to a player who disconnects whilst in space.
6
+
* The "Cargo Drop" plugin handles consequences for a player who disconnects whilst in space and allows servers to ensure that cargo items are dropped on player
7
+
* death rather than lost. Is also allows server owners to set additional commodities that are spawned as loot when a player ship dies based on hull mass (i.e.
Copy file name to clipboardExpand all lines: plugins/cargo_drop/CargoDrop.h
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,16 +36,14 @@ namespace Plugins::CargoDrop
36
36
int maxPlayerCargoDropCount = 3000;
37
37
//! Distance used to decide if report/player death should occur based on proximity to other players.
38
38
float disconnectingPlayersRange = 5000.0f;
39
-
//! Ratio of ship's unused cargo space to 'ship parts' commodities left behind on death, specified in hullDrop1NickName and hullDrop2NickName.
39
+
//! Ratio of ship's mass space to 'ship parts' commodities left behind on death, specified in playerOnDeathCargo. The number of items dropped of each type is equal to ship mass multiplied by hullDropFactor.
40
40
float hullDropFactor = 0.1f;
41
41
//! Message broadcasted to nearby players upon disconnect if reportDisconnectingPlayers is true.
42
42
std::string disconnectMsg = "%player is attempting to engage cloaking device";
43
43
//! Nickname of loot container model containing cargo/ship parts left behind upon death/disconnection.
0 commit comments