questions about shields
Posted: 19 Sep 2010, 13:17
I'm having problems trying to get shields to work
what i want is a simple startcraft-like shield: with radius just slighly bigger than the unit, starts fully charged, and stops 100% of all enemy weapons' dmg until depleted.
i read the wikis
http://springrts.com/wiki/Shield_Interception_Tag_Use
http://springrts.com/wiki/All_Weapons_v ... lt%2C_type
http://springrts.com/wiki/Weapon_Variables
(first and second are inconsistant..)
gave the golem the shield, and wanted it to stop all weapons by default. According to the first wiki...it should at least stop the peewee's emg....but it doesn't. And it's radius is twice as big as the unit's collision box.
So, what do i need to do to make it work like i want, preferably without needing to add "InterceptedByShieldType" to every weapon.
Is there any way to make the shield "flash" when hit?
what i want is a simple startcraft-like shield: with radius just slighly bigger than the unit, starts fully charged, and stops 100% of all enemy weapons' dmg until depleted.
i read the wikis
http://springrts.com/wiki/Shield_Interception_Tag_Use
http://springrts.com/wiki/All_Weapons_v ... lt%2C_type
http://springrts.com/wiki/Weapon_Variables
(first and second are inconsistant..)
Code: Select all
[PEEWEE_EMG]
{
ID=16;
name=E.M.G.;
explosiongenerator=custom:EMGFLASH;
rendertype=4; //0 for laser//
// using texture now color=2;//
cegTag=PEEWEESHINE;
Texture1=emg;
Texture2=null;
Texture3=null;
Texture4=null;
stages=8;
separation=0.5;
alphadecay=0.0;
sizedecay=-0.01;
nogap=1;
rgbcolor=1 0.9 0.3;
size=2.0;
intensity=0.5;
lineofsight=1;
turret=1;
range=195;
reloadtime=0.1;
weapontimer=1;
weaponvelocity=600;
//sprayangle=924;
sprayangle=1448;//1848
areaofeffect=8;
burst=1;
burstrate=0.1;
soundstart=armsml2;
soundhit=lasrhit1;
soundtrigger=1;
tolerance=3000;
startsmoke=0;
endsmoke=0;
explosiongaf=fx;
waterexplosiongaf=fx;
waterexplosionart=h2oboom1;
lavaexplosiongaf=fx;
lavaexplosionart=lavasplashsm;
InterceptedByShieldType=1;
[DAMAGE]
{
default=6;//dps most be 60 50 now
group_invincible=1;
}
}
[sphere_golem_shield]
{
name=Energy shield;
IsShield=1;
ShieldRepulsor=0;
SmartShield=1;
ExteriorShield=0;
VisibleShield=1;
VisibleShieldRepulse=0;
ShieldEnergyUse=100;
ShieldForce=3000;
ShieldRadius=68;
ShieldMaxSpeed=500;
ShieldPower=3000;
ShieldStartingPower=3000;
ShieldPowerRegen=30;
ShieldPowerRegenEnergy=100;
ShieldInterceptType=1;
ShieldGoodColor=1.0 0.3 0.3;
ShieldBadColor=0.5 0.5 0.5;
ShieldAlpha=0.5;
visibleShieldHitFrames=5;
[DAMAGE]
{
default=10;
}
}
So, what do i need to do to make it work like i want, preferably without needing to add "InterceptedByShieldType" to every weapon.
Is there any way to make the shield "flash" when hit?