Jump to content
Sign in to follow this  
Baphomet

Gun jamming script

Recommended Posts

I know there was one gulf war mod that was going to attempt this.. I'm not sure if it was OPGWC or not. Still. Has any scripter made an attempt at making a rudimentary standalone gun jam simulation?

I'm just curious. I'd really like adding something like that to a mission.

Share this post


Link to post
Share on other sites

you might give JAM a try tounge_o.gif

j/k, i don´t think it´s being done yet.

btw: wrong forum ghostface.gif

Share this post


Link to post
Share on other sites

Hm. Well that thread has some bloke asking the same question as me. Along with a lot of talk of the perils of left-handed SA-80 use, and a bunch of quotes. =P

Anyhow. This is general discussion. If I read the description of the mission and scripting forum title... it's: "for discussion of the technical aspects of mission editing and scripting"

... well. I don't know how to script really, I do some modifications here and there but nothing entirely on my own. So I'm not really discussing the technical aspects, I'm just asking if anyone's made one.

Secondly. I'm not posting it in addon discussion because to be quite honest. I don't want an addon that has gun jamming. I'd preferably just have a set of scripts that let me define which weapons jam.

Unfortunately the last thing I'd want to do is download an entire mod to reap the benefits of one little script. I don't want no stinkin' mods. I don't need no stinkin' mods. I pick and choose as I wish.  mad_o.gif

Share this post


Link to post
Share on other sites

Call with

{_x addEventHandler ["fired",{_this exec "unitscripts\loadouts\gunjam.sqs"}]} Foreach Units groupname;

or

this addEventHandler ["fired",{_this exec "unitscripts\loadouts\gunjam.sqs;

Gunjam.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

?(_this select 0)!= player:exit

?(_this select 3=="FullAuto")||(_this select 3 == "Burst")||(_this select 3 == "Single"):goto "Jam"

exit

#Jam

_x = random 200

? (_x <= 4):goto "Jam2"

Exit

#Jam2

player playmove "CombatReloadMortarEnd"

?(LOCAL PLAYER):hint "Gun Jammed.\nCleaning......."

exit

Share this post


Link to post
Share on other sites

Harkonin

Very nice and simple script indeed! smile_o.gif

did you think about other animations?

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  

×