RimWorld

RimWorld

211 ratings
Better Projectile Origin
2
5
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6, 1.7
File Size
Posted
Updated
199.636 KB
Jul 31, 2022 @ 12:33pm
Oct 23 @ 7:51am
7 Change Notes ( view )

Subscribe to download
Better Projectile Origin

In 1 collection by Mlie
Developed by me
113 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.

[discord.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.
  • Always post your log using the Log Uploader
  • 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

| camera compatibility, visual enhancements
66 Comments
Mlie  [author]
Jul 14 @ 12:10am 
@Intelligen't I dont know, never used CE. Probably not
Jul 13 @ 10:16pm 
is this compatible with ce?
Jun 2 @ 1:07pm 
Thanks for the fix!
Mlie  [author]
Jun 2 @ 11:22am 
@lucky_one 🍀 Should be fixed now, thanks for reporting!
Feb 27 @ 7:58am 
Having same issue has Toyo & lucky_one
Aug 8, 2025 @ 3:27am 
I just tested it with this mod alone and it still happens. Here is the I recorded earlier:

https://cdn.steamusercontent.com/ugc/15093664409934984501/F259FDC3A10B6066ED4988A8DD712CF4F7AEE39C/
Aug 7, 2025 @ 6:48pm 
Hi Mlie! I found a weird and interesting bug that I’ve traced back to this mod.

When you have multiple pawns selected and drag them to move to another location (so you see the “ghost” of the pawn in that position), if they are firing, the shot will come from the ghost’s position instead of the actual pawn.

This isn’t just a visual glitch, the projectile actually originates from the ghost. So if you drag the ghosts around while the pawns are firing, you can position them behind an enemy, pawn, or object, and the shot might hit it from there.

If my explanation isn’t clear (it’s easy to test), I can post a clip here or on the Discord.
Aug 3, 2025 @ 7:00am 
What about turrets?
Jul 8, 2025 @ 11:01am 
This has been a must-have,.thank you for the 1.6 update! :RelicII:
I know you're incredibly busy, but after other priorities, is there any possibility this same origin logic can be applied to turrets? It's especially noticeable with autocannon and chargeblaster turrets to see the bullets coming from the very center instead of their barrels
Mlie  [author]
May 14, 2025 @ 12:59pm 
@[Brooker] Please see the Reporting Issues section described above