@quake2ts/shared 0.0.1 → 0.0.739
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/dist/cjs/index.cjs +372 -748
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +12 -368
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -1
package/dist/esm/index.js
CHANGED
|
@@ -2689,7 +2689,6 @@ var TRICK_NORMAL_THRESHOLD = 0.9;
|
|
|
2689
2689
|
var TRICK_PM_TIME = 64;
|
|
2690
2690
|
var LAND_PM_TIME = 128;
|
|
2691
2691
|
var IMPACT_CLIP_OVERBOUNCE = 1.01;
|
|
2692
|
-
var WATERJUMP_CLEAR = 8 /* TimeWaterJump */ | 16 /* TimeLand */ | 32 /* TimeTeleport */ | 1024 /* TimeTrick */;
|
|
2693
2692
|
function categorizePosition(params) {
|
|
2694
2693
|
const {
|
|
2695
2694
|
pmType,
|
|
@@ -2706,13 +2705,11 @@ function categorizePosition(params) {
|
|
|
2706
2705
|
let pmFlags = params.pmFlags;
|
|
2707
2706
|
let pmTime = params.pmTime;
|
|
2708
2707
|
let impactDelta;
|
|
2709
|
-
let onGround = hasPmFlag(pmFlags, 4 /* OnGround */);
|
|
2710
2708
|
let groundTrace;
|
|
2711
2709
|
let groundContents = CONTENTS_NONE;
|
|
2712
2710
|
const forceAirborne = velocity.z > LADDER_BYPASS_VELOCITY || pmType === 1 /* Grapple */;
|
|
2713
2711
|
if (forceAirborne) {
|
|
2714
2712
|
pmFlags = removePmFlag(pmFlags, 4 /* OnGround */);
|
|
2715
|
-
onGround = false;
|
|
2716
2713
|
} else {
|
|
2717
2714
|
const end = { x: origin.x, y: origin.y, z: origin.z - GROUND_PROBE_DISTANCE };
|
|
2718
2715
|
const traceResult = trace(origin, end, mins, maxs);
|
|
@@ -2729,11 +2726,9 @@ function categorizePosition(params) {
|
|
|
2729
2726
|
}
|
|
2730
2727
|
if (traceResult.fraction === 1 || !planeNormal || slantedGround && !traceResult.startsolid) {
|
|
2731
2728
|
pmFlags = removePmFlag(pmFlags, 4 /* OnGround */);
|
|
2732
|
-
onGround = false;
|
|
2733
2729
|
} else {
|
|
2734
|
-
onGround = true;
|
|
2735
2730
|
if (hasPmFlag(pmFlags, 8 /* TimeWaterJump */)) {
|
|
2736
|
-
pmFlags &=
|
|
2731
|
+
pmFlags &= -1081;
|
|
2737
2732
|
pmTime = 0;
|
|
2738
2733
|
}
|
|
2739
2734
|
const wasOnGround = hasPmFlag(pmFlags, 4 /* OnGround */);
|
|
@@ -3074,7 +3069,7 @@ function runPmove(state, imports) {
|
|
|
3074
3069
|
}
|
|
3075
3070
|
}
|
|
3076
3071
|
const onGround = (nextState.pmFlags & 4 /* OnGround */) !== 0;
|
|
3077
|
-
|
|
3072
|
+
nextState.velocity;
|
|
3078
3073
|
nextState.velocity = applyPmoveFriction({
|
|
3079
3074
|
velocity: nextState.velocity,
|
|
3080
3075
|
frametime: FRAMETIME,
|
|
@@ -3522,7 +3517,6 @@ var WATERJUMP_MAX_STEPS = 50;
|
|
|
3522
3517
|
var GROUND_NORMAL_THRESHOLD = 0.7;
|
|
3523
3518
|
var WATERJUMP_STEP_TOLERANCE = 18;
|
|
3524
3519
|
var DEFAULT_OVERBOUNCE2 = 1.01;
|
|
3525
|
-
var WATERJUMP_DOWN_PROBE = 2;
|
|
3526
3520
|
function checkSpecialMovement(params) {
|
|
3527
3521
|
const {
|
|
3528
3522
|
pmFlags: initialFlags,
|
|
@@ -3610,7 +3604,7 @@ function checkSpecialMovement(params) {
|
|
|
3610
3604
|
simOrigin = move.origin;
|
|
3611
3605
|
simVelocity = move.velocity;
|
|
3612
3606
|
}
|
|
3613
|
-
const downEnd = addVec3(simOrigin, { x: 0, y: 0, z: -
|
|
3607
|
+
const downEnd = addVec3(simOrigin, { x: 0, y: 0, z: -2 });
|
|
3614
3608
|
const downTrace = trace(simOrigin, downEnd, mins, maxs);
|
|
3615
3609
|
if (downTrace.fraction === 1 || !downTrace.planeNormal || downTrace.planeNormal.z < GROUND_NORMAL_THRESHOLD || downTrace.endpos.z < origin.z) {
|
|
3616
3610
|
return { pmFlags, pmTime, velocity, performedWaterJump: false };
|
|
@@ -4681,8 +4675,6 @@ function writeDeltaEntity(from, to, writer, force, newEntity) {
|
|
|
4681
4675
|
if (bits & U_ANGLE1) writer.writeAngle(to.angles.x);
|
|
4682
4676
|
if (bits & U_ANGLE2) writer.writeAngle(to.angles.y);
|
|
4683
4677
|
if (bits & U_ANGLE3) writer.writeAngle(to.angles.z);
|
|
4684
|
-
if (bits & U_OLDORIGIN) {
|
|
4685
|
-
}
|
|
4686
4678
|
if (bits & U_SOUND) writer.writeByte(to.sound ?? 0);
|
|
4687
4679
|
if (bits & U_EVENT) writer.writeByte(to.event ?? 0);
|
|
4688
4680
|
if (bits & U_SOLID) writer.writeShort(to.solid);
|
|
@@ -5384,12 +5376,12 @@ var _NetChan = class _NetChan {
|
|
|
5384
5376
|
if (this.qport !== qport) {
|
|
5385
5377
|
return null;
|
|
5386
5378
|
}
|
|
5387
|
-
const seqNumberClean = sequence &
|
|
5379
|
+
const seqNumberClean = sequence & 1073741823;
|
|
5388
5380
|
if ((seqNumberClean - this.incomingSequence | 0) <= 0) {
|
|
5389
5381
|
return null;
|
|
5390
5382
|
}
|
|
5391
5383
|
this.incomingSequence = seqNumberClean;
|
|
5392
|
-
const ackNumber = ack &
|
|
5384
|
+
const ackNumber = ack & 2147483647;
|
|
5393
5385
|
const ackReliable = (ack & 2147483648) !== 0;
|
|
5394
5386
|
if (ackNumber > this.incomingAcknowledged) {
|
|
5395
5387
|
this.incomingAcknowledged = ackNumber;
|
|
@@ -5724,8 +5716,8 @@ var intersects = (end, maxs, mins, boxMins, boxMaxs) => {
|
|
|
5724
5716
|
return end.x + maxs.x > boxMins.x && end.x + mins.x < boxMaxs.x && end.y + maxs.y > boxMins.y && end.y + mins.y < boxMaxs.y && end.z + maxs.z > boxMins.z && end.z + mins.z < boxMaxs.z;
|
|
5725
5717
|
};
|
|
5726
5718
|
var stairTrace = (start, end, mins, maxs) => {
|
|
5727
|
-
const useMins = mins ?? {
|
|
5728
|
-
const useMaxs = maxs ?? { x: 16
|
|
5719
|
+
const useMins = mins ?? { z: -24 };
|
|
5720
|
+
const useMaxs = maxs ?? { x: 16};
|
|
5729
5721
|
const STEP_HEIGHT = 8;
|
|
5730
5722
|
const STEP_X_START = 0;
|
|
5731
5723
|
const isHorizontal = Math.abs(end.z - start.z) < 1;
|
|
@@ -5747,7 +5739,7 @@ var stairTrace = (start, end, mins, maxs) => {
|
|
|
5747
5739
|
}
|
|
5748
5740
|
}
|
|
5749
5741
|
if (isMovingDown && end.x >= STEP_X_START) {
|
|
5750
|
-
|
|
5742
|
+
STEP_HEIGHT - useMins.z;
|
|
5751
5743
|
if (startMinZ > STEP_HEIGHT && endMinZ < STEP_HEIGHT) {
|
|
5752
5744
|
const fraction = (STEP_HEIGHT - startMinZ) / (endMinZ - startMinZ);
|
|
5753
5745
|
const clampedFraction = Math.max(0, Math.min(1, fraction));
|
|
@@ -5765,7 +5757,7 @@ var stairTrace = (start, end, mins, maxs) => {
|
|
|
5765
5757
|
}
|
|
5766
5758
|
}
|
|
5767
5759
|
if (isMovingDown && endMinZ < 0) {
|
|
5768
|
-
|
|
5760
|
+
-useMins.z;
|
|
5769
5761
|
if (startMinZ >= 0) {
|
|
5770
5762
|
const fraction = (0 - startMinZ) / (endMinZ - startMinZ);
|
|
5771
5763
|
const clampedFraction = Math.max(0, Math.min(1, fraction));
|
|
@@ -5846,355 +5838,7 @@ var ladderTrace = (start, end, mins, maxs) => {
|
|
|
5846
5838
|
contents: 0
|
|
5847
5839
|
};
|
|
5848
5840
|
};
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
AMMO_TYPE_COUNT,
|
|
5853
|
-
ANORMS,
|
|
5854
|
-
ATTN_IDLE,
|
|
5855
|
-
ATTN_LOOP_NONE,
|
|
5856
|
-
ATTN_NONE,
|
|
5857
|
-
ATTN_NORM,
|
|
5858
|
-
ATTN_STATIC,
|
|
5859
|
-
AmmoItemId,
|
|
5860
|
-
AmmoType,
|
|
5861
|
-
BinaryStream,
|
|
5862
|
-
BinaryWriter,
|
|
5863
|
-
CGAME_EXPORT_KEYS,
|
|
5864
|
-
CGAME_IMPORT_KEYS,
|
|
5865
|
-
CMD_BACKUP,
|
|
5866
|
-
CONTENTS_AREAPORTAL,
|
|
5867
|
-
CONTENTS_AUX,
|
|
5868
|
-
CONTENTS_CURRENT_0,
|
|
5869
|
-
CONTENTS_CURRENT_180,
|
|
5870
|
-
CONTENTS_CURRENT_270,
|
|
5871
|
-
CONTENTS_CURRENT_90,
|
|
5872
|
-
CONTENTS_CURRENT_DOWN,
|
|
5873
|
-
CONTENTS_CURRENT_UP,
|
|
5874
|
-
CONTENTS_DEADMONSTER,
|
|
5875
|
-
CONTENTS_DETAIL,
|
|
5876
|
-
CONTENTS_LADDER,
|
|
5877
|
-
CONTENTS_LAVA,
|
|
5878
|
-
CONTENTS_MIST,
|
|
5879
|
-
CONTENTS_MONSTER,
|
|
5880
|
-
CONTENTS_MONSTERCLIP,
|
|
5881
|
-
CONTENTS_NONE,
|
|
5882
|
-
CONTENTS_NO_WATERJUMP,
|
|
5883
|
-
CONTENTS_ORIGIN,
|
|
5884
|
-
CONTENTS_PLAYER,
|
|
5885
|
-
CONTENTS_PLAYERCLIP,
|
|
5886
|
-
CONTENTS_PROJECTILE,
|
|
5887
|
-
CONTENTS_PROJECTILECLIP,
|
|
5888
|
-
CONTENTS_SLIME,
|
|
5889
|
-
CONTENTS_SOLID,
|
|
5890
|
-
CONTENTS_TRANSLUCENT,
|
|
5891
|
-
CONTENTS_TRIGGER,
|
|
5892
|
-
CONTENTS_WATER,
|
|
5893
|
-
CONTENTS_WINDOW,
|
|
5894
|
-
CS_AIRACCEL,
|
|
5895
|
-
CS_CDTRACK,
|
|
5896
|
-
CS_GENERAL,
|
|
5897
|
-
CS_IMAGES,
|
|
5898
|
-
CS_ITEMS,
|
|
5899
|
-
CS_LIGHTS,
|
|
5900
|
-
CS_MAPCHECKSUM,
|
|
5901
|
-
CS_MAXCLIENTS,
|
|
5902
|
-
CS_MAX_STRING_LENGTH,
|
|
5903
|
-
CS_MAX_STRING_LENGTH_OLD,
|
|
5904
|
-
CS_MODELS,
|
|
5905
|
-
CS_NAME,
|
|
5906
|
-
CS_PLAYERS,
|
|
5907
|
-
CS_SKY,
|
|
5908
|
-
CS_SKYAXIS,
|
|
5909
|
-
CS_SKYROTATE,
|
|
5910
|
-
CS_SOUNDS,
|
|
5911
|
-
CS_STATUSBAR,
|
|
5912
|
-
ClientCommand,
|
|
5913
|
-
CollisionEntityIndex,
|
|
5914
|
-
ConfigStringIndex,
|
|
5915
|
-
CvarFlags,
|
|
5916
|
-
DEFAULT_FORWARD_SPEED,
|
|
5917
|
-
DEFAULT_MOUSE_SENSITIVITY,
|
|
5918
|
-
DEFAULT_PITCH_SPEED,
|
|
5919
|
-
DEFAULT_SIDE_SPEED,
|
|
5920
|
-
DEFAULT_UP_SPEED,
|
|
5921
|
-
DEFAULT_YAW_SPEED,
|
|
5922
|
-
DEG2RAD,
|
|
5923
|
-
DIST_EPSILON,
|
|
5924
|
-
EntityEffects,
|
|
5925
|
-
EntityEvent,
|
|
5926
|
-
GAME_EXPORT_KEYS,
|
|
5927
|
-
GAME_IMPORT_KEYS,
|
|
5928
|
-
G_GetAmmoStat,
|
|
5929
|
-
G_GetPowerupStat,
|
|
5930
|
-
G_SetAmmoStat,
|
|
5931
|
-
G_SetPowerupStat,
|
|
5932
|
-
LAST_VISIBLE_CONTENTS,
|
|
5933
|
-
LayoutFlags,
|
|
5934
|
-
MASK_ALL,
|
|
5935
|
-
MASK_BLOCK_SIGHT,
|
|
5936
|
-
MASK_CURRENT,
|
|
5937
|
-
MASK_DEADSOLID,
|
|
5938
|
-
MASK_LADDER_NAV_SOLID,
|
|
5939
|
-
MASK_MONSTERSOLID,
|
|
5940
|
-
MASK_NAV_SOLID,
|
|
5941
|
-
MASK_OPAQUE,
|
|
5942
|
-
MASK_PLAYERSOLID,
|
|
5943
|
-
MASK_PROJECTILE,
|
|
5944
|
-
MASK_SHOT,
|
|
5945
|
-
MASK_SOLID,
|
|
5946
|
-
MASK_WALK_NAV_SOLID,
|
|
5947
|
-
MASK_WATER,
|
|
5948
|
-
MAX_CHALLENGES,
|
|
5949
|
-
MAX_CLIENTS,
|
|
5950
|
-
MAX_CONFIGSTRINGS,
|
|
5951
|
-
MAX_EDICTS,
|
|
5952
|
-
MAX_GENERAL,
|
|
5953
|
-
MAX_IMAGES,
|
|
5954
|
-
MAX_INFO_STRING,
|
|
5955
|
-
MAX_ITEMS,
|
|
5956
|
-
MAX_LIGHTSTYLES,
|
|
5957
|
-
MAX_MODELS,
|
|
5958
|
-
MAX_MSGLEN,
|
|
5959
|
-
MAX_OSPATH,
|
|
5960
|
-
MAX_PACKET_ENTITIES,
|
|
5961
|
-
MAX_QPATH,
|
|
5962
|
-
MAX_SHADOW_LIGHTS,
|
|
5963
|
-
MAX_SOUNDS,
|
|
5964
|
-
MAX_SOUND_CHANNELS,
|
|
5965
|
-
MAX_STRING_CHARS,
|
|
5966
|
-
MAX_STRING_TOKENS,
|
|
5967
|
-
MAX_TOKEN_CHARS,
|
|
5968
|
-
MAX_WHEEL_ITEMS,
|
|
5969
|
-
MZ_BFG,
|
|
5970
|
-
MZ_BFG2,
|
|
5971
|
-
MZ_BLASTER,
|
|
5972
|
-
MZ_BLASTER2,
|
|
5973
|
-
MZ_BLUEHYPERBLASTER,
|
|
5974
|
-
MZ_CHAINGUN1,
|
|
5975
|
-
MZ_CHAINGUN2,
|
|
5976
|
-
MZ_CHAINGUN3,
|
|
5977
|
-
MZ_ETF_RIFLE,
|
|
5978
|
-
MZ_ETF_RIFLE_2,
|
|
5979
|
-
MZ_GRENADE,
|
|
5980
|
-
MZ_HEATBEAM,
|
|
5981
|
-
MZ_HYPERBLASTER,
|
|
5982
|
-
MZ_IONRIPPER,
|
|
5983
|
-
MZ_LOGIN,
|
|
5984
|
-
MZ_LOGOUT,
|
|
5985
|
-
MZ_MACHINEGUN,
|
|
5986
|
-
MZ_NUKE1,
|
|
5987
|
-
MZ_NUKE2,
|
|
5988
|
-
MZ_NUKE4,
|
|
5989
|
-
MZ_NUKE8,
|
|
5990
|
-
MZ_PHALANX,
|
|
5991
|
-
MZ_PHALANX2,
|
|
5992
|
-
MZ_PROX,
|
|
5993
|
-
MZ_RAILGUN,
|
|
5994
|
-
MZ_ROCKET,
|
|
5995
|
-
MZ_SHOTGUN,
|
|
5996
|
-
MZ_SSHOTGUN,
|
|
5997
|
-
MZ_TRACKER,
|
|
5998
|
-
MersenneTwister19937,
|
|
5999
|
-
NUM_AMMO_STATS,
|
|
6000
|
-
NUM_BITS_FOR_AMMO,
|
|
6001
|
-
NUM_BITS_FOR_POWERUP,
|
|
6002
|
-
NUM_POWERUP_STATS,
|
|
6003
|
-
NetChan,
|
|
6004
|
-
NetworkMessageBuilder,
|
|
6005
|
-
PITCH,
|
|
6006
|
-
POWERUP_MAX,
|
|
6007
|
-
PlaneSide,
|
|
6008
|
-
PlayerButton,
|
|
6009
|
-
PlayerStat,
|
|
6010
|
-
PmFlag,
|
|
6011
|
-
PmType,
|
|
6012
|
-
PowerupId,
|
|
6013
|
-
RAD2DEG,
|
|
6014
|
-
ROLL,
|
|
6015
|
-
RandomGenerator,
|
|
6016
|
-
RenderFx,
|
|
6017
|
-
replay_exports as Replay,
|
|
6018
|
-
SLIDEMOVE_BLOCKED_FLOOR,
|
|
6019
|
-
SLIDEMOVE_BLOCKED_WALL,
|
|
6020
|
-
SOUND_FULLVOLUME,
|
|
6021
|
-
SOUND_LOOP_ATTENUATE,
|
|
6022
|
-
STOP_EPSILON,
|
|
6023
|
-
SURF_ALPHATEST,
|
|
6024
|
-
SURF_FLOWING,
|
|
6025
|
-
SURF_LIGHT,
|
|
6026
|
-
SURF_N64_SCROLL_FLIP,
|
|
6027
|
-
SURF_N64_SCROLL_X,
|
|
6028
|
-
SURF_N64_SCROLL_Y,
|
|
6029
|
-
SURF_N64_UV,
|
|
6030
|
-
SURF_NODRAW,
|
|
6031
|
-
SURF_NONE,
|
|
6032
|
-
SURF_SKY,
|
|
6033
|
-
SURF_SLICK,
|
|
6034
|
-
SURF_TRANS33,
|
|
6035
|
-
SURF_TRANS66,
|
|
6036
|
-
SURF_WARP,
|
|
6037
|
-
ServerCommand,
|
|
6038
|
-
SoundChannel,
|
|
6039
|
-
TempEntity,
|
|
6040
|
-
UPDATE_BACKUP,
|
|
6041
|
-
U_ALPHA,
|
|
6042
|
-
U_ANGLE1,
|
|
6043
|
-
U_ANGLE2,
|
|
6044
|
-
U_ANGLE3,
|
|
6045
|
-
U_EFFECTS16,
|
|
6046
|
-
U_EFFECTS8,
|
|
6047
|
-
U_EVENT,
|
|
6048
|
-
U_FRAME16,
|
|
6049
|
-
U_FRAME8,
|
|
6050
|
-
U_INSTANCE_BITS,
|
|
6051
|
-
U_LOOP_ATTENUATION_HIGH,
|
|
6052
|
-
U_LOOP_VOLUME,
|
|
6053
|
-
U_MODEL,
|
|
6054
|
-
U_MODEL2,
|
|
6055
|
-
U_MODEL3,
|
|
6056
|
-
U_MODEL4,
|
|
6057
|
-
U_MOREBITS1,
|
|
6058
|
-
U_MOREBITS2,
|
|
6059
|
-
U_MOREBITS3,
|
|
6060
|
-
U_MOREBITS4,
|
|
6061
|
-
U_NUMBER16,
|
|
6062
|
-
U_OLDORIGIN,
|
|
6063
|
-
U_OLD_FRAME_HIGH,
|
|
6064
|
-
U_ORIGIN1,
|
|
6065
|
-
U_ORIGIN2,
|
|
6066
|
-
U_ORIGIN3,
|
|
6067
|
-
U_OWNER_HIGH,
|
|
6068
|
-
U_REMOVE,
|
|
6069
|
-
U_RENDERFX16,
|
|
6070
|
-
U_RENDERFX8,
|
|
6071
|
-
U_SCALE,
|
|
6072
|
-
U_SKIN16,
|
|
6073
|
-
U_SKIN8,
|
|
6074
|
-
U_SOLID,
|
|
6075
|
-
U_SOUND,
|
|
6076
|
-
WEAPON_AMMO_MAP,
|
|
6077
|
-
WEAPON_WHEEL_ORDER,
|
|
6078
|
-
WaterLevel,
|
|
6079
|
-
WeaponId,
|
|
6080
|
-
YAW,
|
|
6081
|
-
ZERO_VEC3,
|
|
6082
|
-
addBlendColor,
|
|
6083
|
-
addContents,
|
|
6084
|
-
addPmFlag,
|
|
6085
|
-
addPointToBounds,
|
|
6086
|
-
addVec3,
|
|
6087
|
-
addViewAngles,
|
|
6088
|
-
angleMod,
|
|
6089
|
-
angleVectors,
|
|
6090
|
-
applyPmove,
|
|
6091
|
-
applyPmoveAccelerate,
|
|
6092
|
-
applyPmoveAddCurrents,
|
|
6093
|
-
applyPmoveAirAccelerate,
|
|
6094
|
-
applyPmoveAirMove,
|
|
6095
|
-
applyPmoveFlyMove,
|
|
6096
|
-
applyPmoveFriction,
|
|
6097
|
-
applyPmoveWalkMove,
|
|
6098
|
-
applyPmoveWaterMove,
|
|
6099
|
-
assertContract,
|
|
6100
|
-
attenuationToDistanceMultiplier,
|
|
6101
|
-
boxContents,
|
|
6102
|
-
boxOnPlaneSide,
|
|
6103
|
-
boxesIntersect,
|
|
6104
|
-
buildAirGroundWish,
|
|
6105
|
-
buildCollisionModel,
|
|
6106
|
-
buildWaterWish,
|
|
6107
|
-
calculateMaxAudibleDistance,
|
|
6108
|
-
categorizePosition,
|
|
6109
|
-
checkDuckState,
|
|
6110
|
-
checkJump,
|
|
6111
|
-
checkSpecialMovement,
|
|
6112
|
-
clampViewAngles,
|
|
6113
|
-
clipBoxToBrush,
|
|
6114
|
-
clipVelocityAgainstPlanes,
|
|
6115
|
-
clipVelocityVec3,
|
|
6116
|
-
closestPointToBox,
|
|
6117
|
-
combineSurfaceFlags,
|
|
6118
|
-
computePlaneSignBits,
|
|
6119
|
-
computePlayerDimensions,
|
|
6120
|
-
concatRotationMatrices,
|
|
6121
|
-
configStringSize,
|
|
6122
|
-
copyVec3,
|
|
6123
|
-
crc8,
|
|
6124
|
-
createDefaultTrace,
|
|
6125
|
-
createEmptyBounds3,
|
|
6126
|
-
createMat4Identity,
|
|
6127
|
-
createRandomGenerator,
|
|
6128
|
-
crossVec3,
|
|
6129
|
-
currentVectorFromContents,
|
|
6130
|
-
degToRad,
|
|
6131
|
-
disableTraceDebug,
|
|
6132
|
-
distance,
|
|
6133
|
-
distanceBetweenBoxesSquared,
|
|
6134
|
-
dotVec3,
|
|
6135
|
-
enableTraceDebug,
|
|
6136
|
-
fixStuckObjectGeneric,
|
|
6137
|
-
getAmmoCount,
|
|
6138
|
-
getIconPath,
|
|
6139
|
-
getWaterLevel,
|
|
6140
|
-
goodPosition,
|
|
6141
|
-
groundCurrentVelocity,
|
|
6142
|
-
hasAllContents,
|
|
6143
|
-
hasAnyContents,
|
|
6144
|
-
hasPmFlag,
|
|
6145
|
-
hasSurfaceFlags,
|
|
6146
|
-
inPHS,
|
|
6147
|
-
inPVS,
|
|
6148
|
-
initialSnapPosition,
|
|
6149
|
-
intersects,
|
|
6150
|
-
isAtLeastWaistDeep,
|
|
6151
|
-
isUnderwater,
|
|
6152
|
-
ladderTrace,
|
|
6153
|
-
lengthSquaredVec3,
|
|
6154
|
-
lengthVec3,
|
|
6155
|
-
lerpAngle,
|
|
6156
|
-
mat4FromBasis,
|
|
6157
|
-
mouseDeltaToViewDelta,
|
|
6158
|
-
multiplyMat4,
|
|
6159
|
-
multiplyVec3,
|
|
6160
|
-
negateVec3,
|
|
6161
|
-
normalizeVec3,
|
|
6162
|
-
perpendicularVec3,
|
|
6163
|
-
planeDistanceToPoint,
|
|
6164
|
-
pmoveCmdScale,
|
|
6165
|
-
pointContents,
|
|
6166
|
-
pointContentsMany,
|
|
6167
|
-
pointInsideBrush,
|
|
6168
|
-
pointOnPlaneSide,
|
|
6169
|
-
projectPointOnPlane,
|
|
6170
|
-
projectSourceVec3,
|
|
6171
|
-
projectSourceVec3WithUp,
|
|
6172
|
-
radToDeg,
|
|
6173
|
-
removeContents,
|
|
6174
|
-
removePmFlag,
|
|
6175
|
-
resolveSlideMove,
|
|
6176
|
-
rotatePointAroundVector,
|
|
6177
|
-
runPmove,
|
|
6178
|
-
scaleVec3,
|
|
6179
|
-
slerpVec3,
|
|
6180
|
-
slideClipVelocityVec3,
|
|
6181
|
-
slideMove,
|
|
6182
|
-
snapPosition,
|
|
6183
|
-
stairTrace,
|
|
6184
|
-
stepSlideMove,
|
|
6185
|
-
subtractVec3,
|
|
6186
|
-
testBoxInBrush,
|
|
6187
|
-
traceBox,
|
|
6188
|
-
traceDebugInfo,
|
|
6189
|
-
transformPointMat4,
|
|
6190
|
-
validateContract,
|
|
6191
|
-
vec3Equals,
|
|
6192
|
-
vectorToAngles,
|
|
6193
|
-
vectorToYaw,
|
|
6194
|
-
waterCurrentVelocity,
|
|
6195
|
-
writeDeltaEntity,
|
|
6196
|
-
writePlayerState,
|
|
6197
|
-
writeRemoveEntity,
|
|
6198
|
-
writeUserCommand
|
|
6199
|
-
};
|
|
5841
|
+
|
|
5842
|
+
export { AMMO_ITEM_MAP, AMMO_MAX, AMMO_TYPE_COUNT, ANORMS, ATTN_IDLE, ATTN_LOOP_NONE, ATTN_NONE, ATTN_NORM, ATTN_STATIC, AmmoItemId, AmmoType, BinaryStream, BinaryWriter, CGAME_EXPORT_KEYS, CGAME_IMPORT_KEYS, CMD_BACKUP, CONTENTS_AREAPORTAL, CONTENTS_AUX, CONTENTS_CURRENT_0, CONTENTS_CURRENT_180, CONTENTS_CURRENT_270, CONTENTS_CURRENT_90, CONTENTS_CURRENT_DOWN, CONTENTS_CURRENT_UP, CONTENTS_DEADMONSTER, CONTENTS_DETAIL, CONTENTS_LADDER, CONTENTS_LAVA, CONTENTS_MIST, CONTENTS_MONSTER, CONTENTS_MONSTERCLIP, CONTENTS_NONE, CONTENTS_NO_WATERJUMP, CONTENTS_ORIGIN, CONTENTS_PLAYER, CONTENTS_PLAYERCLIP, CONTENTS_PROJECTILE, CONTENTS_PROJECTILECLIP, CONTENTS_SLIME, CONTENTS_SOLID, CONTENTS_TRANSLUCENT, CONTENTS_TRIGGER, CONTENTS_WATER, CONTENTS_WINDOW, CS_AIRACCEL, CS_CDTRACK, CS_GENERAL, CS_IMAGES, CS_ITEMS, CS_LIGHTS, CS_MAPCHECKSUM, CS_MAXCLIENTS, CS_MAX_STRING_LENGTH, CS_MAX_STRING_LENGTH_OLD, CS_MODELS, CS_NAME, CS_PLAYERS, CS_SKY, CS_SKYAXIS, CS_SKYROTATE, CS_SOUNDS, CS_STATUSBAR, ClientCommand, CollisionEntityIndex, ConfigStringIndex, CvarFlags, DEFAULT_FORWARD_SPEED, DEFAULT_MOUSE_SENSITIVITY, DEFAULT_PITCH_SPEED, DEFAULT_SIDE_SPEED, DEFAULT_UP_SPEED, DEFAULT_YAW_SPEED, DEG2RAD, DIST_EPSILON, EntityEffects, EntityEvent, GAME_EXPORT_KEYS, GAME_IMPORT_KEYS, G_GetAmmoStat, G_GetPowerupStat, G_SetAmmoStat, G_SetPowerupStat, LAST_VISIBLE_CONTENTS, LayoutFlags, MASK_ALL, MASK_BLOCK_SIGHT, MASK_CURRENT, MASK_DEADSOLID, MASK_LADDER_NAV_SOLID, MASK_MONSTERSOLID, MASK_NAV_SOLID, MASK_OPAQUE, MASK_PLAYERSOLID, MASK_PROJECTILE, MASK_SHOT, MASK_SOLID, MASK_WALK_NAV_SOLID, MASK_WATER, MAX_CHALLENGES, MAX_CLIENTS, MAX_CONFIGSTRINGS, MAX_EDICTS, MAX_GENERAL, MAX_IMAGES, MAX_INFO_STRING, MAX_ITEMS, MAX_LIGHTSTYLES, MAX_MODELS, MAX_MSGLEN, MAX_OSPATH, MAX_PACKET_ENTITIES, MAX_QPATH, MAX_SHADOW_LIGHTS, MAX_SOUNDS, MAX_SOUND_CHANNELS, MAX_STRING_CHARS, MAX_STRING_TOKENS, MAX_TOKEN_CHARS, MAX_WHEEL_ITEMS, MZ_BFG, MZ_BFG2, MZ_BLASTER, MZ_BLASTER2, MZ_BLUEHYPERBLASTER, MZ_CHAINGUN1, MZ_CHAINGUN2, MZ_CHAINGUN3, MZ_ETF_RIFLE, MZ_ETF_RIFLE_2, MZ_GRENADE, MZ_HEATBEAM, MZ_HYPERBLASTER, MZ_IONRIPPER, MZ_LOGIN, MZ_LOGOUT, MZ_MACHINEGUN, MZ_NUKE1, MZ_NUKE2, MZ_NUKE4, MZ_NUKE8, MZ_PHALANX, MZ_PHALANX2, MZ_PROX, MZ_RAILGUN, MZ_ROCKET, MZ_SHOTGUN, MZ_SSHOTGUN, MZ_TRACKER, MersenneTwister19937, NUM_AMMO_STATS, NUM_BITS_FOR_AMMO, NUM_BITS_FOR_POWERUP, NUM_POWERUP_STATS, NetChan, NetworkMessageBuilder, PITCH, POWERUP_MAX, PlaneSide, PlayerButton, PlayerStat, PmFlag, PmType, PowerupId, RAD2DEG, ROLL, RandomGenerator, RenderFx, replay_exports as Replay, SLIDEMOVE_BLOCKED_FLOOR, SLIDEMOVE_BLOCKED_WALL, SOUND_FULLVOLUME, SOUND_LOOP_ATTENUATE, STOP_EPSILON, SURF_ALPHATEST, SURF_FLOWING, SURF_LIGHT, SURF_N64_SCROLL_FLIP, SURF_N64_SCROLL_X, SURF_N64_SCROLL_Y, SURF_N64_UV, SURF_NODRAW, SURF_NONE, SURF_SKY, SURF_SLICK, SURF_TRANS33, SURF_TRANS66, SURF_WARP, ServerCommand, SoundChannel, TempEntity, UPDATE_BACKUP, U_ALPHA, U_ANGLE1, U_ANGLE2, U_ANGLE3, U_EFFECTS16, U_EFFECTS8, U_EVENT, U_FRAME16, U_FRAME8, U_INSTANCE_BITS, U_LOOP_ATTENUATION_HIGH, U_LOOP_VOLUME, U_MODEL, U_MODEL2, U_MODEL3, U_MODEL4, U_MOREBITS1, U_MOREBITS2, U_MOREBITS3, U_MOREBITS4, U_NUMBER16, U_OLDORIGIN, U_OLD_FRAME_HIGH, U_ORIGIN1, U_ORIGIN2, U_ORIGIN3, U_OWNER_HIGH, U_REMOVE, U_RENDERFX16, U_RENDERFX8, U_SCALE, U_SKIN16, U_SKIN8, U_SOLID, U_SOUND, WEAPON_AMMO_MAP, WEAPON_WHEEL_ORDER, WaterLevel, WeaponId, YAW, ZERO_VEC3, addBlendColor, addContents, addPmFlag, addPointToBounds, addVec3, addViewAngles, angleMod, angleVectors, applyPmove, applyPmoveAccelerate, applyPmoveAddCurrents, applyPmoveAirAccelerate, applyPmoveAirMove, applyPmoveFlyMove, applyPmoveFriction, applyPmoveWalkMove, applyPmoveWaterMove, assertContract, attenuationToDistanceMultiplier, boxContents, boxOnPlaneSide, boxesIntersect, buildAirGroundWish, buildCollisionModel, buildWaterWish, calculateMaxAudibleDistance, categorizePosition, checkDuckState, checkJump, checkSpecialMovement, clampViewAngles, clipBoxToBrush, clipVelocityAgainstPlanes, clipVelocityVec3, closestPointToBox, combineSurfaceFlags, computePlaneSignBits, computePlayerDimensions, concatRotationMatrices, configStringSize, copyVec3, crc8, createDefaultTrace, createEmptyBounds3, createMat4Identity, createRandomGenerator, crossVec3, currentVectorFromContents, degToRad, disableTraceDebug, distance, distanceBetweenBoxesSquared, dotVec3, enableTraceDebug, fixStuckObjectGeneric, getAmmoCount, getIconPath, getWaterLevel, goodPosition, groundCurrentVelocity, hasAllContents, hasAnyContents, hasPmFlag, hasSurfaceFlags, inPHS, inPVS, initialSnapPosition, intersects, isAtLeastWaistDeep, isUnderwater, ladderTrace, lengthSquaredVec3, lengthVec3, lerpAngle, mat4FromBasis, mouseDeltaToViewDelta, multiplyMat4, multiplyVec3, negateVec3, normalizeVec3, perpendicularVec3, planeDistanceToPoint, pmoveCmdScale, pointContents, pointContentsMany, pointInsideBrush, pointOnPlaneSide, projectPointOnPlane, projectSourceVec3, projectSourceVec3WithUp, radToDeg, removeContents, removePmFlag, resolveSlideMove, rotatePointAroundVector, runPmove, scaleVec3, slerpVec3, slideClipVelocityVec3, slideMove, snapPosition, stairTrace, stepSlideMove, subtractVec3, testBoxInBrush, traceBox, traceDebugInfo, transformPointMat4, validateContract, vec3Equals, vectorToAngles, vectorToYaw, waterCurrentVelocity, writeDeltaEntity, writePlayerState, writeRemoveEntity, writeUserCommand };
|
|
5843
|
+
//# sourceMappingURL=index.js.map
|
|
6200
5844
|
//# sourceMappingURL=index.js.map
|