Jump to content

Is it possible to detect if actor is killed with special melee attack?


KiCHo666

Recommended Posts

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

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 by Mktavish
Link to comment
Share on other sites

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

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
End

It has a 50% chance to explode head when executing it.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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