Page 1 of 1
super punch
Posted: Sat Dec 12, 2009 4:00 am
by clydealan83
im wanting to do a super punch or kick or throw or whatever. not your average punch in the chin. if the players strength and hand to hand gets up enough it will knock the enemy out of their socks if you know what i mean. i know i have to use forceup and what not but how do i go about gettin the enemy to react with my super punch?
Re: super punch
Posted: Mon Dec 14, 2009 2:50 pm
by metal_head
Ah, shouldn't be to hard. You can use the Low Level commands DamageArea() or DamageAtBone() to inflict damage, but the damage attribute will be another one. Like if your enemy has a health attribute, called "health" and all of the weapons damage the health attribute, you can add another attribute, called for instance "punch_health" and than your player will cause damage to that punch_health attribute when punching, and there you go, all that's left is to check if the punch_health has decreased or it's 0 (yeah, you can make it only like high - 1 low - 0, you won't need much more from that attribute since it's for detecting)