set anim speed
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -14,7 +14,7 @@ weapon_ump.m_fsm[WEAPON_FSM_STATE_IDLE] = {
|
||||
weapon_ump.m_fsm[WEAPON_FSM_STATE_ATTACK] = {
|
||||
anim = "shoot1", -- имя анимации
|
||||
anim_playback = ANIM_PLAYBACK_NONE,
|
||||
anim_speed = 1.0, -- обычная скорость анимации
|
||||
anim_speed = 6.0, -- обычная скорость анимации
|
||||
anim_sound = "data/sounds/weapons/ump45_shoot.wav"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user