Home   Help Search Login Register  

Author Topic: time delay grenades  (Read 675 times)

0 Members and 2 Guests are viewing this topic.

MuSe

  • Guest
time delay grenades
« on: 14 Jul 2004, 10:22:29 »
Does anyone know if its possible to put a time delay on hand grenades and smoke shells?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:time delay grenades
« Reply #1 on: 14 Jul 2004, 10:40:32 »
Yes, its incorporated into ECP and I suspect other mods as well.
Plenty of reviewed ArmA missions for you to play

MuSe

  • Guest
Re:time delay grenades
« Reply #2 on: 14 Jul 2004, 10:49:27 »
Where can i get ECP?

DBR_ONIX

  • Guest
Re:time delay grenades
« Reply #3 on: 14 Jul 2004, 10:50:40 »
The smoke grenades already have a delay, I'm sure
And yeah, theres scripts and stuff to do exactly that (Look at the War Gammer Mod, search the news on www.ofp.info - About 120MB, but worth it :)), it has that implimented, as well as a script to make the casing ejected from most weapons (Apart from pistols and, I think, mounted weapons)

- Ben

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:time delay grenades
« Reply #4 on: 14 Jul 2004, 11:56:18 »
ECP - Enhanced Configuration Project - from the Editors Depot
Plenty of reviewed ArmA missions for you to play

DBR_ONIX

  • Guest
Re:time delay grenades
« Reply #5 on: 15 Jul 2004, 13:10:02 »
But if the person playing the mission doesn't have the ECP, they won't see the grenades

Hmm, theres an idea for the ECP, say a gamelogic, included in one of the addons, That if you place it in a mission, and some one goes to play without the ECP, they get a mission addon error..? Like make the ECP a required addon.. But you don't have to put the gamelogic in, only if your mission needs the ECP

Hmm, for the seperate code, something like this :
Code: [Select]
Add an eventhandler (Fired) to the player
Is it a grenade fired?
Yeah :
Delete grenade, make fake grenade, setvelocity/setpos it the same as the grenade
Wait 4 seconds
Camcreate a handgreande explosion
Delete fake grenade

Not grenade :
Quit the script
And before anyone says "That code doesn't work"... :P
It's not the proper code, it's what the script has to do..
I'll try and convert it into script tonight :)
- Ben