Home   Help Search Login Register  

Author Topic: how do I add ammo to an m2?  (Read 1278 times)

0 Members and 1 Guest are viewing this topic.

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
how do I add ammo to an m2?
« on: 08 Sep 2002, 19:55:04 »
i tried doing "m2gun addmagazine "Browning"" on an empty m2, but it crashes the game and says it doesn't have cfg.weapons.browning or something

I set the browning's ammo to 0 on purpose, and I want it so that when I activate a trigger it gets full ammo.

also, how do I make a person in a m2 "hold fire"?  setting the guys who man them to careless only seems to work when they're out of the m2.

please help me!!!!!

YankeeTanker

  • Guest
Re:how do I add ammo to an m2?
« Reply #1 on: 08 Sep 2002, 22:00:56 »


  I just tried this in resistance:

   I name the Machinegun 'M2' and added the command Removeallweapons to it so that it's ammocount was 0.

   So whatever your trigger would be would add the command in the On Activation box:

  M2 addmagazine "Browning"; M2 addmagazine "Browning".

  When I went and looked at the count and it had

    500|1.

  So that works for ya.  Just modify it to your needs...

  And 'Browning' is the name of the ammo...


    Good Luck and Good OFPEC'ing.

   YankeeTanker.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:how do I add ammo to an m2?
« Reply #2 on: 08 Sep 2002, 23:11:15 »
Hey m8  :) if this was the exact INIT command :


"m2gun addmagazine "Browning""



...then the reason for the game-crash would be the ""s,
as it should look pretty much like YankeeTanker wrote in his reply above:

This addmagazine "Browning"

This would be an INIT field command, adding one browning mag, while
yankee's NAMED m2mGun is needed in triggers/wp's  ;)

Oh, and a tiny hint :

The following INIT spell will turn the mGun into an AT missileLauncher :

This RemoveWeapon "Browning"; This AddMagazine "ZuniLauncherOH"; This AddWeapon "ZuniLauncherOH"

Ya might wanna add two or three mag's coz the AI will fire a full load of missiles pretty fast  :P ::)
Add the mag's BEFORE the weapon, or it'll probably start out unloaded.

To make a heavy AA gun outta the m2mGun, type this lot in the INIT field :

This RemoveWeapon "Browning"; This AddMagazine "ZSUcannon"; This AddWeapon "ZSUcannon"  :-*

The choise of weapon ( "aa" or "at" or "gg" ETC. ) will determine the
behaviour of the AI-gunner in the m2mGun.

i.e.  The zsu will fire at aircrafts while the zuni will fire at tanks and so on.


The choise is all yours, matey!  :)

---------------------------------------

[mod] I missed out a " "  ::) [/mod]  ;D


« Last Edit: 08 Sep 2002, 23:24:56 by Tomb »