Code:
user0: if(!Staff) //Going to be a Lightstaff. { ParseArg(getlocalplayerthing(), "puppet=lsky.pup"); // Change the puppet for the lightstaff one jkSetFlags(player, 0x10); //Set the second blade to come out. PlaySoundThing(mountSound, player, 1.0, -1, -1, 0x80); //Play another ignition sound. // SetThingModel(getlocalplayerthing(), dualmodel); //Now, don't let it shrink already! So, give it a wait. SetBinWait(player, 116, GetSoundLen(mountSound)); } else //Back to saber. { ParseArg(getlocalplayerthing(), "ky.pup"); // Change the puppet bak to the original jkClearFlags(player, 0x10); // If going back to saber clear the second blade. PlaySoundThing(dismountSound, player, 1.0, -1, -1, 0x80); //Play shrinking sound. // Setthingmodel(GetLocalPlayerThing(), playermodel); SetBinWait(player, 116, GetSoundLen(dismountSound)); //And give it a wait. } staff = 1 - staff; //Change variable, so the cog knows if it's staff or saber at the moment. // --------------------------------------------------------------------- if(!dsaber) //Going to be dual sabers { ParseArg(getlocalplayerthing(), "puppet=dsky.pup"); jkSetFlags(player, 0x10); //Set the second saber. PlaySoundThing(mountSound, player, 1.0, -1, -1, 0x80); //Play another ignition sound. // SetThingModel(getlocalplayerthing(), dualmodel); //Now, don't let it shrink already! So, give it a wait. SetBinWait(player, 116, GetSoundLen(mountSound)); } else //Back to single saber. { ParseArg(player, "ky.pup"); // Change the puppet bak to the original jkClearFlags(player, 0x10); // If going back to saber clear the second blade. PlaySoundThing(dismountSound, player, 1.0, -1, -1, 0x80); //Play shrinking sound. // Setthingmodel(GetLocalPlayerThing(), playermodel); SetBinWait(player, 116, GetSoundLen(dismountSound)); //And give it a wait. } dsaber = 1 - dsaber; //Change variable, so the cog knows if it's single or dual sabers at the moment.
Ok, I have this in the weap_saber.cog and I'm going to make 2 hotkeys to call the two different conditions(?) (like the lightstaff mod if I didn't explain that too well). I want it to put the staff away before it selects the dual sabers and vice versa, but how would I get it to do that?
Would it be better if I just put the dual saber part in say, a user1 message?
------------------
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!!!"