Home   Help Search Login Register  

Author Topic: Deathblow - Looking for a one punch KO  (Read 1013 times)

0 Members and 1 Guest are viewing this topic.

OFP Director

  • Guest
Deathblow - Looking for a one punch KO
« on: 25 Aug 2003, 21:03:40 »
Hi all

I am trying to make it so when i use strokegun i can knock out the guard in swing. I tried lowering the guards health level but he started out all bloody.

Also,

Anyway to make said guard fall out of his chair after the deathblow has been delivered?

Thanks in advance  :)

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Deathblow - Looking for a one punch KO
« Reply #1 on: 26 Aug 2003, 02:35:18 »
I used this in one of my missions once, but rather than using:

"player addweapon strokegun"

I made it a scripted action, added to the bad guy when the player was within 5m and behind him.


You could set up a trigger so when the guy takes any dammage it kills him... something like this:

Trigger

Radius: 0,0
Condition Field: getdammage unit > 0
OnActivation Field: unit setdammage 1

Something like that maybe? ;)

OFP Director

  • Guest
Re:Deathblow - Looking for a one punch KO
« Reply #2 on: 26 Aug 2003, 04:30:58 »
Thanks, thats perfect  ;D

Komuna

  • Guest
Re:Deathblow - Looking for a one punch KO
« Reply #3 on: 26 Aug 2003, 18:47:14 »
I read at config.cpp (1.91, provided by BIS) that the weapon "strokefist" and "strokegun" are available for player use, however, every unit's configurations don't support them. A simple way of adding such weapon is making and addon (cpp only) with a reconfigured unit type, such as with a new weapon slot config.