OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Komuna on 09 Jun 2003, 10:45:23
-
Greetings
I've tried the drop[] command in order to create a shining particle. Unfourtunately, the particle [.p3d] which "lights" the lamppost [koslestvo, or something like that] doesn't shine on the dark... Well, it does a litle, but not as a lamp!
My idea is getting a shining particle, whatever means are necessary for having it. It's for rocket simulation.
Note: I don't accept "flares" as answer; thought they're quite bright, they take a long time before lighting...
What shall I do?
Thanks. ;D
-
Well.. I've been playing around with the drop command quite a bit lately...... and there are three types of particles you can use:
cl_basic.p3d : particles for smoke effects
cl_fire.p3d : particle for fire effects
cl_water.p3d : particle for water effects
the fire one does glow... and I would think it would work sufficiently for your rocket simulation... playing around with the color scheme would add to the brightness factor a bit as well.... as you can sort of do custom blending between white, red, yellows to get a nice fire effect ...
-
Yes Kaliyuga, but don't forget that you can use more than just 3 kinds of particles... As long as the particle is a p3D, you can use it [houses, for example].
I've tried the fire particle, the lamp shine particle, etc, etc, but the shine type I wan't is a 'flare' similar one... You know, a big shine!
Thanks anyway!
And keep answering me... I NEED THAT SOLUTION!!! >:( >:( >:( [ ;D ::) :P]
-
Hi,
what do you mean?
1. Do you want a particle that lits the environment like a lamp or a flare,
or do you want
2. a particle that glows like the cl_fire?
1 is not possible, 2 is (look at BAS Flare script)
-
Well, apart from cl_fire, cl_basic and cl_water, you also have :
cl_fireD
halflight
sun
sunHalo
But none of them creates sufficient light :P
And I keep looking !
-
1 is not possible
What do you mean "is not possible"??! :noo: :'(
Oh! Gosh!!! I'm going to kill myself...!*
Next step: Addons!
For what I can see, drop command won't give me a flare-like light...
Therefore, how shall I proceed to create a flare which lights instantaneously and lasts more than just a few moments? [I'm a newbie to addon creation, so, be nice ;D ::)]
*Note: Suicide is not the solution
#Edit#
[While I was waiting a reply for this, I was getting depressed, having nothing to do, so, I'm going to share my current feelings with you]
wfrquklwgrfdukfgaskjgfsdf FUCK!rfmhgdfjhfjhvImTiredOfThisShit....HAAAAAAAAAAAA!!!!!!!!!!!!! :noo:
-
class Flare : Grenade
{
hit=5;indirectHit=2;indirectHitRange=0.2;
cost=100;
simulation=shotIlluminating;
simulationStep=0.05;
explosive = false;
soundHit[]={,0,1};
lightColor[] = {1, 1, 1, 0};
};
well here's the goods on the flare. as you can see... it is based off of the grenade class... which means it inherits all abilities of a grenade..
(the kind fired from a grenade launcher)
I would imagine... that by simply changing the bit that reads
explosive= false you could have yourself an exploding flare :o
anyways.... the thing is .. being based off of a grenade.. an addon made this way would have the same trajectory and behaviour a grenade.. and not a rocket.. :P as far as i can tell...
now you may be able to add this bit:
simulation=shotIlluminating;
simulationStep=0.05;
lightColor[] = {1, 1, 1, 0};
to a custom rocket and make it lit like a flare.. but this part is all speculation on my part based on reading the commented config.cpp from BIS
have you ever opened up the runway lights.pbo file either? there may be some good stuff in there that might help you ..
-
Only that, for config.cpp? Cuz I don't have a clue of how to make an addon.. But nevermind, I'll check it by myself, besides, I'm the one who should care about solving the prob, right? We don't want lazy guys in this forum... ;D ::) EhEhEh!
About the explosive flare: Indeed, I'd like to have a big, very explosive flare, in order to replace the LGB that i'm currently using as "rocket"...
One more thing: how can I custom my own rocket? How should I proceed to make a certain script to be added to a rocket addon?
Cuz I'm thinking about making a MRLS addon, a good one, which should have a launching system and a target (duh!), of course. [Well, seems time to change the board]
-
how can I custom my own rocket?
http://ofp.gamezone.cz/_hosted/brsseb/
check out the tutes at that link.... there is one on building custom rockets ;)
-
Thanks alot guys!!! Especialy Kaliyuga: you're the man ;)
No Q's for now, therefore:
*provisorily solved*