Two different colored shields [Solved]
Moderator: Moderators
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Two different colored shields [Solved]
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.
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.
Last edited by LitFam on Thu Jul 06, 2017 9:25 am, edited 2 times in total.
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
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)
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)
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
I did create another .fx file, also I am using you auto turret shield tutorial it is very useful!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)
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);
}
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
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
And can you post the odf for the shield (the weapon odf, in sides/cis/odf) please ? Thanks
Thanks manI am using you auto turret shield tutorial it is very useful!
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
Shield ODF
I posted the assets
Link: REMOVED
I just tried this
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"
it did not work.maybe replace "dis_inf_droideka_shield" by "cis_inf_putsomethinghere"
Last edited by LitFam on Thu Jul 06, 2017 9:26 am, edited 2 times in total.
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
well the code of the weapon odf is missing x)
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
wait do you want every asset of the auto turret postedCT108 wrote:well the code of the weapon odf is missing x)
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
yep if possible
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
Link: REMOVEDCT108 wrote:yep if possible
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.
Last edited by LitFam on Thu Jul 06, 2017 9:25 am, edited 1 time in total.
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
Alright don't worry I don't need these filesLitFam 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.
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
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.CT108 wrote:Alright don't worry I don't need these filesLitFam 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.
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.)
Last edited by LitFam on Thu Jul 06, 2017 9:25 am, edited 1 time in total.
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
I tried and nothing works... But how is it possible to have the shield working without the effect ??
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
I don't know?CT108 wrote:I tried and nothing works... But how is it possible to have the shield working without the effect ??
I solved it myself with some poking around.
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
How ? =DLitFam wrote:
I solved it myself with some poking around.
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Two different colored shields
I don't remember mate (this topic is this a week old). The proof that I did it is in my mod.CT108 wrote:How ? =DLitFam wrote:
I solved it myself with some poking around.
- CT108
- Rebel Sergeant
- Posts: 186
- Joined: Mon Aug 22, 2016 6:20 am
- Projects :: None
- xbox live or psn: Captain CT108
- Location: Xanadu
Re: Two different colored shields
Alright, but the problem was weird x)LitFam wrote:
I don't remember mate (this topic is this a week old). The proof that I did it is in my mod.