Home   Help Search Login Register  

Author Topic: addmagazine in MP  (Read 1436 times)

0 Members and 1 Guest are viewing this topic.

ROBINO

  • Guest
addmagazine in MP
« on: 19 Sep 2005, 22:56:54 »
Recently i've been working on a scripted bergen which allows you to add extra magazines\weapons by activating actions in the action menu.

The scripts i use seem to work fine in SP but a number of problems arise when i attempt to use addmagazine in a MP dedi server environment.

Magazines are added and then the scripts detect if the player had more of that type of magazine after the adding than before - hence we can successfully find if the player has the right number of empty inventory slots when he decides to get another mag.

adding a magazine works when a player drops a number of existing mags from his inventory and freed-up inventory spaces this way

it does not work when those magazines are used-up (ie by firing a weapon) and inventory slots are freed-up this way

what is going on ?

i've heard something about "secondaryweaponholder" and "weaponholder" but i am not fimiliar with any of these commands

Kyle Sarnik

  • Guest
Re:addmagazine in MP
« Reply #1 on: 19 Sep 2005, 23:35:41 »
Recently i've been working on a scripted bergen which allows you to add extra magazines\weapons by activating actions in the action menu.

The scripts i use seem to work fine in SP but a number of problems arise when i attempt to use addmagazine in a MP dedi server environment.

Magazines are added and then the scripts detect if the player had more of that type of magazine after the adding than before - hence we can successfully find if the player has the right number of empty inventory slots when he decides to get another mag.

adding a magazine works when a player drops a number of existing mags from his inventory and freed-up inventory spaces this way

it does not work when those magazines are used-up (ie by firing a weapon) and inventory slots are freed-up this way

what is going on ?

i've heard something about "secondaryweaponholder" and "weaponholder" but i am not fimiliar with any of these commands


Unfortunatly its a known bug. Firing off a magazine won't (for some odd reason) allways remove it from the magazines list (the array returned by magazines command). As for your second question, they aren't commands, they are weapon holders, and have nothing to do with this. They are pretty much ammo crates only without models and they let you see the weapon/mag thats in it (this is how BIS added the drop weapon/magazine actions to infantry in the patches).