OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Merc on 16 Jan 2005, 17:01:59
-
I don't think anyone has made this, so I was wondering if anyone could. Here goes:
When you fire your gun it flies out of your hands a couple feet where you have to go pick it up.
From :gunman: to ??? in a second because he lost his gun.
Would that be possible?
-
uh.. why would you want that to happen?
-
Maybe for the S&W. ;D
:beat: *Gets Shot* :beat:
-
i think it would be funny to see people in a multiplayer match throwing their guns after they fire ;D
-
well seeing as this is a very useless script i don't think anyone will make it for you....
-
Maybe you could make a script that you can throw your gun after its run out of ammo, like stokegun command but, well, throwgun command.
-
throw your gun after its run out of ammo
That sounds like something I could use and it sounds better than people throwing their guns after they fire
-
hmm... could also be used when the player is hit. Would give u a bit more of a reason to keep your head down.
-
Other than getting hit and being near an explosion, the script seems useless. I don't even really understand it much. :P
But maybe you could remove the weapon and use a place holder to create a weapon just lying on the ground or something. :-\
-
The script could be used for more relistic deaths. When the person dies their gun goes flying out of their hands. :gunman:
-
I tryed using a place holder but is was very unrelistic.
(i can't spell)
-
Wouldn't have noticed you can't spelt if you didn't point it out, only two letters missing. This thread is weird.... taking a random idea and developing it into something that could add to the game... I liked ur idea about deaths merc, i hate seeing guns flying 10cm next to their owner when he's thrown around somewhere.. placeholder would be fine for that.
-
http://www.ofpec.com/editors/list.php?show=pending
-
but place holders don't show motion. they just stay there.
-
but maby u could move the place holder in increments away from the person
-
using setVelocity?
-
I have tried setvelocity, it does not work.
Moving the placeholder in small increments might work, but I am not an advanced enough scripter to know how to make it fall right. :-\
-
i meant setpos
-
AFAIK, you'd need a seperate object of the gun, then when the unit is blowen up (Exploding body scripts do this), the gun is remeoved from the person, and the object is created, and set velocivied..
You wouldn't really see it either..
Oh, theres a addon thing on OFP.info (Will be on an archive page, not long ago, but off the main page) that lets you shot soldiers helmets of.. That's your basic idea
- Ben
-
if you could use this with an action, it would make way for a throwing knife addon. that would be FUN!