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

Litter distribution fix and "floating litter over water" fix (medical) #1164

Merged
merged 2 commits into from
May 14, 2015

Conversation

jaynus
Copy link
Contributor

@jaynus jaynus commented May 14, 2015

Fixed: Litter spawning at huge radius because createVehicleLocal was moving it on initial spawn. Added a single move on spawn, plus another on the next frame to cover collision issues.

Fixed: Litter spawned over water on carriers or other wierd places caused floating magical litter.

Fixes #1112

@jaynus jaynus added the kind/bug-fix Release Notes: **FIXED:** label May 14, 2015
@jaynus jaynus added this to the 3.1.0 milestone May 14, 2015

_litterObject setPosATL _position;
// Move the litter next frame to get rid of HORRIBLE spacing, fixes #1112
[{ (_this select 0) setPosATL (_this select 1); }, [_litterObject, _position], 0, 0] call EFUNC(common,waitAndExecute);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use execNextFrame instead of waitAndExec

@jaynus
Copy link
Contributor Author

jaynus commented May 14, 2015

Donesies

thojkooi added a commit that referenced this pull request May 14, 2015
Litter distribution fix and "floating litter over water" fix (medical)
@thojkooi thojkooi merged commit d42d0ef into master May 14, 2015
@bux bux deleted the litterFixes branch May 14, 2015 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Medical litter is spawning very spread out from the player
2 participants