Skip to content

aveasura/SniperRifleRework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Language: Русский | English

Sniper Rifle Rework

This mod reworks the sniper rifle into a more precise, quality-scaling weapon.

The goal of this mod is to make sniper rifles feel more valuable and dangerous without turning every shot into a guaranteed instant kill.

Features

  • Sniper rifle range now scales with weapon quality.
  • The weapon info card shows the correct effective range.
  • The targeting radius ring displays the updated range.
  • Sniper rifle shots have increased weighted chances to hit vital body parts.
  • Vital hit logic still uses randomness, so shots can still land on other body parts.
  • Random selection logic is isolated to be more multiplayer-friendly.

Quality-based range

Weapon quality affects sniper rifle range.

Example behavior:

  • Awful: reduced range (-2)
  • Poor: slightly reduced range (-1)
  • Normal: default range
  • Good: increased range (+1)
  • Excellent: increased range (+2)
  • Masterwork: high range bonus (+3)
  • Legendary: highest range bonus (+4)

The actual firing range, weapon info card, and targeting radius ring are all updated to use the same effective range.

Multiplayer

The mod was adjusted to be more multiplayer-friendly by isolating its custom random roll logic.

For multiplayer, all players should use:

  • The same mod version
  • The same load order
  • The same body-part-changing mods, if any are installed

Different body part mods or different mod versions may cause inconsistent results.

Requirements

  • RimWorld 1.5 or 1.6
  • Harmony

Compatibility

This mod patches sniper rifle behavior directly.

It should be compatible with most mods, but conflicts may happen with mods that also change:

  • Sniper rifle range
  • Weapon targeting radius
  • Weapon info card stats
  • Body part hit selection
  • Pawn body definitions

Installation

Steam Workshop

Subscribe on Steam Workshop:

https://steamcommunity.com/sharedfiles/filedetails/?id=3740706195

Manual installation

Download the latest release from GitHub and extract the mod folder into your RimWorld Mods directory.

Expected structure:

RimWorld/Mods/SniperRifleRework/About/About.xml
RimWorld/Mods/SniperRifleRework/Assemblies/SniperRifleRework.dll

Build from source

The project references RimWorld and Harmony assemblies through MSBuild properties.

If your RimWorld or Harmony paths are different, update these values in the .csproj file:

<RimWorldDir>C:\Program Files (x86)\Steam\steamapps\common\RimWorld</RimWorldDir>
<HarmonyModDir>C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\2009463077\1.5</HarmonyModDir>

Or pass them manually when building:

msbuild SniperRifleRework.csproj /p:RimWorldDir="D:\SteamLibrary\steamapps\common\RimWorld" /p:HarmonyModDir="D:\SteamLibrary\steamapps\workshop\content\294100\2009463077\1.5"

Notes

This mod currently focuses on the vanilla sniper rifle.

Other ranged weapons are not affected.

About

RimWorld sniper rifle rework with quality-based range and vital hit chances.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages