mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Spear magic
This commit is contained in:
parent
c8bb0050ad
commit
95347e8a60
@ -921,7 +921,7 @@
|
||||
),
|
||||
AdletSpear: (
|
||||
bone0: (
|
||||
offset: (-12.5, -12.5, 0.0),
|
||||
offset: (5.0, -22.0, -2.0),
|
||||
central: ("weapon.projectile.adlet-spear"),
|
||||
),
|
||||
bone1: (
|
||||
|
BIN
assets/voxygen/voxel/weapon/projectile/adlet-spear.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/weapon/projectile/adlet-spear.vox
(Stored with Git LFS)
Binary file not shown.
@ -247,7 +247,6 @@ impl Animation for ShootAnimation {
|
||||
let pullback = 1.0 - move3;
|
||||
let move1abs = move1base * pullback;
|
||||
let move2abs = move2base * pullback;
|
||||
|
||||
next.control_l.position = Vec3::new(
|
||||
0.0,
|
||||
0.0 + move1abs * 4.0 + move2abs * -4.0,
|
||||
@ -273,6 +272,15 @@ impl Animation for ShootAnimation {
|
||||
next.control.orientation =
|
||||
Quaternion::rotation_x(-0.3 + move1abs * 0.5 + move2abs * -0.5 + move3 * 0.5)
|
||||
* Quaternion::rotation_y(0.5 * speednorm);
|
||||
|
||||
if matches!(stage_section, Some(StageSection::Recover)) {
|
||||
if move3 < 0.05 {
|
||||
next.main.position += Vec3::new(0.0, 100000.0, -10000000.0);
|
||||
}
|
||||
if move3 < 0.3 {
|
||||
next.main.scale = Vec3::zero();
|
||||
}
|
||||
}
|
||||
},
|
||||
_ => {},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user