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 → How would I make a weapon non-force pullable?
How would I make a weapon non-force pullable?
2003-05-19, 4:46 PM #1
I'm trying to make it so that you can't force pull a weapon from a new enemy and I can't figure out how. Can someone maybe help me?

Thanks

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"
2003-05-19, 6:31 PM #2
Someone check me on this:
In the actor's cog in the 'skill' section, find the block that begins "if(bin = 24)". Remove all the parentheses and statements inside the set, and make it look like this:
Code:
if(bin = 24) ReturnEx(0);
That should do it, unless you have no skill section in the cog, in which case you should add it and the above line. By the way, if you have to add it, make sure you have this first: "bin = GetParam(0);"

------------------
"The Just shall live by faith." - Galatians 3:11

[This message has been edited by DogSRoOL (edited May 19, 2003).]
Catloaf, meet mouseloaf.
My music
2003-05-20, 9:46 AM #3
hmm, i thing that would disable the abillity alltogether, he wants it so you cant pull the wepon form that particular enermy, like a lightsaber for darkjedis.

i think thats gonna be in the enermys cog. ill have a look at datamaster some time tonight.

------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's

-the PJB jedi rule book-
rule one,
Quote:
<font face="Verdana, Arial" size="2">never trust a barman with bad grammar</font>
-kyle katarn in JO

Rule Two,
Quote:
<font face="Verdana, Arial" size="2">Gravity is a crule misstress</font>
-kyle katarn in MotS, and the alternatior MK I in AJTD
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-05-20, 1:53 PM #4
No, no. It disables the effects of the power on that enemy. That's why it's in the enemy's actor cog and not the force power cog.

------------------
"The Just shall live by faith." - Galatians 3:11
Catloaf, meet mouseloaf.
My music
2003-05-20, 5:13 PM #5
I put this at the end of the actor cog but it still doesn't work.
Code:
skill:
   bin = GetParam(0);
   if(bin = 24)                             // Force Pull
   {
      ReturnEx(0);
      Return;
   }
   
   ReturnEx(-1);
   Return;

Did I do it right?

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"
2003-05-20, 6:40 PM #6
If you want all the usual force powers (except pull) to work, you should have this:
Code:
skill:
   bin = GetParam(0);
   if (bin == 24) ReturnEx(-1);                           // Force Pull
   else
   if (bin == 31)                            // Force Grip
   {
      ReturnEx(10);                          // return base damage that is taken by this actor.
      return;
   }
   else
   if (bin == 34)                            // Deadly Sight
   {
      ReturnEx(5);                           // return base damage that is taken by this actor.
      return;
   }
   ReturnEx(-1);
   return;

That should do it. Of course, don't forget the corresponding symbols in the symbols section. Looking back, the ReturnEX should've been -1 instead of 0. (oops) If that doesn't work, I'll have to go mess around with it some more.

------------------
"The Just shall live by faith." - Galatians 3:11
Catloaf, meet mouseloaf.
My music

↑ Up to the top!