set anim speed

This commit is contained in:
2026-03-11 23:25:46 +03:00
parent 7ba7f3ac39
commit f89f3c8523
7 changed files with 31 additions and 3 deletions

View File

@@ -115,6 +115,10 @@ function weapon_base:on_state_switch(state)
if fsm_state.anim_sound then
engine.play_sound(fsm_state.anim_sound)
end
if fsm_state.anim_speed then
self:set_animation_speed(fsm_state.anim_speed)
end
end
function weapon_base:set_relative_position_to_camera( ent )