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 → Bullet Proof Vest
Bullet Proof Vest
2001-08-07, 10:29 AM #1
I am editing the supershield cog so that it acts more like a bullet proof vest. I'm trying to make it so that when you get hit with, say 100 damage, it shuts it off. Whats the code that gets the damage? Thankyou.
"The world is neither black nor white but differing shades of gray."
-By me.
2001-08-07, 10:37 AM #2
Anyone?
"The world is neither black nor white but differing shades of gray."
-By me.
2001-08-07, 1:43 PM #3
Have a look at the force_protection cog, it should have most of what you're looking for, including making the player 'mag sealed' so that energy projectiles bounce off.

Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2001-08-07, 2:12 PM #4
lol, he's wearing a vest, not being Superman...

There's gotta be a way to make the SS work on damage instead of time....

------------------
"I hear You speak and I obey
I walked away from the grave
I will never be the same
I gave my life away"

The Bible is the only religious book to actually state that it is the truth and the only way. Thats why I'm a Christian.

_-=MaTRiX=-_
In my mind I can see your face, as Your love pours down in a shower of grace. Some people tell me that Your just a dream, but my faith is the evidence of things unseen.

Once upon a time God spoke to me, and then I was never the same again.

_-=MaTRiX=-_
2001-08-08, 5:29 AM #5
Here's what you should do: When first picked up, put:

stophealth = GetThingHealth(player) - 100;

And if the pulse isn't already set, put:

SetPulse(0.5);

In the pulse message, put
if(GetThingHealth(player) == stophealth)
{
Do Something....
}

Replace "Do Something..." with whatever it uses to stop the shield. Hope it helps!

------------------
When you want to criticize someone, walk a mile in their shoes. That way, when you do criticize them, you'll be a mile away and you'll have their shoes!
Aisha Clan-Clan: "The Ctarl-Ctarl are an invincible race of beings. We're all as strong as ten humans!"
Gene Starwind: "Is that so?"
*Pulls out his Caster Gun and shoots her. She lies on the ground in a daze*
Gene Starwind: "Wow, you really are invincible!"

- Excerpt from 'Outlaw Star,' Episode 5

↑ Up to the top!