-
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?
-
Sep 21 2001, 08:36
#2
BISIM Developer

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...
-
Sep 21 2001, 08:57
#3
BISIM Developer

it is now done. download the example pbo here (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)
-
Sep 21 2001, 09:05
#4
BISIM Developer

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/iko...s.cgi?forum=13
-
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.
-
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?
-
Oh, yes you are - I just found your tutorial on "How to script a cutscene" - by snYpir
-
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!
-
Sep 25 2001, 00:07
#9
BISIM Developer

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....
-
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules