Author Topic: Unfinished Longbow  (Read 4100 times)

This is an unfinished longbow for anyone that would like to use it. I don't have any experience with scripting or animating so i'd figure if anyone would like to finish it, here it is.

It's got a 3 stages: Idle, pulled out, and drawn. You can right click to cancel a shot or go back to idle position. It's got a slight animation bug, no fire sounds, and default arrow projectile. I modeled the bow while conan scripted and animation. Near completion, it was abandoned before it was entirely finished. The hands don't match avatar hand color, and the shoulders are static.



DOWNLOAD

Always nice to see more bow mods. Thanks for posting

Always nice to see more bow mods. Thanks for posting
I second this. Another reason i asked for this.
I initially thought this was made with like the default playertype animation trick being used for the animations.
And while i am sad that it does not use that, i still appreciate this a lot.
The only other animated bow we had so far was the recurve bow.

EDIT:
I did a tiny bit of work on it.
Here it is.
I added two royalty free sounds (credits in the code where the sounds get created) for nocking (actually, grabbing the arrow now, nocking did not have a good playing moment) and for firing the longbow and one from the recurve bow (charge sound).
I changed the projectile to the projectile using the right arrow model.
I added a trail (also copied from the recurve bow) to it and an explosion (default bow explosion, since you require that add-on anyway).
I also edited the projectile to stick to the walls like the default arrow (armingDelay to the same value as the timeout delay and some other stuff).
I changed the CI to use the default bow CI since it did not have it's own CI created.

I also have seen the animation bug, but i only noticed it when i put the game in a low timescale really.
And the muzzlepoint is a bit off...
That, i cannot fix myself.
If you got anything you want changed, do tell, maybe i can help further.
« Last Edit: March 05, 2017, 09:41:40 PM by lordician »

I second this. Another reason i asked for this.
I initially thought this was made with like the default playertype animation trick being used for the animations.
And while i am sad that it does not use that, i still appreciate this a lot.
The only other animated bow we had so far was the recurve bow.

EDIT:
I did a tiny bit of work on it.
Here it is.
I added two royalty free sounds (credits in the code where the sounds get created) for nocking (actually, grabbing the arrow now, nocking did not have a good playing moment) and for firing the longbow and one from the recurve bow (charge sound).
I changed the projectile to the projectile using the right arrow model.
I added a trail (also copied from the recurve bow) to it and an explosion (default bow explosion, since you require that add-on anyway).
I also edited the projectile to stick to the walls like the default arrow (armingDelay to the same value as the timeout delay and some other stuff).
I changed the CI to use the default bow CI since it did not have it's own CI created.

I also have seen the animation bug, but i only noticed it when i put the game in a low timescale really.
And the muzzlepoint is a bit off...
That, i cannot fix myself.
If you got anything you want changed, do tell, maybe i can help further.
i can reexport the model with a correct muzzlepoint. i made this but couldn't fix that loving bow string anim bug so i gave up on the addon.


I second this. Another reason i asked for this.
I initially thought this was made with like the default playertype animation trick being used for the animations.
And while i am sad that it does not use that, i still appreciate this a lot.
The only other animated bow we had so far was the recurve bow.

EDIT:
I did a tiny bit of work on it.
Here it is.
I added two royalty free sounds (credits in the code where the sounds get created) for nocking (actually, grabbing the arrow now, nocking did not have a good playing moment) and for firing the longbow and one from the recurve bow (charge sound).
I changed the projectile to the projectile using the right arrow model.
I added a trail (also copied from the recurve bow) to it and an explosion (default bow explosion, since you require that add-on anyway).
I also edited the projectile to stick to the walls like the default arrow (armingDelay to the same value as the timeout delay and some other stuff).
I changed the CI to use the default bow CI since it did not have it's own CI created.

I also have seen the animation bug, but i only noticed it when i put the game in a low timescale really.
And the muzzlepoint is a bit off...
That, i cannot fix myself.
If you got anything you want changed, do tell, maybe i can help further.

Wow thanks. Could you make the arrow trail very short, and add an arrow whistle sound?
« Last Edit: March 06, 2017, 12:17:45 AM by 8hbc »

