Home   Help Search Login Register  

Author Topic: Laptop  (Read 7418 times)

0 Members and 1 Guest are viewing this topic.

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #30 on: 21 Sep 2005, 01:00:51 »
You misunderstand, we can't even get cable here in this part of Indiana.  We are eagerly awaiting it's arrival ::)

@The-Architect
I will try out the config on my comp and report back.

-Student Pilot

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #31 on: 21 Sep 2005, 01:06:52 »
You misunderstand, we can't even get cable here in this part of Indiana.  We are eagerly awaiting it's arrival ::)

@The-Architect
I will try out the config on my comp and report back.

-Student Pilot

Do you mean you get no cable service at all? Or is that our cable provider doesn't have internet service available? I can't imagine what its like living without cable (No TV!  :o ). Personally, I've become quite acustomed to Digital Cable TV and high speed Cable Internet.

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #32 on: 21 Sep 2005, 01:08:22 »
This config works for me:
Code: [Select]
//Defines common to ALL addons:


#define TEast    0
#define TWest    1
#define TGuerrila    2
#define TCivilian    3
#define TSideUnknown    4
#define TEnemy    5
#define TFriendly    6
#define TLogic    7

#define true      1
#define false    0

//type scope
#define private    0
#define protected    1
#define public    2

//Defines specifically for weapon addons:

#define WeaponNoSlot          0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary            16// secondary weapons
#define WeaponSlotItem              256// items
#define WeaponSlotBinocular        4096// binocular
#define WeaponHardMounted        65536


class CfgPatches
{
   Â Â Â class ArchLapTop
   Â Â Â {
      units[] = {};
      weapons[] = {ArchLapTop};
      requiredVersion = 1.30;
   };
};
class CfgWeapons
{
  class default  {};
  class ArchLapTop : Default
  {
      scopeWeapon = public;
      scopeMagazine = protected;

      picture="\ArchLaptop\Laptop.pac";
      model="notebook.p3d";
      modelOptics="";

      valueWeapon = 5;

      weaponType = WeaponSlotBinocular;
      magazineType = WeaponNoSlot;
      ammo=; // no ammo
      displayName = "Laptop Computer";
      reloadTime=0.0;
      sound[]={,0,1};
      canLock=LockNo;

      optics = false;
      forceOptics = false;

      primary = false;

      magazines[] = {};
  };
};
A CfgPatches is required.

-Student Pilot

EDIT:
We use satellite TV.  No cable here.
« Last Edit: 21 Sep 2005, 01:09:18 by Student Pilot »

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #33 on: 21 Sep 2005, 01:16:27 »
We use satellite TV.  No cable here.

Oh, I'm so sorry for you  ::)

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #34 on: 21 Sep 2005, 17:13:31 »
Yep. Works now.

Cheers for the help guys it is greatly appreciated.

I still think it would be better in one of the other slots but seeing as I'm only checking if the player or team member has it, I can easily just give it to a team member.

Thanks again.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #35 on: 21 Sep 2005, 17:29:49 »
If you want the laptop to be in the secondary slot, the one where the AT weapons go, change this line in the config:
weaponType = WeaponSlotBinocular;

to:
weaponType = WeaponSlotSecondary;

The laptop will now take up the secondary slot.

-Student Pilot

P.S.  If any of you saw what I first posted (the message before "Typing Message") and thought "wtf is he on?", I have a reasonable explanation for it.  I loaded up OFP to test the solution, however, the mouse was still in IE.  When I hit enter to go to the mission editor, it posted the message I wasn't finished with. ::)
« Last Edit: 21 Sep 2005, 17:36:17 by Student Pilot »

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #36 on: 21 Sep 2005, 18:11:29 »
What about an ammo slot?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #37 on: 21 Sep 2005, 19:26:59 »
You shouldn't need anything in the ammo slots, unless you want something there, that is.

-Student Pilot

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #38 on: 21 Sep 2005, 20:49:42 »
What I would ideally want is for it to take up a couple of ammo slots. No secondary weapon slots, because that puts the model on the players back, a little too high up for it to look ok. Not in a NVG or Binos slot, because the player is going to want both of those.

Ammo slot is ideal for now obvious reasons.

Having it in the Bonos slot is acceptable because I can gve it to another team member. I don't give them Binos anyway.
« Last Edit: 21 Sep 2005, 20:50:42 by The-Architect »
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #39 on: 21 Sep 2005, 21:16:59 »
What I would ideally want is for it to take up a couple of ammo slots. No secondary weapon slots, because that puts the model on the players back, a little too high up for it to look ok. Not in a NVG or Binos slot, because the player is going to want both of those.

Ammo slot is ideal for now obvious reasons.

Having it in the Bonos slot is acceptable because I can gve it to another team member. I don't give them Binos anyway.

You simply can't assign a weapon to take up WeaponSlotItem's, so the only way you are going to get it to take up those slots is to make it a magazine. The problem with that is that a unit can't take a magazine without a weapon that can "use" the magazine, and then you would be adding 3x as much extra work than you really need.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #40 on: 21 Sep 2005, 21:19:46 »
I figured that might be the case. Ok, I'll just keep it as is. Thanks for the help guys. Excellant work.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."