Jump to content
Sign in to follow this  
-TFF- NEO

How do you choose weapon?

Recommended Posts

1. How do you choose weapon in Mission Editor, e.g. giving a sniper rifle to a black op soldier?

2. How do you make it possible for the group leader of each side to change weapons of the group at briefing at MP gaming?

Thanks in advance.

Share this post


Link to post
Share on other sites

1: In the black op's init field type

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this;

this AddWeapon "M21";

this AddMagazine "M21";

this AddMagazine "M21";

this AddMagazine "M21";

this AddMagazine "M21";<span id='postcolor'>

And so on...

2: Stick this in your description.ext file...

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class Weapons

{

class HK

{

count = 1;

};

class M4

{

count = 1;

};

class M16

{

count = 4;

};

class M16GrenadeLauncher

{

count = 1;

};

class M60

{

count = 1;

};

class M21

{

count = 1;

};

class M16

{

count = 4;

};

class Binocular

{

count = 1;

};

class NVGoggles

{

count = 1;

};

class Timebomb

{

count = 1;

};

class Mine

{

count = 1;

};

class Flare

{

count = 1;

};

class FlareRed

{

count = 1;

};

class HandGrenade

{

count = 2;

};

class HandGrenade

{

count = 2;

};

};

class Magazines

{

class HK

{

count = 1;

};

class M4

{

count = 1;

};

class M16

{

count = 12;

};

class GrenadeLauncher

{

count = 1;

};

class Mortar

{

count = 1;

};

class M60

{

count = 1;

};

class M16

{

count = 12;

};

};

<span id='postcolor'>

The above are classes of weaopns that will be availabe to the player on the briefing screen. There are classes for everything, Mags hand grenades and so on... It's easy realy... You have the class of the weapon and the "count" is the number available...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×