quake2ts 0.0.275 → 0.0.277

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.
@@ -0,0 +1,3 @@
1
+ import { Entity } from '../../entities/entity.js';
2
+ export declare function applyKick(player: Entity, pitch: number, yaw?: number, kickOrigin?: number): void;
3
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/combat/weapons/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU,EAAE,UAAU,GAAE,MAAU,QAK/F"}
@@ -0,0 +1,4 @@
1
+ import { Entity } from '../../entities/entity.js';
2
+ import { EntitySystem } from '../../entities/system.js';
3
+ export declare function grenadeThink(player: Entity, sys: EntitySystem): void;
4
+ //# sourceMappingURL=grenade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grenade.d.ts","sourceRoot":"","sources":["../../../../src/combat/weapons/grenade.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA4BxD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,QA2E7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"funcs.d.ts","sourceRoot":"","sources":["../../../src/entities/funcs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAqG/D,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,MAAM,IAAA;IACN,OAAO,IAAA;CACR;AA6RD,eAAO,MAAM,gBAAgB,EAAE,aA0F9B,CAAC;AAigBF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,QAczD"}
1
+ {"version":3,"file":"funcs.d.ts","sourceRoot":"","sources":["../../../src/entities/funcs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAyG/D,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,MAAM,IAAA;IACN,OAAO,IAAA;CACR;AA6RD,eAAO,MAAM,gBAAgB,EAAE,aA0F9B,CAAC;AAynBF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,QAczD"}
@@ -1,5 +1,13 @@
1
+ import { Entity } from './entity.js';
1
2
  import { EntitySystem } from './system.js';
2
3
  import { Vec3 } from '@quake2ts/shared';
3
- export declare function spawnGib(sys: EntitySystem, origin: Vec3, damage: number): void;
4
- export declare function throwGibs(sys: EntitySystem, origin: Vec3, damage: number): void;
4
+ export declare const GIB_METALLIC = 1;
5
+ export declare const GIB_DEBRIS = 2;
6
+ export interface GibDef {
7
+ count: number;
8
+ model: string;
9
+ flags?: number;
10
+ }
11
+ export declare function spawnGib(sys: EntitySystem, origin: Vec3, damage: number, model?: string, type?: number): Entity;
12
+ export declare function throwGibs(sys: EntitySystem, origin: Vec3, damageOrDefs: number | GibDef[]): void;
5
13
  //# sourceMappingURL=gibs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gibs.d.ts","sourceRoot":"","sources":["../../../src/entities/gibs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAyB,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI/D,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAgDvE;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAQxE"}
1
+ {"version":3,"file":"gibs.d.ts","sourceRoot":"","sources":["../../../src/entities/gibs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAgC,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAyB,IAAI,EAAsB,MAAM,kBAAkB,CAAC;AAInF,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,MAAM,WAAW,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,UAmDtG;AAMD,wBAAgB,SAAS,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,QAezF"}
@@ -1 +1 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/entities/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,YAAY,CAAC;AAmG/D,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,QAmCzD"}
1
+ {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/entities/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,YAAY,CAAC;AAsI/D,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,QAwCzD"}