View unanswered posts | View active topics It is currently Wed Dec 25, 2024 7:42 pm



Reply to topic  [ 4 posts ] 
 Musket Smoke 
Author Message
User avatar

Joined: Tue Jan 04, 2011 1:11 am
Posts: 7
Reply with quote
Post 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?

Cheers.


Thu Oct 11, 2012 3:43 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Thu Oct 11, 2012 7:10 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post Re: Musket Smoke
There are good script examples in the Browncoat faction's guns. They shouldn't be that hard to tweak.


Thu Oct 11, 2012 7:20 pm
Profile
User avatar

Joined: Tue Jan 04, 2011 1:11 am
Posts: 7
Reply with quote
Post Re: Musket Smoke
Thanks, everyone. Looks like I'll be doing things with Emitters... You may see the fruits of my efforts soon!


Thu Oct 11, 2012 11:38 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.129s | 13 Queries | GZIP : Off ]