KiCHo666 Posted November 11, 2016 Share Posted November 11, 2016 Let's say player has a Baseball bat equipped, he goes into the VATs to attack a raider, he uses Grad Slam and kills a raider.Would it be possible to increase baseball bat's kill impulse if that raider was killed with Grand Slam?Or even better, to have a chance to kick head off of his body?I'm not seeing GetWeaponKillImpulse in nvse documentation. Link to comment Share on other sites More sharing options...
Mktavish Posted November 11, 2016 Share Posted November 11, 2016 (edited) Let's say player has a Baseball bat equipped, he goes into the VATs to attack a raider, he uses Grad Slam and kills a raider. Would it be possible to increase baseball bat's kill impulse if that raider was killed with Grand Slam? Or even better, to have a chance to kick head off of his body? I'm not seeing GetWeaponKillImpulse in nvse documentation. So your not really wanting to detect what they were killed by ... which does have a function then a flag.But you want to inject an outcome into the damage calculation when certain actors are being damaged ,or damaged with certain weapon ?Which you can easily do with a perk , and select entry point. Then filter it on the conditions. Edited November 11, 2016 by Mktavish Link to comment Share on other sites More sharing options...
KiCHo666 Posted November 11, 2016 Author Share Posted November 11, 2016 Well, if some other weapons besides baseball bat have Grand Slam special effect, then yes.If player executes that special attack in VATS, then script should run that will increase kill impulse for that time only. But I haven't found a way to increase weapon's kill impulse on the fly. Link to comment Share on other sites More sharing options...
KiCHo666 Posted November 11, 2016 Author Share Posted November 11, 2016 I managed to achive head exploding when executing Grand Slam in VATS.I've added an effect to the Baseballbat special attack and attached this script to it: scn GrandSlamScript short RandomNumber Begin ScriptEffectStart set RandomNumber to GetRandomPercent if (RandomNumber <= 50) if (GetHealthPercentage <= 0.0) KillActor player 1 endif endif EndIt has a 50% chance to explode head when executing it. Link to comment Share on other sites More sharing options...
Recommended Posts