Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → DONT SHOOT THE MONKEY!
DONT SHOOT THE MONKEY!
2002-09-28, 11:18 PM #1
Anyhow. Anybody know if its possible to check if items took damage? I wanna do a volital-ammo system so if you bugger and shoot a pack of rockets or something, they explode. Almost all my weapons have atleast a SMALL blast radius, so.. can't i just use a damage message or something to check 'em?
2002-09-29, 1:53 AM #2
In the powerup's class cog,

Code:
Damaged:
If(Getparam(0) >= Min_damage) {
Creatething(Explosion, Powerup);
Destroything(Powerup); }
Stop;



Where 'Min_damage' is a flex defining the mininum damage required to blow up this thing. I think you can figure the rest out.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-29, 5:10 AM #3
Cyber, uppercase thread titles are against the forum rules. This thread will be closed.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!