Skip to content

Commit

Permalink
Pass position to aim-vob-shift config function
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Nov 8, 2017
1 parent 8fe9d7d commit 88f18df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _work/data/Scripts/Content/GFA/_intern/aimVob.d
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func void GFA_AimVobManipulatePos(var int posPtr) {
};

// Check whether aim vob should be shifted
var int shifted; shifted = GFA_ShiftAimVob(spell);
var int shifted; shifted = GFA_ShiftAimVob(spell, posPtr);

if (shifted) {
shifted = mkf(shifted); // Amount to shift the aim vob along the out vector of the camera
Expand Down
2 changes: 1 addition & 1 deletion _work/data/Scripts/Content/GFA/config/spell.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* the aim vob to be shifted. Exceptions are spells that utilize the aim vob as target to spawn VFX on it with the
* functions GFA_AimVobAttachFX() and GFA_AimVobDetachFX().
*/
func int GFA_ShiftAimVob(var int spellID) {
func int GFA_ShiftAimVob(var int spellID, var int posPtr) {
// if (spellID == ...) { return -100; }; // Push the aim vob 100 cm away from any wall towards the player

// Usually none
Expand Down

0 comments on commit 88f18df

Please sign in to comment.