i can reexport the model with a correct muzzlepoint. i made this but couldn't fix that loving bow string anim bug so i gave up on the addon.
A shame, but when you can't fix it, it tends to get frustrating, so i understand.
If you would like to fix the muzzlepoint that would be grand. ^^
Right now it doesn't look that bad where the arrow comes from, but if that is in the right spot the bow will be just that little bit better.
Wow thanks. Could you make the arrow trail very short, and add an arrow whistle sound?
Yeah, sure.
The reason why i used the recurve bow trail is because it was just a bit smoother then the default one (and i think longer), but i can change that.
And the arrow whistle sound is probably gonna take a bit of searching, but should be out there somewhere. :P
EDIT:
Done some more work on it because i had spare time anyway and i like this way too much. :P
Redownload or click here, both the same link really.
The following has been changed:
- Arrow Trail shortened. (changed lifetime of trail particles to 100 ms, which is half the lifetime of the trail of the default arrow)
- Arrow whistle sound added.
- Removed unused ammo code. (Unless that is something that you still wanted, it was useless for now.)
- Added a sound for grabbing and stashing the arrow. (Both same sound)
- Added a sound for nocking the arrow. (There was a good spot to play that sound after all. Do note that if you draw immediatly after nocking you cannot hear it, but technically it still played. The draw sound overtakes it.)
- Added a new sound for drawing the bow. (No more recurve bow sounds!)
- Added a new sound for when the arrow hit something. (This also made me make a new stickExplosion datablock for the longbow, but it is worth it, trust me. No more annoying default bow arrow sounds!)
- State system revised.
The state system revision allowed for a bit of a smoother usage, which made it also usable with bots!
You don't have to hold the button down to draw and then shoot for example, it immediately shoots after drawing if you already let go of the button.
You can also cancel your shooting while drawing the bow, which was a bit iffy before i think.
I achieved most of this by using not only onAmmo like before but also onLoaded.
Overall using the bow should feel a bit smoother now.

In the end, i think it is pretty neat now, from how it handles to the sound effects and of course the animation (even though, you know, one is not quite right, but that is okay, almost unnoticeable).
Once again, if you want anything changed, have suggestions or something about it, do tell.
The thing i am least sure about is the stashing sound. While without a stashing sound, the stashing feels off, the sound and the animation length are not quite 100% for some reason...
So please check that out yourself and see what you think about it.
« Last Edit: March 06, 2017, 12:00:11 PM by lordician »

i can reexport the model with a correct muzzlepoint. i made this but couldn't fix that loving bow string anim bug so i gave up on the addon.

In regards to the anim issue, I can take a look at it if you want.
Although, if you are using Port's exporter, I probably won't be able to do as much.

In regards to the anim issue, I can take a look at it if you want.
Although, if you are using Port's exporter, I probably won't be able to do as much.
im using old exporter, and i'm literally just scaling bones. in blender the alignment is perfectly fine; ingame its not. i have to manually guesstimate and misalign it in old blender to get it to work.

i've also tried reboning from scratch, reanimating from scratch, both in ports and old in an attempt to fix this issue, with no luck. if i remembered how to do vertex transforms in old blender i would have probably done that instead but unfortunately i forgot :(

you should post a mini tutorial on that! you're probably one of the last who remember/know how to do it.

Vertex transforms? Do you mean using weight painting to skin the mesh to the rig or am I having a memory block atm?

Vertex transforms? Do you mean using weight painting to skin the mesh to the rig or am I having a memory block atm?
yes

Awesome work with the arrow whistle.
I added a pretty neat whistle sound and release sound.
https://www.dropbox.com/s/kj20z7gosgj5hif/Weapon_Longbow.zip?dl=0
« Last Edit: March 07, 2017, 04:44:13 PM by 8hbc »

Awesome work with the arrow whistle.
I added a pretty neat whistle sound and release sound.

You have copied a download link for a blender file in an image tag...
I think you might have made a mistake in your post. :P

the bow is good as it is, and I'm glad that it was polished

my only complaint is how thin it is. if it was thickened 100% to match the size of the default weapons, that would be perfect

the bow is good as it is, and I'm glad that it was polished

my only complaint is how thin it is. if it was thickened 100% to match the size of the default weapons, that would be perfect

This bothers me too

So i attempted to fix the muzzle point, but it appears the animations have all forgeted themselves and I have to redo them. I'll fix the model to match the blockhead a bit better, and hopefully no severe issues will show themselves.

EDIT: nvm. bone misnaming problems. fixed it. looking at all the anims made me have a headache and i dont really want to do it from scratch.

https://puu.sh/uzRVM/8fef257e27.dts

still has the incredibly infuriating lower-string animation bug, but otherwise is fixed to have correct muzzlepoint. also gave it a slightly thicker bow body as people have requested.

gonna attempt forcing it to fix itself

edit2: unsuccessful. it appears something specifically is up with the lower bone - depending on the offset it will either snap one way or another ingame. i'll tool with adjusting the base bone position and stuff.
« Last Edit: March 08, 2017, 12:02:31 PM by Conan »