Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New function: testSphereAgainstWorld #646

Open
CrosRoad95 opened this issue Oct 12, 2018 · 2 comments · May be fixed by #3787
Open

New function: testSphereAgainstWorld #646

CrosRoad95 opened this issue Oct 12, 2018 · 2 comments · May be fixed by #3787
Labels
enhancement New feature or request
Milestone

Comments

@CrosRoad95
Copy link
Contributor

CrosRoad95 commented Oct 12, 2018

Is your feature request related to a problem? Please describe.
Nothing to describe, simillar to processLineOfSight but instead of a line, it tests the sphere
This could be helpful for fancy scripts.

Describe the solution you'd like
/

Describe alternatives you've considered
/

Additional context
int __cdecl CWorld::TestSphereAgainstWorld(CVector sphereCenter, float sphereRadius, CEntity *ignoreEntity, char buildings, char vehicles, char peds, char objects, char dummies, char doIgnoreCameraCheck)

offset 0x00569E20

@botder botder added the enhancement New feature or request label Oct 13, 2018
@patrikjuvonen patrikjuvonen changed the title new function: testSphereAgainstWorld New function: testSphereAgainstWorld Nov 3, 2018
@botder botder added this to the Backlog milestone Mar 3, 2019
@Pirulax
Copy link
Contributor

Pirulax commented Nov 13, 2020

seems interesting, wonder why it wasnt added in the first place?
Anyways, heres the corrected prototype:

int __cdecl CWorld__TestSphereAgainstWorld(CVector sphereCenter, float sphereRadius, CEntity *ignoreEntity, bool buildings, bool vehicles, bool peds, bool objects, bool dummies, bool doIgnoreCameraCheck)

Also, seems like this function is like isLineOfSightClear(not processLineOfSight). It doesnt return any info about where it hit or anything.

@Proxy-99
Copy link
Contributor

#3787

@FileEX FileEX linked a pull request Oct 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants