h1z1-server 0.32.4-2 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export class SOEServer extends EventEmitter {
|
|
|
32
32
|
_useEncryption: boolean = true;
|
|
33
33
|
private _clients: Map<string, SOEClient> = new Map();
|
|
34
34
|
private _connection: dgram.Socket;
|
|
35
|
-
private readonly _crcSeed: number = Math.floor(Math.random() *
|
|
35
|
+
private readonly _crcSeed: number = Math.floor(Math.random() * 255);
|
|
36
36
|
private _crcLength: crc_length_options = 2;
|
|
37
37
|
_waitTimeMs: number = 24;
|
|
38
38
|
keepAliveTimeoutTime: number = 40000;
|
|
@@ -366,7 +366,7 @@ export class Character2016 extends BaseFullCharacter {
|
|
|
366
366
|
Items.CAMPFIRE
|
|
367
367
|
))
|
|
368
368
|
) {
|
|
369
|
-
client.character._resources[ResourceIds.COMFORT] +=
|
|
369
|
+
client.character._resources[ResourceIds.COMFORT] += 30;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
client.character._resources[ResourceIds.HUNGER] -= 2;
|
|
@@ -1235,7 +1235,7 @@ export class ZonePacketHandlers {
|
|
|
1235
1235
|
]);
|
|
1236
1236
|
vehicle.oldPos = {
|
|
1237
1237
|
position: positionUpdate.position,
|
|
1238
|
-
time:
|
|
1238
|
+
time: positionUpdate.sequenceTime
|
|
1239
1239
|
};
|
|
1240
1240
|
vehicle.positionUpdate.position = positionUpdate.position;
|
|
1241
1241
|
// disabled, dont think we need it and wastes alot of resources
|
package/config.yaml
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
server:
|
|
2
|
-
welcomeMessage: "Welcome to H1emu! :D"
|
|
3
|
-
adminMessage: "You are an Admin!"
|
|
4
|
-
proximityItemsDistance: 2
|
|
5
|
-
interactionDistance: 3
|
|
6
|
-
charactersRenderDistance: 350
|
|
7
|
-
tickRate: 2000
|
|
8
|
-
worldRoutineRate: 10000
|
|
9
|
-
enableLoginServerKickRequests: true
|
|
10
|
-
rebootTime: 48 # hours (0 to disable)
|
|
11
|
-
rebootWarnTime: 600 # seconds
|
|
12
|
-
isPvE: false
|
|
13
|
-
isHeadshotOnly: false
|
|
14
|
-
isFirstPersonOnly: false
|
|
15
|
-
baseConstructionDamage: 34000
|
|
16
|
-
|
|
17
|
-
# Fairplay / anticheat config
|
|
18
|
-
fairplay:
|
|
19
|
-
useFairplay: true
|
|
20
|
-
maxPing: 250
|
|
21
|
-
|
|
22
|
-
# Removing an entry below will allow clients with a certain rejectionFlag to join
|
|
23
|
-
# ex. Removing "5 # UNVERIFIED" will allow users with an unverified h1emu status to join
|
|
24
|
-
|
|
25
|
-
# by default, globally banned, hwid banned, vpn detected, and unverified clients will have their
|
|
26
|
-
# connections rejected
|
|
27
|
-
acceptedRejectionTypes:
|
|
28
|
-
# LOCAL_BAN, SERVER_LOCKED, and SERVER_REBOOT are always accepted
|
|
29
|
-
- 2 # GLOBAL_BAN
|
|
30
|
-
- 3 # VPN
|
|
31
|
-
- 4 # HWID
|
|
32
|
-
- 5 # UNVERIFIED
|
|
33
|
-
|
|
34
|
-
useAssetValidation: true
|
|
35
|
-
# how long the client has to send it's hashes before it's kicked (3 min default)
|
|
36
|
-
hashSubmissionTimeout: 180000
|
|
37
|
-
|
|
38
|
-
# clients with these packs are allowed to join, but they are optional (must be in numerical order)
|
|
39
|
-
allowedPacks:
|
|
40
|
-
#- file_name: ""
|
|
41
|
-
# crc32_hash: ""
|
|
42
|
-
|
|
43
|
-
# clients without these packs will be kicked (must be in numerical order)
|
|
44
|
-
requiredPacks:
|
|
45
|
-
#- file_name: ""
|
|
46
|
-
# crc32_hash: ""
|
|
47
|
-
|
|
48
|
-
weather:
|
|
49
|
-
defaultTemplate: "h1emubaseweather"
|
|
50
|
-
dynamicEnabled: false
|
|
51
|
-
|
|
52
|
-
# Anything to do with loot, vehicle, and npc spawning / despawning
|
|
53
|
-
worldobjects:
|
|
54
|
-
# Respawn timers
|
|
55
|
-
|
|
56
|
-
hasCustomLootRespawnTime: false
|
|
57
|
-
lootRespawnTimer: 1200000 # 30 minutes
|
|
58
|
-
vehicleRespawnTimer: 600000 # 10 minutes
|
|
59
|
-
npcRespawnTimer: 600000 # 10 minutes
|
|
60
|
-
|
|
61
|
-
# Despawn timers
|
|
62
|
-
|
|
63
|
-
# Player dropped items on the ground
|
|
64
|
-
itemDespawnTimer: 600000 # 10 minutes
|
|
65
|
-
# Spawned objects on the ground
|
|
66
|
-
lootDespawnTimer: 2400000 # 40 minutes
|
|
67
|
-
deadNpcDespawnTimer: 600000 # 10 minutes
|
|
68
|
-
lootbagDespawnTimer: 1800000 # 30 minutes
|
|
69
|
-
|
|
70
|
-
# Misc
|
|
71
|
-
minAirdropSurvivors: 20
|
|
72
|
-
vehicleSpawnCap: 120
|
|
73
|
-
# How far any other vehicle has to be for another to spawn
|
|
74
|
-
vehicleSpawnRadius: 50
|
|
75
|
-
# How far another spawned npc has to be for another to spawn
|
|
76
|
-
npcSpawnRadius: 3
|
|
77
|
-
chanceNpc: 100 # To be reworked: 100 max
|
|
78
|
-
chanceScreamer: 5 # To be reworked: 1000 max
|
|
79
|
-
|
|
80
|
-
chanceWornLetter: 1 # 100 max
|
|
81
|
-
|
|
82
|
-
waterSourceRefillAmount: 2
|
|
83
|
-
waterSourceReplenishTimer: 300000 # 5 minutes
|
|
84
|
-
|
|
85
|
-
crowbarHitRewardChance: 20 # 100 max
|
|
86
|
-
crowbarHitDamage: 10 # Default 25
|
|
87
|
-
|
|
88
|
-
# Trees, blackberry bushes, and sticks
|
|
89
|
-
speedtree:
|
|
90
|
-
minBlackberryHarvest: 1
|
|
91
|
-
maxBlackberryHarvest: 2
|
|
92
|
-
# from blackberry bushes only
|
|
93
|
-
branchHarvestChance: 0.1 # maximum of 1 for 100% chance
|
|
94
|
-
|
|
95
|
-
minStickHarvest: 1
|
|
96
|
-
maxStickHarvest: 2
|
|
97
|
-
|
|
98
|
-
treeRespawnTimeMS: 1800000 # 30 minutes
|
|
99
|
-
minWoodLogHarvest: 2
|
|
100
|
-
maxWoodLogHarvest: 6
|
|
101
|
-
minTreeHits: 12 # minimum hits it takes to chop a tree
|
|
102
|
-
maxTreeHits: 20 # maximum hits it takes to chop a tree
|
|
103
|
-
|
|
104
|
-
construction:
|
|
105
|
-
allowPOIPlacement: false
|
|
106
|
-
allowStackedPlacement: false
|
|
107
|
-
allowOutOfBoundsPlacement: false
|
|
108
|
-
placementRange: 30
|
|
109
|
-
spawnPointBlockedPlacementRange: 25
|
|
110
|
-
vehicleSpawnPointBlockedPlacementRange: 30
|
|
111
|
-
playerFoundationBlockedPlacementRange: 70
|
|
112
|
-
playerShackBlockedPlacementRange: 20
|
|
113
|
-
|
|
114
|
-
decay:
|
|
115
|
-
decayTickInterval: 1200000 # 20 minutes per decay tick
|
|
116
|
-
constructionDamageTicks: 72 # damage structures every 24 hours
|
|
117
|
-
|
|
118
|
-
# with default values it'll take 14 days for a base to fully decay
|
|
119
|
-
ticksToFullDecay: 14 # how many decay ticks * constructionDamageTicks it takes to fully decay any construction entity.
|
|
120
|
-
|
|
121
|
-
# unused for now but is planned
|
|
122
|
-
worldFreeplaceDecayMultiplier: 2 # used to multiply decay damage for freeplace constuction with no parent
|
|
123
|
-
|
|
124
|
-
##### DEPRECATED - NO LONGER DOES ANYTHING #####
|
|
125
|
-
baseConstructionDamage: 125000 # construction damage per required ticks
|
|
126
|
-
repairBoxHealValue: 1000000 # heals base to full condition
|
|
127
|
-
##### #####
|
|
128
|
-
|
|
129
|
-
vehicleDamageTicks: 3 # damage vehicles every hour
|
|
130
|
-
vacantFoundationTicks: 3 # destroy empty foundations after 1 hour
|
|
131
|
-
griefFoundationTimer: 72 # destroy grief foundations after 3 days (72 hours)
|
|
132
|
-
griefCheckSlotAmount: 4 # must have a minimum of 4 wall slots to avoid anti-grief
|
|
133
|
-
baseVehicleDamage: 6000 # 6% damage per 3 ticks
|
|
134
|
-
maxVehiclesPerArea: 2 # the max amount of vehicles that can be in an area before they start taking more damage
|
|
135
|
-
vehicleDamageRange: 25 # how large of a range to detect maxVehiclesPerArea
|
|
136
|
-
dailyRepairMaterials:
|
|
137
|
-
- itemDefinitionId: 16 # wood log
|
|
138
|
-
requiredCount: 5
|
|
139
|
-
- itemDefinitionId: 109 # wood plank
|
|
140
|
-
requiredCount: 79
|
|
141
|
-
- itemDefinitionId: 135 # nail
|
|
142
|
-
requiredCount: 28
|
|
143
|
-
- itemDefinitionId: 141 # metal bracket
|
|
144
|
-
requiredCount: 16
|
|
145
|
-
- itemDefinitionId: 46 # metal sheet
|
|
146
|
-
requiredCount: 20
|
|
147
|
-
- itemDefinitionId: 114 # metal shard
|
|
148
|
-
requiredCount: 44
|
|
149
|
-
- itemDefinitionId: 111 # wood stick
|
|
150
|
-
requiredCount: 2
|
|
151
|
-
|
|
152
|
-
smelting:
|
|
153
|
-
burnTime: 120000 # consume fuel every 120 seconds
|
|
154
|
-
smeltTime: 7000 # smelt 1 item every 7 seconds
|