Data Realms Fan Forums

Musket Smoke
Page 1 of 1

Author:  Supersoviet [ Thu Oct 11, 2012 3:43 am ]
Post subject:  Musket Smoke

Hey guys,

I was wondering, with the new (and totally unfamiliar) LUA-madness that is CC 1.0, how to get a weapon to emit a large and lingering smoke cloud? I'm trying to set up some black powder rifles, and I can't seem to get the hang of that aspect.
If what I need is solid lua, could someone post a template for this or at least provide some advice?


Author:  Asklar [ Thu Oct 11, 2012 7:10 pm ]
Post subject:  Re: Musket Smoke

Not necessary, getting lots of smoke on the shot has been done plenty of times.

It's simple, the gun needs to fire an AEmitter and then the emitter spawns all the particles (the smoke and the bullet).
Check the Coalition's Revolver Cannon code, it works like that because this method is also great for reducing the kickback made by heavy projectiles.

Also, I made this question some time ago, check this thread, it helped me much.

Author:  4zK [ Thu Oct 11, 2012 7:20 pm ]
Post subject:  Re: Musket Smoke

There are good script examples in the Browncoat faction's guns. They shouldn't be that hard to tweak.

Author:  Supersoviet [ Thu Oct 11, 2012 11:38 pm ]
Post subject:  Re: Musket Smoke

Thanks, everyone. Looks like I'll be doing things with Emitters... You may see the fruits of my efforts soon!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group