Ruskiesrule 0 Posted December 16, 2002 How can we do a closecombat script? I have an overal idea! But i don't know what it is in ofp scripting language! Its pritty much: Use addaction to create an action command that says "Hit with Hand!" Plays animation when soldier hits person with hand (stroke with hand?). Damage nearest unit thats within a certain range! I have no idea how to make it set off gaurds if your seen doing it! Cuz i need it for a POW mission! Your in a camp and you need to escape! And you need some way to hurt people without your gun! Share this post Link to post Share on other sites
Bart.Jan 0 Posted December 16, 2002 You don't need a script. Simply put this line into unit init line : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeAllWeapons this;this addmagazine "StrokeFist"; this addweapon "StrokeFist"<span id='postcolor'> You must be really close to succesfully hit an opponent and you must not have any weapon or grenade. Share this post Link to post Share on other sites
bn880 5 Posted December 16, 2002 And that's not just close combat, rather hand to hand combat. (not meant to insult you) Share this post Link to post Share on other sites
Ruskiesrule 0 Posted December 16, 2002 Sweet, i didn't know we had that! Is it for resistance? This is the first time i have heard of it! Share this post Link to post Share on other sites
Bart.Jan 0 Posted December 16, 2002 It works even without Resistance. I think it's some planned action that was not used in final version. I didn't know abot it too. I founded it on czech discussion about mission editing at flashpoint.tiscali.cz  Share this post Link to post Share on other sites
Ruskiesrule 0 Posted December 19, 2002 BiS should of made this some kind of button! I hope they add it to a patch! Sombody, if they researched into it, could maby make somthing like a bayonet on the end of a weapon and use the "strokewithgun" animation! Share this post Link to post Share on other sites
Guest BratZ Posted December 19, 2002 I don't think it was used much as was prolly intended for cutscene action Share this post Link to post Share on other sites
PiNs_Da_Smoka 0 Posted December 19, 2002 But it actually gives damage, so it had to of been put there for a reason. I've known about this for some time now, i have yet to see anyone do anything really cool with it. Perhaps they just left it in there for people to find and do what they please with it. Or maybe they just made it for the hell of it, and forgot to take it out Share this post Link to post Share on other sites
Mr B 0 Posted December 20, 2002 Don't you need a rifle to get strokegun and strokefist to work though? If though it only was available if your rifle mag ran dry? Share this post Link to post Share on other sites
ralphwiggum 6 Posted December 20, 2002 AFAIK, storke gun needs rifle, and strokefist requires that you don't have a thing. Share this post Link to post Share on other sites
Rexxenexx 0 Posted December 21, 2002 I have two enemy "strokefisting" hehe at eachother in one of my missions (I think Sidewinder) and they don't cause any damage so I setdamage to make 'em look roughed up. Share this post Link to post Share on other sites
_Hekler_ 0 Posted December 22, 2002 The stroke fist thing is used in the Cold War Crisis campaign during a cutscene. The Mission when the pilot get captured me thinks. Share this post Link to post Share on other sites
bn880 5 Posted December 22, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (PiNs_Da_Smoka @ Dec. 19 2002,15:48)</td></tr><tr><td id="QUOTE">But it actually gives damage, so it had to of been put there for a reason. I've known about this for some time now, i have yet to see anyone do anything really cool with it. Perhaps they just left it in there for people to find and do what they please with it. Or maybe they just made it for the hell of it, and forgot to take it out <span id='postcolor'> Yeah, I used it in my working missions... I was planning on having the character go to martial arts school to learn how to fight first... but I think some scomplications came up. Share this post Link to post Share on other sites
Ruskiesrule 0 Posted December 22, 2002 i've tried it, and you were correct! You have to be right on top of them for it to work! How do you make it so that it will make the other enemys shoot at you if you try to hit them? I can walk around the hole POW camp trying about a minute trying to kill them and they do nothing! Share this post Link to post Share on other sites
Balschoiw 0 Posted December 22, 2002 get the distances between you and all enemy forces with a trigger. So if you get closer than 0.5 they will target and shoot you. YOu could use setcaptive true in beginning and set it to false if you ger to close to enemy units are try to leave the camp. Share this post Link to post Share on other sites
Ruskiesrule 0 Posted December 22, 2002 yeah, he starts off captive, and i have a wall going round that makes the player captive if he gets near the wall! Like in Great Escape! dunno how to make it happen when you get near a gaurd! Loads of them move on patrol routes! Share this post Link to post Share on other sites