The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Problems with updating the vats fix scripts

General mod discussion and requests.
Question
Posts: 134
Joined: Thu Jul 16, 2015 5:33 am

Problems with updating the vats fix scripts

Post by Question » Fri Aug 07, 2015 4:59 am

Ran into two major problems :


-There doesn't appear to be any way to get the actual perk modifiers, so the scripts have to assume that everyone is using the default values and only the vanilla perks.


-There doesn't appear to be any way to get the DT modifier for the current ammo type, there's a function to get the current ammo type, but i don't think it gets the DT modifier as well.


Any ideas on workarounds?


Edit : Also im running into problems attaching an effect script to the ammo types. Does anyone know if its possible to get the script to check the weapon the player is using or it's number of projectiles then set it's crit damage accordingly using SetWeaponCritDamage? Both GetSelf and GetContainer return no values if used as an ammo effect script.



User avatar
Puppettron
Gary
Posts: 1715
Joined: Sat Nov 23, 2013 10:47 pm

setweapon* functions change

Post by Puppettron » Fri Aug 07, 2015 5:30 am

setweapon* functions change the base weapon's records, just so you know.  if you're comfortable with a script changing every iteration of a weapon, go right ahead.


perms:  either a full fireworks display spelling out "Puppettron Made This" anytime a user accesses my content in-game, or just give me credit somewhere.

Question
Posts: 134
Joined: Thu Jul 16, 2015 5:33 am

Ah thanks, i didnt know that.

Post by Question » Fri Aug 07, 2015 6:57 am

Ah thanks, i didnt know that. Is there a temporary way to do it just for the weapon you are holding?



Question
Posts: 134
Joined: Thu Jul 16, 2015 5:33 am

Another problem : The crit

Post by Question » Sun Aug 09, 2015 4:31 am

Another problem : The crit script will fire once per crit, which basically means that you always do more damage in VATS than out of VATS.


E.G. A weapon fires 4 projectiles, with each critting for 10 damage. All 4 projectiles crit. In VATS mode, the script fires 4 times dealing 40 damage total + the 10 crit damage that the weapon normally does in VATS. Outside of VATS the weapon would only do 40 crit damage total.



User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

iirc Crit chance is handled

Post by RoyBatty » Sun Aug 09, 2015 5:00 am

iirc Crit chance is handled differently inside and outside of VATS.


Image

Question
Posts: 134
Joined: Thu Jul 16, 2015 5:33 am

What do you mean?

Post by Question » Sun Aug 09, 2015 5:23 am

What do you mean?



User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

Outside VATS there is only

Post by RoyBatty » Sun Aug 09, 2015 6:15 am

Outside VATS there is only the actor value CriticalChance , in VATS there is a damage multiplier. Also in VATS I believe since it's usually some form of burst fire, the hit chance and critical chance is only calculated once and applied to all shots in that burst.


VATS is extremely OP :)


Image

Question
Posts: 134
Joined: Thu Jul 16, 2015 5:33 am

I can only find information

Post by Question » Mon Aug 10, 2015 6:45 am

I can only find information saying that VATS gives a 5% critchance bonus, but i cant find anything about a damage multiplier. Do you have a link?


Yea the hitchance and crit chance seems to be only calculated once for the whole burst, there are both pros and cons for that (since 8 shots all missing in one go is annoying).


The problem im facing is how to get the crit scripts to apply the correct damage since the game always applies the crit damage of one projectile correctly + fires the crit fix scripts once per projectile...



User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

The VATS damage multiplier is

Post by RoyBatty » Mon Aug 10, 2015 8:07 am

The VATS damage multiplier is in the weapon form.


Image

deadboy
Posts: 496
Joined: Fri Aug 16, 2013 11:18 pm

Is VATS broken beyond the

Post by deadboy » Mon Aug 10, 2015 12:15 pm

Is VATS broken beyond the fact that it exists? It's early and that probably sounds more harsh than intended but I am legit curious? Is it REALLY broken or just not functioning as you intend it?


Because if I WAS TO FIX VATS it would be by disabling it.  But that's just me...



Post Reply