update15 #34
2 changed files with 2 additions and 1 deletions
Fix harpoon badly attaching to some static meshes
Just needed to add proper computation of relative location, that takes into account mesh's own rotation.
commit
501662a7d7
|
|
@ -710,7 +710,7 @@ function Stick(Actor target, Vector hitLocation) {
|
||||||
expData.affectedByScream = charAffectedByScream;
|
expData.affectedByScream = charAffectedByScream;
|
||||||
|
|
||||||
if (!target.IsA('NiceMonster')) {
|
if (!target.IsA('NiceMonster')) {
|
||||||
hitLocation -= target.location;
|
hitLocation = (hitLocation - target.location) << target.rotation;
|
||||||
boneStick = 'None';
|
boneStick = 'None';
|
||||||
resultTarget = target;
|
resultTarget = target;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -259,6 +259,7 @@ static function SpawnStuckProjectile(
|
||||||
} else {
|
} else {
|
||||||
spawnedBullet.SetBase(base);
|
spawnedBullet.SetBase(base);
|
||||||
spawnedBullet.SetRelativeLocation(shift);
|
spawnedBullet.SetRelativeLocation(shift);
|
||||||
|
spawnedBullet.SetRelativeRotation(direction - base.rotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue