Author Topic: SetWeaponActive(ID,WeaponID,Boolean);  (Read 710 times)

0 Members and 1 Guest are viewing this topic.

DarkCrusade

  • Guest
SetWeaponActive(ID,WeaponID,Boolean);
« on: May 13, 2010, 10:25:51 pm »
I have acknowledged in one of my projecs that if you have a favourite gun that is used by default,if that weapon is disabled by SetWeaponActive, then you are able to use it by choosing your primary anyways. This doesn't really sound like it should be like that and I'm not quit sure what to think about it.

Other thoughts/experiences?

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: SetWeaponActive(ID,WeaponID,Boolean);
« Reply #1 on: May 14, 2010, 08:29:02 am »
Wait, what? You mean you can still choose the weapon? More details, please.

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: SetWeaponActive(ID,WeaponID,Boolean);
« Reply #2 on: May 14, 2010, 03:59:33 pm »
He means that if you had selected it and hit tab to turn off the wep you will still be given the weapon on spawn, and if you have a secondary set as favorite, you would still get it on spawn.


Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: SetWeaponActive(ID,WeaponID,Boolean);
« Reply #3 on: May 15, 2010, 04:30:20 am »
Just check in OnWeaponChange/AppOnIdle then if a guy carries the him allowed guns..?

DarkCrusade

  • Guest
Re: SetWeaponActive(ID,WeaponID,Boolean);
« Reply #4 on: May 15, 2010, 04:32:50 am »
That's what I do ... you didn't get my point. I wasn't asking for help, I told others that SetWeaponActive is only disabling the manual choice, but not the favourite setting and that leads us to the conclusion that they need to check a players gun anyways ...