Home   Help Search Login Register  

Author Topic: Ammo Trobble With M16+M203 and kozlice  (Read 1947 times)

0 Members and 2 Guests are viewing this topic.

Kammak

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #15 on: 15 Apr 2004, 02:50:20 »
It might be easier to use the "typeOf" function to figure out what kind of guy you are working with, then figure out what his standard loadout is and work from there.

How exactly are you going to use this script?  Do you really need to check for every magazine type?


RE: Your last post, what happens with the m16 when you run the script?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #16 on: 15 Apr 2004, 02:52:35 »
Did you try JUST using:

_player removemagazines _weap


Planck
I know a little about a lot, and a lot about a little.

CopyrightPhilly

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #17 on: 15 Apr 2004, 02:52:50 »
its a buy weapons scipt for a dialog, u can buy every thing at this min but its only them two guns i cant get any ammo for..

and _player removemagazines _weap didnt work...
« Last Edit: 15 Apr 2004, 02:54:47 by CopyrightPhilly »

Kammak

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #18 on: 15 Apr 2004, 02:57:48 »
I just made a script with the code you posted, and ran it on a guy carrying an m4, and it ran fine - no errors, he had an m16/m203 with one m16 mag when it was done.

What exactly happens on your end when you run it?  Does he have the magazine in his inventory or not?  Or is the original ammo not getting removed, what?



CopyrightPhilly

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #19 on: 15 Apr 2004, 03:00:55 »
it changes the weapong fine, i just get a + shape pointer and it will not even try to fire the gun..

Kammak

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #20 on: 15 Apr 2004, 03:01:29 »
Did you try JUST using:

_player removemagazines _weap


Planck

That will only work where the magazine name is identical to the weapon name - like the BIS M16.  It won't work on the BIS M16/M203, as there is no magazine named "m16grenadelauncher".  Ditto, on any weapon that can accept more than one magazine, like the Kozlice, it won't work, as there is *no ammo* called "kozlice".

It has to be called with the name of a magazine, despite what the reference says.

Kammak

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #21 on: 15 Apr 2004, 03:03:30 »
it changes the weapong fine, i just get a + shape pointer and it will not even try to fire the gun..

?

What does the guy have originally - weapon and magazine?  Are they gone after your script runs - what is in his inventory?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #22 on: 15 Apr 2004, 03:04:47 »
I understand what you mean.

What about the G36a and its magazine.......G36aMag.


Planck
I know a little about a lot, and a lot about a little.

CopyrightPhilly

  • Guest
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #23 on: 15 Apr 2004, 03:12:28 »
pmsl, soz guys i found out why... help when u press the space bar

thanks a lot for your help

is there anyway to tell it to start on the seleted insted of pressing space bar its aready selected?

cheers, philly
« Last Edit: 15 Apr 2004, 03:14:46 by CopyrightPhilly »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #24 on: 15 Apr 2004, 03:20:32 »
Maybe you could change it from Kozlice as a weapon to

Kozliceshell and Kozliceball

So in effect it is 2 weapons instead of one.

Just an idea.....may not work.


Planck
« Last Edit: 15 Apr 2004, 03:21:00 by Planck »
I know a little about a lot, and a lot about a little.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Ammo Trobble With M16+M203 and kozlice
« Reply #25 on: 15 Apr 2004, 10:58:17 »
is there anyway to tell it to start on the seleted insted of pressing space bar its aready selected?

player selectweapon (primaryweapon player)

;)