Spawning skidding particles using Lua?

Status
Not open for further replies.

Jay

I'm lazy, let's face it
So, this is what I did:

Code:
	if P_IsObjectOnGround(player.mo) and player.sprinting == true then
	    P_SpawnMobj(player.mo.x, player.mo.y, player.mo.z, MT_PARTICLE)
	else end

This works and all, to an extent. It spawns the particles when the player is sprinting (triggered with custom ability 1). However, the particles seem to spawn at full scale and linger for a long time, compared to the ones that spawn when skidding. Is there any way I can get the actual skidding particles themselves to spawn from the player, or at least replicate them?

EDIT: Added GIFs for comparison.


EDIT2: Made a custom object that replicated them rather well:

srb20005.gif


Problem solved, I guess. Somebody tell me if there's a way to make them without using custom objects.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top