Page 1 of 1
Two different colored shields [Solved]
Posted: Wed Jul 05, 2017 9:30 am
by LitFam
Hello modding community,
Does anyone know how to have two different colored shields in a map, the first colored shield I am using the stock one in the PC folder in effects, however, I made and renamed the .fx file. I can not get the second shield working every time I edit the fx, .tga, .msh file relating to the new shield FX, the shield does not appear in the game, but it works.
Re: Two different colored shields
Posted: Wed Jul 05, 2017 9:34 am
by CT108
You have to create another .fx file that uses another .tga (I know that you said that you did it but that's how we do it).
Any errors ? Can you send the code in your .fx file ? Thanks ! (and btw check if your effect is named right in your weapon .odf file)
Re: Two different colored shields
Posted: Wed Jul 05, 2017 9:57 am
by LitFam
CT108 wrote:You have to create another .fx file that uses another .tga (I know that you said that you did it but that's how we do it).
Any errors ? Can you send the code in your .fx file ? Thanks ! (and btw check if your effect is named right in your weapon .odf file)
I did create another .fx file, also I am using you auto turret shield tutorial it is very useful!
Code: Select all
Shield("DroidekaShield")
{
Type("droideka");
Texture("dis_inf_droideka_shield");
Color(96, 160, 192, 255);
SpecularColor(216, 240, 255);
ViewAngleFactor(1.5);
Radius(1.25);
Height(1.25);
TurnOnTime(0.15);
TurnOffTime(0.15);
ScrollRate(1.0);
}
Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:08 am
by CT108
maybe replace "dis_inf_droideka_shield" by "cis_inf_putsomethinghere"
And can you post the odf for the shield (the weapon odf, in sides/cis/odf) please ? Thanks
I am using you auto turret shield tutorial it is very useful!
Thanks man

Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:11 am
by LitFam
Shield ODF
I posted the assets
Link: REMOVED
Code: Select all
[WeaponClass]
ClassLabel = "shield"
[Properties]
Label = "Shield"
RoundsPerClip = "1"
ReloadTime = "0.0"
MaxShield = 8000
AddShield = 0
AddShieldOff = 1250
ShieldOffset = "0.0 1.0 0.125"
ShieldRadius = 1.25
FireSound = "cis_droideka_shield_on"
FireEmptySound = ""
FireLoopSound = ""
ReloadSound = ""
ChargeSound = ""
ChangeModeSound = ""
WeaponChangeSound = ""
//ShieldSound = "cis_droideka_shield"
//ShieldSound = "droid_fx7_hum"
ShieldOffSound = ""
ShieldEffect = "rroidekashield"
I just tried this
maybe replace "dis_inf_droideka_shield" by "cis_inf_putsomethinghere"
it did not work.
Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:17 am
by CT108
well the code of the weapon odf is missing x)
Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:18 am
by LitFam
CT108 wrote:well the code of the weapon odf is missing x)
wait do you want every asset of the auto turret posted

Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:19 am
by CT108
yep if possible

Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:23 am
by LitFam
CT108 wrote:yep if possible

Link: REMOVED
I did not include the auto turret texture file or .msh because it's for my mod (TCW Death Watch Side Mod) and I don't want to public to have my edited textures.
Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:25 am
by CT108
LitFam wrote:
I did not include the auto turret texture file or .msh because it's for my mod (TCW Death Watch Side Mod) and I don't want to public to have my special textures.
Alright don't worry I don't need these files

Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:27 am
by LitFam
CT108 wrote:LitFam wrote:
I did not include the auto turret texture file or .msh because it's for my mod (TCW Death Watch Side Mod) and I don't want to public to have my special textures.
Alright don't worry I don't need these files

If you fix this or anyone else I will credit you for my mod, also please provide a new link of the updated assets when corrected.
Link: REMOVED
(Don't forget since I did not provide the auto turret .msh or .tga file you must use the stock one in order to test the fixes in the game.)
Re: Two different colored shields
Posted: Wed Jul 05, 2017 10:34 am
by CT108
I tried and nothing works... But how is it possible to have the shield working without the effect ??

Re: Two different colored shields
Posted: Wed Jul 05, 2017 12:26 pm
by LitFam
CT108 wrote:I tried and nothing works... But how is it possible to have the shield working without the effect ??

I don't know?
I solved it myself with some poking around.
Re: Two different colored shields
Posted: Thu Jul 27, 2017 7:11 am
by CT108
LitFam wrote:
I solved it myself with some poking around.
How ? =D
Re: Two different colored shields
Posted: Thu Jul 27, 2017 10:19 am
by LitFam
CT108 wrote:LitFam wrote:
I solved it myself with some poking around.
How ? =D
I don't remember mate (this topic is this a week old). The proof that I did it is in my mod.
Re: Two different colored shields
Posted: Fri Jul 28, 2017 3:17 am
by CT108
LitFam wrote:
I don't remember mate (this topic is this a week old). The proof that I did it is in my mod.
Alright, but the problem was weird x)