View unanswered posts | View active topics It is currently Fri Dec 27, 2024 7:54 am



Reply to topic  [ 3 posts ] 
 Magazine Help. 
Author Message
User avatar

Joined: Mon Jan 25, 2010 11:35 pm
Posts: 675
Reply with quote
Post Magazine Help.
I'm coding a double barreled shotgun, and I don't want it to emit the shells until it reloads.

The way I'm doing this is making the rounds have no shells, and making the magazine have the sprite of two shotgun shells side by side. It is drawn behind the gun, so you cant see it until it is ejected out. It gibs two shotgun shells, to give the effect of two shells being ejected.

The problem is, how can I make the magazine gib whenever it hits the ground?


Tue Jul 24, 2012 12:08 am
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: Magazine Help.
If you want it to be "near, but not yet on", then you need to use Lua to detect the ground pixels directly below the falling magazine, and if < X, gib. But probably the easiest way is to give it a negative RestThreshold, so that it gibs immediately.


Tue Jul 24, 2012 12:13 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Magazine Help.
Give it very weak properties in the .ini I guess, make the impulse damage extremely low.


Tue Jul 24, 2012 12:17 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.040s | 13 Queries | GZIP : Off ]