Home   Help Search Login Register  

Author Topic: Telephone classname  (Read 745 times)

0 Members and 1 Guest are viewing this topic.

Offline paddy

  • Contributing Member
  • **
  • Llama whipping good
Telephone classname
« on: 16 Jan 2006, 18:25:19 »
Remember in the cutscene in the hangar in one of the BIS campaigns, the charachter had a phone in his hand.  I'm looking for the classname of the phone .. i have the switchmove required (FxstandtelLoop) but I just cant find the classname of the phone!!

Please help me OFPEC!!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Telephone classname
« Reply #1 on: 16 Jan 2006, 19:01:01 »
Hmmm....it depends on what you want.

Under cfgVehicles there is the complete telephone unit, base with handset included.....classname is "Phone".

Also under cfgVehicles there is the base unit only........classname is "PhoneBase"

Lastly, under cfgWeapons there is the handset only...classname is "Phone".

Code: [Select]
cfgVehicles
   class All
   class Thing: All{};
   class Table: Thing{};
   class Phone: Table   (Complete Telephone)
   class PhoneBase: Table   (Telephone Base)

cfgWeapons
   class Default
   class Binocular: Default{};
   class Phone: Binocular (Telephone Handset)

Too much info I know.........you require the last one, the one under cfgWeapons and possibly the base unit under cfgVehicles too.


Planck
« Last Edit: 16 Jan 2006, 19:02:57 by Planck »
I know a little about a lot, and a lot about a little.

Offline Pilot

  • Contributing Member
  • **
Re:Telephone classname
« Reply #2 on: 16 Jan 2006, 19:22:30 »
Yes, Planck is right, you want the last one, add it to the unit like this:

UnitName addmagazine "Phone"
UnitName addweapon "Phone"

Not sure if addmagazine is neccessary in this case, I always put it in because I can never remember.

-Pilot

EDIT:
I'm thinking you already knew about the addweapon part...so I guess my post is a bit redundant...
« Last Edit: 16 Jan 2006, 19:25:24 by Pilot »

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Telephone classname
« Reply #3 on: 16 Jan 2006, 19:37:17 »
Phonemagazine isn't needed (I think it causes a crash, because there are no phonemags). Otherwise Pilot is correct.
OFPEC | Intel Depot
RETARDED Ooops... Retired!