openrw icon indicating copy to clipboard operation
openrw copied to clipboard

Player Animations

Open ghost opened this issue 7 years ago • 3 comments

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 -'

ghost avatar May 13 '18 09:05 ghost

Related #144

Lihis avatar May 13 '18 09:05 Lihis

i have added this in CharacterObject::updateMovementAnimation after the if (getCurrentVehicle()) { ... } verification image 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)

ghost avatar May 14 '18 00:05 ghost

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

dracc avatar Jan 16 '19 03:01 dracc