@@ -8256,117 +8256,95 @@ declare interface CEntities {
82568256 * Finds all entities by class name. Returns an array containing all the found
82578257 * entities.
82588258 */
8259- FindAllByClassname < T extends CBaseEntity = CBaseEntity > ( className : string ) : T [ ] ;
8259+ FindAllByClassname ( className : string ) : CBaseEntity [ ] ;
82608260 /**
82618261 * Find entities by class name within a radius.
82628262 */
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 [ ] ;
82688264 /**
82698265 * Find entities by model name.
82708266 */
8271- FindAllByModel < T extends CBaseEntity = CBaseEntity > ( modelName : string ) : T [ ] ;
8267+ FindAllByModel ( modelName : string ) : CBaseEntity [ ] ;
82728268 /**
82738269 * Find all entities by name. Returns an array containing all the found entities
82748270 * in it.
82758271 */
8276- FindAllByName < T extends CBaseEntity = CBaseEntity > ( name : string ) : T [ ] ;
8272+ FindAllByName ( name : string ) : CBaseEntity [ ] ;
82778273 /**
82788274 * Find entities by name within a radius.
82798275 */
8280- FindAllByNameWithin < T extends CBaseEntity = CBaseEntity > ( name : string , location : Vector , radius : number ) : T [ ] ;
8276+ FindAllByNameWithin ( name : string , location : Vector , radius : number ) : CBaseEntity [ ] ;
82818277 /**
82828278 * Find entities by targetname.
82838279 */
8284- FindAllByTarget < T extends CBaseEntity = CBaseEntity > ( target : string ) : T [ ] ;
8280+ FindAllByTarget ( target : string ) : CBaseEntity [ ] ;
82858281 /**
82868282 * Find entities within a radius.
82878283 */
8288- FindAllInSphere < T extends CBaseEntity = CBaseEntity > ( location : Vector , radius : number ) : T [ ] ;
8284+ FindAllInSphere ( location : Vector , radius : number ) : CBaseEntity [ ] ;
82898285 /**
82908286 * Find entities by class name. Pass 'null' to start an iteration, or reference to
82918287 * a previously found entity to continue a search.
82928288 */
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 ;
82978290 /**
82988291 * Find entities by class name nearest to a point.
82998292 */
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 ;
83058294 /**
83068295 * Find entities by class name within a radius. Pass 'null' to start an iteration,
83078296 * or reference to a previously found entity to continue a search.
83088297 */
8309- FindByClassnameWithin < T extends CBaseEntity = CBaseEntity > (
8298+ FindByClassnameWithin (
83108299 previous : CBaseEntity | undefined ,
83118300 className : string ,
83128301 location : Vector ,
83138302 radius : number ,
8314- ) : T | undefined ;
8303+ ) : CBaseEntity | undefined ;
83158304 /**
83168305 * Find entities by model name. Pass 'null' to start an iteration, or reference to
83178306 * a previously found entity to continue a search.
83188307 */
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 ;
83238309 /**
83248310 * Find entities by model name within a radius. Pass 'null' to start an iteration,
83258311 * or reference to a previously found entity to continue a search.
83268312 */
8327- FindByModelWithin < T extends CBaseEntity = CBaseEntity > (
8313+ FindByModelWithin (
83288314 previous : CBaseEntity | undefined ,
83298315 modelName : string ,
83308316 location : Vector ,
83318317 radius : number ,
8332- ) : T | undefined ;
8318+ ) : CBaseEntity | undefined ;
83338319 /**
83348320 * Find entities by name. Pass 'null' to start an iteration, or reference to a
83358321 * previously found entity to continue a search.
83368322 */
8337- FindByName < T extends CBaseEntity = CBaseEntity > ( previous : CBaseEntity | undefined , name : string ) : T | undefined ;
8323+ FindByName ( previous : CBaseEntity | undefined , name : string ) : CBaseEntity | undefined ;
83388324 /**
83398325 * Find entities by name nearest to a point.
83408326 */
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 ;
83468328 /**
83478329 * Find entities by name within a radius. Pass 'null' to start an iteration, or
83488330 * reference to a previously found entity to continue a search.
83498331 */
8350- FindByNameWithin < T extends CBaseEntity = CBaseEntity > (
8332+ FindByNameWithin (
83518333 previous : CBaseEntity | undefined ,
83528334 name : string ,
83538335 location : Vector ,
83548336 radius : number ,
8355- ) : T | undefined ;
8337+ ) : CBaseEntity | undefined ;
83568338 /**
83578339 * Find entities by targetname. Pass 'null' to start an iteration, or reference to
83588340 * a previously found entity to continue a search.
83598341 */
8360- FindByTarget < T extends CBaseEntity = CBaseEntity > ( previous : CBaseEntity | undefined , target : string ) : T | undefined ;
8342+ FindByTarget ( previous : CBaseEntity | undefined , target : string ) : CBaseEntity | undefined ;
83618343 /**
83628344 * Find entities within a radius. Pass 'null' to start an iteration, or reference
83638345 * to a previously found entity to continue a search.
83648346 */
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 ;
83708348 /**
83718349 * Begin an iteration over the list of entities.
83728350 *
@@ -10223,7 +10201,7 @@ declare function EmitSoundOnLocationWithCaster(location: Vector, soundName: stri
1022310201 *
1022410202 * @both
1022510203 */
10226- declare function EntIndexToHScript < T extends CBaseEntity = CBaseEntity > ( entityIndex : EntityIndex ) : T | undefined ;
10204+ declare function EntIndexToHScript ( entityIndex : EntityIndex ) : CBaseEntity | undefined ;
1022710205
1022810206/**
1022910207 * Issue an order from a script table.
0 commit comments