Jump to content

working on run speed mod for player and companions


osterac

Recommended Posts

So I have this mod, run speed perk:

http://newvegas.nexusmods.com/mods/42471

It lets you and you companions (present and future, barring any bugs) run at 125%, 150%, 200%, 275%, 300%, or 1000% speed. If you go into sneak mode, your speed goes into normal sneak mode speed. However, I have yet to figure out how to get that working with combat at the same time. With sneak mode, I just put a condition on a perk entry that had a set value for modify run speed of 175.56. The condition was IsSneaking == 1.00. I tried making another entry of modify run speed 308 with a condition of GetAttacked==1.00, but that didn't work, my player just moved at the same speed in combat whether sneaking or running. Is there anything else I can try? I don't fully understang how the AND and OR operators work. what items do they refer to, the one above or below? What if there are no other items on the list?

Anyway, that's what I've tried so far. What should I do next?

Thanks

Link to comment
Share on other sites

I have 3 perk entries, 1 for the increased run speed for the mod (eg for 300% that would be 924), one for normal run speed (308) and one for sneak speed (175.56) I'm not sure if my math is right, but those are the numbers I arrived at for Modify run speed: set value. The first entry has 2 conditions, isincombat==1 (like you said) AND issneaking==0 OR. The second entry has one condition, isincombat==1 OR. The third entry has one condition, issneaking==1 OR. The results of this were the same, out of combat running is accelerated, sneaking is normal. In combat, running and sneaking are at sneak speed.

Any ideas?

Link to comment
Share on other sites

First, the obvious, but maybe overlooked, check to make sure the conditions are attached to the right entries. :)

 

Second: Reorder your entries.

 

- Put the sneak speed entry first, and attach the following condition: IsSneaking == 1 (AND/OR doesn't matter.)

- Put the Combat Speed entry second, and attach the following conditions:

- - - IsSneaking != 1 AND

- - - IsInCombat == 1

- Put the boosted speed entry LAST, and attach the following conditions:

- - - IsSneaking != 1 AND

- - - IsInCombat != 1

Link to comment
Share on other sites

It doesn't REALLY matter which you use, but since FNV doesn't have a true boolean data type, I like to use not-equal for conditionals like that. Just in case the function reports an odd value like 2 or something. Theoretically, that's not possible, but I don't trust FNV to behave predictably.
Link to comment
Share on other sites

Just a general note on conditions in the GECK:

The AND/OR set how the current condition is evaluated with the condition that follows it. For example:

 

Condition 1 OR

Condition 2 AND

Condition 3 OR

Condition 4

 

Is evaluated as (Condition 1 OR Condition 2) AND (Condition 3 OR Condition 4).

Link to comment
Share on other sites

What's a token? Can you use regular console commands that way? Also, I'm not getting any notification emails. Is something wrong with the server? I used to get them...

Thanks for the speedy replies!

 

Edit

Also, when you say, put this entry first, this second, etc. Do you mean rank or priority?

Edited by osterac
Link to comment
Share on other sites

What's a token? Can you use regular console commands that way? Also, I'm not getting any notification emails. Is something wrong with the server? I used to get them...

Thanks for the speedy replies!

 

Edit

Also, when you say, put this entry first, this second, etc. Do you mean rank or priority?

 

I mean the order in which the entries appear in the perk editor.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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