Laser Rifle Beam Modification

Royalty

The Aussie
Which files need to be changed in order to alter the colour of the beam?
(Both charge and fire colour).

Thanks guys.
 

Defender

Member
Both I would think if you want them matching, or you could have 2 colors, one for the charge beam, one for the damage beam..
You can change them client-side just by editing the beam texture images right?
 

Royalty

The Aussie
Both I would think if you want them matching, or you could have 2 colors, one for the charge beam, one for the damage beam..
You can change them client-side just by editing the beam texture images right?
Yes but which file is which? :p
(Not client side).
 

scoot

Member
I like the idea of a different color "charge" and "ready" beam to better show you when you can fire.
That would be great, especially for people who play in 3rd person or w/o weapon models, since they can't see when it's ready to fire.
 
That would be great, especially for people who play in 3rd person or w/o weapon models, since they can't see when it's ready to fire.


I do that (no weapon models). Does the gun tell you when to fire? Lol, I didn't know. Must be why I sort of have a problem with it. I can kinda tell from the sound/beam, but not all too much.
 

Defender

Member
Yes but which file is which? :p
(Not client side).




Both beams use BeamMaterial1
Only the aim beam uses BeamMaterial0
In tribes2, the laser color can be adjusted a little in the beam data too, but not in legions, it seems.:confused:

Looks like you will need to edit the material files..
Legions Overdrive\live\legions\data\shapes\weapons\sniperrifle\

This file has the material data, if you need to edit that.
Legions Overdrive\live\client\materials\sniperRifle.cs


This looks complicated good luck.;)



Legions Overdrive\live\server\game\dataBlocks\weapons\sniperRifleSpecial.cs
Code:
// Projectile for the rifle.
datablock BeamProjectileData(LaserSpecialProjectile)
{
  passThroughPlayers = true;
 
  // damage
  beamCount = 2;
  beamRadius[0] = 0.7;
  beamMaterial[0] = "BeamMaterial0";
  beamRepeatLength[0] = 5;
  beamStartFadeTime[0] = 0.1;
  beamEndFadeTime[0] = 1.0;
  beamEndFadeFactor[0] = 0.0;
 
  beamRadius[1] = 0.5;
  beamMaterial[1] = "BeamMaterial1";
  beamRepeatLength[1] = 12;
  beamStartFadeTime[1] = 0.1;
  beamEndFadeTime[1] = 1.0;
  beamEndFadeFactor[1] = 0.0;
 
  initialFadeDistance = 15.0;
 
  initialDamage = 0;
  directDamage = 0;
  radiusDamage = 0;
  damageRadius = 0;
  areaImpulse = 0;
  damageType = $DamageType::SniperBeam;
  explosionDamageType = $DamageType::SniperExplosion;
 
  lifetime = 1300;
  isBallistic = false;
  gravityMod = 0.0;
 
  deleteOnExplode = false;
  isAttached = false;
};
 
datablock BeamProjectileData(LaserSpecialDamageProjectile)
{
  passThroughPlayers = true;
 
  // damage
  beamCount = 1;
  beamRadius[0] = 0.0;
  beamMaterial[0] = "BeamMaterial0";
  beamRepeatLength[0] = 16;
  beamStartFadeTime[0] = 0.0;
  beamEndFadeTime[0] = 1.0;
  beamEndFadeFactor[0] = 0.0;
 
  explosionMidair = "SniperBeamExplosion";
 
  minDamage = 15;
  maxDamage = 45;
  directDamage = 0;
  radiusDamage = 0;
  damageRadius = 0;
  areaImpulse = 0;
  damageType = $DamageType::SniperBeam;
  explosionDamageType = $DamageType::SniperExplosion;
 
  lifetime = 15;
 
  deleteOnExplode = false;
  isAttached = false;
};
 

Royalty

The Aussie
Ok, found the files.
They are both .jng files.
I've tried looking around to see what programs can open these, but with no luck.
Already tried Photoshop CS6 and Blender.

Anyone else know what is needed?

And Fire, if I do manage to get this to work, I'll be happy to give your idea a go.
 

Gheist

King of all Goblins
The only free software I could find when I toyed around with .jng files: www.irfanview.com

Sadly it seems like there's still no .jng GIMP plugin. And there's no plugin available for PS CS6, which you apparently own?
 

Royalty

The Aussie
I don't know if this works, but it's a plugin for Photoshop
http://www.libpng.org/pub/mng/bin/JNG_Plugin-0.8-photoshop7-win32.zip
I think this works for Windows, but I only have CS6 on my Mac (school licensed).

The only free software I could find when I toyed around with .jng files: www.irfanview.com

Sadly it seems like there's still no .jng GIMP plugin. And there's no plugin available for PS CS6, which you apparently own?
I'll try this when I get home later today, on mobile atm...
 

Fixious

Test Lead
I have CS5.5 and the plugin works for me. I can edit them if you want, just tell me what color you want.
 

Royalty

The Aussie
I have CS5.5 and the plugin works for me. I can edit them if you want, just tell me what color you want.
I'd like them in red if possible, but don't feel obliged to go out of your way :)
I can dig up a version of Photoshop Elements on my older (Windows) comp later today ;)
 
The only free software I could find when I toyed around with .jng files: www.irfanview.com

Sadly it seems like there's still no .jng GIMP plugin. And there's no plugin available for PS CS6, which you apparently own?


This is what I had to use for some of my skyboxes. It was a pain in the ass. I don't think the plugins work for newer versions of PS.
 

Royalty

The Aussie
This is what I had to use for some of my skyboxes. It was a pain in the ass. I don't think the plugins work for newer versions of PS.
Fire, if I can get it to work with Elements (will try in about 4 hours), I'll pm you - happy to make two different coloured beams.
 

scoot

Member

Nice! looks pretty good

I can kinda tell from the sound/beam, but not all too much.

I have this problem too in 3rd person, but you gave me an idea... since I have the velocity warning beep disabled anyway, I went and replaced Laser_FinishedCharge.mp2 with Overdrive_Warning.mp2 in the sounds folder. If you have the velocity warning beep enabled, some other more distinguishable sound could work also.

*EDIT: Crap, turns out boost core uses the laser sound too... :/
 
Top