CombatExtended-Continued / CombatExtended

Combat Extended mod for RimWorld
377 stars 255 forks source link

[Bug]: Always miss and hit embrasure when shooting through corner embrasure #500

Closed a7x492 closed 3 years ago

a7x492 commented 3 years ago

Specifications

Rimworld version:1.2.2753 Combat Extended version: 1.2 (December 7 update from steam) Combat Extended source (Steam, GitHub, etc.): Steam Your operating system: Mac Your mod list:

Mod List Version: 1 Name: bug Mods: - Id: brrainz.harmony Name: Harmony - Id: ludeon.rimworld Name: Core - Id: ludeon.rimworld.royalty Name: Royalty - Id: unlimitedhugs.hugslib Name: HugsLib - Id: fluffy.modmanager Name: Mod Manager - Id: madeline.modmismatchformatter Name: Better ModMismatch Window - Id: edb.preparecarefully Name: EdB Prepare Carefully - Id: rensen.msoresearch Name: More Scenario Options - Research - Id: arandomkiwi.rimsaves Name: RimSaves - Id: vanillaexpanded.vtexe Name: Vanilla Textures Expanded - Id: telefonmast.graphicssettings Name: Graphics Settings+ - Id: nandonalt.snowytrees Name: Snowy Trees - Id: sarg.smartspeed Name: Smart Speed - Id: fluffy.followme Name: Follow Me - Id: saucypigeon.showfertility Name: Show Fertility - Id: falconne.heatmap Name: Heat Map - Id: krafs.levelup Name: Level Up! - Id: uuugggg.listeverything Name: List Everything - Id: mehni.numbers Name: Numbers - Id: bodlosh.weaponstats Name: WeaponStats - Id: dubwise.dubsmintmenus Name: Dubs Mint Menus - Id: nals.dynamicportraits Name: '[NL] Dynamic Portraits' - Id: jaxe.rimhud Name: RimHUD - Id: lostrd.wildanimalalert Name: Wild Animal Alert - Id: gguake.ui.simplesearchbar Name: Simple Search Bar - Id: navyseal5.moreharvestdesignators Name: More Harvest Designators! - Id: erdelf.exportagency Name: Export Agency - Id: notfood.researchpal Name: ResearchPal - Id: tammybee.raiderinfo Name: RaiderInfo - Id: fluffy.relationstab Name: Relations Tab - Id: fluffy.medicaltab Name: Medical Tab - Id: unlimitedhugs.allowtool Name: Allow Tool - Id: hatti.qualitybuilder Name: QualityBuilder - Id: longwater.smartstockpilecreation Name: Quick Stockpile Creation - Id: uuugggg.whatismypurpose Name: What Is My Purpose - Id: mlph.openeddoorsdontblocklight Name: Opened Doors Don't Block Light - Id: uuugggg.everybodygetsone Name: Everybody Gets One - Id: mlie.pickupandhaul Name: Pick Up And Haul (Continued) - Id: uuugggg.smartmedicine Name: Smart Medicine - Id: uuugggg.usebedrolls Name: Use Bedrolls - Id: tradingspot.kv.rw Name: '[KV] Trading Spot' - Id: mlie.dismisstrader Name: Dismiss Trader (Continued) - Id: fyarn.priorityclean Name: PriorityClean - Id: eagle0600.dresspatients Name: Dress Patients - Id: fluffy.colonymanager Name: Colony Manager - Id: frozensnowfox.complexjobs Name: '[FSF] Complex Jobs' - Id: uuugggg.randomresearch Name: Random Research - Id: ceteam.combatextended Name: Combat Extended - Id: petetimessix.simplesidearms Name: Simple sidearms - Id: nykot.rpgstyleinventoryce Name: RPG Style Inventory CE Revived [1.2] - Id: voult.betterpawncontrol Name: Better Pawn Control - Id: ceteam.combatextendedguns Name: Combat Extended Guns - Id: n7huntsman.combatextendedshields Name: 'Combat Extended: Shields' - Id: showhair.kv.rw Name: '[KV] Show Hair With Hats or Hide All Hats' - Id: mireia.bodies Name: Beautiful Bodies - Id: children.and.pregnancy Name: Children and Pregnancy - Id: roolo.runandgun Name: RunAndGun - Id: roolo.giddyupcore Name: Giddy-up! Core - Id: roolo.giddyupbattlemounts Name: Giddy-up! Battle Mounts - Id: roolo.giddyupcaravan Name: Giddy-up! Caravan - Id: roolo.giddyuprideandroll Name: Giddy-up! Ride and Roll - Id: spoonshortage.adogsaidanimalprosthetics Name: A Dog Said... Animal Prosthetics - Id: lbeaston.adogsaideasypatcher Name: LBE's A Dog Said Easy Patcher - Id: vanillaexpanded.vaeas Name: Vanilla Animals Expanded — Arid Shrubland - Id: vanillaexpanded.vaeau Name: Vanilla Animals Expanded — Australia - Id: vanillaexpanded.vaet Name: Vanilla Animals Expanded — Tundra - Id: vanillaexpanded.vaets Name: Vanilla Animals Expanded — Tropical Swamp - Id: vanillaexpanded.vaetr Name: Vanilla Animals Expanded — Tropical Rainforest - Id: vanillaexpanded.vaeis Name: Vanilla Animals Expanded — Ice Sheet - Id: vanillaexpanded.vaeed Name: Vanilla Animals Expanded — Extreme Desert - Id: vanillaexpanded.vaebf Name: Vanilla Animals Expanded — Boreal Forest - Id: vanillaexpanded.vaecd Name: Vanilla Animals Expanded — Cats and Dogs - Id: vanillaexpanded.vaed Name: Vanilla Animals Expanded — Desert - Id: vanillaexpanded.vaeendandext Name: Vanilla Animals Expanded — Endangered - Id: oskarpotocki.vanillafactionsexpanded.core Name: Vanilla Expanded Framework - Id: vanillaexpanded.vaetf Name: Vanilla Animals Expanded — Temperate Forest - Id: jamaicancastle.rf.fertilefields Name: Fertile Fields [1.1] - Id: notfood.seedsplease Name: SeedsPlease - Id: shadow.spaiomegapatch Name: 'SeedsPlease: All-In-One Megapatch' - Id: dracoix.doormat.r12a Name: Door Mat - Id: earthyturtle.letstrade Name: Let's Trade! - Id: peppsen.pmusic Name: P-Music - Id: wemd.realisticdarkness Name: '[WD] Realistic Darkness'

