Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 3 4 5 6 7 … 18 Next »
find.byModel wildcards
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
find.byModel wildcards
30-03-2020, 05:43 PM,
#1
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
find.byModel wildcards
Hello,

Could you please make find.byModel function support wildcards ?

Default native GMod function ents.FindByModel does according to the wiki.
https://wiki.facepunch.com/gmod/ents.FindByModel

Thank you,

[Image: giphy.gif]
Find
Reply
30-03-2020, 05:45 PM,
#2
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: find.byModel wildcards
Yes please

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
30-03-2020, 06:09 PM,
#3
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: find.byModel wildcards
find.byModel is a direct binding to ents.FindByModel, so it supports whatever wildcard behaviour ents.FindByModel does (which apparently is none, despite what the wiki says).

Adding wildcard support would mean basically re-implementing it, which is also possible at the Starfall level (though perhaps slightly slower). I don't have time to do that right now, but it shouldn't be too difficult to add when I do.
Find
Reply
30-03-2020, 06:50 PM, (This post was last modified: 30-03-2020, 06:50 PM by Skeleton. Edited 1 time in total.)
#4
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
RE: find.byModel wildcards
That's strange, find.byModel("models/cerus/modbridge/core/*", ai.filter) doesn't catch any props.

[Image: giphy.gif]
Find
Reply
02-04-2020, 04:26 PM,
#5
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: find.byModel wildcards
I've implemented wildcard matching to find.byModel() now which will be available after the next restart. It allows a single wildcard at the end of a model path, and should be much faster than it was before for exact model matches too.
Find
Reply
02-04-2020, 04:42 PM,
#6
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: find.byModel wildcards
(02-04-2020, 04:26 PM)Person8880 Wrote: I've implemented wildcard matching to find.byModel() now which will be available after the next restart. It allows a single wildcard at the end of a model path, and should be much faster than it was before for exact model matches too.

<3 Thanks, finding corridors will be so much easier to do

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.