Just use a P_IsObjectOnGround(mobj_t) function to check if the player is grounded. The function returns true if the player is on the floor, or ceiling if gravity is inverted
To make the dust effect itself, you can use the P_SpawnSkidDust(mobj_t, radius, sound) function to spawn skid dust. If you want more customization, you can use P_SpawnMobj(x, y, z, type) instead, then you can change some variables of the object to make the dust behave as you wish.
You can find a list with every object type here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.