-
Notifications
You must be signed in to change notification settings - Fork 11
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
EFX spawnarg for location entities #2
base: trunk
Are you sure you want to change the base?
EFX spawnarg for location entities #2
Conversation
sound/snd_efxfile.cpp
Outdated
effects.Append(soundEffect); | ||
} | ||
else { | ||
ok = AddPreset(efxPreset, soundEffect, err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why both cases call AddPreset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presets can be used by either the EFX file or the spawnarg, so instead of duplicating the code I refactored it into a new function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry ignore my last comment - I understand what you mean now. I've gone back and refactored it, it should look better now.
efxf(AL_EAXREVERB_ROOM_ROLLOFF_FACTOR, props->flRoomRolloffFactor); | ||
efxi(AL_EAXREVERB_DECAY_HFLIMIT, props->iDecayHFLimit); | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like missing return.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
MayaImport.vcxproj.user
Outdated
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup /> | ||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be added to VCS I suppose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed from PR
I merged this as svn rev 10797. |
Adds ability to specify EFX preset as a spawnarg on location entities.
Test map here (efxtest.map): https://github.com/FrostSalamander/dev-test-maps/tree/main