h1z1-server 0.45.7-2 → 0.45.7

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.
@@ -1025,8 +1025,8 @@
1025
1025
  },
1026
1026
  {
1027
1027
  "file_name": "Assets_256.pack",
1028
- "crc32_hash": "1c0eacbc",
1029
- "old_crc32_hash": "6588efce"
1028
+ "crc32_hash": "34babd51",
1029
+ "old_crc32_hash": "1c0eacbc"
1030
1030
  },
1031
1031
  {
1032
1032
  "file_name": "Assets_257.pack",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h1z1-server",
3
- "version": "0.45.7-2",
3
+ "version": "0.45.7",
4
4
  "description": "Library for emulating h1z1 servers",
5
5
  "author": "Quentin Gruber <quentingruber@gmail.com> (http://github.com/quentingruber)",
6
6
  "license": "GPL-3.0-only",
@@ -2372,14 +2372,13 @@ export const commands: Array<Command> = [
2372
2372
  if (!args.length) {
2373
2373
  server.sendChatText(
2374
2374
  client,
2375
- "[ERROR] Usage /giverewardtoall {itemDefinitionId} [itemDefinitionId ...]"
2375
+ "[ERROR] Usage /giverewardtoall {CrateID} [CrateID ...]"
2376
2376
  );
2377
2377
  return;
2378
2378
  }
2379
2379
 
2380
- // Collect valid reward IDs and pretty names
2380
+ // Collect valid reward IDs
2381
2381
  const rewardIds: number[] = [];
2382
- const prettyNames: string[] = [];
2383
2382
  const invalid: string[] = [];
2384
2383
 
2385
2384
  for (const arg of args) {
@@ -2392,24 +2391,19 @@ export const commands: Array<Command> = [
2392
2391
  continue;
2393
2392
  }
2394
2393
  rewardIds.push(rewardId);
2395
- const rewardKey = Items[rewardId];
2396
- prettyNames.push(prettifyRewardName(rewardKey));
2397
2394
  }
2398
2395
 
2399
2396
  if (!rewardIds.length) {
2400
2397
  server.sendChatText(
2401
2398
  client,
2402
- `[ERROR] No valid reward itemDefinitionIds provided.${invalid.length ? " ID: " + invalid.join(", ") : ""}`
2399
+ `[ERROR]${invalid.length ? " Crate ID: " + invalid.join(", ") : ""} is not valid`
2403
2400
  );
2404
2401
  return;
2405
2402
  }
2406
2403
 
2407
- for (let index = 0; index < prettyNames.length; index++) {
2408
- const name = prettyNames[index];
2409
- server.sendAlertToAll(
2410
- `Admin ${client.character.name} rewarded all connected players with ${name}`
2411
- );
2412
- }
2404
+ server.sendAlertToAll(
2405
+ `Admin ${client.character.name} has just initiated a crate drop`
2406
+ );
2413
2407
 
2414
2408
  for (const key in server._clients) {
2415
2409
  const c = server._clients[key];
@@ -3587,15 +3581,3 @@ export const commands: Array<Command> = [
3587
3581
 
3588
3582
  //#endregion
3589
3583
  ];
3590
-
3591
- function prettifyRewardName(rewardKey: string): string {
3592
- // Remove "REWARD_CRATE_" prefix if present
3593
- let name = rewardKey.replace(/^REWARD_CRATE_/, "");
3594
- // Replace underscores with spaces, lowercase everything
3595
- name = name.replace(/_/g, " ").toLowerCase();
3596
- // Move "crate" to the end if not already
3597
- if (!name.endsWith(" crate")) {
3598
- name = name + " crate";
3599
- }
3600
- return name;
3601
- }
package/config.yaml DELETED
@@ -1,174 +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
- isNoBuildInPois: true
16
- baseConstructionDamage: 34000
17
-
18
- # Rcon
19
-
20
- rcon:
21
- password: ""
22
- port: 0
23
-
24
- # VoiceChat
25
-
26
- voicechat:
27
- useVoiceChatV2: false
28
- joinVoiceChatOnConnect: false
29
- serverAccessToken: ""
30
-
31
- # Fairplay / anticheat config
32
-
33
- fairplay:
34
- useFairplay: true
35
- maxPing: 250
36
-
37
- # Removing an entry below will allow clients with a certain rejectionFlag to join
38
- # ex. Removing "5 # UNVERIFIED" will allow users with an unverified h1emu status to join
39
-
40
- # by default, globally banned, hwid banned, vpn detected, and unverified clients will have their
41
- # connections rejected
42
- acceptedRejectionTypes:
43
- # LOCAL_BAN, SERVER_LOCKED, and SERVER_REBOOT are always accepted
44
- - 2 # GLOBAL_BAN
45
- - 3 # VPN
46
- - 4 # HWID
47
- - 5 # UNVERIFIED
48
-
49
- useAssetValidation: true
50
- # how long the client has to send it's hashes before it's kicked (3 min default)
51
- hashSubmissionTimeout: 180000
52
-
53
- # clients with these packs are allowed to join, but they are optional (must be in numerical order)
54
- allowedPacks:
55
- #- file_name: ""
56
- # crc32_hash: ""
57
-
58
- # clients without these packs will be kicked (must be in numerical order)
59
- requiredPacks:
60
- #- file_name: ""
61
- # crc32_hash: ""
62
-
63
- weather:
64
- defaultTemplate: "h1emubaseweather"
65
- dynamicEnabled: true
66
-
67
- # Anything to do with loot, vehicle, and npc spawning / despawning
68
- worldobjects:
69
- # Respawn timers
70
-
71
- hasCustomLootRespawnTime: false
72
- lootRespawnTimer: 1200000 # 30 minutes
73
- vehicleRespawnTimer: 600000 # 10 minutes
74
- npcRespawnTimer: 600000 # 10 minutes
75
-
76
- # Despawn timers
77
-
78
- # Player dropped items on the ground
79
- itemDespawnTimer: 600000 # 10 minutes
80
- # Spawned objects on the ground
81
- lootDespawnTimer: 2400000 # 40 minutes
82
- deadNpcDespawnTimer: 600000 # 10 minutes
83
- lootbagDespawnTimer: 1800000 # 30 minutes
84
-
85
- # Misc
86
- minAirdropSurvivors: 10
87
- vehicleSpawnCap: 120
88
- # How far any other vehicle has to be for another to spawn
89
- vehicleSpawnRadius: 50
90
- # How far another spawned npc has to be for another to spawn
91
- npcSpawnRadius: 3
92
- chanceNpc: 100 # To be reworked: 100 max
93
- chanceScreamer: 5 # To be reworked: 1000 max
94
-
95
- chanceWornLetter: 1 # 100 max
96
-
97
- waterSourceRefillAmount: 2
98
- waterSourceReplenishTimer: 300000 # 5 minutes
99
-
100
- crowbarHitRewardChance: 20 # 100 max
101
- crowbarHitDamage: 10 # Default 25
102
-
103
- # Trees, blackberry bushes, and sticks
104
- speedtree:
105
- minBlackberryHarvest: 1
106
- maxBlackberryHarvest: 2
107
- # from blackberry bushes only
108
- branchHarvestChance: 0.1 # maximum of 1 for 100% chance
109
-
110
- minStickHarvest: 1
111
- maxStickHarvest: 2
112
-
113
- treeRespawnTimeMS: 1800000 # 30 minutes
114
- minWoodLogHarvest: 2
115
- maxWoodLogHarvest: 6
116
- minTreeHits: 12 # minimum hits it takes to chop a tree
117
- maxTreeHits: 20 # maximum hits it takes to chop a tree
118
-
119
- construction:
120
- # allowPOIPlacement: false - deprecated in favor of isNoBuildInPOIs ^
121
- allowStackedPlacement: false
122
- allowOutOfBoundsPlacement: false
123
- placementRange: 30
124
- spawnPointBlockedPlacementRange: 25
125
- vehicleSpawnPointBlockedPlacementRange: 30
126
- playerFoundationBlockedPlacementRange: 70
127
- playerShackBlockedPlacementRange: 20
128
-
129
- decay:
130
- decayTickInterval: 1200000 # 20 minutes per decay tick
131
- constructionDamageTicks: 3 # damage structures every hour
132
-
133
- # with default values it'll take 10 days for a base to fully decay
134
- ticksToFullDecay: 240 # how many decay ticks * constructionDamageTicks it takes to fully decay any construction entity.
135
-
136
- # unused for now but is planned
137
- worldFreeplaceDecayMultiplier: 2 # used to multiply decay damage for freeplace constuction with no parent
138
-
139
- ##### DEPRECATED - NO LONGER DOES ANYTHING #####
140
- baseConstructionDamage: 125000 # construction damage per required ticks
141
- repairBoxHealValue: 1000000 # heals base to full condition
142
- ##### #####
143
-
144
- vehicleDamageTicks: 3 # damage vehicles every hour
145
- vacantFoundationTicks: 3 # destroy empty foundations after 1 hour
146
- griefFoundationTimer: 72 # destroy grief foundations after 3 days (72 hours)
147
- griefCheckSlotAmount: 4 # must have a minimum of 4 wall slots to avoid anti-grief
148
- baseVehicleDamage: 2000 # 2% damage per 3 ticks (1 hour)
149
- maxVehiclesPerArea: 2 # the max amount of vehicles that can be in an area before they start taking more damage
150
- vehicleDamageRange: 25 # how large of a range to detect maxVehiclesPerArea
151
- dailyRepairMaterials:
152
- - itemDefinitionId: 16 # wood log
153
- requiredCount: 1
154
- - itemDefinitionId: 109 # wood plank
155
- requiredCount: 10
156
- - itemDefinitionId: 135 # nail
157
- requiredCount: 4
158
- - itemDefinitionId: 141 # metal bracket
159
- requiredCount: 4
160
- - itemDefinitionId: 46 # metal sheet
161
- requiredCount: 1
162
- - itemDefinitionId: 114 # metal shard
163
- requiredCount: 8
164
- - itemDefinitionId: 111 # wood stick
165
- requiredCount: 2
166
-
167
- smelting:
168
- burnTime: 120000 # consume fuel every 120 seconds
169
- smeltTime: 7000 # smelt 1 item every 7 seconds
170
- gametime:
171
- timeFrozen: false # Froze ingameTime
172
- nightTimeMultiplier: 2 # This way night time pass 2 times faster than daytime
173
- timeMultiplier: 36 # 1 hour IRL = 36 hours ingame, so 20 min for a full day
174
- baseTime: 6 # server ingameTime start at 6 AM, 18 = 6PM