Jump to content

Way to determine ammo type for a weapon (?)


Recommended Posts

Well, is there? My primary need is ps4, but if there is an advanced method, would be interesting to know anyway.

 

To give Player specific ammo for an equipped weapon i've distributed all existing guns into FormLists and used Condition IsWeaponInList to check, if weapon belongs to a group, which shares ammo types. Still, have to spawn several ammo types to support existing conversion opportunities. And even if so, this can't work for custom/unknown weapons, even if they use vanilla's ammo.

 

Also may be useful to give NPC suitable ammo, if have none - unlike when a gun is spawned, npc don't get ammo automatically, if acquire a gun by themselves (still, had to give'em every bit of ammo, for simplicity in this case). In combat they seem to search for ammo, but do not outside.

 

Thanks.

 

PS. Would be great to have uniformed keywords like "ammo_type_10mm" etc,, but nope...

Edited by hereami
Link to comment
Share on other sites

Thanks, i focused on Conditions, so missed it. Hm, rather limited practical usage.

 

Now i'm wondering, if Ammo must be Equipped, when active gun uses it, or not - what is normal?

Currently have a glitch, when two ammo types are displayed in Pip-Boy as equipped (Ammo page), this state doesn't change after switching weapons (other ammo isn't equipped as well) and persists untill i drop them. GetEquipped returns True - (for glitched ammos) that's very good, but if game can stop to equip Ammo eventually - that's bad, still not reliable way.

Edited by hereami
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...