Home   Help Search Login Register  

Author Topic: Adding custom faces to npc's  (Read 1153 times)

0 Members and 1 Guest are viewing this topic.

odin_soliel

  • Guest
Adding custom faces to npc's
« on: 02 Dec 2002, 08:59:34 »
Does anyone know how to add custom faces not in the original base set of faces (ie. one you made) into the game?
I want to make a villian with a face I made but can't figure out how to get it in a MP game(thats the kicker). I know you can get custom images into a MP game, so there's gotta be a way.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Adding custom faces to npc's
« Reply #1 on: 03 Dec 2002, 13:25:33 »
if your talking about making a mission put your face in here

C:\Program Files\Codemasters\OperationFlashpoint\Users\yourname\missions\missionname

and use this in the init field of the guy

this setface "facename.jpg"

if your talking about a MP game you should really ask at the offiial forums but I'll tell you because your here, put your face here

C:\Program Files\Codemasters\OperationFlashpoint\Users\yourname\

name it "face.jpg" and then edit your player profile and select custom face from the menu.

vektorboson

  • Guest
Re:Adding custom faces to npc's
« Reply #2 on: 03 Dec 2002, 23:19:59 »
If you want to use custom faces (not the player's custom face) for a npc, then you have to make an addon of them.

Just look into the commented config.cpp from BIS and look for the face classes.

odin_soliel

  • Guest
Re:Adding custom faces to npc's
« Reply #3 on: 04 Dec 2002, 15:24:12 »
Lemme make it a little clearer. I know how to set a custom face and to add in a face I've done, but I wanna do a face everyone can see in a MP game( as opposed to making a pbo file to add for a SP so that person can see it). I would think that if it could be done, it would be in a way similar as to when you add music, with giving classes and the paths for the needed file. Its a bit tricky cause there's no giveway in a MP game, it's all gotta be in there.
I was playing a Coop map where the author added his own art in the beggining, like the tv or binocs in the resourse class of effects. Thats why I think it could be possible to add a "Dr. Evil" face or whatever to a npc, as long as it has the right code.
 ??? What do you guys think?

vektorboson

  • Guest
Re:Adding custom faces to npc's
« Reply #4 on: 04 Dec 2002, 20:51:15 »
I'm sorry, but it isn't possible!

I tried to make a face class in the description.ext but it didn't work! The same code in a config.cpp and addon worked however, so

->You can't define custom faces in the description.ext!

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Adding custom faces to npc's
« Reply #5 on: 04 Dec 2002, 23:35:55 »
->You can't define custom faces in the description.ext!

No?

I remember way way, way... back I managed to get it done.

Have your face in your mission directory (along with all your scripts etc.) and rename the file to face.jpg. Then in your description.ext, change the face to: "custom"

The face.jpg will be compiled with your mission, and the NPC will always be wearing the custom face.

I'm afraid I have no idea how to get more than one unit to use a custom face though, as this method seems to only allow for one...