OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MuSe on 14 Jul 2004, 10:22:29
-
Does anyone know if its possible to put a time delay on hand grenades and smoke shells?
-
Yes, its incorporated into ECP and I suspect other mods as well.
-
Where can i get ECP?
-
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
-
ECP - Enhanced Configuration Project - from the Editors Depot
-
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 :
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