Light Grenade
Moderator: Moderators
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Light Grenade
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.
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.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Light Grenade
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:
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:
Here are the properties of explosions from which I was citing:
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 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 - rgbaCode: 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-
Syth
- General

- Posts: 784
- Joined: Thu Apr 13, 2006 8:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: happy fun island
Re: Light Grenade
what?...i know these lines added to a bolt type will flash light on objects
LightColor = "253 18 22 225"
LightRadius = "7.0"
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Light Grenade
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.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"
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Light Grenade
Illusion, it is all about illusionMaveritchell wrote: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.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 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.


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.

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.
- TheDarkMask
- Captain

- Posts: 499
- Joined: Sat Apr 07, 2007 4:26 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany-Bremen
- Contact:
Re: Light Grenade
Holy! Awesome..FragMe! wrote:http://files.filefront.com/Flashlightwm ... einfo.html
-
The Duke
- Private
- Posts: 43
- Joined: Thu Sep 20, 2007 1:03 pm
Re: Light Grenade
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.
- Fluffy_the_ic
- Hoth Battle Chief

- Posts: 3223
- Joined: Thu Jan 24, 2008 7:03 pm
- xbox live or psn: fluffytherc
- Location: she/her
- Contact:
Re: Light Grenade
why not tak dann's Da Mine Chucka and edit it to light mines that don't explode (if possible)? But Fragme,
nice job
- SBF_Dann_Boeing
- Groove Walrus

- Posts: 1529
- Joined: Wed Aug 31, 2005 11:33 pm
- xbox live or psn: No gamertag set
- Location: An Igloo High Upon a Mountain Top
Re: Light Grenade
how many modders does it take to screw in a light bulb....
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
-
EGG_GUTS
- Master Bounty Hunter

- Posts: 1626
- Joined: Thu Dec 07, 2006 7:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: CANADA!
Re: Light Grenade
FragMe! you always to amaze me.