Description I tried to shoot a raider with a short bow through an embrasure. It consistently narrowly misses, hitting the embrasure instead.

Expected behavior I expect the arrow to hit the raider often. I am only two squares away. If I move one square over, I hit the raider consistently. Keep in mind in both cases there is an embrasure between me and the raider. But in the first case, I always miss, and in the second case, I almost always hit.

To reproduce

The arrangement should be exactly like so:

W = wall E = embrasure C = colonist R = Raider X = Wall, embrasure, or door. actively being attacked by the raider

          R
W W W E X E            < - - - Cannot hit raider!
        C E 
          W W W W

My weapon is a short bow with stone arrows and my shooting skill is around 5.

Now, in this position, I miss every single time. The log says "narrowly missed, but hit embrasure instead".

Now say we rearrange things a bit:

        R
W W W E X E          < - - - CAN hit raider!         
        C E 
          W W W W

          R
W W W E X E          < - - - CAN hit raider!         
      C   E 
          W W W W

W W W E E E          < - - - CAN hit raider!         
      C   E R 
          W X W W

W W W E E E          < - - - CAN hit raider!         
        C E R 
          W X W W

In all the cases above where I said "CAN hit raider", the hit rate is very high, near 100%. However in the specific position, I showed first, the hit rate is 0.

Screenshots & log dumps

Completely impossible to hit raider like this

Screen Shot 2021-01-25 at 9 13 40 PM

mouseover tooltip in problematic position

Screen Shot 2021-01-25 at 9 14 52 PM

mouseover tooltip in position with no problems (near 100% accuracy)

Screen Shot 2021-01-25 at 9 15 28 PM

Complete the following checklist I hereby verify that I have done the following:

a7x492 commented 3 years ago
Screen Shot 2021-01-25 at 9 27 36 PM
a7x492 commented 3 years ago

After additional testing I can confirm I have the same issue with this configuration:


W W W E E E R            < - - - Cannot hit raider!
        C X 
          W W W W