Replaces the (really slow and easiest to headshot tbh) crouchwalking animation to their standing/running animations. Just cause if I just killed 3 of your guys as you came out of an elevator or a door irl, I always thought it'd make more sense for you to sprint and rush me instead, lol
I tried to borrow stuff from LIEs at first to see if I could edit it to make cops never crouchwalk with lua files at first, but the game doesn't seem to wanna acknowledge the edits I made, lol. So I just replaced the animations instead with mod_overrides, lol.
Hmmm I'm honestly not sure how to get rid of the bug in a true sense. I first tried adding something in chartweaklua like self.fbi_heavy_swat.allowed.poses = {stand =true, crouch=false} and self.fbi_heavy_swat.crouch_move = false but that didn't work.
I don't quite remember what coplogic lua I tried hijacking in lies cause it was a while ago. But whatever I did didn't work either.
@act2498 I know streamlined heisting had a lot cool features (like fixing cops only doing 2 shot burst bug) and now I went and read the description of the mod and now I know it does say "Fixes enemies crouch-walking when they are supposed to run". But I had a hard time trying to find what code actually fixes the bug in the lua files (can't make out what fixes crouch walking in its coplogictravel.lua, copmovement.lua, or copactionwalk.lua, lots of comments properly documenting what everything does unlike lies, but couldn't find one saying "hey this fixes crouchwalking bug").
I guess I will have to actually finally play the mod now to get a better idea which lua does what lol.
@brofessor174 it's a side effect of an issue in CopLogicIdle._chk_relocate, where enemies are basically forced to move towards players if their current area doesnt have players in it. if enemies just spawned and still have their spawn objective (which makes them crouch) and are forced to move by thhat function, then they will just crouchwalk. fixing this function fixes a lot of other issues that may make the game feel very different though.
@hoppip Ah, I would have never guessed the fix to the bug was in coplogicidle. Thanks, much appreciated.
I went and took that part of coplogicidle._chk_relocate from your mod and tried to make it a standalone for myself and in terms of stuff being different I noticed about 50% of cops finally use their sprinting animations and running animations, instead of 99% of the cops always crouchwalking to me, which is awesome. It also doesn't seem to cause clients crashing or having their cops freeze up either, so I guess everyone else who wants their cops to not crouchwalk using lua knows what they have to do now.
25 808
We Use Cookies 🍪We use cookies to improve your user experience. Will you allow us to store them?
cops crouchwalking is a code bug so you better fix it using another method lol
Hmmm I'm honestly not sure how to get rid of the bug in a true sense. I first tried adding something in chartweaklua like self.fbi_heavy_swat.allowed.poses = {stand =true, crouch=false} and self.fbi_heavy_swat.crouch_move = false but that didn't work.
I don't quite remember what coplogic lua I tried hijacking in lies cause it was a while ago. But whatever I did didn't work either.
i think Streamlined Heisting did fix that bug...
but now i wonder if this mod have sync issue?
@act2498 I know streamlined heisting had a lot cool features (like fixing cops only doing 2 shot burst bug) and now I went and read the description of the mod and now I know it does say "Fixes enemies crouch-walking when they are supposed to run". But I had a hard time trying to find what code actually fixes the bug in the lua files (can't make out what fixes crouch walking in its coplogictravel.lua, copmovement.lua, or copactionwalk.lua, lots of comments properly documenting what everything does unlike lies, but couldn't find one saying "hey this fixes crouchwalking bug").
I guess I will have to actually finally play the mod now to get a better idea which lua does what lol.
@brofessor174 it's a side effect of an issue in
CopLogicIdle._chk_relocate
, where enemies are basically forced to move towards players if their current area doesnt have players in it. if enemies just spawned and still have their spawn objective (which makes them crouch) and are forced to move by thhat function, then they will just crouchwalk. fixing this function fixes a lot of other issues that may make the game feel very different though.@hoppip Ah, I would have never guessed the fix to the bug was in coplogicidle. Thanks, much appreciated.
I went and took that part of coplogicidle._chk_relocate from your mod and tried to make it a standalone for myself and in terms of stuff being different I noticed about 50% of cops finally use their sprinting animations and running animations, instead of 99% of the cops always crouchwalking to me, which is awesome. It also doesn't seem to cause clients crashing or having their cops freeze up either, so I guess everyone else who wants their cops to not crouchwalk using lua knows what they have to do now.