Page 2 of 2

Re: Light Grenade

Posted: Fri Mar 21, 2008 1:19 am
by trainmaster611
I know bolts make light (real light, not just glow). What about having an extremely short ordnance lifetime and with a large light radius with an extremely high firing rate. So you have bolts that come out of the rifle and terminate almost right at the originating point. And the constant flow of bolts keeps lights in the room.

I see several problems with this. First of all, the light is in a radius, so you can't focus the light in any direction. It acts as more of a lantern than a flashlight. Second, you would have to hold the trigger down as long as you want the light to run.

Re: Light Grenade

Posted: Fri Mar 21, 2008 1:48 am
by Maveritchell
Bolt-type ordnances don't really create light, though. Again, they have a glow that's sort've like light - this is why I asked my original question. There are a lot of ways you could fake the appearance of a light, but if you want actual light you have to have some kind of setup in the .odf for emitting light.

Bullet-type ordnances, on the other hand, do support light and in fact can even have a light .odf attached to them.

All of this is in the .odf parameters guide, it's a good read and helps prevent confusion about what can and can't be done, and it definitely makes creating unique things a little easier.

For reference:

Code: Select all

    Ordnance Beam
                                        BeamWidth
                                        BeamTexture
                                        BeamColor rgba
                                        BeamGlowWidth
                                        BeamGlowTexture
                                        BeamGlowColor rgba
                                        PassThrough
                                        OrdnanceEffect
                                            red_blaster_bolt
                                            red_blaster_bolt_small
                                            green_blaster_bolt
                                            green_blaster_bolt_small
                                            blue_blaster_bolt
                                            blue_blaster_bolt_small
                                        ImpactEffect
    Ordnance Bullet
                                        GeometryName
                                        Velocity
                                        OrdnanceEffect
                                        ImpactEffectSoft
                                        ImpactEffectRigid
                                        ImpactEffectStatic
                                        ImpactEffectTerrain
                                        ImpactEffectWater
                                        ImpactEffectShieldSmall
                                        ImpactEffectShieldLarge
                                        ImpactDecalTerrain
                                        ImpactDecalStatic
                                        LightOdf
                                        LightColor rgba
                                        LightRadius
                                        EndLightColor rgba
                                        FadeLightColor
        Ordnance Laser
                                        LaserLength
                                        GlowLength
                                        BlurLength
                                        LaserWidth
                                        FadeOutTime
                                        LaserTexture
                                        LaserGlowColor
                                        EndLaserGlowColor rgba
                                        OrdnanceEffect
                                            red_blaster_bolt
                                            red_blaster_bolt_small
                                            green_blaster_bolt
                                            green_blaster_bolt_small
                                            blue_blaster_bolt
                                            blue_blaster_bolt_small                                        
Note that ordnance laser == ordnance bolt. And you will note that the following properties (common properties to all ordnance classes) don't have any specific light references:

Code: Select all

NextCharge
LifeSpan
DamageTransitionDelay
DamageTransitionPeriod
DamageFinalDamage
Explosion
ExplosionImpact
ExplosionName
ExplosionExpire
Damage
MaxDamage
HealthScale
ArmorScale
PersonScale
AnimalScale
DroidScale
VehicleScale
BuildingScale
ShieldScale
TrailEffect
ExplosionEffect
OrdnanceSound
CollisionSound
CollisionWaterSound
CollisionShieldSound
BonusAmplification
BonusColor - rgba
Here are the properties of explosions from which I was citing:

Code: Select all

    Explosion Properties
Damage
MaxDamage
HealthScale
ArmorScale
PersonScale
AnimalScale
DroidScale
VehicleScale
BuildingScale
ShieldScale
DamageRadiusInner
DamageRadiusOuter
DamageRadius
Shake
ShakeRadiusInner
ShakeRadiusOuter
ShakeRadius
ShakeLength
Push
PushRadiusInner
PushRadiusOuter
PushRadius
PushDeadOnly
HurtOwner
Effect
WaterEffect
ShieldEffect
Decal
SoundProperty
ChunkGeometryName
ChunkTerrainCollisions
ChunkTerrainEffect
ChunkTrailEffect
ChunkSmokeEffect
ChunkPhysics
    FULL
    LEAF
    STATIC
    SIMPLE
