Light Grenade

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Light Grenade

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Light Grenade

Post 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
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Re: Light Grenade

Post 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"
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Light Grenade

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Light Grenade

Post 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.
User avatar
TheDarkMask
Captain
Captain
Posts: 499
Joined: Sat Apr 07, 2007 4:26 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany-Bremen
Contact:

Re: Light Grenade

Post by TheDarkMask »

The Duke
Private
Posts: 43
Joined: Thu Sep 20, 2007 1:03 pm

Re: Light Grenade

Post 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.
User avatar
Fluffy_the_ic
Hoth Battle Chief
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

Post 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
User avatar
SBF_Dann_Boeing
Groove Walrus
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

Post by SBF_Dann_Boeing »

how many modders does it take to screw in a light bulb....
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Light Grenade

Post by FragMe! »

lol
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Re: Light Grenade

Post by EGG_GUTS »

FragMe! you always to amaze me.
Post Reply