PDA

View Full Version : Expert Scripter needed!



The Jub-Jub Bird
Sep 20 2001, 21:11
Now would it be at all possible for anyone to do this:

Make all soldiers in a squad wear ghillies suits whether they're snipers or not.

Now I know I can have a load of snipers and simple change their weapons...thats what I have been doing for the AI squads. But what if you are the officer in a squad and you don't want everyone to show up as snipers on your command menu screen thing?

snYpir
Sep 21 2001, 08:36
that is very do-able. You just need to make an addon and only change one line, and this is the model for the unit to use...

sounds complicated but it's not, i'll see what i can do...

recommend you visit the editing center and check out our tutorials on making addons. what you need to find is the .p3d file of the model with the ghillie suit... i'll start looking when i get a chance...

snYpir
Sep 21 2001, 08:57
it is now done. download the example pbo here (http://www.concept-5.com/ofp/snYpir/SoldierSniperSkin.pbo) (place it in your addons folder and make a unit of type 'Soldier with sniper skin') here is what i did:

1. made a file called config.cpp in a folder somewhere

2. in that file i put this:

class CfgPatches
{
  class SoldierSniperSkin
  {
     units[] = {SoldierSniperSkin};
     weapons[] = {};
     requiredVersion = 1.01;
  };
};

class CfgVehicles
{
  class All{};
  class AllVehicles:All{};
  class Land:AllVehicles{};
  class Man:Land{};
  class Soldier:Man{};
  class SoldierWB:Soldier{};
  class SoldierSniperSkin:SoldierWB
  {
     displayName="Soldier with sniper skin";
     model="\data3d\mc sniperw2"
  };
};

3. i then used StuffPBO to put this file into a pbo called SoldierSniperSkin.pbo

4. SoldierSniperSkin.pbo goes into the addon folder.

thats it

at the moment we are making a soldier of type SoldierWB with a ghillie suit. you could put any other soldier class name here if you want. you could also add more than one skinned soldier in the same config.cpp file if you want.

we are telling OFP to use the model 'mc sniperw2' to skin the soldier. i will post an example of how to skin two soldiers in the same file in a minute. are u following me?

(Edited by snYpir at 11:58 am on Sep. 21, 2001)

snYpir
Sep 21 2001, 09:05
here is an example that makes a normal soldier, a grenadier and a law soldier all with ghillie suits. i have used lusty's object tree to determine what class names to use (ie. SoldierWG and SoldierWLAW). see the editing center's tutorial page (click on the link in my sig) and take a look at the tutorial on how to make an addon for more info.


class CfgPatches
{
class SoldierSniperSkin
{
units[] = {SoldierSniperSkin};
weapons[] = {};
requiredVersion = 1.01;
};
};

class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};

class NormalSoldierSniperSkin:SoldierWB
{
displayName="Soldier with sniper skin";
model="\data3d\mc sniperw2"
};

class SoldierWG:SoldierWB{};

class GrenadierSniperSkin:SoldierWG
{
displayName="Grenadier with sniper skin";
model="\data3d\mc sniperw2"
};

class SoldierWLAW:SoldierWB{};

class LAWSniperSkin:SoldierWLAW
{
displayName="LAW with sniper skin";
model="\data3d\mc sniperw2"
};
};

:biggrin: please all queries to our forum:

http://www.concept-5.com/cgi-bin/ikonboard/forums.cgi?forum=13

The Jub-Jub Bird
Sep 21 2001, 19:04
snYpir you are an absolute God send, thankyou soooo much. I have atcually read loads of your tutorials, you a pretty clever guy and saved my bacon many a time.

Virtual crate of beers on its way.

The Jub-Jub Bird
Sep 21 2001, 19:15
You can be one of the first to try out my next mission - a few probs to be ironed out at the moment though.

I don't suppose you are any good at cutscenes are you?

The Jub-Jub Bird
Sep 21 2001, 19:27
Oh, yes you are - I just found your tutorial on "How to script a cutscene" - by snYpir

The Jub-Jub Bird
Sep 24 2001, 19:06
snYpir - I don't suppose you you give me a quick run through using StuffPBO could you (feeling dumb) only I've made the addon now. Only I did it for almost every western footsoldier class. But I can't make my cpp file into a PBO. I can't work it out!

snYpir
Sep 25 2001, 00:07
a saw a thread at the editing center - is everything ok now?

basically u select the folder whose contents u want to stuff, then select the place you want to stuff it to and the .pbo name, then click stuff....

The Jub-Jub Bird
Sep 25 2001, 19:16
Yeah I worked it out now thanks. I actually forgot to add the models too which was pretty dim of me.

Cheers.

btw Do you know what NOG is? As in SoldierENOG and SoldierWNOG?

snYpir
Sep 25 2001, 23:33
nope. sorry. http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/wink.gif

The Jub-Jub Bird
Sep 26 2001, 17:45
Does anybody know what NOG is/stand for?

The Jub-Jub Bird
Sep 26 2001, 20:55
The Addon is finished. It now contains all units (west and east) in ghillie/bush suits, a Black Op Medic and a Resistance Sniper. I'll test it as soon as I got StuffPBO to work, and then I'll send it to concept-5.com/ofp and operation-flashpoint.net

snYpir
Sep 26 2001, 23:02
dude, before you submit it - check this thread:

http://www.concept-5.com/cgi-bin/ikonboard/topic.cgi?forum=13&topic=122

it shows how to make 'groups' - why not make a ghille suit wearing group of dudes to make it easier for people?

Just an idea, i only figured out how to make groups this morning http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/wink.gif