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

Add hook for autowear #1310

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Add hook for autowear #1310

merged 2 commits into from
Oct 9, 2023

Conversation

Python1320
Copy link
Collaborator

@Python1320 Python1320 commented Oct 9, 2023

Will be used for disabling or changing to autowear_terrortown.txt so ttt can have different default outfits.

Copy link
Collaborator

@thegrb93 thegrb93 left a comment

Choose a reason for hiding this comment

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

Slightly cleaner

local autoload_file = "autoload"
local autoload_result = hook.Run("PAC3Autoload", autoload_file)

if autoload_result ~= false then
	if isstring(autoload_result) then
		autoload_file = autoload_result
	end

	pac.Message("Wearing " .. autoload_file .. "...")
	pace.LoadParts(autoload_file)
	pace.WearParts()
end

Fine merging as is though

@Python1320 Python1320 merged commit fc118d1 into develop Oct 9, 2023
1 check passed
@Python1320 Python1320 deleted the patch-autowear-hook branch October 9, 2023 21:24
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