---------------------ВОСПРОИЗВОДИМ ЗВУК ДЫХАНИЯ ПРИ ОДЕТОМ ШЛЕМЕ-----------------------------
function sound_update()
local outfit = db.actor:item_in_slot(6)
local no_snd_power = 0.18
if (db.actor:object("helmet_stalker") or (outfit and outfit:section() and outfits[outfit:section()])) and no_snd_power<db.actor.power then
if not snd:playing() then snd:play_at_pos(db.actor, vector ():set (0, 0, 0), 0, sound_object.s2d) end
else
if snd:playing() then snd:stop() end
end
no_snd_power = db.actor.power
end
Hi. You need a cam-effect when shooting? This is a old stand-alone mode Dynamic HUD by Bak aka Rulix.
function shoot_effect() call from actor binder update.
See rx_shoot_enable.script and misc\rx_shoot_enable.ltx.
Also need cam-effects from directory anims\shoot\
function shoot_effect()
function actor_binder:update(delta)
rx_shoot_enable.shoot_effect ()
function actor_binder:update(delta)
rx_shoot_enable.shoot_effect()
rx_shoot_enable.script
rx_shoot_enable.ltx
FATAL ERROR
[error]Expression : fatal error
[error]Function : CScriptEngine::lua_error
[error]File : E:\stalker\patch_1_0004\xr_3da\xrGame\script_engine.cpp
[error]Line : 73
[error]Description : <no expression>
[error]Arguments : LUA error: ...ow of chernobyl\gamedata\scripts\bind_stalker.script:215: attempt to call field 'shoot_effect' (a nil value)
stack trace:
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 5 gości