Closed JarosLucky closed 1 month ago
I think I saw an issue somewhere about this in Gmod and I wanted to add some functions, but I didn't look into the PAS yet, so I don't know what's possible and how it works
So I looked into it a bit and I don't think the engine has many PAS functions, so I would need to make my own. What functions would be useful for PAS?
ents.FindInPAS and ENTITY.TestPAS would be fantastic.
Without TestPAS for example, one has to CRecipientFilter:AddPAS, then CRecipientFilter:GetPlayers, then check if the player is in the list, if you want to determine if a specific player can hear a position
So currently I got pas.TestPAS
working which should allow you to already most things.
pas.FindInPAS
will be added a bit later.
( I should find better names for thoes :| )
I don't think I can get 64x running with it so it'll be 32x only in the next release I hope that Rubat possibly exposes it in the future in an interface but from his latest response, it looks like that won't happen :/
Finally.......... 64x is there....... (I didn't 100% test it but it seems to mostly work)
Perhaps a description is not required? We have very few opportunities to obtain PAS, which may be useful in some cases