Open ghost opened 6 years ago
Related #144
i have added this in CharacterObject::updateMovementAnimation after the if (getCurrentVehicle()) { ... } verification
auto item = getActiveItem(); if (currentState.weapons[item].weaponId == unsigned(item)) { bool hasammo = currentState.weapons[item].bulletsClip > 0; if (currentState.primaryActive && hasammo) { return glm::vec3(); } }
to fix the moviment when shoot and this on CharacterObject::useItem to fix shoots inside cars
if (getCurrentVehicle()) {return;}
i dont know if its a good fix but can do something.. sorry i dont know how to ident this in git (first time using -q)
Related, I guess? When attacking a car (for example), if you keep your attack button pressed and change weapons, the new weapon is used in the same animation. Video on imgur
Hmm in gta modding have PlayAnimNonInterruptable, maybe its a nice option block the input movements when starts a animation, example, when hit f to enter in the car, if u move the player will bug, and when shoots with weapons and press w/a/s/d the player move -'