multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.4k stars 435 forks source link

Cannot replace weapon animations #2733

Open Xenius97 opened 2 years ago

Xenius97 commented 2 years ago

Describe the bug

You can't replace any weapon animation, it will be bugged.

Steps to reproduce

Start the resource: pistolanim.zip

Version

Multi Theft Auto v1.5.9-release-21261

Additional context

Bug: https://streamable.com/z9o4b1

It should be work like this: https://youtu.be/Wm9UwrvvJEg

Relevant log output

No response

Security Policy

Haxardous commented 2 years ago

It should be work like this: https://youtu.be/Wm9UwrvvJEg

According to that video it seems like it uses a mod that modifies the camera rotation matrix "GTA V aiming (Credits: DK22Pac and Astitva)" but the animation is working.

Attempt to install the mod in singleplay without the required mod and see if it works to confirm.

Xenius97 commented 2 years ago

@Haxardous I would't be upload if not bugged. Works fine in Singleplayer without camera mod. https://streamable.com/tq13bs

Xenius97 commented 2 years ago

Basic GTA IV animations converted to SA, works perfectly in Singleplayer. https://streamable.com/dp9k8u Mod: https://www.mediafire.com/file/996ziu5bgi2scuc/GTA+4+UPDATE+WEAPON.7z

PlatinMTA commented 2 years ago

Pretty sure it's because that animation is a partial one, and you can't really change those as intended.

It should be noted that partial animations are not supported, you can still replace them, but they won't work as intended, for example, "FightA_block" animation from "ped" block is a partial animation, you can't replace it properly, only a few animations are partial, rest of them are not, so it shouldn't be a problem. https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation

TetsuDev commented 2 years ago

image

Same issues with setWeaponProperty - "flag_aim_arm".