From cbb6afac7c874b47c79a450f1f687fc6efd2b28f Mon Sep 17 00:00:00 2001 From: NovaRain Date: Tue, 16 Oct 2018 22:18:35 +0800 Subject: [PATCH] Updated NPC combat control mod to work with BoxBarCount. Added additional notes to HOOK_COMBATDAMAGE in hookscripts.txt. --- artifacts/mods/gl_partycontrol.int | Bin 2346 -> 2466 bytes artifacts/mods/gl_partycontrol.ssl | 11 +++++++---- artifacts/scripting/hookscripts.txt | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/artifacts/mods/gl_partycontrol.int b/artifacts/mods/gl_partycontrol.int index 59a4e14d3365814d18b22e568a58320a84678e2a..eb15a3ab7db85888621404a2037c223b75f1c622 100644 GIT binary patch delta 813 zcmZ1_v`AQ>f$0Dv0|SFl122eX=9?&BSntIE0TK`jMlyrMnHd-uRA3?yn)w6+0|OHS z1A_^K4yz)1FGP}ZY~w`zHKauX|@@++M4 zOY=%5hcYHGx=r53_*a!9z|+Miv$%wTK_(@oD6w2GGcU8oH?ugo#wowTDX|Emegl)r zan0l? z79A#5vB@1Qk&L@0KVr#dd^OpRRh;qB^cFzH;V}Qwmd7cfQAyzXmg86I^ z>)87m*Ms>E4Gtiug4qmUl6A5kyCQd2V+zFo>?bBiu^TaQ@J;Sx*JI+anJmYlqQTh( zR?5&I1f?w?mT;6c@Pe)10wNiiCU4+S&;c`f8rOi8vNTviX|T6BPM~PentX;`k^cvZ zn8oBj>P@@F#iAl|9^vV zgEUBlg=4Z3OD1F01P zGO#oVHRw0&Z`j{(rD1==n}%%=GuSpvUd3jk!}g_t1*DAa3y6d$o&a+76)<_EsjR6S zs^QCIA$DVFgU0n>l@1LKAP0fj3}BLFau2&Aw@_mW#Fy+@lXtKiF|lu${Dxgmfc-%O zFWAH_Ad-=3@)iz7egPCQfyqxe6qq>dCd+WB)N{0e&17m20@JJw<`7dkN>BmXrp0j7#$ABxS;cmmtR+`xK(kzsNr2R~Sp;~Q9%p 2) then controlMode := 0; - if (displayName < 5 or displayName > 9) then displayName := 0; if (controlMode > 0) then begin pidList := GetConfigListInt("CombatControl", "PIDList"); fix_array(pidList); - if has_trait(TRAIT_PERK, dude_obj, PERK_gecko_skinning_perk) then hasGeckoSkinning := true; + maxBoxCount := get_ini_setting("ddraw.ini|Misc|BoxBarCount") + 4; + displayName := GetConfig("CombatControl", "DisplayName", 0); + displayNameColor := GetConfig("CombatControl", "DisplayNameColor", 0); + if (maxBoxCount < 9) then maxBoxCount := 9; + if (displayName < 5 or displayName > maxBoxCount) then displayName := 0; register_hook_proc(HOOK_COMBATTURN, combatturn_handler); register_hook_proc(HOOK_GAMEMODECHANGE, gamemodechange_handler); diff --git a/artifacts/scripting/hookscripts.txt b/artifacts/scripting/hookscripts.txt index e19f13b1..67329cf0 100644 --- a/artifacts/scripting/hookscripts.txt +++ b/artifacts/scripting/hookscripts.txt @@ -162,8 +162,8 @@ critter arg1 - The target critter arg2 - The attacker int arg3 - The amount of damage to the target int arg4 - The amount of damage to the attacker -int arg5 - The special effect flags for the target -int arg6 - The special effect flags for the attacker +int arg5 - The special effect flags for the target (use bwand DAM_* to check specific flags) +int arg6 - The special effect flags for the attacker (use bwand DAM_* to check specific flags) int arg7 - The weapon used in the attack int arg8 - The bodypart that was struck int arg9 - Damage Multiplier (this is divided by 2, so a value of 3 does 1.5x damage, and 8 does 4x damage. Usually it's 2, but with Silent Death perk and the corresponding attack conditions, it's 4; for critical hits, the value is taken from the critical table)