Home   Help Search Login Register  

Author Topic: Gun smoke?  (Read 466 times)

0 Members and 1 Guest are viewing this topic.

hawkins308

  • Guest
Gun smoke?
« on: 01 Jul 2004, 07:37:20 »
Hi guys, I feel somewhat guilty posting a question here. Since really, I have no idea how to do anything with scripts. However at any rate, If anyone is willing to come up with a way to do this I would be thrilled:)

I would like for all weapons to creat a puff of smoke, that lingers for a few seconds. Longer then what all weapons do now. Id like to capture the feeling of when you go full auto or fire rapid fire with a gun, you get that haze of smoke in front of you.

Ive seen this done on vehicles before, with mounted guns. The BAS BRDM with DsHK does it, and it is fantastic!
 

ponq

  • Guest
Re:Gun smoke?
« Reply #1 on: 01 Jul 2004, 11:50:30 »
you gonna have to dig into scripting anyway if you want this.

I'm just suggesting, cos I've never done this myself but...I think you could:
-check if the player/soldier has fired (eventhandler "fired" orso)
-if fired, run a short script.
-check if a gun was fired (and not a grenade etc)
-that script checks which way  the player/sold is facing
-check the position (lying prone standing)
-creates a smokepuff (drop command), taking in consideration the direction of the player and from the position of the player the most likely height of the gun.
-maybe add a delay, so smoke come out only after the round of bullets, and not after each bullet

*but....if you just want this on the player, than it's ok I think (and possible). If you want it on all units, you will have a huge amount of script running and checking very often (you odn't want to smoke come out 1 second after you fired...it has to be there right after your shot)

I think you can look these commands up at the Editors Depot (check the online references eg) and also read some basic tute's on scripting. Hope this helps.
(once again, just my theory...no experience)
« Last Edit: 01 Jul 2004, 11:50:50 by ponq »

Offline Blanco

  • Former Staff
  • ****
Re:Gun smoke?
« Reply #2 on: 01 Jul 2004, 15:48:05 »
Quote

-check the position (lying prone standing)

I wonder how... we don't have a Getunitpos command

« Last Edit: 01 Jul 2004, 15:49:18 by Blanco »
Search or search or search before you ask.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Gun smoke?
« Reply #3 on: 01 Jul 2004, 19:10:07 »
I think the unit's stance can sort of be checked when firing with the fired EH by checking the height of the bullet fired...

How else the USMC TACTEvents riflesmoke would work... ;)

That TACTEvents.pbo would of course be the place to look for the smoke script btw...

(Permissions to use would still be needed to be asked from the authors...)
« Last Edit: 01 Jul 2004, 19:12:52 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

hawkins308

  • Guest
Re:Gun smoke?
« Reply #4 on: 01 Jul 2004, 23:08:18 »
Ahh, fantastic! Yeah the Marine assault pack using tactevents.pbo is exactcly what I was looking for. Thanks very much guys.

Im gonna have to dig around and see if I can figure out what makes it do that, but I must say they did a great job. It really captures the feel of firing a weapon you can almost smell the cordite:)