Retrieve projectiles from game world

Everything about development and the OpenMW source code.
Post Reply
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Retrieve projectiles from game world

Post by akortunov »

Just for fun:
Image
Image

I managed to add an ability to retrieve projectiles from game world.
Of course, this feature has some limitations. For example, if you move the crate from the screenshot, projectiles will hang in the air.
Related code is here.
Last edited by akortunov on 04 Apr 2018, 07:54, edited 2 times in total.
User avatar
SmartGuar
Posts: 45
Joined: 04 Aug 2017, 20:33

Re: Retrieve projectiles from game world

Post by SmartGuar »

This is amazing, I have been waiting for something like this. Thank you for your work! :)

What do you mean by moving the crate? Do you mean moving it in the editor? Because that doesn't seem to me like a problem since you can't do it in-game. I would love for this to be merged upstream, but I doubt it is going to happen before 1.0 even if it works perfectly.
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Retrieve projectiles from game world

Post by akortunov »

SmartGuar wrote: 11 Mar 2018, 11:38What do you mean by moving the crate? Do you mean moving it in the editor?
No, I mean by console command.
For example, you can hit a door, animated container, banner, floating barrel, etc. Despite the object is moving, the projectile is still rigid.
User avatar
SmartGuar
Posts: 45
Joined: 04 Aug 2017, 20:33

Re: Retrieve projectiles from game world

Post by SmartGuar »

akortunov wrote: 11 Mar 2018, 11:48 No, I mean by console command.
For example, you can hit a door, animated container, banner, floating barrel, etc. Despite the object is moving, the projectile is still rigid.
Okay, I understand. But this is still awesome. :D
User avatar
Greendogo
Posts: 1467
Joined: 26 Aug 2011, 02:04

Re: Retrieve projectiles from game world

Post by Greendogo »

This is a really cool feature! This may make playing ranged a lot more fun! Great job!
unelsson
Posts: 227
Joined: 17 Mar 2018, 14:57

Re: Retrieve projectiles from game world

Post by unelsson »

Great feature!
thegriglat
Posts: 25
Joined: 12 Jan 2015, 16:22

Re: Retrieve projectiles from game world

Post by thegriglat »

Cool!
New step is to draw projectiles when you hit creature ;)
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Retrieve projectiles from game world

Post by akortunov »

thegriglat wrote: 24 Mar 2018, 13:19New step is to draw projectiles when you hit creature ;)
I am not sure if it is possible yet - we use collision boxes for hit detection, so:
1) The hit position is on collision box, not on target body.
2) I have no idea to which bone attach projectile - it should move with actor depending on animation, right?
User avatar
Thunderforge
Posts: 503
Joined: 06 Jun 2017, 05:57

Re: Retrieve projectiles from game world

Post by Thunderforge »

So is there any chance that this might make it into the codebase some day?
Post Reply