1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-11-19 08:05:24 +01:00

pass self and mob_ent to arrow override function

This commit is contained in:
tenplus1
2025-11-17 17:04:46 +00:00
parent a0a30a4a0c
commit 388c0f3de5
2 changed files with 2 additions and 2 deletions

View File

@@ -2390,7 +2390,7 @@ function mob_class:do_states(dtime)
local amount = (vec.x * vec.x + vec.y * vec.y + vec.z * vec.z) ^ 0.5
-- check for arrow custom override
if self.arrow_override then self.arrow_override(ent) end
if self.arrow_override then self.arrow_override(ent, self) end
local v = ent.velocity or 1 -- or set to default