Gsc rescale models#390
Open
Santahunter wants to merge 2 commits into
Open
Conversation
Member
|
Could we split these changes into a few smaller PRs? It's a bit too large to review effectively as one batch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey, Ive added some more core GSC functions to rescale models as you like.
I think Im going to make a pull request to IW4x soon. Many things and mods can benefit from this.
For example some people may like to resize their warzone zone barrier with it 😉
New Functions are:
ResizeModel()
resizes an object by a new factor.
obj resizeModel(<sizeFactor>, <timeInSeconds>); // time parameter is optional, empty or 0 means instante.g.
ResetModel()
obj resetModel(<time>); // resets a model to its vanilla size within time. time param is also optional here.ResizeModels()
Resizes all current and future models with that name to a new size
resizeModels(<name>, <sizeFactor>, <time>); // time optionale.g.
resizeModels("zw2_alduin", 30, 5);ResetModels()
resets all current and future models with that name within given time
resetModels("zw2_alduin", 3); // time optional, if you read it till here I think you got itReproducable GSC Code for testing:
scale.txt