
Yeah I considered this too but the goal is to limit weapons only and not touch other things. So really it is problems of performance and compatibility.
#NEW VEGAS SCRIPT EXTENDER STEAM LAUNCH MOD#
The "danger" of doing that really falls into two categories: performance hit whenever this work needs to be done (on game start and perhaps reload), and the danger of having a mod overwrite the values of objects from other mods, which could cause problems or adjust the mods in ways not intended. To do the latter requires exposing the list of all base types found in the game for the modder to adjust. The only way to adjust all of these is to either manually change them in the mods (the most common way to do it) or to somehow iterate over all of the types and do it in code. Each base object type (weapon, armor etc) has an individual weight shared by all objects of that type. There is not a single variable managing the weight of items. Jesse villaneda Posts: 3359 Joined: Wed 1:37 pm Though I am not aware of technical limitations or how expensive something like this would be or what kinds of problems it could pose. I think this would be the cleanest implementation imo. If it can be possible to do this by modifying a single variable I think that would be ideal especially since it would allow people to add new weapons and ammo they would be fully supported with minimal hassle.

Though if it were possible to double the weight of weapons and ammo that would be all I need for the mod I am working on and counting how many guns the player has in his inventory would not be necessary at that point. I meant holding as in the players inventory. I would need to talk to Ian about it, and also find the data again before we could do that. That was the decision we came to a year or so ago for F3. However, I am not sure that we would ever expose the functions to walk over everything.

From that point you could modify the base form and weight would adjust accordingly. In theory, we could expose functions to walk down just the weapons or ammo in that list, returning each object form. When you say "holding" do you mean in the player's inventory? Or in the player's hands?Īt least with Fallout 3 we found a global list of all objects.
