Skip to content

Commit 439590e

Browse files
set ignore object both wpn and actor
1 parent 2b7387d commit 439590e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

gamedata/scripts/weapon_cover_tilt.script

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ function actor_on_update(binder, delta)
973973
end
974974

975975
if settings.use_fire_bone and MODDED_EXES_VERSION >= 20250422 then
976-
local timeout = 1500
976+
local timeout = 100
977977

978978
-- Get fire point bone position where barrel end resides
979979
local fire_bone = SYS_GetParam(0, hud_sec, "fire_bone", "wpn_body")
@@ -1087,9 +1087,10 @@ function actor_on_update(binder, delta)
10871087
local ray_range = 100
10881088
local ray = dgr.geometry_ray({
10891089
ray_range = saved_variables.ray_length,
1090-
ignore_object = db.actor,
10911090
flags = 3
10921091
})
1092+
ray.ray:set_ignore_object(wpn)
1093+
ray.ray:set_ignore_object(db.actor)
10931094
local ray_collision_result = ray:get(pos, fire_dir)
10941095
if ray_collision_result.success then
10951096
dist = ray_collision_result.distance

0 commit comments

Comments
 (0)