ChunkOmega float xyz
ChunkSpeed
ChunkGravity float xyz
NumChunks
ChunkStartDistance
ChunkInitialCollisionSound
ChunkScrapeCollisionSound
VisibleRadius
LightColor
LightRadius
LightDuration

Re: Light Grenade

Posted: Fri Mar 21, 2008 2:20 am
by Syth
what?...i know these lines added to a bolt type will flash light on objects
LightColor = "253 18 22 225"
LightRadius = "7.0"

Re: Light Grenade

Posted: Fri Mar 21, 2008 2:49 am
by Maveritchell
Syth wrote:what?...i know these lines added to a bolt type will flash light on objects
LightColor = "253 18 22 225"
LightRadius = "7.0"
The proof is in the pudding, I suppose. I guess there's a bit left out of the odf parameters doc regarding that. I still feel like creating an explosion is a more elegant solution, but that's just personal preference and of course it depends on exactly what's trying to be created.

Re: Light Grenade

Posted: Fri Mar 21, 2008 12:09 pm
by FragMe!
Maveritchell wrote:
Syth wrote:what?...i know these lines added to a bolt type will flash light on objects
LightColor = "253 18 22 225"
LightRadius = "7.0"
The proof is in the pudding, I suppose. I guess there's a bit left out of the odf parameters doc regarding that. I still feel like creating an explosion is a more elegant solution, but that's just personal preference and of course it depends on exactly what's trying to be created.
Illusion, it is all about illusion :D I was actually using a bolt as the ord first but the beam seemed to fit the illusion better.
The light grenade still does a better job of lighting an area. Here are a couple of pics from free cam to support the illusion.
The light cone (model bit) is only on the hires first person view it is not there for the 3rd.

Image
Image

And before you say "Hey the light is coming out of his head" mosts weapons do it is only the weapon flash that comes from the fire point. It's all an illusion because the eye can be fooled real easy. Case in point, unmodifed shotgun.

Image
You can see it is coming from the camera view point of the soldier mesh. But i happens so fast it looks like it comes from the end of the weapon.
That is one reason to redo the model and reposition it, or attach it to another bone.

Oh and the odf guide is my friend, the one from BF1 is better it has a lot more parameters listed, also just looking through all the odfs you can find things that are not listed in the odf guide like from the com_weap_award_shotgun

PitchSpread = "3.0"
YawSpread = "4.0"

SpreadPerShot = "1.1"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "6.0"

But I digress, just really doing this for fun and that's what it's all about and if I can come up with something cool and functional then that is great.

Re: Light Grenade

Posted: Fri Mar 21, 2008 12:13 pm
by TheDarkMask

Re: Light Grenade

Posted: Fri Mar 21, 2008 2:20 pm
by The Duke
Can't u do the same with an auto turret? Like make it float so it looks like a ceiling lamp, and take the shooting of it out and than it would be a normal ceiling light. Idk if it would work but that would be cool.

Re: Light Grenade

Posted: Fri Mar 21, 2008 2:48 pm
by Fluffy_the_ic
why not tak dann's Da Mine Chucka and edit it to light mines that don't explode (if possible)? But Fragme, :D nice job

Re: Light Grenade

Posted: Fri Mar 21, 2008 2:50 pm
by SBF_Dann_Boeing
how many modders does it take to screw in a light bulb....

Re: Light Grenade

Posted: Fri Mar 21, 2008 3:31 pm
by FragMe!
lol

Re: Light Grenade

Posted: Sat Mar 22, 2008 12:34 pm
by EGG_GUTS
FragMe! you always to amaze me.