rwengine / openrw

OpenRW "Open ReWrite" is an un-official open source recreation of the classic Grand Theft Auto III game executable
http://openrw.org
GNU General Public License v3.0
1.88k stars 169 forks source link

Player Animations #457

Open ghost opened 6 years ago

ghost commented 6 years ago

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

Lihis commented 6 years ago

Related #144

ghost commented 6 years ago

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)

dracc commented 5 years ago

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