quake2ts 0.0.87 → 0.0.89

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.
@@ -1291,6 +1291,9 @@ function checkWater2(ent, system, imports) {
1291
1291
  }
1292
1292
  ent.watertype = cont;
1293
1293
  ent.waterlevel = 1;
1294
+ const viewheight = ent.viewheight || (maxs.z - mins.z) * 0.8;
1295
+ const waist = origin.z + (mins.z + maxs.z) * 0.5;
1296
+ const feetZ = origin.z + mins.z + 1;
1294
1297
  const waistZ = origin.z + mins.z + (maxs.z - mins.z) * 0.5;
1295
1298
  const headZ = origin.z + maxs.z - 1;
1296
1299
  const waistPoint = { ...point, z: waistZ };