Home   Help Search Login Register  

Author Topic: healing and hiding corpse  (Read 1557 times)

0 Members and 1 Guest are viewing this topic.

BlinkDog

  • Guest
healing and hiding corpse
« on: 10 Sep 2002, 21:29:48 »
"How to give your addons that Hippocratic bedside manner.

Credits: SelectThis
Updated: 2002-04-18 16:44:40
Difficulty: Beginner

Q. How do you give a unit the ability to heal other units, using the .cpp script?

A. attendant = 1

is what goes in the cpp."

Okay since coding is a real weak point for me, where do you add the "attendant = 1"? I also would like to know how to do the hide corpse ability that black ops have. I would like to give my Lara Croft and some of my other Amazon Addons these abilities.

I-RZ#

  • Guest
Re:healing and hiding corpse
« Reply #1 on: 14 Sep 2002, 23:06:52 »
Heya

For hiding bodies, in the troops' bit where it gives them weapons and stuff e.g.:-

Quote
   class SoldierWMortar: SoldierWG
   {
      picture="imortar";
      displayName="$STR_DN_MORTAR";
      accuracy=1.500000;
      weapons[]={"M16","Throw","Put"};
      magazines[]={"M16","M16","M16","M16","Mortar","Mortar","Mortar"};
      threat[]={1,1,0.100000};
   };

put in "canHideBodies=1"

So if you wanted some sniper who can bury bodies then you put this in:-

Quote
   class SoldierWSniper: SoldierWB
   {
      picture="isniper";
      displayName="$STR_DN_SNIPER";
      nameSound="sniper";
      accuracy=3.500000;
      nightVision=1;
      camouflage=0.600000;
      sensitivity=2;
      cost=250000;
      weaponSlots="1 +    16 + 2 *    4096 + 4 *          256";
      weapons[]={"M21","Throw","Put"};
      magazines[]={"M21","M21","M21","M21"};
      model="mc sniperw2.p3d";
      threat[]={1,0.100000,0.100000};
                          canHideBodies=1;
   };

you add the "attendant=1;" in the same place as you would add the "canHidBodies=1;" part.  You may need to add "hiddenSelections[]={};" in there as well.  I'm not too sure as I haven't tried making my own medic ;).  Anyway, I hope this helps.

BlinkDog

  • Guest
Re:healing and hiding corpse
« Reply #2 on: 15 Sep 2002, 00:21:49 »
Ah I see and that has to be added to the mission.sqm or the config.cpp? I wanted to include it with my amazon addon pack for some of the units.

I-RZ#

  • Guest
Re:healing and hiding corpse
« Reply #3 on: 15 Sep 2002, 21:43:03 »
You add it to the add-ons' config.cpp file. :)

BlinkDog

  • Guest
Re:healing and hiding corpse
« Reply #4 on: 16 Sep 2002, 02:26:26 »
great thanx alot. Topic solved.