Tythestickman
Well-known member
cool :D
cool :D
To be honest, I tried to make a script that after falling, you land on the ground and make a landing sound. (S3K56.)
And when I was just standing, it was rapidly repeating until I jump onto the air or keep moving and do something.To be honest, I tried to make a script that after falling, you land on the ground and make a landing sound. (S3K56.)
To be honest, I tried to make a script that after falling, you land on the ground and make a landing sound. (S3K56.)
you can maybe do P_IsObjectOnGround(player.mo) and also add a lil check that toggles off when you go back into the air, but hey, your still learning, so its okay to make some mistakes! (maybe you could change this script to serve a different purpose, like maybe you could do a thing where if your in super form + your in your waiting animation, a lil ghost trail thingy will show up where it goes from being small to being quite big and then fading, making it look like a lil charging up animation)And when I was just standing, it was rapidly repeating until I jump onto the air or keep moving and do something.
Since I still don't understand Lua for A BIT now because I'm still learning at it, does it works like this when landing on the ground to make a sound?:you can maybe do P_IsObjectOnGround(player.mo) and also add a lil check that toggles off when you go back into the air, but hey, your still learning, so its okay to make some mistakes! (maybe you could change this script to serve a different purpose, like maybe you could do a thing where if your in super form + your in your waiting animation, a lil ghost trail thingy will show up where it goes from being small to being quite big and then fading, making it look like a lil charging up animation)
I did a bit different this time. Imma go test it.addHook("PlayerThink", function(player)
if player.mo and player.mo.skin == skin
if player.mo.state == S_PLAY_STND
and P_IsObjectOnGround(player.mo)
S_StartSound(player.mo, sound)
end
end
end)
if (player.mo.eflags & MFE_JUSTHITFLOOR)
and (player.mo.eflags & MFE_ONGROUND)
yoooooo good job!! :DView attachment 10389
I FINALLY DID IT BRO. EVEN IT WORKS WITH SUPER.
Falling and landing lua script for ATHCP?im just wondering, will you be using your lua script for newer versions of the addon or is this only for testing/learning
yeaFalling and landing lua script for ATHCP?
Yes, I'll be using it for every character.
for EVERY character?Yes, I'll be using it for every character.
Yeah.for EVERY character?
will you give them all different sounds and stuff? (like you could use the lil goop noise from the techno hill zone boss for the Paint Chars landing sound)
maybe you could add a lil timer thing so that it activates after a certain period of time while falling.And I might upgrade that lua script so it could be more nice and enjoyable.
Like you're starting to fall and the timer appears until you'll hit the ground and it disappears?maybe you could add a lil timer thing so that it activates after a certain period of time while falling.
(you can maybe use this addon to maybe make it a bit easier to make: https://mb.srb2.org/addons/wait.8010/)
somewhat like that, you can use "local" things for itLike you're starting to fall and the timer appears until you'll hit the ground and it disappears?