Jump to content
Sign in to follow this  
Ruskiesrule

Close combat script!

Recommended Posts

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

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

And that's not just close combat, rather hand to hand combat. tounge.gif (not meant to insult you)

Share this post


Link to post
Share on other sites

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

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  xmas.gif

Share this post


Link to post
Share on other sites

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

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

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 biggrin.gif

Share this post


Link to post
Share on other sites

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

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

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

</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 biggrin.gif<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. smile.gif

Share this post


Link to post
Share on other sites

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×