RimWorld

RimWorld

167 ratings
Better Projectile Origin
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5
File Size
Posted
Updated
161.707 KB
Jul 31, 2022 @ 12:33pm
Mar 19, 2024 @ 11:47am
3 Change Notes ( view )

Subscribe to download
Better Projectile Origin

In 1 collection by Mlie
Developed by me
107 items
Description


Okay, so this mod may be a bit unnecessary but the idea got stuck in my head so I made it mostly to see if it was possible.
If you find it useful I suggest you look into the Gunplay-mod if you want more features.

In the vanilla game all projectiles shot by pawns originates from the center of the pawn, not from the weapon they are holding. The game dont know where on a weapon the projectile "should" spawn as the weapons are just textures. Ordinarily this is probably close enough but when using mods like Camera+ however, it can look a bit wierd when zoomed in.

So this mod scans all weapons at game-start, finds the last non-transparent pixel in their texture, assuming that is where the projectile should spawn. It then modifies the start-point for projectile to that spot instead of at the center of the pawn. Should work when using the Dual Wield mod as well.

Technically this will affect the combat ever so slightly, since the projectile path will be shorter depending on the length of the weapon. I dont think this will have any noticable impact however, but report if you see anything strange.

Hopefully someone will find this mod useful!

Thank you to the Projectile Offset Framework by Profilgate that put the idea in my head from the start.

[dsc.gg]
[github.com]


Since modding is just a hobby for me I expect no donations to keep modding. If you still want to show your support you can gift me anything from my Wishlist or buy me a cup of tea.

[ko-fi.com]


  • See if the the error persists if you just have this mod and its requirements active.
  • If not, try adding your other mods until it happens again.
  • Post your error-log using HugsLib or the standalone Uploader and command Ctrl+F12
  • For best support, please use the Discord-channel for error-reporting.
  • Do not report errors by making a discussion-thread, I get no notification of that.
  • If you have the solution for a problem, please post it to the GitHub repository.
  • Use RimSort[github.com] to sort your mods


55 Comments
Toyo Apr 26 @ 4:13am 
Have an issue where bullets fly across the map and hitting a random wall. This happens when the gun is fired offscreen
MrSmith Apr 20 @ 7:19am 
Since 1.5 mod causes issues with pawns unable to fire their weapon and firing animation not showing. could also be an issue with my extensive modlist
just a heads up if anyone in the future faces the same issue
Farbott Jan 12 @ 9:37am 
Dont know how possible it'd be, but I think a lot of issues could be fixed if this had a menu like show me your hands, so you can set exactly where the bullet comes out of!
R A I D E N Jan 7 @ 10:52am 
combat extendat compatibility pleaseee!
femoral2 Nov 24, 2024 @ 8:59pm 
Awesome mod if you want to avoid gunplay and it's performance issues
Ben Oct 22, 2024 @ 4:22am 
I rlly like the idea of this mod but it makes alot of modded guns fire from above the gun which looks even worse so im going to have to remove :c
R A I D E N Sep 27, 2024 @ 9:22am 
CE compatibility pleaseee!!!:steamhappy:
Mlie  [author] Sep 3, 2024 @ 10:06pm 
@R A I D E N I dont understand the question
R A I D E N Sep 3, 2024 @ 6:27pm 
you can adapt it to weapons from star wars???????????
Mlie  [author] Aug 13, 2024 @ 10:53am 
@Rapturous Please see the Reporting Issues section described above