mirror of
https://github.com/PhantomGamesDevelopment/TWM2.git
synced 2026-07-11 22:44:36 +00:00
Initial Commit
This commit is contained in:
commit
bd51490b14
316 changed files with 150033 additions and 0 deletions
138
scripts/turrets/ELFBarrelLarge.cs
Normal file
138
scripts/turrets/ELFBarrelLarge.cs
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
//--------------------------------------------------------------------------
|
||||
// ELF Turret barrel
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
datablock AudioProfile(EBLSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_light_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(EBLFireSound)
|
||||
{
|
||||
filename = "fx/weapons/ELF_fire.wav";
|
||||
description = AudioDefaultLooping3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Projectile
|
||||
//--------------------------------------
|
||||
|
||||
datablock ELFProjectileData(ELFTurretBolt)
|
||||
{
|
||||
beamRange = 75;
|
||||
numControlPoints = 8;
|
||||
restorativeFactor = 3.75;
|
||||
dragFactor = 4.5;
|
||||
endFactor = 2.25;
|
||||
randForceFactor = 2;
|
||||
randForceTime = 0.125;
|
||||
drainEnergy = 1.0;
|
||||
drainHealth = 0.0015;
|
||||
directDamageType = $DamageType::ELFTurret;
|
||||
|
||||
mainBeamWidth = 0.1; // width of blue wave beam
|
||||
mainBeamSpeed = 9.0; // speed that the beam travels forward
|
||||
mainBeamRepeat = 0.25; // number of times the texture repeats
|
||||
lightningWidth = 0.1;
|
||||
lightningDist = 0.15; // distance of lightning from main beam
|
||||
|
||||
fireSound = EBLFireSound;
|
||||
|
||||
textures[0] = "special/ELFBeam";
|
||||
textures[1] = "special/ELFLightning";
|
||||
textures[2] = "special/BlueImpact";
|
||||
// --------------------------------------------------------------------
|
||||
// z0dd - ZOD, 5/27/02. Was missing this parameter, (console spam fix).
|
||||
emitter = ELFSparksEmitter;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// ELF Turret Image
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
datablock TurretImageData(ELFBarrelLarge)
|
||||
{
|
||||
shapeFile = "turret_elf_large.dts";
|
||||
// ---------------------------------------------
|
||||
// z0dd - ZOD, 5/8/02. Incorrect parameter value
|
||||
//item = ELFBarrelLargePack;
|
||||
item = ELFBarrelPack;
|
||||
|
||||
projectile = ELFTurretBolt;
|
||||
projectileType = ELFProjectile;
|
||||
deleteLastProjectile = true;
|
||||
usesEnergy = true;
|
||||
fireEnergy = 0.0;
|
||||
minEnergy = 0.0;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 500;
|
||||
deactivateDelayMS = 100;
|
||||
thinkTimeMS = 100;
|
||||
degPerSecTheta = 580;
|
||||
degPerSecPhi = 960;
|
||||
attackRadius = 75;
|
||||
|
||||
yawVariance = 30.0; // these will smooth out the elf tracking code.
|
||||
pitchVariance = 30.0; // more or less just tolerances
|
||||
|
||||
// State transiltions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
stateSound[1] = EBLSwitchSound;
|
||||
stateTimeoutValue[1] = 1;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
|
||||
stateName[3] = "Fire";
|
||||
stateFire[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire";
|
||||
stateSound[3] = EBLFireSound;
|
||||
stateScript[3] = "onFire";
|
||||
stateTransitionOnTriggerUp[3] = "Deconstruction";
|
||||
stateTransitionOnNoAmmo[3] = "Deconstruction";
|
||||
|
||||
stateName[4] = "Reload";
|
||||
stateTimeoutValue[4] = 0.01;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Ready";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Deactivate";
|
||||
stateSequence[5] = "Activate";
|
||||
stateDirection[5] = false;
|
||||
stateTimeoutValue[5] = 1;
|
||||
stateTransitionOnLoaded[5] = "ActivateReady";
|
||||
stateTransitionOnTimeout[5] = "Dead";
|
||||
|
||||
stateName[6] = "Dead";
|
||||
stateTransitionOnLoaded[6] = "ActivateReady";
|
||||
|
||||
stateName[7] = "NoAmmo";
|
||||
stateTransitionOnAmmo[7] = "Reload";
|
||||
stateSequence[7] = "NoAmmo";
|
||||
|
||||
stateName[8] = "Deconstruction";
|
||||
stateScript[8] = "deconstruct";
|
||||
stateTransitionOnNoAmmo[8] = "NoAmmo";
|
||||
stateTransitionOnTimeout[8] = "Reload";
|
||||
stateTimeoutValue[8] = 0.1;
|
||||
};
|
||||
|
||||
265
scripts/turrets/aaBarrelLarge.cs
Normal file
265
scripts/turrets/aaBarrelLarge.cs
Normal file
|
|
@ -0,0 +1,265 @@
|
|||
//--------------------------------------
|
||||
// Default blaster
|
||||
//--------------------------------------
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Sounds and feedback effects
|
||||
//--------------------------------------
|
||||
datablock AudioProfile(AASwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_aa_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(AAFireSound)
|
||||
{
|
||||
filename = "fx/vehicles/tank_chaingun.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Particle effects
|
||||
//--------------------------------------
|
||||
//--------------------------------------------------------------------------
|
||||
// Explosion
|
||||
//--------------------------------------
|
||||
datablock ParticleData(AABulletExplosionParticle1)
|
||||
{
|
||||
dragCoefficient = 2;
|
||||
gravityCoefficient = 0.0;
|
||||
inheritedVelFactor = 0.2;
|
||||
constantAcceleration = -0.0;
|
||||
lifetimeMS = 600;
|
||||
lifetimeVarianceMS = 000;
|
||||
textureName = "special/crescent4";
|
||||
colors[0] = "0.57 0.41 1.0 1.0";
|
||||
colors[1] = "0.57 0.41 1.0 1.0";
|
||||
colors[2] = "0.57 0.41 0.0 0.0";
|
||||
sizes[0] = 0.25;
|
||||
sizes[1] = 0.5;
|
||||
sizes[2] = 1.0;
|
||||
times[0] = 0.0;
|
||||
times[1] = 0.5;
|
||||
times[2] = 1.0;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData(AABulletExplosionEmitter)
|
||||
{
|
||||
ejectionPeriodMS = 7;
|
||||
periodVarianceMS = 0;
|
||||
ejectionVelocity = 2;
|
||||
velocityVariance = 1.5;
|
||||
ejectionOffset = 0.0;
|
||||
thetaMin = 70;
|
||||
thetaMax = 80;
|
||||
phiReferenceVel = 0;
|
||||
phiVariance = 360;
|
||||
overrideAdvances = false;
|
||||
orientParticles = true;
|
||||
lifetimeMS = 200;
|
||||
particles = "AABulletExplosionParticle1";
|
||||
};
|
||||
|
||||
datablock ParticleData(AABulletExplosionParticle2)
|
||||
{
|
||||
dragCoefficient = 2;
|
||||
gravityCoefficient = 0.0;
|
||||
inheritedVelFactor = 0.2;
|
||||
constantAcceleration = -0.0;
|
||||
lifetimeMS = 600;
|
||||
lifetimeVarianceMS = 000;
|
||||
textureName = "special/blasterHit";
|
||||
colors[0] = "0.57 0.41 1.0 0.6";
|
||||
colors[1] = "0.57 0.41 1.0 0.6";
|
||||
colors[2] = "0.57 0.41 0.0 0.0";
|
||||
sizes[0] = 0.3;
|
||||
sizes[1] = 0.90;
|
||||
sizes[2] = 1.50;
|
||||
times[0] = 0.0;
|
||||
times[1] = 0.5;
|
||||
times[2] = 1.0;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData(AABulletExplosionEmitter2)
|
||||
{
|
||||
ejectionPeriodMS = 30;
|
||||
periodVarianceMS = 0;
|
||||
ejectionVelocity = 1;
|
||||
velocityVariance = 0.0;
|
||||
ejectionOffset = 0.0;
|
||||
thetaMin = 0;
|
||||
thetaMax = 80;
|
||||
phiReferenceVel = 0;
|
||||
phiVariance = 360;
|
||||
overrideAdvances = false;
|
||||
orientParticles = false;
|
||||
lifetimeMS = 200;
|
||||
particles = "AABulletExplosionParticle2";
|
||||
};
|
||||
|
||||
datablock ExplosionData(AABulletExplosion)
|
||||
{
|
||||
soundProfile = blasterExpSound;
|
||||
emitter[0] = AABulletExplosionEmitter;
|
||||
emitter[1] = AABulletExplosionEmitter2;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Projectile
|
||||
//--------------------------------------
|
||||
|
||||
datablock TracerProjectileData(Flak_Bullet)
|
||||
{
|
||||
doDynamicClientHits = true;
|
||||
|
||||
directDamage =0.2;
|
||||
directDamageType = $DamageType::bullet;
|
||||
explosion = GrenadeExplosion;
|
||||
splash = ChaingunSplash;
|
||||
|
||||
hasDamageRadius = true;
|
||||
indirectDamage = 0.6;
|
||||
damageRadius = 20.0;
|
||||
radiusDamageType = $DamageType::Flak;
|
||||
|
||||
kickBackStrength = 100;
|
||||
sound = ChaingunProjectile;
|
||||
|
||||
dryVelocity = 425.0;
|
||||
wetVelocity = 200.0;
|
||||
velInheritFactor = 1.0;
|
||||
fizzleTimeMS = 3000;
|
||||
lifetimeMS = 500;
|
||||
lifetimeVarianceMS = 150;
|
||||
explodeOnDeath = true;
|
||||
reflectOnWaterImpactAngle = 0.0;
|
||||
explodeOnWaterImpact = false;
|
||||
deflectionOnWaterImpact = 0.0;
|
||||
fizzleUnderwaterMS = 3000;
|
||||
|
||||
tracerLength = 15.0;
|
||||
tracerAlpha = false;
|
||||
tracerMinPixels = 6;
|
||||
tracerColor = 211.0/255.0 @ " " @ 215.0/255.0 @ " " @ 120.0/255.0 @ " 0.75";
|
||||
tracerTex[0] = "special/tracer00";
|
||||
tracerTex[1] = "special/tracercross";
|
||||
tracerWidth = 0.40;
|
||||
crossSize = 0.20;
|
||||
crossViewAng = 0.990;
|
||||
renderCross = true;
|
||||
|
||||
decalData[0] = ChaingunDecal1;
|
||||
decalData[1] = ChaingunDecal2;
|
||||
decalData[2] = ChaingunDecal3;
|
||||
decalData[3] = ChaingunDecal4;
|
||||
decalData[4] = ChaingunDecal5;
|
||||
decalData[5] = ChaingunDecal6;
|
||||
|
||||
hasLight = true;
|
||||
lightRadius = 5.0;
|
||||
lightColor = "0.5 0.5 0.175";
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Weapon
|
||||
//--------------------------------------
|
||||
datablock TurretImageData(AABarrelLarge)
|
||||
{
|
||||
shapeFile = "turret_aa_large.dts";
|
||||
item = AABarrelPack; // z0dd - ZOD, 4/25/02. Was wrong: AABarrelLargePack
|
||||
|
||||
projectileType = TracerProjectile;
|
||||
projectile = Flak_Bullet;
|
||||
projectileSpread = 30.0 / 1000.0;
|
||||
usesEnergy = true;
|
||||
fireEnergy = 4.0;
|
||||
minEnergy = 4.0;
|
||||
emap = true;
|
||||
isSeeker = true;
|
||||
seekRadius = 300;
|
||||
maxSeekAngle = 6;
|
||||
seekTime = 1.0;
|
||||
minSeekHeat = 0.6;
|
||||
useTargetAudio = false;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 175; // z0dd - ZOD, 3/27/02. Was 250. Amount of time it takes turret to unfold
|
||||
deactivateDelayMS = 500;
|
||||
thinkTimeMS = 140; // z0dd - ZOD, 3/27/02. Was 200. Amount of time before turret starts to unfold (activate)
|
||||
degPerSecTheta = 600;
|
||||
degPerSecPhi = 1080;
|
||||
attackRadius = 550;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
stateSound[1] = AASwitchSound;
|
||||
stateTimeoutValue[1] = 1.0;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
stateScript[1] = "AAActivateReady";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire1";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
stateScript[2] = "AAReady";
|
||||
|
||||
stateName[3] = "Fire1";
|
||||
stateTransitionOnTimeout[3] = "Reload1";
|
||||
stateTimeoutValue[3] = 0.25;
|
||||
stateFire[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire1";
|
||||
stateSound[3] = AAFireSound;
|
||||
stateScript[3] = "onFire";
|
||||
|
||||
stateName[4] = "Reload1";
|
||||
stateTimeoutValue[4] = 0.25;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Fire2";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Fire2";
|
||||
stateTransitionOnTimeout[5] = "Reload2";
|
||||
stateTimeoutValue[5] = 0.25;
|
||||
stateFire[5] = true;
|
||||
stateRecoil[5] = LightRecoil;
|
||||
stateAllowImageChange[5] = false;
|
||||
stateSequence[5] = "Fire2";
|
||||
stateSound[5] = AAFireSound;
|
||||
stateScript[5] = "onFire";
|
||||
|
||||
stateName[6] = "Reload2";
|
||||
stateTimeoutValue[6] = 0.25;
|
||||
stateAllowImageChange[6] = false;
|
||||
stateSequence[6] = "Reload";
|
||||
stateTransitionOnTimeout[6] = "Ready";
|
||||
stateTransitionOnNotLoaded[6] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[6] = "NoAmmo";
|
||||
|
||||
stateName[7] = "Deactivate";
|
||||
stateSequence[7] = "Activate";
|
||||
stateDirection[7] = false;
|
||||
stateTimeoutValue[7] = 1.0;
|
||||
stateTransitionOnLoaded[7] = "ActivateReady";
|
||||
stateTransitionOnTimeout[7] = "Dead";
|
||||
|
||||
stateName[8] = "Dead";
|
||||
stateTransitionOnLoaded[8] = "ActivateReady";
|
||||
|
||||
stateName[9] = "NoAmmo";
|
||||
stateTransitionOnAmmo[9] = "Reload2";
|
||||
stateSequence[9] = "NoAmmo";
|
||||
};
|
||||
|
||||
312
scripts/turrets/indoorDeployableBarrel.cs
Normal file
312
scripts/turrets/indoorDeployableBarrel.cs
Normal file
|
|
@ -0,0 +1,312 @@
|
|||
datablock AudioProfile(IBLSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_light_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(IBLFireSound)
|
||||
{
|
||||
filename = "fx/powered/turret_indoor_fire.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock SensorData(DeployedIndoorTurretSensor)
|
||||
{
|
||||
detects = true;
|
||||
detectsUsingLOS = true;
|
||||
detectsPassiveJammed = false;
|
||||
detectsActiveJammed = false;
|
||||
detectsCloaked = false;
|
||||
detectionPings = true;
|
||||
detectRadius = 40;
|
||||
};
|
||||
|
||||
datablock ShockwaveData(IndoorTurretMuzzleFlash)
|
||||
{
|
||||
width = 0.5;
|
||||
numSegments = 13;
|
||||
numVertSegments = 1;
|
||||
velocity = 2.0;
|
||||
acceleration = -1.0;
|
||||
lifetimeMS = 300;
|
||||
height = 0.1;
|
||||
verticalCurve = 0.5;
|
||||
|
||||
mapToTerrain = false;
|
||||
renderBottom = false;
|
||||
orientToNormal = true;
|
||||
renderSquare = true;
|
||||
|
||||
texture[0] = "special/blasterHit";
|
||||
texture[1] = "special/gradient";
|
||||
texWrap = 3.0;
|
||||
|
||||
times[0] = 0.0;
|
||||
times[1] = 0.5;
|
||||
times[2] = 1.0;
|
||||
|
||||
colors[0] = "1.0 0.3 0.3 1.0";
|
||||
colors[1] = "1.0 0.3 0.3 1.0";
|
||||
colors[2] = "1.0 0.3 0.3 0.0";
|
||||
};
|
||||
|
||||
datablock TurretData(TurretDeployedFloorIndoor) : TurretDamageProfile
|
||||
{
|
||||
className = DeployedTurret;
|
||||
shapeFile = "turret_indoor_deployf.dts";
|
||||
|
||||
mass = 5.0;
|
||||
maxDamage = 0.5;
|
||||
destroyedLevel = 0.5;
|
||||
disabledLevel = 0.21;
|
||||
explosion = SmallTurretExplosion;
|
||||
expDmgRadius = 5.0;
|
||||
expDamage = 0.25;
|
||||
expImpulse = 500.0;
|
||||
repairRate = 0;
|
||||
heatSignature = 0.0;
|
||||
|
||||
deployedObject = true;
|
||||
|
||||
thetaMin = 5;
|
||||
thetaMax = 145;
|
||||
thetaNull = 90;
|
||||
|
||||
primaryAxis = zaxis;
|
||||
|
||||
isShielded = true;
|
||||
energyPerDamagePoint = 110;
|
||||
maxEnergy = 30;
|
||||
rechargeRate = 0.10;
|
||||
barrel = DeployableIndoorBarrel;
|
||||
|
||||
canControl = true;
|
||||
cmdCategory = "DTactical";
|
||||
cmdIcon = CMDTurretIcon;
|
||||
cmdMiniIconName = "commander/MiniIcons/com_turret_grey";
|
||||
targetNameTag = 'Spider Clamp';
|
||||
targetTypeTag = 'Turret';
|
||||
sensorData = DeployedIndoorTurretSensor;
|
||||
sensorRadius = DeployedIndoorTurretSensor.detectRadius;
|
||||
sensorColor = "191 0 226";
|
||||
|
||||
firstPersonOnly = true;
|
||||
renderWhenDestroyed = true;
|
||||
|
||||
debrisShapeName = "debris_generic_small.dts";
|
||||
debris = TurretDebrisSmall;
|
||||
};
|
||||
|
||||
datablock TurretData(TurretDeployedWallIndoor) : TurretDamageProfile
|
||||
{
|
||||
className = DeployedTurret;
|
||||
shapeFile = "turret_indoor_deployw.dts";
|
||||
|
||||
mass = 5.0;
|
||||
maxDamage = 0.5;
|
||||
destroyedLevel = 0.5;
|
||||
disabledLevel = 0.21;
|
||||
explosion = SmallTurretExplosion;
|
||||
expDmgRadius = 5.0;
|
||||
expDamage = 0.25;
|
||||
expImpulse = 500.0;
|
||||
repairRate = 0;
|
||||
heatSignature = 0.0;
|
||||
|
||||
thetaMin = 5;
|
||||
thetaMax = 145;
|
||||
thetaNull = 90;
|
||||
|
||||
deployedObject = true;
|
||||
|
||||
primaryAxis = yaxis;
|
||||
|
||||
isShielded = true;
|
||||
energyPerDamagePoint = 110;
|
||||
maxEnergy = 30;
|
||||
rechargeRate = 0.10;
|
||||
barrel = DeployableIndoorBarrel;
|
||||
|
||||
canControl = true;
|
||||
cmdCategory = "DTactical";
|
||||
cmdIcon = CMDTurretIcon;
|
||||
cmdMiniIconName = "commander/MiniIcons/com_turret_grey";
|
||||
targetNameTag = 'Spider Clamp';
|
||||
targetTypeTag = 'Turret';
|
||||
sensorData = DeployedIndoorTurretSensor;
|
||||
sensorRadius = DeployedIndoorTurretSensor.detectRadius;
|
||||
sensorColor = "191 0 226";
|
||||
|
||||
firstPersonOnly = true;
|
||||
renderWhenDestroyed = true;
|
||||
|
||||
debrisShapeName = "debris_generic_small.dts";
|
||||
debris = TurretDebrisSmall;
|
||||
};
|
||||
|
||||
datablock TurretData(TurretDeployedCeilingIndoor) : TurretDamageProfile
|
||||
{
|
||||
className = DeployedTurret;
|
||||
shapeFile = "turret_indoor_deployc.dts";
|
||||
|
||||
mass = 5.0;
|
||||
maxDamage = 0.5;
|
||||
destroyedLevel = 0.5;
|
||||
disabledLevel = 0.21;
|
||||
explosion = SmallTurretExplosion;
|
||||
expDmgRadius = 5.0;
|
||||
expDamage = 0.25;
|
||||
expImpulse = 500.0;
|
||||
repairRate = 0;
|
||||
explosion = SmallTurretExplosion;
|
||||
|
||||
//thetaMin = 5;
|
||||
//thetaMax = 145;
|
||||
thetaMin = 35;
|
||||
thetaMax = 175;
|
||||
thetaNull = 90;
|
||||
heatSignature = 0.0;
|
||||
|
||||
deployedObject = true;
|
||||
|
||||
primaryAxis = revzaxis;
|
||||
|
||||
isShielded = true;
|
||||
energyPerDamagePoint = 110;
|
||||
maxEnergy = 30;
|
||||
rechargeRate = 0.10;
|
||||
barrel = DeployableIndoorBarrel;
|
||||
|
||||
canControl = true;
|
||||
cmdCategory = "DTactical";
|
||||
cmdIcon = CMDTurretIcon;
|
||||
cmdMiniIconName = "commander/MiniIcons/com_turret_grey";
|
||||
targetNameTag = 'Spider Clamp';
|
||||
targetTypeTag = 'Turret';
|
||||
sensorData = DeployedIndoorTurretSensor;
|
||||
sensorRadius = DeployedIndoorTurretSensor.detectRadius;
|
||||
sensorColor = "191 0 226";
|
||||
|
||||
firstPersonOnly = true;
|
||||
renderWhenDestroyed = true;
|
||||
|
||||
debrisShapeName = "debris_generic_small.dts";
|
||||
debris = TurretDebrisSmall;
|
||||
};
|
||||
|
||||
datablock LinearFlareProjectileData(IndoorTurretBolt)
|
||||
{
|
||||
directDamage = 0.14;
|
||||
directDamageType = $DamageType::IndoorDepTurret;
|
||||
explosion = "BlasterExplosion";
|
||||
kickBackStrength = 0.0;
|
||||
|
||||
dryVelocity = 120.0;
|
||||
wetVelocity = 40.0;
|
||||
velInheritFactor = 0.5;
|
||||
fizzleTimeMS = 2000;
|
||||
lifetimeMS = 3000;
|
||||
explodeOnDeath = false;
|
||||
reflectOnWaterImpactAngle = 0.0;
|
||||
explodeOnWaterImpact = false;
|
||||
deflectionOnWaterImpact = 0.0;
|
||||
fizzleUnderwaterMS = 3000;
|
||||
|
||||
numFlares = 20;
|
||||
size = 0.45;
|
||||
flareColor = "1 0.35 0.35";
|
||||
flareModTexture = "flaremod";
|
||||
flareBaseTexture = "flarebase";
|
||||
|
||||
sound = BlasterProjectileSound;
|
||||
|
||||
hasLight = true;
|
||||
lightRadius = 3.0;
|
||||
lightColor = "1 0.35 0.35";
|
||||
};
|
||||
|
||||
datablock TurretImageData(DeployableIndoorBarrel)
|
||||
{
|
||||
shapeFile = "turret_muzzlepoint.dts";
|
||||
// ---------------------------------------------
|
||||
// z0dd - ZOD, 5/8/02. Incorrect parameter value
|
||||
//item = IndoorTurretBarrel;
|
||||
item = TurretIndoorDeployable;
|
||||
|
||||
projectile = IndoorTurretBolt;
|
||||
projectileType = LinearFlareProjectile;
|
||||
|
||||
usesEnergy = true;
|
||||
fireEnergy = 4.5;
|
||||
minEnergy = 4.5;
|
||||
|
||||
lightType = "WeaponFireLight";
|
||||
lightColor = "0.25 0.15 0.15 1.0";
|
||||
lightTime = "1000";
|
||||
lightRadius = "2";
|
||||
|
||||
muzzleFlash = IndoorTurretMuzzleFlash;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 150;
|
||||
deactivateDelayMS = 300;
|
||||
thinkTimeMS = 150;
|
||||
degPerSecTheta = 580;
|
||||
degPerSecPhi = 960;
|
||||
attackRadius = 60;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
stateSound[1] = IBLSwitchSound;
|
||||
stateTimeoutValue[1] = 1;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
|
||||
stateName[3] = "Fire";
|
||||
stateTransitionOnTimeout[3] = "Reload";
|
||||
stateTimeoutValue[3] = 0.3;
|
||||
stateFire[3] = true;
|
||||
stateShockwave[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire";
|
||||
stateSound[3] = IBLFireSound;
|
||||
stateScript[3] = "onFire";
|
||||
|
||||
stateName[4] = "Reload";
|
||||
stateTimeoutValue[4] = 0.8;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Ready";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Deactivate";
|
||||
stateSequence[5] = "Activate";
|
||||
stateDirection[5] = false;
|
||||
stateTimeoutValue[5] = 1;
|
||||
stateTransitionOnLoaded[5] = "ActivateReady";
|
||||
stateTransitionOnTimeout[5] = "Dead";
|
||||
|
||||
stateName[6] = "Dead";
|
||||
stateTransitionOnLoaded[6] = "ActivateReady";
|
||||
|
||||
stateName[7] = "NoAmmo";
|
||||
stateTransitionOnAmmo[7] = "Reload";
|
||||
stateSequence[7] = "NoAmmo";
|
||||
};
|
||||
|
||||
|
||||
171
scripts/turrets/missileBarrelLarge.cs
Normal file
171
scripts/turrets/missileBarrelLarge.cs
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
//--------------------------------------------------------------------------
|
||||
// Large Missile Turret
|
||||
//
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
|
||||
//datablock AudioProfile(MBLSwitchSound)
|
||||
datablock AudioProfile(MILSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_missile_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
|
||||
};
|
||||
|
||||
//datablock AudioProfile(MBLFireSound)
|
||||
datablock AudioProfile(MILFireSound)
|
||||
{
|
||||
filename = "fx/powered/turret_missile_fire.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Particle effects: Note that we pull the below datablocks from
|
||||
// scripts/weapons/missileLauncher.cs
|
||||
//--------------------------------------
|
||||
//datablock ParticleData(MissileSmokeParticle)
|
||||
//datablock ParticleEmitterData(MissileSmokeEmitter)
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Explosion: from scripts/weapons/disc.cs
|
||||
//--------------------------------------
|
||||
//dataBlock ExplosionData(DiscExplosion)
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Projectile
|
||||
//--------------------------------------
|
||||
datablock SeekerProjectileData(TurretMissile)
|
||||
{
|
||||
casingShapeName = "weapon_missile_casement.dts";
|
||||
projectileShapeName = "weapon_missile_projectile.dts";
|
||||
hasDamageRadius = true;
|
||||
indirectDamage = 1.0;
|
||||
damageRadius = 4.0;
|
||||
radiusDamageType = $DamageType::MissileTurret;
|
||||
kickBackStrength = 2500;
|
||||
|
||||
flareDistance = 200;
|
||||
flareAngle = 30;
|
||||
minSeekHeat = 0.6;
|
||||
|
||||
explosion = "MissileExplosion";
|
||||
velInheritFactor = 0.2;
|
||||
|
||||
splash = MissileSplash;
|
||||
baseEmitter = MissileSmokeEmitter;
|
||||
delayEmitter = MissileFireEmitter;
|
||||
puffEmitter = MissilePuffEmitter;
|
||||
|
||||
lifetimeMS = 20000;
|
||||
muzzleVelocity = 80.0;
|
||||
turningSpeed = 90.0;
|
||||
|
||||
proximityRadius = 4;
|
||||
|
||||
terrainAvoidanceSpeed = 180;
|
||||
terrainScanAhead = 25;
|
||||
terrainHeightFail = 12;
|
||||
terrainAvoidanceRadius = 100;
|
||||
|
||||
useFlechette = true;
|
||||
flechetteDelayMs = 550;
|
||||
casingDeb = FlechetteDebris;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
//-------------------------------------- Fusion Turret Image
|
||||
//
|
||||
datablock TurretImageData(MissileBarrelLarge)
|
||||
{
|
||||
shapeFile = "turret_missile_large.dts";
|
||||
// ---------------------------------------------
|
||||
// z0dd - ZOD, 5/8/02. Incorrect parameter value
|
||||
//item = MissileBarrelLargePack;
|
||||
item = MissileBarrelPack;
|
||||
|
||||
projectile = TurretMissile;
|
||||
projectileType = SeekerProjectile;
|
||||
|
||||
usesEnergy = true;
|
||||
fireEnergy = 60.0;
|
||||
minEnergy = 60.0;
|
||||
|
||||
isSeeker = true;
|
||||
seekRadius = 300;
|
||||
maxSeekAngle = 30;
|
||||
seekTime = 1.0;
|
||||
minSeekHeat = 0.6;
|
||||
emap = true;
|
||||
minTargetingDistance = 40;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 250;
|
||||
deactivateDelayMS = 500;
|
||||
thinkTimeMS = 200;
|
||||
degPerSecTheta = 580;
|
||||
degPerSecPhi = 1080;
|
||||
attackRadius = 250;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
// ----------------------------------------------
|
||||
// z0dd - ZOD, 3/27/02. Changed for sound fix.
|
||||
//stateSound[1] = MBLSwitchSound;
|
||||
stateSound[1] = MILSwitchSound;
|
||||
|
||||
stateTimeoutValue[1] = 2;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
|
||||
stateName[3] = "Fire";
|
||||
stateTransitionOnTimeout[3] = "Reload";
|
||||
stateTimeoutValue[3] = 0.3;
|
||||
stateFire[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire";
|
||||
// ----------------------------------------------
|
||||
// z0dd - ZOD, 3/27/02. Changed for sound fix.
|
||||
//stateSound[3] = MBLFireSound;
|
||||
stateSound[3] = MILFireSound;
|
||||
|
||||
stateScript[3] = "onFire";
|
||||
|
||||
stateName[4] = "Reload";
|
||||
stateTimeoutValue[4] = 3.5;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Ready";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Deactivate";
|
||||
stateSequence[5] = "Activate";
|
||||
stateDirection[5] = false;
|
||||
stateTimeoutValue[5] = 2;
|
||||
stateTransitionOnLoaded[5] = "ActivateReady";
|
||||
stateTransitionOnTimeout[5] = "Dead";
|
||||
|
||||
stateName[6] = "Dead";
|
||||
stateTransitionOnLoaded[6] = "ActivateReady";
|
||||
|
||||
stateName[7] = "NoAmmo";
|
||||
stateTransitionOnAmmo[7] = "Reload";
|
||||
stateSequence[7] = "NoAmmo";
|
||||
};
|
||||
|
||||
145
scripts/turrets/mortarBarrelLarge.cs
Normal file
145
scripts/turrets/mortarBarrelLarge.cs
Normal file
|
|
@ -0,0 +1,145 @@
|
|||
//--------------------------------------------------------------------------
|
||||
// Large Mortar Turret
|
||||
//
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
|
||||
datablock AudioProfile(MBLSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_heavy_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(MBLFireSound)
|
||||
{
|
||||
filename = "fx/powered/turret_mortar_fire.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Projectile
|
||||
//--------------------------------------
|
||||
|
||||
datablock AudioProfile(MortarTurretProjectileSound)
|
||||
{
|
||||
filename = "fx/weapons/mortar_projectile.wav";
|
||||
description = ProjectileLooping3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock GrenadeProjectileData(MortarTurretShot)
|
||||
{
|
||||
projectileShapeName = "mortar_projectile.dts";
|
||||
emitterDelay = -1;
|
||||
directDamage = 0.0;
|
||||
hasDamageRadius = true;
|
||||
indirectDamage = 1.32;
|
||||
damageRadius = 30.0;
|
||||
radiusDamageType = $DamageType::MortarTurret;
|
||||
kickBackStrength = 3000;
|
||||
|
||||
explosion = "MortarExplosion";
|
||||
velInheritFactor = 0.5;
|
||||
splash = MortarSplash;
|
||||
|
||||
baseEmitter = MortarSmokeEmitter;
|
||||
bubbleEmitter = MortarBubbleEmitter;
|
||||
|
||||
grenadeElasticity = 0.25;
|
||||
grenadeFriction = 0.4;
|
||||
armingDelayMS = 2000;
|
||||
muzzleVelocity = 43.7;
|
||||
drag = 0.1;
|
||||
|
||||
sound = MortarTurretProjectileSound;
|
||||
|
||||
hasLight = true;
|
||||
lightRadius = 3;
|
||||
lightColor = "0.05 0.2 0.05";
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
//-------------------------------------- Fusion Turret Image
|
||||
//
|
||||
datablock TurretImageData(MortarBarrelLarge)
|
||||
{
|
||||
shapeFile = "turret_mortar_large.dts";
|
||||
// ---------------------------------------------
|
||||
// z0dd - ZOD, 5/8/02. Incorrect parameter value
|
||||
//item = MortarBarrelLargePack;
|
||||
item = MortarBarrelPack;
|
||||
|
||||
projectile = MortarTurretShot;
|
||||
projectileType = GrenadeProjectile;
|
||||
usesEnergy = true;
|
||||
fireEnergy = 30;
|
||||
minEnergy = 30;
|
||||
emap = true;
|
||||
|
||||
// don't let a mortar turret blow itself up
|
||||
dontFireInsideDamageRadius = true;
|
||||
damageRadius = 40;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 1000;
|
||||
deactivateDelayMS = 1500;
|
||||
thinkTimeMS = 200;
|
||||
degPerSecTheta = 580;
|
||||
degPerSecPhi = 960;
|
||||
attackRadius = 160;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
stateSound[1] = MBLSwitchSound;
|
||||
stateTimeoutValue[1] = 1;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
|
||||
stateName[3] = "Fire";
|
||||
stateTransitionOnTimeout[3] = "Reload";
|
||||
stateTimeoutValue[3] = 0.3;
|
||||
stateFire[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire";
|
||||
stateSound[3] = MBLFireSound;
|
||||
stateScript[3] = "onFire";
|
||||
|
||||
stateName[4] = "Reload";
|
||||
stateTimeoutValue[4] = 1.5;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Ready";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Deactivate";
|
||||
stateSequence[5] = "Activate";
|
||||
stateDirection[5] = false;
|
||||
stateTimeoutValue[5] = 1;
|
||||
stateTransitionOnLoaded[5] = "ActivateReady";
|
||||
stateTransitionOnTimeout[5] = "Dead";
|
||||
|
||||
stateName[6] = "Dead";
|
||||
stateTransitionOnLoaded[6] = "ActivateReady";
|
||||
|
||||
stateName[7] = "NoAmmo";
|
||||
stateTransitionOnAmmo[7] = "Reload";
|
||||
stateSequence[7] = "NoAmmo";
|
||||
};
|
||||
|
||||
|
||||
236
scripts/turrets/outdoorDeployableBarrel.cs
Normal file
236
scripts/turrets/outdoorDeployableBarrel.cs
Normal file
|
|
@ -0,0 +1,236 @@
|
|||
// --------------------------------------------------------------
|
||||
// Outdoor Deployable Turret barrel
|
||||
// --------------------------------------------------------------
|
||||
|
||||
|
||||
datablock AudioProfile(OBLSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_light_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(OBLFireSound)
|
||||
{
|
||||
filename = "fx/powered/turret_outdoor_fire.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Projectile data
|
||||
// --------------------------------------------------------------
|
||||
|
||||
datablock TracerProjectileData(FusionBolt)
|
||||
{
|
||||
doDynamicClientHits = true;
|
||||
|
||||
projectileShapeName = "";
|
||||
directDamage = 0.0;
|
||||
directDamageType = $DamageType::OutdoorDepTurret;
|
||||
hasDamageRadius = true;
|
||||
indirectDamage = 0.24;
|
||||
damageRadius = 4.0;
|
||||
kickBackStrength = 0.0;
|
||||
radiusDamageType = $DamageType::OutdoorDepTurret;
|
||||
sound = BlasterProjectileSound;
|
||||
explosion = PlasmaBoltExplosion;
|
||||
|
||||
dryVelocity = 60.0;
|
||||
wetVelocity = 40.0;
|
||||
velInheritFactor = 1.0;
|
||||
fizzleTimeMS = 4000;
|
||||
lifetimeMS = 6000;
|
||||
explodeOnDeath = false;
|
||||
reflectOnWaterImpactAngle = 0.0;
|
||||
explodeOnWaterImpact = true;
|
||||
deflectionOnWaterImpact = 0.0;
|
||||
fizzleUnderwaterMS = -1;
|
||||
|
||||
activateDelayMS = 100;
|
||||
|
||||
tracerLength = 5;
|
||||
tracerAlpha = false;
|
||||
tracerMinPixels = 3;
|
||||
tracerColor = "1 0 0 1";
|
||||
tracerTex[0] = "special/landSpikeBolt";
|
||||
tracerTex[1] = "special/landSpikeBoltCross";
|
||||
tracerWidth = 0.35;
|
||||
crossSize = 0.79;
|
||||
crossViewAng = 0.990;
|
||||
renderCross = true;
|
||||
emap = true;
|
||||
};
|
||||
|
||||
// --------------------------------------------------------------
|
||||
|
||||
datablock SensorData(DeployedOutdoorTurretSensor)
|
||||
{
|
||||
detects = true;
|
||||
detectsUsingLOS = true;
|
||||
detectsPassiveJammed = false;
|
||||
detectsActiveJammed = false;
|
||||
detectsCloaked = false;
|
||||
detectionPings = true;
|
||||
detectRadius = 60;
|
||||
};
|
||||
|
||||
datablock ShockwaveData(OutdoorTurretMuzzleFlash)
|
||||
{
|
||||
width = 0.5;
|
||||
numSegments = 13;
|
||||
numVertSegments = 1;
|
||||
velocity = 2.0;
|
||||
acceleration = -1.0;
|
||||
lifetimeMS = 300;
|
||||
height = 0.1;
|
||||
verticalCurve = 0.5;
|
||||
|
||||
mapToTerrain = false;
|
||||
renderBottom = false;
|
||||
orientToNormal = true;
|
||||
renderSquare = true;
|
||||
|
||||
texture[0] = "special/blasterHit";
|
||||
texture[1] = "special/gradient";
|
||||
texWrap = 3.0;
|
||||
|
||||
times[0] = 0.0;
|
||||
times[1] = 0.5;
|
||||
times[2] = 1.0;
|
||||
|
||||
colors[0] = "1.0 0.8 0.5 1.0";
|
||||
colors[1] = "1.0 0.8 0.5 1.0";
|
||||
colors[2] = "1.0 0.8 0.5 0.0";
|
||||
};
|
||||
|
||||
datablock TurretData(TurretDeployedOutdoor) : TurretDamageProfile
|
||||
{
|
||||
className = DeployedTurret;
|
||||
shapeFile = "turret_outdoor_deploy.dts";
|
||||
|
||||
rechargeRate = 0.15;
|
||||
|
||||
mass = 5.0;
|
||||
maxDamage = 0.80;
|
||||
destroyedLevel = 0.80;
|
||||
disabledLevel = 0.35;
|
||||
explosion = HandGrenadeExplosion;
|
||||
expDmgRadius = 5.0;
|
||||
expDamage = 0.3;
|
||||
expImpulse = 500.0;
|
||||
repairRate = 0;
|
||||
|
||||
deployedObject = true;
|
||||
|
||||
thetaMin = 0;
|
||||
thetaMax = 145;
|
||||
thetaNull = 90;
|
||||
|
||||
yawVariance = 30.0; // these will smooth out the elf tracking code.
|
||||
pitchVariance = 30.0; // more or less just tolerances
|
||||
|
||||
isShielded = true;
|
||||
energyPerDamagePoint = 110;
|
||||
maxEnergy = 60;
|
||||
renderWhenDestroyed = true;
|
||||
barrel = DeployableOutdoorBarrel;
|
||||
heatSignature = 0;
|
||||
|
||||
canControl = true;
|
||||
cmdCategory = "DTactical";
|
||||
cmdIcon = CMDTurretIcon;
|
||||
cmdMiniIconName = "commander/MiniIcons/com_turret_grey";
|
||||
targetNameTag = 'Landspike';
|
||||
targetTypeTag = 'Turret';
|
||||
sensorData = DeployedOutdoorTurretSensor;
|
||||
sensorRadius = DeployedOutdoorTurretSensor.detectRadius;
|
||||
sensorColor = "191 0 226";
|
||||
|
||||
firstPersonOnly = true;
|
||||
|
||||
debrisShapeName = "debris_generic_small.dts";
|
||||
debris = TurretDebrisSmall;
|
||||
};
|
||||
|
||||
datablock TurretImageData(DeployableOutdoorBarrel)
|
||||
{
|
||||
shapeFile = "turret_muzzlepoint.dts";
|
||||
// ---------------------------------------------
|
||||
// z0dd - ZOD, 5/8/02. Incorrect parameter value
|
||||
//item = OutdoorTurretBarrel;
|
||||
item = TurretOutdoorDeployable;
|
||||
|
||||
projectileType = TracerProjectile;
|
||||
projectile = FusionBolt;
|
||||
usesEnergy = true;
|
||||
fireEnergy = 11.0;
|
||||
minEnergy = 11.0;
|
||||
|
||||
lightType = "WeaponFireLight";
|
||||
lightColor = "0.25 0.25 0.15 0.2";
|
||||
lightTime = "1000";
|
||||
lightRadius = "2";
|
||||
|
||||
muzzleFlash = OutdoorTurretMuzzleFlash;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 300;
|
||||
deactivateDelayMS = 600;
|
||||
thinkTimeMS = 200;
|
||||
degPerSecTheta = 580;
|
||||
degPerSecPhi = 960;
|
||||
attackRadius = 100;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
stateSound[1] = OBLSwitchSound;
|
||||
stateTimeoutValue[1] = 1;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
|
||||
stateName[3] = "Fire";
|
||||
stateTransitionOnTimeout[3] = "Reload";
|
||||
stateTimeoutValue[3] = 0.3;
|
||||
stateFire[3] = true;
|
||||
stateShockwave[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire";
|
||||
stateSound[3] = OBLFireSound;
|
||||
stateScript[3] = "onFire";
|
||||
|
||||
stateName[4] = "Reload";
|
||||
stateTimeoutValue[4] = 1.2;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Ready";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Deactivate";
|
||||
stateSequence[5] = "Activate";
|
||||
stateDirection[5] = false;
|
||||
stateTimeoutValue[5] = 1;
|
||||
stateTransitionOnLoaded[5] = "ActivateReady";
|
||||
stateTransitionOnTimeout[5] = "Dead";
|
||||
|
||||
stateName[6] = "Dead";
|
||||
stateTransitionOnLoaded[6] = "ActivateReady";
|
||||
|
||||
stateName[7] = "NoAmmo";
|
||||
stateTransitionOnAmmo[7] = "Reload";
|
||||
stateSequence[7] = "NoAmmo";
|
||||
};
|
||||
|
||||
308
scripts/turrets/plasmaBarrelLarge.cs
Normal file
308
scripts/turrets/plasmaBarrelLarge.cs
Normal file
|
|
@ -0,0 +1,308 @@
|
|||
//--------------------------------------------------------------------------
|
||||
// Plasma Turret
|
||||
//
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
datablock AudioProfile(PBLSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_light_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(PBLFireSound)
|
||||
{
|
||||
filename = "fx/powered/turret_plasma_fire.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Explosion
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
datablock AudioProfile(PlasmaBarrelExpSound)
|
||||
{
|
||||
filename = "fx/powered/turret_plasma_explode.wav";
|
||||
description = "AudioExplosion3d";
|
||||
preload = true;
|
||||
};
|
||||
|
||||
|
||||
datablock ParticleData( PlasmaBarrelCrescentParticle )
|
||||
{
|
||||
dragCoefficient = 2;
|
||||
gravityCoefficient = 0.0;
|
||||
inheritedVelFactor = 0.2;
|
||||
constantAcceleration = -0.0;
|
||||
lifetimeMS = 600;
|
||||
lifetimeVarianceMS = 000;
|
||||
textureName = "special/crescent3";
|
||||
|
||||
colors[0] = "0.3 0.4 1.0 1.0";
|
||||
colors[1] = "0.3 0.4 1.0 0.5";
|
||||
colors[2] = "0.3 0.4 1.0 0.0";
|
||||
sizes[0] = 2.0;
|
||||
sizes[1] = 4.0;
|
||||
sizes[2] = 5.0;
|
||||
times[0] = 0.0;
|
||||
times[1] = 0.5;
|
||||
times[2] = 1.0;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData( PlasmaBarrelCrescentEmitter )
|
||||
{
|
||||
ejectionPeriodMS = 25;
|
||||
periodVarianceMS = 0;
|
||||
ejectionVelocity = 20;
|
||||
velocityVariance = 5.0;
|
||||
ejectionOffset = 0.0;
|
||||
thetaMin = 0;
|
||||
thetaMax = 80;
|
||||
phiReferenceVel = 0;
|
||||
phiVariance = 360;
|
||||
overrideAdvances = false;
|
||||
orientParticles = true;
|
||||
lifetimeMS = 200;
|
||||
particles = "PlasmaBarrelCrescentParticle";
|
||||
};
|
||||
|
||||
datablock ParticleData(PlasmaBarrelExplosionParticle)
|
||||
{
|
||||
dragCoefficient = 2;
|
||||
gravityCoefficient = 0.2;
|
||||
inheritedVelFactor = 0.2;
|
||||
constantAcceleration = 0.0;
|
||||
lifetimeMS = 750;
|
||||
lifetimeVarianceMS = 150;
|
||||
textureName = "particleTest";
|
||||
colors[0] = "0.3 0.4 1.0 1.0";
|
||||
colors[1] = "0.3 0.4 1.0 0.0";
|
||||
sizes[0] = 1;
|
||||
sizes[1] = 2;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData(PlasmaBarrelExplosionEmitter)
|
||||
{
|
||||
ejectionPeriodMS = 7;
|
||||
periodVarianceMS = 0;
|
||||
ejectionVelocity = 12;
|
||||
velocityVariance = 1.75;
|
||||
ejectionOffset = 0.0;
|
||||
thetaMin = 0;
|
||||
thetaMax = 60;
|
||||
phiReferenceVel = 0;
|
||||
phiVariance = 360;
|
||||
overrideAdvances = false;
|
||||
particles = "PlasmaBarrelExplosionParticle";
|
||||
};
|
||||
|
||||
|
||||
datablock ExplosionData(PlasmaBarrelSubExplosion1)
|
||||
{
|
||||
explosionShape = "disc_explosion.dts";
|
||||
faceViewer = true;
|
||||
|
||||
delayMS = 50;
|
||||
|
||||
offset = 3.0;
|
||||
|
||||
playSpeed = 1.5;
|
||||
|
||||
sizes[0] = "0.25 0.25 0.25";
|
||||
sizes[1] = "0.25 0.25 0.25";
|
||||
times[0] = 0.0;
|
||||
times[1] = 1.0;
|
||||
|
||||
};
|
||||
|
||||
datablock ExplosionData(PlasmaBarrelSubExplosion2)
|
||||
{
|
||||
explosionShape = "disc_explosion.dts";
|
||||
faceViewer = true;
|
||||
|
||||
delayMS = 100;
|
||||
|
||||
offset = 3.5;
|
||||
|
||||
playSpeed = 1.0;
|
||||
|
||||
sizes[0] = "0.5 0.5 0.5";
|
||||
sizes[1] = "0.5 0.5 0.5";
|
||||
times[0] = 0.0;
|
||||
times[1] = 1.0;
|
||||
};
|
||||
|
||||
datablock ExplosionData(PlasmaBarrelSubExplosion3)
|
||||
{
|
||||
explosionShape = "disc_explosion.dts";
|
||||
faceViewer = true;
|
||||
|
||||
delayMS = 0;
|
||||
|
||||
offset = 0.0;
|
||||
|
||||
playSpeed = 0.7;
|
||||
|
||||
|
||||
sizes[0] = "0.5 0.5 0.5";
|
||||
sizes[1] = "1.0 1.0 1.0";
|
||||
times[0] = 0.0;
|
||||
times[1] = 1.0;
|
||||
|
||||
};
|
||||
|
||||
datablock ExplosionData(PlasmaBarrelBoltExplosion)
|
||||
{
|
||||
soundProfile = PlasmaBarrelExpSound;
|
||||
particleEmitter = PlasmaBarrelExplosionEmitter;
|
||||
particleDensity = 250;
|
||||
particleRadius = 1.25;
|
||||
faceViewer = true;
|
||||
|
||||
emitter[0] = PlasmaBarrelCrescentEmitter;
|
||||
|
||||
subExplosion[0] = PlasmaBarrelSubExplosion1;
|
||||
subExplosion[1] = PlasmaBarrelSubExplosion2;
|
||||
subExplosion[2] = PlasmaBarrelSubExplosion3;
|
||||
|
||||
shakeCamera = true;
|
||||
camShakeFreq = "10.0 9.0 9.0";
|
||||
camShakeAmp = "10.0 10.0 10.0";
|
||||
camShakeDuration = 0.5;
|
||||
camShakeRadius = 15.0;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Projectile
|
||||
//--------------------------------------
|
||||
|
||||
datablock LinearFlareProjectileData(PlasmaBarrelBolt)
|
||||
{
|
||||
doDynamicClientHits = true;
|
||||
|
||||
directDamage = 0;
|
||||
directDamageType = $DamageType::PlasmaTurret;
|
||||
hasDamageRadius = true;
|
||||
indirectDamage = 0.5;
|
||||
damageRadius = 10.0;
|
||||
kickBackStrength = 500;
|
||||
radiusDamageType = $DamageType::PlasmaTurret;
|
||||
explosion = PlasmaBarrelBoltExplosion;
|
||||
splash = PlasmaSplash;
|
||||
|
||||
dryVelocity = 50.0;
|
||||
wetVelocity = -1;
|
||||
velInheritFactor = 1.0;
|
||||
fizzleTimeMS = 4000;
|
||||
lifetimeMS = 6000;
|
||||
explodeOnDeath = false;
|
||||
reflectOnWaterImpactAngle = 0.0;
|
||||
explodeOnWaterImpact = true;
|
||||
deflectionOnWaterImpact = 0.0;
|
||||
fizzleUnderwaterMS = -1;
|
||||
|
||||
activateDelayMS = 100;
|
||||
|
||||
scale = "1.5 1.5 1.5";
|
||||
numFlares = 30;
|
||||
flareColor = "0.1 0.3 1.0";
|
||||
flareModTexture = "flaremod";
|
||||
flareBaseTexture = "flarebase";
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Plasma Turret Image
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
datablock TurretImageData(PlasmaBarrelLarge)
|
||||
{
|
||||
shapeFile = "turret_fusion_large.dts";
|
||||
// ---------------------------------------------
|
||||
// z0dd - ZOD, 5/8/02. Incorrect parameter value
|
||||
//item = PlasmaBarrelLargePack;
|
||||
item = PlasmaBarrelPack;
|
||||
|
||||
projectile = PlasmaBarrelBolt;
|
||||
projectileType = LinearFlareProjectile;
|
||||
usesEnergy = true;
|
||||
fireEnergy = 10;
|
||||
minEnergy = 10;
|
||||
emap = true;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 1000;
|
||||
deactivateDelayMS = 1500;
|
||||
thinkTimeMS = 200;
|
||||
degPerSecTheta = 300;
|
||||
degPerSecPhi = 500;
|
||||
attackRadius = 120;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTransitionOnNotLoaded[0] = "Dead";
|
||||
stateTransitionOnLoaded[0] = "ActivateReady";
|
||||
|
||||
stateName[1] = "ActivateReady";
|
||||
stateSequence[1] = "Activate";
|
||||
stateSound[1] = PBLSwitchSound;
|
||||
stateTimeoutValue[1] = 1;
|
||||
stateTransitionOnTimeout[1] = "Ready";
|
||||
stateTransitionOnNotLoaded[1] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Ready";
|
||||
stateTransitionOnNotLoaded[2] = "Deactivate";
|
||||
stateTransitionOnTriggerDown[2] = "Fire";
|
||||
stateTransitionOnNoAmmo[2] = "NoAmmo";
|
||||
|
||||
stateName[3] = "Fire";
|
||||
stateTransitionOnTimeout[3] = "Reload";
|
||||
stateTimeoutValue[3] = 0.3;
|
||||
stateFire[3] = true;
|
||||
stateRecoil[3] = LightRecoil;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateSequence[3] = "Fire";
|
||||
stateSound[3] = PBLFireSound;
|
||||
stateScript[3] = "onFire";
|
||||
|
||||
stateName[4] = "Reload";
|
||||
stateTimeoutValue[4] = 0.8;
|
||||
stateAllowImageChange[4] = false;
|
||||
stateSequence[4] = "Reload";
|
||||
stateTransitionOnTimeout[4] = "Ready";
|
||||
stateTransitionOnNotLoaded[4] = "Deactivate";
|
||||
stateTransitionOnNoAmmo[4] = "NoAmmo";
|
||||
|
||||
stateName[5] = "Deactivate";
|
||||
stateSequence[5] = "Activate";
|
||||
stateDirection[5] = false;
|
||||
stateTimeoutValue[5] = 1;
|
||||
stateTransitionOnLoaded[5] = "ActivateReady";
|
||||
stateTransitionOnTimeout[5] = "Dead";
|
||||
|
||||
stateName[6] = "Dead";
|
||||
stateTransitionOnLoaded[6] = "ActivateReady";
|
||||
|
||||
stateName[7] = "NoAmmo";
|
||||
stateTransitionOnAmmo[7] = "Reload";
|
||||
stateSequence[7] = "NoAmmo";
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
213
scripts/turrets/sentryTurret.cs
Normal file
213
scripts/turrets/sentryTurret.cs
Normal file
|
|
@ -0,0 +1,213 @@
|
|||
// Sound datablocks
|
||||
datablock AudioProfile(SentryTurretSwitchSound)
|
||||
{
|
||||
filename = "fx/powered/turret_sentry_activate.wav";
|
||||
description = AudioClose3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(SentryTurretFireSound)
|
||||
{
|
||||
filename = "fx/powered/turret_sentry_fire.wav";
|
||||
description = AudioDefault3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(SentryTurretExpSound)
|
||||
{
|
||||
filename = "fx/powered/turret_sentry_impact.WAV";
|
||||
description = AudioClosest3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
datablock AudioProfile(SentryTurretProjectileSound)
|
||||
{
|
||||
filename = "fx/weapons/blaster_projectile.WAV";
|
||||
description = AudioExplosion3d;
|
||||
preload = true;
|
||||
};
|
||||
|
||||
// Explosion
|
||||
|
||||
datablock ParticleData(SentryTurretExplosionParticle1)
|
||||
{
|
||||
dragCoefficient = 0.65;
|
||||
gravityCoefficient = 0.3;
|
||||
inheritedVelFactor = 0.0;
|
||||
constantAcceleration = 0.0;
|
||||
lifetimeMS = 500;
|
||||
lifetimeVarianceMS = 150;
|
||||
textureName = "particleTest";
|
||||
colors[0] = "0.26 0.36 0.56 1.0";
|
||||
colors[1] = "0.26 0.36 0.56 0.0";
|
||||
sizes[0] = 0.0425;
|
||||
sizes[1] = 0.15;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData(SentryTurretExplosionEmitter)
|
||||
{
|
||||
ejectionPeriodMS = 10;
|
||||
periodVarianceMS = 0;
|
||||
ejectionVelocity = 0.75;
|
||||
velocityVariance = 0.25;
|
||||
ejectionOffset = 0.0;
|
||||
thetaMin = 0;
|
||||
thetaMax = 60;
|
||||
phiReferenceVel = 0;
|
||||
phiVariance = 360;
|
||||
overrideAdvances = false;
|
||||
particles = "SentryTurretExplosionParticle1";
|
||||
};
|
||||
|
||||
datablock ExplosionData(SentryTurretExplosion)
|
||||
{
|
||||
explosionShape = "energy_explosion.dts";
|
||||
soundProfile = SentryTurretExpSound;
|
||||
|
||||
particleEmitter = SentryTurretExplosionEmitter;
|
||||
particleDensity = 120;
|
||||
particleRadius = 0.15;
|
||||
|
||||
faceViewer = false;
|
||||
};
|
||||
|
||||
// Projectile
|
||||
|
||||
datablock LinearFlareProjectileData(SentryTurretEnergyBolt)
|
||||
{
|
||||
directDamage = 0.1;
|
||||
directDamageType = $DamageType::SentryTurret;
|
||||
|
||||
explosion = "SentryTurretExplosion";
|
||||
kickBackStrength = 0.0;
|
||||
|
||||
dryVelocity = 200.0;
|
||||
wetVelocity = 150.0;
|
||||
velInheritFactor = 0.5;
|
||||
fizzleTimeMS = 2000;
|
||||
lifetimeMS = 3000;
|
||||
explodeOnDeath = false;
|
||||
reflectOnWaterImpactAngle = 0.0;
|
||||
explodeOnWaterImpact = false;
|
||||
deflectionOnWaterImpact = 0.0;
|
||||
fizzleUnderwaterMS = 3000;
|
||||
|
||||
numFlares = 10;
|
||||
size = 0.35;
|
||||
flareColor = "0.35 0.35 1";
|
||||
flareModTexture = "flaremod";
|
||||
flareBaseTexture = "flarebase";
|
||||
|
||||
sound = SentryTurretProjectileSound;
|
||||
|
||||
hasLight = true;
|
||||
lightRadius = 1.5;
|
||||
lightColor = "0.35 0.35 1";
|
||||
};
|
||||
|
||||
// Turret data
|
||||
|
||||
datablock SensorData(SentryMotionSensor)
|
||||
{
|
||||
detects = true;
|
||||
detectsUsingLOS = true;
|
||||
detectsActiveJammed = false;
|
||||
detectsPassiveJammed = true;
|
||||
detectsCloaked = true;
|
||||
detectionPings = false;
|
||||
detectRadius = 60;
|
||||
detectMinVelocity = 2;
|
||||
};
|
||||
|
||||
datablock TurretData(SentryTurret) : TurretDamageProfile
|
||||
{
|
||||
//className = Turret;
|
||||
catagory = "Turrets";
|
||||
shapeFile = "turret_sentry.dts";
|
||||
|
||||
//Uses the same stats as an outdoor deployable turret (balancing info for Dave)
|
||||
mass = 5.0;
|
||||
|
||||
barrel = SentryTurretBarrel;
|
||||
|
||||
maxDamage = 1.2;
|
||||
destroyedLevel = 1.2;
|
||||
disabledLevel = 0.84;
|
||||
explosion = ShapeExplosion;
|
||||
expDmgRadius = 5.0;
|
||||
expDamage = 0.4;
|
||||
expImpulse = 1000.0;
|
||||
repairRate = 0;
|
||||
|
||||
thetaMin = 89;
|
||||
thetaMax = 175;
|
||||
emap = true;
|
||||
|
||||
|
||||
isShielded = true;
|
||||
energyPerDamagePoint = 100;
|
||||
maxEnergy = 150;
|
||||
rechargeRate = 0.40;
|
||||
|
||||
canControl = true;
|
||||
cmdCategory = "Tactical";
|
||||
cmdIcon = CMDTurretIcon;
|
||||
cmdMiniIconName = "commander/MiniIcons/com_turret_grey";
|
||||
targetNameTag = 'Sentry';
|
||||
targetTypeTag = 'Turret';
|
||||
sensorData = SentryMotionSensor;
|
||||
sensorRadius = SentryMotionSensor.detectRadius;
|
||||
sensorColor = "9 136 255";
|
||||
firstPersonOnly = true;
|
||||
};
|
||||
|
||||
datablock TurretImageData(SentryTurretBarrel)
|
||||
{
|
||||
shapeFile = "turret_muzzlepoint.dts";
|
||||
|
||||
projectile = SentryTurretEnergyBolt;
|
||||
projectileType = LinearFlareProjectile;
|
||||
usesEnergy = true;
|
||||
fireEnergy = 6.00;
|
||||
minEnergy = 6.00;
|
||||
emap = true;
|
||||
|
||||
// Turret parameters
|
||||
activationMS = 300;
|
||||
deactivateDelayMS = 500;
|
||||
thinkTimeMS = 200;
|
||||
degPerSecTheta = 520;
|
||||
degPerSecPhi = 960;
|
||||
attackRadius = 60;
|
||||
|
||||
// State transitions
|
||||
stateName[0] = "Activate";
|
||||
stateTimeoutValue[0] = 0.01;
|
||||
stateTransitionOnTimeout[0] = "Ready";
|
||||
stateSound[0] = SentryTurretSwitchSound;
|
||||
|
||||
stateName[1] = "Ready";
|
||||
stateTransitionOnTriggerDown[1] = "Fire";
|
||||
stateTransitionOnNoAmmo[1] = "NoAmmo";
|
||||
|
||||
stateName[2] = "Fire";
|
||||
stateTransitionOnTimeout[2] = "Reload";
|
||||
stateTimeoutValue[2] = 0.13;
|
||||
stateFire[2] = true;
|
||||
stateRecoil[2] = LightRecoil;
|
||||
stateAllowImageChange[2] = false;
|
||||
stateSequence[2] = "Fire";
|
||||
stateSound[2] = SentryTurretFireSound;
|
||||
stateScript[2] = "onFire";
|
||||
|
||||
stateName[3] = "Reload";
|
||||
stateTimeoutValue[3] = 0.40;
|
||||
stateAllowImageChange[3] = false;
|
||||
stateTransitionOnTimeout[3] = "Ready";
|
||||
stateTransitionOnNoAmmo[3] = "NoAmmo";
|
||||
|
||||
stateName[4] = "NoAmmo";
|
||||
stateTransitionOnAmmo[4] = "Reload";
|
||||
stateSequence[4] = "NoAmmo";
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue