@@ -8256,117 +8256,95 @@ declare interface CEntities {
8256
8256
* Finds all entities by class name. Returns an array containing all the found
8257
8257
* entities.
8258
8258
*/
8259
- FindAllByClassname < T extends CBaseEntity = CBaseEntity > ( className : string ) : T [ ] ;
8259
+ FindAllByClassname ( className : string ) : CBaseEntity [ ] ;
8260
8260
/**
8261
8261
* Find entities by class name within a radius.
8262
8262
*/
8263
- FindAllByClassnameWithin < T extends CBaseEntity = CBaseEntity > (
8264
- className : string ,
8265
- location : Vector ,
8266
- radius : number ,
8267
- ) : T [ ] ;
8263
+ FindAllByClassnameWithin ( className : string , location : Vector , radius : number ) : CBaseEntity [ ] ;
8268
8264
/**
8269
8265
* Find entities by model name.
8270
8266
*/
8271
- FindAllByModel < T extends CBaseEntity = CBaseEntity > ( modelName : string ) : T [ ] ;
8267
+ FindAllByModel ( modelName : string ) : CBaseEntity [ ] ;
8272
8268
/**
8273
8269
* Find all entities by name. Returns an array containing all the found entities
8274
8270
* in it.
8275
8271
*/
8276
- FindAllByName < T extends CBaseEntity = CBaseEntity > ( name : string ) : T [ ] ;
8272
+ FindAllByName ( name : string ) : CBaseEntity [ ] ;
8277
8273
/**
8278
8274
* Find entities by name within a radius.
8279
8275
*/
8280
- FindAllByNameWithin < T extends CBaseEntity = CBaseEntity > ( name : string , location : Vector , radius : number ) : T [ ] ;
8276
+ FindAllByNameWithin ( name : string , location : Vector , radius : number ) : CBaseEntity [ ] ;
8281
8277
/**
8282
8278
* Find entities by targetname.
8283
8279
*/
8284
- FindAllByTarget < T extends CBaseEntity = CBaseEntity > ( target : string ) : T [ ] ;
8280
+ FindAllByTarget ( target : string ) : CBaseEntity [ ] ;
8285
8281
/**
8286
8282
* Find entities within a radius.
8287
8283
*/
8288
- FindAllInSphere < T extends CBaseEntity = CBaseEntity > ( location : Vector , radius : number ) : T [ ] ;
8284
+ FindAllInSphere ( location : Vector , radius : number ) : CBaseEntity [ ] ;
8289
8285
/**
8290
8286
* Find entities by class name. Pass 'null' to start an iteration, or reference to
8291
8287
* a previously found entity to continue a search.
8292
8288
*/
8293
- FindByClassname < T extends CBaseEntity = CBaseEntity > (
8294
- previous : CBaseEntity | undefined ,
8295
- className : string ,
8296
- ) : T | undefined ;
8289
+ FindByClassname ( previous : CBaseEntity | undefined , className : string ) : CBaseEntity | undefined ;
8297
8290
/**
8298
8291
* Find entities by class name nearest to a point.
8299
8292
*/
8300
- FindByClassnameNearest < T extends CBaseEntity = CBaseEntity > (
8301
- className : string ,
8302
- location : Vector ,
8303
- radius : number ,
8304
- ) : T | undefined ;
8293
+ FindByClassnameNearest ( className : string , location : Vector , radius : number ) : CBaseEntity | undefined ;
8305
8294
/**
8306
8295
* Find entities by class name within a radius. Pass 'null' to start an iteration,
8307
8296
* or reference to a previously found entity to continue a search.
8308
8297
*/
8309
- FindByClassnameWithin < T extends CBaseEntity = CBaseEntity > (
8298
+ FindByClassnameWithin (
8310
8299
previous : CBaseEntity | undefined ,
8311
8300
className : string ,
8312
8301
location : Vector ,
8313
8302
radius : number ,
8314
- ) : T | undefined ;
8303
+ ) : CBaseEntity | undefined ;
8315
8304
/**
8316
8305
* Find entities by model name. Pass 'null' to start an iteration, or reference to
8317
8306
* a previously found entity to continue a search.
8318
8307
*/
8319
- FindByModel < T extends CBaseEntity = CBaseEntity > (
8320
- previous : CBaseEntity | undefined ,
8321
- modelName : string ,
8322
- ) : T | undefined ;
8308
+ FindByModel ( previous : CBaseEntity | undefined , modelName : string ) : CBaseEntity | undefined ;
8323
8309
/**
8324
8310
* Find entities by model name within a radius. Pass 'null' to start an iteration,
8325
8311
* or reference to a previously found entity to continue a search.
8326
8312
*/
8327
- FindByModelWithin < T extends CBaseEntity = CBaseEntity > (
8313
+ FindByModelWithin (
8328
8314
previous : CBaseEntity | undefined ,
8329
8315
modelName : string ,
8330
8316
location : Vector ,
8331
8317
radius : number ,
8332
- ) : T | undefined ;
8318
+ ) : CBaseEntity | undefined ;
8333
8319
/**
8334
8320
* Find entities by name. Pass 'null' to start an iteration, or reference to a
8335
8321
* previously found entity to continue a search.
8336
8322
*/
8337
- FindByName < T extends CBaseEntity = CBaseEntity > ( previous : CBaseEntity | undefined , name : string ) : T | undefined ;
8323
+ FindByName ( previous : CBaseEntity | undefined , name : string ) : CBaseEntity | undefined ;
8338
8324
/**
8339
8325
* Find entities by name nearest to a point.
8340
8326
*/
8341
- FindByNameNearest < T extends CBaseEntity = CBaseEntity > (
8342
- name : string ,
8343
- location : Vector ,
8344
- radius : number ,
8345
- ) : T | undefined ;
8327
+ FindByNameNearest ( name : string , location : Vector , radius : number ) : CBaseEntity | undefined ;
8346
8328
/**
8347
8329
* Find entities by name within a radius. Pass 'null' to start an iteration, or
8348
8330
* reference to a previously found entity to continue a search.
8349
8331
*/
8350
- FindByNameWithin < T extends CBaseEntity = CBaseEntity > (
8332
+ FindByNameWithin (
8351
8333
previous : CBaseEntity | undefined ,
8352
8334
name : string ,
8353
8335
location : Vector ,
8354
8336
radius : number ,
8355
- ) : T | undefined ;
8337
+ ) : CBaseEntity | undefined ;
8356
8338
/**
8357
8339
* Find entities by targetname. Pass 'null' to start an iteration, or reference to
8358
8340
* a previously found entity to continue a search.
8359
8341
*/
8360
- FindByTarget < T extends CBaseEntity = CBaseEntity > ( previous : CBaseEntity | undefined , target : string ) : T | undefined ;
8342
+ FindByTarget ( previous : CBaseEntity | undefined , target : string ) : CBaseEntity | undefined ;
8361
8343
/**
8362
8344
* Find entities within a radius. Pass 'null' to start an iteration, or reference
8363
8345
* to a previously found entity to continue a search.
8364
8346
*/
8365
- FindInSphere < T extends CBaseEntity = CBaseEntity > (
8366
- previous : CBaseEntity | undefined ,
8367
- location : Vector ,
8368
- radius : number ,
8369
- ) : T | undefined ;
8347
+ FindInSphere ( previous : CBaseEntity | undefined , location : Vector , radius : number ) : CBaseEntity | undefined ;
8370
8348
/**
8371
8349
* Begin an iteration over the list of entities.
8372
8350
*
@@ -10223,7 +10201,7 @@ declare function EmitSoundOnLocationWithCaster(location: Vector, soundName: stri
10223
10201
*
10224
10202
* @both
10225
10203
*/
10226
- declare function EntIndexToHScript < T extends CBaseEntity = CBaseEntity > ( entityIndex : EntityIndex ) : T | undefined ;
10204
+ declare function EntIndexToHScript ( entityIndex : EntityIndex ) : CBaseEntity | undefined ;
10227
10205
10228
10206
/**
10229
10207
* Issue an order from a script table.
0 commit comments