ACF-3 icon indicating copy to clipboard operation
ACF-3 copied to clipboard

[BUG] [Dev Branch] Some weapons firing with bullets spawned behind them, and weapons firing completely backwards

Open CheezusChrust opened this issue 4 years ago • 1 comments

Short Description

I have genuinely no idea how to reproduce this, I was given a dupe after a friend discovered this bug. His autocannons shoot with the bullets spawned behind the gun and half of his mortars shoot backwards.

Branch and Version

Happens on both ACF-2 and latest update ACF-3 servers, happens on any ACF-3 branch.

Console Error Logs

No errors.

How to Reproduce (Optional)

I genuinely cannot figure out how to reproduce so here's a dupe to experiment with. R to unlock the turret rotation, M1 and M2 to fire guns. Bug happens once the baseplate is unfrozen and rotated 90 degrees in either direction. wtf_001.txt

Screenshots

https://streamable.com/l0o3yv

Additional Information

gun broke

CheezusChrust avatar Mar 01 '21 00:03 CheezusChrust

Being honest with you, I don't know exactly why this is happening either. Although I did notice that maybe it could be a parenting problem. From what I can see by debugging the E2, the base where everything gets parented to should be the baseplate, a prop. However, after checking the parenting chain it seems like the base for the turret is actually the E2 itself.

Chain of one of the mortars:

Entity [156][acf_gun]
Entity [151][acf_gun] <---- another mortar
Entity [178][gmod_wire_hologram]
Entity [175][gmod_wire_hologram]
Entity [172][gmod_wire_expression2]

Chain of one of the autocannons:

[Entity [160][acf_gun]
Entity [140][prop_physics]
Entity [170][gmod_wire_gate]
Entity [151][acf_gun]
Entity [178][gmod_wire_hologram]
Entity [175][gmod_wire_hologram]
Entity [172][gmod_wire_expression2]

In both of these cases, the base, according to the wiring on the E2 (172), should be a prop_physics with the ID 171. Although the parenting is not "looped" like on a similar case I checked some time ago, it does seem odd to me. But they do share something in common, which is the ancestor entity returning absolutely fucked up values for its velocity.

EDIT: Apparently it's correct for the E2 to be the baseplate.

TwistedTail avatar Mar 18 '21 04:03 TwistedTail