RaphaelIT7 / gmod-holylib

A library that contains some functions and optimizations for gmod.
39 stars 4 forks source link

Add PAS functions similar to PVS #1

Closed JarosLucky closed 1 month ago

JarosLucky commented 3 months ago

Perhaps a description is not required? We have very few opportunities to obtain PAS, which may be useful in some cases

RaphaelIT7 commented 3 months 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

RaphaelIT7 commented 3 months ago

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?

WinterPhoenix commented 3 months ago

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

RaphaelIT7 commented 2 months ago

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 :| )

RaphaelIT7 commented 2 months ago

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 :/

RaphaelIT7 commented 1 month ago

Finally.......... 64x is there....... (I didn't 100% test it but it seems to mostly work)