Retrieve projectiles from game world

Everything about development and the OpenMW source code.
Post Reply
User avatar
akortunov
Posts: 246
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation
Github profile: https://github.com/akortunov

Retrieve projectiles from game world

Post by akortunov » 11 Mar 2018, 10:04

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: 23
Joined: 04 Aug 2017, 20:33

Re: Retrieve projectiles from game world

Post by SmartGuar » 11 Mar 2018, 11:38

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.
Ascended Lurker

User avatar
akortunov
Posts: 246
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation
Github profile: https://github.com/akortunov

Re: Retrieve projectiles from game world

Post by akortunov » 11 Mar 2018, 11:48

SmartGuar wrote:
11 Mar 2018, 11:38
What 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: 23
Joined: 04 Aug 2017, 20:33

Re: Retrieve projectiles from game world

Post by SmartGuar » 11 Mar 2018, 14:49

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
Ascended Lurker

User avatar
Greendogo
Posts: 1347
Joined: 26 Aug 2011, 02:04

Re: Retrieve projectiles from game world

Post by Greendogo » 21 Mar 2018, 08:25

This is a really cool feature! This may make playing ranged a lot more fun! Great job!

unelsson
Posts: 76
Joined: 17 Mar 2018, 14:57

Re: Retrieve projectiles from game world

Post by unelsson » 22 Mar 2018, 21:56

Great feature!

thegriglat
Posts: 24
Joined: 12 Jan 2015, 16:22

Re: Retrieve projectiles from game world

Post by thegriglat » 24 Mar 2018, 13:19

Cool!
New step is to draw projectiles when you hit creature ;)

User avatar
akortunov
Posts: 246
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation
Github profile: https://github.com/akortunov

Re: Retrieve projectiles from game world

Post by akortunov » 24 Mar 2018, 16:45

thegriglat wrote:
24 Mar 2018, 13:19
New 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: 272
Joined: 06 Jun 2017, 05:57
Github profile: https://github.com/Thunderforge

Re: Retrieve projectiles from game world

Post by Thunderforge » 05 Apr 2018, 00:26

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests