Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test_my_shit()
- local actor = db.actor
- local rain_fps_l = xr_sound.get_safe_sound_object ("daemonion\\misc\\rain_test_l")
- local rain_fps_r = xr_sound.get_safe_sound_object ("daemonion\\misc\\rain_test_r")
- local wpn = db.actor:active_item()
- wpn = packet_utils.item_is_fa(wpn) and wpn
- if (wpn) then
- local se_wpn = alife():object(wpn:id())
- local data = stpk_utils.get_weapon_data(se_wpn)
- if (data.weapon_state == 5) then
- rain_fps_l:play_at_pos (actor, vector():set(-5, 0, 1), 0, sound_object.s2d)
- rain_fps_r:play_at_pos (actor, vector():set(5, 0, 1), 0, sound_object.s2d)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement