Home   Help Search Login Register  

Author Topic: Custom face on AI  (Read 847 times)

0 Members and 1 Guest are viewing this topic.

Bart

  • Guest
Custom face on AI
« on: 31 Oct 2004, 12:31:30 »
Hi all,
I have a little prob here:
I'm making an introduction movie for my clan
and I want AI units to carry a custom face (like you can do yourself in ofp)
does anyone know how to do this?
Thanks!

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Custom face on AI
« Reply #1 on: 31 Oct 2004, 12:57:05 »
<How to Add Custom Faces to OFP>

check this tutorial in the editors depot. Though you need photoshop and a LOT of talent to put your own picture in it!

Offline C0LDSt33L

  • Members
  • *
  • Member of the SotM Team
Re:Custom face on AI
« Reply #2 on: 31 Oct 2004, 13:00:18 »
Don't worry, doing your picture in photoshop isn't too difficult so long as you have an example and a working knowledge of photoshop.  ;)

Bart

  • Guest
Re:Custom face on AI
« Reply #3 on: 31 Oct 2004, 13:14:17 »
Yes that I do know how to put a custom face on your own one (human), but I want to know how to put it on an AI's face! (like a mission with 30 guys that have a 'bart-face' lol  ;D

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Custom face on AI
« Reply #4 on: 31 Oct 2004, 13:17:21 »
This requires knowledge on config writing...
Make a face addon including your own face, see "config.cpp file tutorial"

Then put in quys init field: this setFace "faceName" where the faceName is the class name of your custom face...... ;)

Bart

  • Guest
Re:Custom face on AI
« Reply #5 on: 31 Oct 2004, 13:36:01 »
But I guess you have a mission with addons in it?
And my purpose is to make missions without addons.
Well if there is no other solution...
Thanks anyway!
Greetz

Bart

  • Guest
Re:Custom face on AI
« Reply #6 on: 31 Oct 2004, 14:25:53 »
Well I checked out the config.cpp tutorial and it din't help me at all
It's an old tut with not working links, ...
Can anyone else help me?
Somebody who already understands config.cpp or makes addons or whatever?

Lean Bear

  • Guest
Re:Custom face on AI
« Reply #7 on: 31 Oct 2004, 18:23:52 »
Its not really clear what your asking for, but here's a few things I think might help.

If you want loads of soldiers ot have the same face you need to put in each of the unit's init fields the following:

this setFace "YourFaceName"

Alternatively, you could do it for them all in the init.sqs if you wan to keep te units' init feilds free. But, this way, you'll have to name all the units.

If you're trying to put custom faces in OFP, you'll need to write a config for the addon. It would go something like this:-

class CfgPatches
{
   class Faces//defining the type of addon
   {
      units[] = {};
      weapons[] = {};
      requiredVersion = 1.20;
   };
};

   class CfgFaces
   {
      class YourClassName
      {
         name="TheNameToBeDisplayedInOFP";
         texture="\YourFolderName\YourCustomFaceFileName.jpg";
         east=1;
         west=1;// so it will appear on all sides
      };
   };
};

OK. That's pretty much everything on how to do what I think you're trying to do :hmm:

Bart

  • Guest
Re:Custom face on AI
« Reply #8 on: 31 Oct 2004, 19:33:49 »
Yea I know it is pretty hard to understand, but I don't get much of config.cpp maybe there is someone who can make the face thing for me? plz?  :-\

cheers

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Custom face on AI
« Reply #9 on: 31 Oct 2004, 22:41:18 »
You can use the line:

this setface "custom"

However, that will set the unit's face to whatever the PLAYER's custom face is; so it will be different for each person who plays your mission. If they don't have a custom face, it will just be white.

But no, I'm afraid there is no way to put custom faces into your mission pbo, like with flags. Only way is to make an addon, like they are saying. Or if someone made an addon that you could use the "setobjecttexture" command on the face....
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Lean Bear

  • Guest
Re:Custom face on AI
« Reply #10 on: 31 Oct 2004, 22:43:21 »
Don't setobjecttextures only work with 32x32 textures though?

Sophion

  • Guest
Re:Custom face on AI
« Reply #11 on: 31 Oct 2004, 23:22:39 »
64x64, 128x128, 256x256

My guess is something like this:

1)   put the face picture in the mission folder
2)   under the unit you wish, put in its init line:

This setface "facepic.jpg"

thats it.

Dubieman

  • Guest
Re:Custom face on AI
« Reply #12 on: 31 Oct 2004, 23:28:51 »
Umm, sorry if its already been said, as I scanned through, but can't you just have the custom faces be the addon or whatever that's needed and then when makin the mission,

Make a Description.ext  like:

Code: [Select]
class CfgIdentities
{
   class DomPilla
   {
      name = "Dominic Pilla";
      face = "Face25";
      glasses = "none";
      speaker = "Rob";
      pitch = 1;
   };
};


And in the editor just use like:
bart setface "DomPilla"

The coding may not be right, I haven't done a .ext thingy like that in a while. :P

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Custom face on AI
« Reply #13 on: 01 Nov 2004, 01:22:50 »
@GuiltyRoachKillar

Yes, you could do that but that would involve already having the face in your mission directory. Therefore you would have to have the addon anyway.

-Tyger
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Bart

  • Guest
Re:Custom face on AI
« Reply #14 on: 01 Nov 2004, 12:04:14 »
64x64, 128x128, 256x256

My guess is something like this:

1)   put the face picture in the mission folder
2)   under the unit you wish, put in its init line:

This setface "facepic.jpg"

thats it.

I've tried that one before, but I have good news: i solved it!

Some guy named ferron told me how to make the addon
thx m8!  :-*
also thx to lean bear who wanted to help me  ;)


greetz all