Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The anm_open_empty animation doesn't seem to play properly. #480

Closed
starlight1943ld opened this issue Jun 28, 2024 · 5 comments
Closed

The anm_open_empty animation doesn't seem to play properly. #480

starlight1943ld opened this issue Jun 28, 2024 · 5 comments
Labels

Comments

@starlight1943ld
Copy link

Even if there are no bullets left in the weapon, the anm_open_empty animation doesn't trigger properly and will only play in the order of anm_open to anm_add_cartridge_empty.

@xrSimpodin
Copy link
Member

There is no anm_open_empty animation in this engine at all.

For gunslinger-style shotguns, we support the following set of animations (they don’t need anm_open* animations at all):

[wpn_wincheaster1300]
is_gunslinger_weapon = true
hud = wpn_wincheaster1300_hud

[wpn_wincheaster1300_hud]
;добавление патрона
anm_add_cartridge			    = winchester1300_pistol_reload_ammo, winchester1300_reload_ammo
anm_add_cartridge_start			    = winchester1300_pistol_reload_start, winchester1300_reload_start
lock_time_end_anm_add_cartridge_start = 0.1
anm_add_cartridge_empty			    = winchester1300_pistol_reload_empty_start, winchester1300_reload_empty_start
lock_time_end_anm_add_cartridge_empty = 0.1
anm_add_cartridge_second		    = winchester1300_pistol_reload_empty_second_ammo, winchester1300_reload_empty_second_ammo

;конец релоада
anm_close			                = winchester1300_pistol_reload_end, winchester1300_reload_end
anm_close_empty			            = winchester1300_pistol_reload_empty_end, winchester1300_reload_end

;расклин
anm_reload_jammed			= winchester1300_pistol_revival, winchester1300_revival
anm_reload_jammed_last		= winchester1300_pistol_revival, winchester1300_revival

@starlight1943ld
Copy link
Author

starlight1943ld commented Jun 29, 2024

I made an attempt, but the non-loading animations anm_add_cartridge_start and anm_add_cartridge_empty also cause the number of rounds in the chamber to increase by one, is there a solution for this?

@xrSimpodin
Copy link
Member

you can see how it works using the example of OGSR:Gunslinger Addon
there are no problems with these animations

@xrSimpodin
Copy link
Member

xrSimpodin commented Jun 29, 2024

well, I can add anm_open_empty if you need it

UPD: You can download builded engine and check if it now works as you need.

@starlight1943ld
Copy link
Author

I just tested it and it works great, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants