EDIT: Default grab is disabled in higgs_vr.ini but can be changed. This mod does not add weight when grabbing with HIGGS grab. This mod does not add weight when grabbing with DEFAULT grab with HIGGS installed. I did not test DEFAULT grab with HIGGS removed.
I was hoping to put things in a cart and push it down the road without activating running and send things flying out of the cart. I was also hoping this might make carrying bodies not activate running and knock things about at high speed. With HIGGS I can run with huge boulders from traps too. It may have benefits in VR but I did not uninstall HIGGS and test. The best possible addon for VR grab and carry would be a slow motion effect added to the player for anything over xx weight and also all bodies (applied to HIGGS and default grab). Anyway, that is the best research and report I can give at this time.
So this mod works by adding a dummy object to the player's inventory when they grab an object. The plugin contains that dummy object, so it is needed still. Skyrim Platform also needs to use GetFormFromFile to find that object, so unfortunately the plugin can't be renamed safely unless you also change it in the js file.
Yeah, I was struggling with that myself as well, when attempting to make something like this. As a workaround would it be possible to block dropping items in "stacks" and always just drop one at a time?
Not sure, I can't think of an obvious way of doing so but maybe there's a game setting or something that controls that? I think that goes beyond what I'm looking to do here though. Wouldn't want to inconvenience the player by removing stacks entirely. Plus I think it's still possible to place a stack of items in the CK, even if it's not something Bethesda used often themselves.
Here is a small modification if carrying corpses with items in them:
scriptName _grabbeditemsaddweightscript extends ReferenceAlias {Adds weight to the player's inventory when they grab an item}
miscobject property _GrabbingAddsCarryweightDummy auto Float weight = 0.000000
function OnInit()
po3_events_alias.RegisterForObjectGrab(self as alias) endFunction
function OnObjectGrab(ObjectReference akObjectRef)
if akObjectRef as actor weight = (akObjectRef as actor).GetTotalItemWeight() else weight = akObjectRef.GetBaseObject().GetWeight() endIf if weight > 0.000000 _GrabbingAddsCarryweightDummy.SetWeight(weight) self.GetReference().AddItem(_GrabbingAddsCarryweightDummy as form, 1, true) endIf endFunction
function OnObjectRelease(ObjectReference akObjectRef)
if weight > 0.000000 weight = 0.000000 _GrabbingAddsCarryweightDummy.SetWeight(0.000000) self.GetReference().RemoveItem(_GrabbingAddsCarryweightDummy as form, 999, true, none) endIf endFunction
Pardon it's crude nature, champollion's way of decompiling code can be messy sometimes.
Probably none. But the script could be adapted so that the weight of the items the corpse has are added instead, so you can't cheese it that way as well.
22 comments
Default grab is disabled in higgs_vr.ini but can be changed.
This mod does not add weight when grabbing with HIGGS grab.
This mod does not add weight when grabbing with DEFAULT grab with HIGGS installed.
I did not test DEFAULT grab with HIGGS removed.
I was hoping to put things in a cart and push it down the road without activating running and send things flying out of the cart. I was also hoping this might make carrying bodies not activate running and knock things about at high speed. With HIGGS I can run with huge boulders from traps too. It may have benefits in VR but I did not uninstall HIGGS and test. The best possible addon for VR grab and carry would be a slow motion effect added to the player for anything over xx weight and also all bodies (applied to HIGGS and default grab). Anyway, that is the best research and report I can give at this time.
You are going to make me feel remorse for cheating.
Edit: You're in luck, this mod's code only adds the weight of one, not all of the ores.
scriptName _grabbeditemsaddweightscript extends ReferenceAlias
{Adds weight to the player's inventory when they grab an item}
miscobject property _GrabbingAddsCarryweightDummy auto
Float weight = 0.000000
function OnInit()
po3_events_alias.RegisterForObjectGrab(self as alias)
endFunction
function OnObjectGrab(ObjectReference akObjectRef)
if akObjectRef as actor
weight = (akObjectRef as actor).GetTotalItemWeight()
else
weight = akObjectRef.GetBaseObject().GetWeight()
endIf
if weight > 0.000000
_GrabbingAddsCarryweightDummy.SetWeight(weight)
self.GetReference().AddItem(_GrabbingAddsCarryweightDummy as form, 1, true)
endIf
endFunction
function OnObjectRelease(ObjectReference akObjectRef)
if weight > 0.000000
weight = 0.000000
_GrabbingAddsCarryweightDummy.SetWeight(0.000000)
self.GetReference().RemoveItem(_GrabbingAddsCarryweightDummy as form, 999, true, none)
endIf
endFunction
Pardon it's crude nature, champollion's way of decompiling code can be messy sometimes.
What about corpse carrying though? :D