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

Review for API changes #451

Merged
merged 18 commits into from
Jan 18, 2025
Merged

Review for API changes #451

merged 18 commits into from
Jan 18, 2025

Conversation

marchc1
Copy link
Member

@marchc1 marchc1 commented Jan 14, 2025

I believe everything here is merge-able into dev now. Beyond the API changes (non-breaking)...

  • Baseplates now cannot be parented
  • Baseplates, upon reaching 0 health, become invisible to ballistics

The API changes were to separate user variable types (things that get changed in the menu) vs data variable types (things that get changed in gameplay, like links). There's still work to do here but that will have to come as we work with this and see what's missing/broken/still sucks

@marchc1 marchc1 changed the base branch from master to dev January 14, 2025 20:30
@marchc1
Copy link
Member Author

marchc1 commented Jan 14, 2025

In the future; I think we should look into the entity indexing idea; caching GetTable for only ACF entities wouldn't conflict/detour into anything, and we'd avoid that Lua -> C call each index

@marchc1
Copy link
Member Author

marchc1 commented Jan 15, 2025

Note: Don't merge until I make baseplates invisible to ACF.trace rather than just ballistics

Copy link
Member

@thecraftianman thecraftianman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't try this in-game, but it seems pretty much fine as I see it.

lua/acf/ballistics/ballistics_sv.lua Outdated Show resolved Hide resolved
lua/acf/damage/damage_sv.lua Outdated Show resolved Hide resolved
lua/acf/core/classes/entities/registration.lua Outdated Show resolved Hide resolved
lua/entities/acf_baseplate/init.lua Outdated Show resolved Hide resolved
@marchc1
Copy link
Member Author

marchc1 commented Jan 18, 2025

Merging now

@marchc1 marchc1 merged commit f62410a into dev Jan 18, 2025
3 checks passed
@marchc1
Copy link
Member Author

marchc1 commented Jan 18, 2025

Keep api-updates again; I may do more work on this branch @thecraftianman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants