Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Illuna-Minetest
mobs_monster
Commits
b6591fa9
Commit
b6591fa9
authored
May 23, 2020
by
tenplus1
Browse files
tweak spider climbing feature
parent
674afa91
Changes
1
Hide whitespace changes
Inline
Side-by-side
spider.lua
View file @
b6591fa9
...
...
@@ -114,8 +114,8 @@ mobs:register_mob("mobs_monster:spider", {
self
.
spider_timer
=
0
-- need to be stopped to go onwards
if
get_velocity
(
self
)
>
0
.
2
then
self
.
disable_falling
=
false
if
get_velocity
(
self
)
>
0
.
5
then
self
.
disable_falling
=
nil
return
end
...
...
@@ -153,6 +153,7 @@ mobs:register_mob("mobs_monster:spider", {
self
.
disable_falling
=
true
-- move up facing
v
.
x
=
0
;
v
.
y
=
0
v
.
y
=
self
.
jump_height
mobs
:
set_animation
(
self
,
"jump"
)
self
.
object
:
set_velocity
(
v
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment