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 → MP no force/mana
MP no force/mana
2003-12-30, 2:35 PM #1
Hello, Im making a mp co-op level and I need a cog phrase that disables force powers to all players that join.

This is because force powers would mess up the level (I want the level to be NF, no matter what force level the host of the game chooses)

Actually, no mana could really do the same thing then.
It would have to be in the startup message of the cog then, right?
Thanks...

------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth
2003-12-30, 9:24 PM #2
kyle.cog, startup section.

At 2:30 in the morning, I can't remember too much. Need sleep...

*falls asleep on keyboard*

p poej flakj d;akdj f;la jd;f ;09 3;j ;a9 ;adj f;a9i3 8945y 9qp4yr ad adf

------------------
"The Just shall live by faith." -Galatians 3:11
"Now faith is the substance of things hoped for, the evidence of things not seen." -Hebrews 11:1
"There is one body, and one Spirit, even as ye are called in one hope of your calling; One Lord, one faith, one baptism, One God and Father of all, who is above all, and through all, and in you all. But unto every one of us[/i] is given grace according to the measure of the gift of Christ." -Ephesians 4:4-7

The Giant Internet IC Masturbator - the most complete index of IC chips on the net.
Catloaf, meet mouseloaf.
My music
2003-12-31, 1:33 AM #3
Well, you'll need 2 messages: startup and newplayer. In these you put a delay at the top followed by the disable force verb. I think it's an inv, so SetInv(player,bin,0);

Oh, and a local flag. flags=0x240 before symbols.

Did I miss out on something? Help me out guys!
Edward's Cognative Hazards
2003-12-31, 11:11 AM #4
I've never done that before, but I'm pretty sure if you make a local cog that has a newplayer message that has that line Edward said, it should take away all their mana. It would look SOMETHING like this...

flags=0x240
symbols
message newplayer
thing player local
int bin=X //replace "X" with the bin number for force mana as declared in items.dat

now, down in the code section, put something like his...

newplayer:
player = GetLocalPlayerThing();
SetInv(player,bin,0);
return;

Just remember to make make bin eqal to the bin number of mana in items.dat. Let us know how it turns out.
One day, after everybody else quits, I'll be the best.
Sith Mercenaries
^My site.
2003-12-31, 3:23 PM #5
since you're going to be redoing kyle.cog, redo force_well.cog to this
note use of code tags
Code:
# Jedi Knight Cog Script
# FORCE_WELL.COG
# Redo to make it no force
# [DP]
symbols
message        newplayer
end
code
Newplayer:
   SetInv(GetLocalPlayerThing(), 14, 0);
   Return;
end

or you could just leave a blank force_well.cog too....

And in the kyle.cog, find all SetInv(player, 14, x);'s and change the x to 0's.

That will give no force to all players, or you could also copy force_well.cog, rename it, add it to the level and change the ChangeInv(player, 14, a); to SetInv(player, 14, 0); either way, both work.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

The 2 riddle!

[This message has been edited by Descent_pilot (edited December 31, 2003).]

[This message has been edited by Descent_pilot (edited December 31, 2003).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2004-01-02, 6:58 AM #6
Ok thanks guys, I got it working perfectly! I took a little something from everyone, so in the cog header I put a thanks to all massassi coggers [http://forums.massassi.net/html/smile.gif]

------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth

↑ Up to the top!