2.5a is up. Far sooner than I was planning, but I didn't want to sit on Mash's work for no reason.
Code:
>Appearance mod improvements (From Mash)
>Added a debug editor that lets you make changes to various values while in game
>The combatdamage hook script can now get the targeted bodypart
The debug editor is very obviously unfinished, but is still usable to view/modify global and map variables while in game without having to restart. (I advise only using it in windowed mode, because fallout freezes up until you close the editor.)
nirran said:
edit : would it be possible to add get and return target and attacker special flags in hs_afterhitroll hook script?or does it only use the hit_miss int for the text?actualy what im realy after is being able to set the critical table text that is returned,that possible?
No, the critical flags haven't been calculated at that point, so there's nothing to override. You need to do that from combatdamage.
nirran said:
what are the values for the int's in this function?and does it do what i asked for in the post before this?
See
http://falloutmods.wikia.com/wiki/Critical_hit_tables
The valuetype corresponds to the field you want to edit, so for example to make the highest class of head criticals against women deal 5x damage instead of insta-kills, you'd use:
Code:
set_critical_table(1, 0, 5, 0, 10);
set_critical_table(1, 0, 5, 1, 0);
It probably doesn't do what you want; it's for making permenent changes to the table, not effecting single combat attacks.