I am totally open to ideas, concepts, help, constructive criticism, etc... but just pleasedon't be a butthead.
!! YOU CAN CHANGE F3 TO ANY OTHER KEY. SEE THE INSTRUCTIONS !!
Controller support: I'm currently looking into how it plays with Starfield Hotkeys. If you want to beat me to it, you may also want to dig around in the chat there to see if anything turns up.
PLEASE READ THE INSTRUCTIONS BEFORE POSTING AN ISSUE IN CHAT (I'm more than willing to help, though)
You don't need multiple files and no additional .bat that way. You have some options here:
1. in the havok impulse function the first var is the z-plane. That was different in FO4, or is different in the actual Papyrus script. I don't know. However, if you want to make your target crawl like a worm, set the 10.0 to 1.0, and press the push key repeatedly. If you want to send them flying maybe use 25.0 or above? The last var is the actual impulse. 1000.0 will probably send your target beyond the borders of the Universe, possibly without return 2. the "prid" isn't really needed. It's for safety so you don't fall into pushing madness, and simply auto deselects target after pushing 3. you could use auto hotkey to fire key 1, and then auto press key 2 to do it in one sequence 4. you can conditionalize all of the functions like so: if pna == 0; pna; pms 29591b 1; elseIf pna != 0; cgf "Debug.Notification" "Target Selected"; endIf
I'm still trying to find the correct sound to play for when you push actors. You can actually just play custom sounds. Maybe see if there's a console var for checking female/male, and/or human/alien.
u say "set the 10.0 to 1.0, and press the push key repeatedly. If you want to send them flying maybe use 25.0 or above? The last var is the actual impulse. 1000.0 will probably send your target beyond the borders of the Universe, possibly without retur"
Using a batch file actually solves some problems. You can use pna and GetSelectedRef within the same file (on different lines) without any problem, and bind that to a single hotkey. So there's no need for AutoHotkey then.
These are all good points and have given me much food for thought. I've realized most of the pain I've had is that conditionals in batch files don't fire correctly and that console commands appear to fire simultaneously, preventing the selected ref to be passed on in the same command string. Hence the series of batch files in this mod.
If I can create a new version utilizing ApplyHavokImpulse, I'll ensure to credit you as that's a much better way to do it, in my opinion. The animation is tied to the actor receiving the command upon fire, so hopefully ApplyHavokImpulse bypasses that.
Only issue with your version is that it requires two keys to engage the action, which is why I had a difficult time getting this to work from a single keypress at all.
Edit: yeah, the animation still prevents the actor from receiving the full force of the command. I'm going to look into hopefully disabling that animation when firing the push command
This is what worked for me: I have a file called 'push.txt' PickNextActor waitbatchfile 0.5 PushActorAway "GetSelectedRef" 99 GetSelectedRef.ApplyHavokImpulse 5.0 5.0 0.0 100.0 waitbatchfile 0.5 prid
In my StarfieldConsole.ini, I have: [Hotkeys] NumPad+=bat push
I set a macro in corsair iCue to send a numpad+ keystroke every 50 ms
I don’t know if this what you are planning on doing with the “real push” thing, but it would deffo be better if they ragdolled and got pushed a decent bit back, like the get out my face mod from fallout 4 you took inspiration from.
I'm currently looking for a mod to do this... but to every NPC that touches me lol. (Automatically of course) I find it extremely annoying that they don't move when you run into them. Makes me miss Cyberpunk. (Minus the Annoying camera sway)
If I can get the next few updates to this working, I should actually have the necessary code to be able to make something like this happen as it would have most of the same guts .
Only problem would be running a script to constantly search for nearby NPCs- would bog down the system quite a bit to do it with the tools we have, not to mention the difficulty of doing it without all the fun tools.
Give me a bit but I'll probably have something I can cook up for ya.
27 comments
!! YOU CAN CHANGE F3 TO ANY OTHER KEY. SEE THE INSTRUCTIONS !!
Controller support: I'm currently looking into how it plays with Starfield Hotkeys. If you want to beat me to it, you may also want to dig around in the chat there to see if anything turns up.
PLEASE READ THE INSTRUCTIONS BEFORE POSTING AN ISSUE IN CHAT
(I'm more than willing to help, though)
Do this:
[Macros]
selectTrgt=pna;pms 29591b 1; cgf "Debug.Notification" "Actor Selected!"
pushActor=PushActorAway "GetSelectedRef" 2; GetSelectedRef.ApplyHavokImpulse 10.0 0.0 0.0 100.0; prid
[Hotkeys]
J=selectTrgt
F12=pushActor
You don't need multiple files and no additional .bat that way. You have some options here:
1. in the havok impulse function the first var is the z-plane. That was different in FO4, or is different in the actual Papyrus script. I don't know. However, if you want to make your target crawl like a worm, set the 10.0 to 1.0, and press the push key repeatedly. If you want to send them flying maybe use 25.0 or above? The last var is the actual impulse. 1000.0 will probably send your target beyond the borders of the Universe, possibly without return
2. the "prid" isn't really needed. It's for safety so you don't fall into pushing madness, and simply auto deselects target after pushing
3. you could use auto hotkey to fire key 1, and then auto press key 2 to do it in one sequence
4. you can conditionalize all of the functions like so: if pna == 0; pna; pms 29591b 1; elseIf pna != 0; cgf "Debug.Notification" "Target Selected"; endIf
I'm still trying to find the correct sound to play for when you push actors. You can actually just play custom sounds. Maybe see if there's a console var for checking female/male, and/or human/alien.
How to install? Thank you
Sorry, language barriers I assume. I don't comprehend what you're asking?
You'll need to be more precise about exactly what you've changed.
u say "set the 10.0 to 1.0, and press the push key repeatedly. If you want to send them flying maybe use 25.0 or above? The last var is the actual impulse. 1000.0 will probably send your target beyond the borders of the Universe, possibly without retur"
ApplyHavokImpulse 25.0 0.0 0.0 300.0
Did I do anything wrong?
I'm not using auto hotkey. My Logitech G Hub is able to push key macros perfectly fine.
Also, I'm not using the actor target exclusively for push. So a singled out line does make perfect sense.
If I can create a new version utilizing ApplyHavokImpulse, I'll ensure to credit you as that's a much better way to do it, in my opinion. The animation is tied to the actor receiving the command upon fire, so hopefully ApplyHavokImpulse bypasses that.
Only issue with your version is that it requires two keys to engage the action, which is why I had a difficult time getting this to work from a single keypress at all.
Edit: yeah, the animation still prevents the actor from receiving the full force of the command. I'm going to look into hopefully disabling that animation when firing the push command
I have a file called 'push.txt'
PickNextActor
waitbatchfile 0.5
PushActorAway "GetSelectedRef" 99
GetSelectedRef.ApplyHavokImpulse 5.0 5.0 0.0 100.0
waitbatchfile 0.5
prid
In my StarfieldConsole.ini, I have:
[Hotkeys]
NumPad+=bat push
I set a macro in corsair iCue to send a numpad+ keystroke every 50 ms
And sent Sarah Morgan to explore the Starfield.
(then my game crashed)
I'll test when I get a chance.
Edit: Yes, robots also work
I find it extremely annoying that they don't move when you run into them.
Makes me miss Cyberpunk. (Minus the Annoying camera sway)
Only problem would be running a script to constantly search for nearby NPCs- would bog down the system quite a bit to do it with the tools we have, not to mention the difficulty of doing it without all the fun tools.
Give me a bit but I'll probably have something I can cook up for ya.